classes/ngsymfonytoolsapicontentconverter.php
public function convert( $object )
    {
        if ( $object instanceof eZContentObject )
        {
            return $this->repository->getContentService()->loadContent( $object->attribute( 'id' ) );
        }
        else if ( $object instanceof eZContentObjectTreeNode )
        {
            return $this->repository->getLocationService()->loadLocation( $object->attribute( 'node_id' ) );
        }

        return $object;
    }
public function convert( $object )
    {
        if ( $object instanceof eZContentObject )
        {
            return $this->repository->getContentService()->loadContent( $object->attribute( 'id' ) );
        }
        else if ( $object instanceof eZContentObjectTreeNode )
        {
            return $this->repository->getLocationService()->loadLocation( $object->attribute( 'node_id' ) );
        }

        return $object;
    }
public function convert ( $ object ) { if ( $ object instanceof eZContentObject ) { return $ this -> repository -> getContentService ( ) -> loadContent ( $ object -> attribute ( 'id' ) ) ; } else if ( $ object instanceof eZContentObjectTreeNode ) { return $ this -> repository -> getLocationService ( ) -> loadLocation ( $ object -> attribute ( 'node_id' ) ) ; } return $ object ; }
Converts eZ Publish legacy objects and nodes to content and locations

@param mixed $object

@return mixed
Converts eZ Publish legacy objects and nodes to content and locations