kernel/private/api/content/location.php
public static function fetchByNodeId( $nodeId )
    {
        $node = eZContentObjectTreeNode::fetch( $nodeId );
        if ( $node instanceof eZContentObjectTreeNode )
        {
            return self::fromNode( $node );
        }
        else
        {
            // @TODO Currently this exception is only in rest package. Needs to be fixed.
            throw new ezpContentNotFoundException( "Unable to find node with ID $nodeId" );
        }
    }
public static function fetchByNodeId( $nodeId )
    {
        $node = eZContentObjectTreeNode::fetch( $nodeId );
        if ( $node instanceof eZContentObjectTreeNode )
        {
            return self::fromNode( $node );
        }
        else
        {
            // @TODO Currently this exception is only in rest package. Needs to be fixed.
            throw new ezpContentNotFoundException( "Unable to find node with ID $nodeId" );
        }
    }
public static function fetchByNodeId ( $ nodeId ) { $ node = eZContentObjectTreeNode :: fetch ( $ nodeId ) ; if ( $ node instanceof eZContentObjectTreeNode ) { return self :: fromNode ( $ node ) ; } else { // @TODO Currently this exception is only in rest package. Needs to be fixed. throw new ezpContentNotFoundException ( "Unable to find node with ID $nodeId" ) ; } }
Returns the ezpContentLocation object for a particular node by ID
@param int $nodeId
@return ezpContentLocation
@throws ezcBaseException When the node is not found
Returns the ezpContentLocation object for a particular node by ID