public function getTypes( core_kernel_classes_Resource $resource)
    {
        $returnValue = array();

        
		$sqlQuery = 'SELECT object FROM statements WHERE subject = ? and predicate = ?';
        $sth = $this->getPersistence()->query($sqlQuery,array($resource->getUri(), OntologyRdf::RDF_TYPE));

        while ($row = $sth->fetch()){
            $uri = $this->getPersistence()->getPlatForm()->getPhpTextValue($row['object']);
            $returnValue[$uri] = new core_kernel_classes_Class($uri);
        }        
        

        return (array) $returnValue;
    }
public function getTypes( core_kernel_classes_Resource $resource)
    {
        $returnValue = array();

        
		$sqlQuery = 'SELECT object FROM statements WHERE subject = ? and predicate = ?';
        $sth = $this->getPersistence()->query($sqlQuery,array($resource->getUri(), OntologyRdf::RDF_TYPE));

        while ($row = $sth->fetch()){
            $uri = $this->getPersistence()->getPlatForm()->getPhpTextValue($row['object']);
            $returnValue[$uri] = new core_kernel_classes_Class($uri);
        }        
        

        return (array) $returnValue;
    }
public function getTypes ( core_kernel_classes_Resource $ resource ) { $ returnValue = array ( ) ; $ sqlQuery = 'SELECT object FROM statements WHERE subject = ? and predicate = ?' ; $ sth = $ this -> getPersistence ( ) -> query ( $ sqlQuery , array ( $ resource -> getUri ( ) , OntologyRdf :: RDF_TYPE ) ) ; while ( $ row = $ sth -> fetch ( ) ) { $ uri = $ this -> getPersistence ( ) -> getPlatForm ( ) -> getPhpTextValue ( $ row [ 'object' ] ) ; $ returnValue [ $ uri ] = new core_kernel_classes_Class ( $ uri ) ; } return ( array ) $ returnValue ; }
returns an array of types the ressource has

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@param  Resource resource
@return array
returns an array of types the ressource has