static public function getNodePath( $nodeId )
    {
        if ( !$nodeId or !is_numeric( $nodeId ) )
        {
            return false;
        }

        $node = eZContentObjectTreeNode::fetch( $nodeId );

        if ( !$node or !$node instanceof eZContentObjectTreeNode )
        {
            return false;
        }

        $parents = $node->attribute( 'path' );
        $path    = array( 'path' => array(), 'title_path' => array() );
        foreach ( $parents as $parent )
        {
            $path['path'][] = array( 'text' => $parent->attribute( 'name' ),
                             'url' => '/content/view/full/' . $parent->attribute( 'node_id' ),
                             'url_alias' => $parent->attribute( 'url_alias' ),
                             'node_id' => $parent->attribute( 'node_id' ) );
        }

        $path['title_path'] = $path['path'];
        $path['path'][] = array( 'text' => $node->attribute( 'name' ),
                         'url' => false,
                         'url_alias' => false,
                         'node_id' => $node->attribute( 'node_id' ) );

        $path['title_path'][] = array( 'text' => $node->attribute( 'name' ),
                              'url' => false,
                              'url_alias' => false );
        return $path;
    }
static public function getNodePath( $nodeId )
    {
        if ( !$nodeId or !is_numeric( $nodeId ) )
        {
            return false;
        }

        $node = eZContentObjectTreeNode::fetch( $nodeId );

        if ( !$node or !$node instanceof eZContentObjectTreeNode )
        {
            return false;
        }

        $parents = $node->attribute( 'path' );
        $path    = array( 'path' => array(), 'title_path' => array() );
        foreach ( $parents as $parent )
        {
            $path['path'][] = array( 'text' => $parent->attribute( 'name' ),
                             'url' => '/content/view/full/' . $parent->attribute( 'node_id' ),
                             'url_alias' => $parent->attribute( 'url_alias' ),
                             'node_id' => $parent->attribute( 'node_id' ) );
        }

        $path['title_path'] = $path['path'];
        $path['path'][] = array( 'text' => $node->attribute( 'name' ),
                         'url' => false,
                         'url_alias' => false,
                         'node_id' => $node->attribute( 'node_id' ) );

        $path['title_path'][] = array( 'text' => $node->attribute( 'name' ),
                              'url' => false,
                              'url_alias' => false );
        return $path;
    }
static public function getNodePath ( $ nodeId ) { if ( ! $ nodeId or ! is_numeric ( $ nodeId ) ) { return false ; } $ node = eZContentObjectTreeNode :: fetch ( $ nodeId ) ; if ( ! $ node or ! $ node instanceof eZContentObjectTreeNode ) { return false ; } $ parents = $ node -> attribute ( 'path' ) ; $ path = array ( 'path' => array ( ) , 'title_path' => array ( ) ) ; foreach ( $ parents as $ parent ) { $ path [ 'path' ] [ ] = array ( 'text' => $ parent -> attribute ( 'name' ) , 'url' => '/content/view/full/' . $ parent -> attribute ( 'node_id' ) , 'url_alias' => $ parent -> attribute ( 'url_alias' ) , 'node_id' => $ parent -> attribute ( 'node_id' ) ) ; } $ path [ 'title_path' ] = $ path [ 'path' ] ; $ path [ 'path' ] [ ] = array ( 'text' => $ node -> attribute ( 'name' ) , 'url' => false , 'url_alias' => false , 'node_id' => $ node -> attribute ( 'node_id' ) ) ; $ path [ 'title_path' ] [ ] = array ( 'text' => $ node -> attribute ( 'name' ) , 'url' => false , 'url_alias' => false ) ; return $ path ; }
function to generate path and title_path from node id
function to generate path and title_path from node id