public function isInstanceOf( core_kernel_classes_Class $class)
    {
        $returnValue = (bool) false;
        foreach($this->getTypes() as $type){
        	if ($class->equals($type) || $type->isSubClassOf($class)){
        		$returnValue = true;
        		break;
        	}
        }
        return (bool) $returnValue;
    }
public function isInstanceOf( core_kernel_classes_Class $class)
    {
        $returnValue = (bool) false;
        foreach($this->getTypes() as $type){
        	if ($class->equals($type) || $type->isSubClassOf($class)){
        		$returnValue = true;
        		break;
        	}
        }
        return (bool) $returnValue;
    }
public function isInstanceOf ( core_kernel_classes_Class $ class ) { $ returnValue = ( bool ) false ; foreach ( $ this -> getTypes ( ) as $ type ) { if ( $ class -> equals ( $ type ) || $ type -> isSubClassOf ( $ class ) ) { $ returnValue = true ; break ; } } return ( bool ) $ returnValue ; }
Whenever or not the current resource is
an instance of the specified class

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@param  Class class
@return boolean
Whenever or not the current resource is an instance of the specified class