Subversion Repositories sqliimport

[/] [trunk/] [classes/] [location/] [sqlilocation.php] - Diff between revs 2 and 31

Show entire file | Ignore whitespace | Details | Blame | View Log

Rev 2 Rev 31
Line 51... Line 51...
     */
     */
    public static function fromNodeID( $nodeID )
    public static function fromNodeID( $nodeID )
    {
    {
        $node = eZContentObjectTreeNode::fetch( $nodeID );
        $node = eZContentObjectTreeNode::fetch( $nodeID );
        if ( !$node instanceof eZContentObjectTreeNode )
        if ( !$node instanceof eZContentObjectTreeNode )
            throw new SQLILocationException( "Unable to find eZContentObjectTreeNode with NodeID #$this->nodeID" );
            throw new SQLILocationException( "Unable to find eZContentObjectTreeNode with NodeID #$nodeID" );
       
       
        $location = self::fromNode( $node );
        $location = self::fromNode( $node );
        return $location;
        return $location;
    }
    }