kernel/classes/ezcontentobjecttreenode.php
static function create( $parentNodeID = null, $contentObjectID = null, $contentObjectVersion = 0,
                      $sortField = 0, $sortOrder = true )
    {
        $row = array( 'node_id' => null,
                      'main_node_id' => null,
                      'parent_node_id' => $parentNodeID,
                      'contentobject_id' => $contentObjectID,
                      'contentobject_version' => $contentObjectVersion,
                      'contentobject_is_published' => false,
                      'depth' => 1,
                      'path_string' => null,
                      'path_identification_string' => null,
                      'is_hidden' => false,
                      'is_invisible' => false,
                      'sort_field' => $sortField,
                      'sort_order' => $sortOrder,
                      'modified_subnode' => 0,
                      'remote_id' => eZRemoteIdUtility::generate( 'node' ),
                      'priority' => 0 );
        $node = new eZContentObjectTreeNode( $row );
        return $node;
    }
static function create( $parentNodeID = null, $contentObjectID = null, $contentObjectVersion = 0,
                      $sortField = 0, $sortOrder = true )
    {
        $row = array( 'node_id' => null,
                      'main_node_id' => null,
                      'parent_node_id' => $parentNodeID,
                      'contentobject_id' => $contentObjectID,
                      'contentobject_version' => $contentObjectVersion,
                      'contentobject_is_published' => false,
                      'depth' => 1,
                      'path_string' => null,
                      'path_identification_string' => null,
                      'is_hidden' => false,
                      'is_invisible' => false,
                      'sort_field' => $sortField,
                      'sort_order' => $sortOrder,
                      'modified_subnode' => 0,
                      'remote_id' => eZRemoteIdUtility::generate( 'node' ),
                      'priority' => 0 );
        $node = new eZContentObjectTreeNode( $row );
        return $node;
    }
static function create ( $ parentNodeID = null , $ contentObjectID = null , $ contentObjectVersion = 0 , $ sortField = 0 , $ sortOrder = true ) { $ row = array ( 'node_id' => null , 'main_node_id' => null , 'parent_node_id' => $ parentNodeID , 'contentobject_id' => $ contentObjectID , 'contentobject_version' => $ contentObjectVersion , 'contentobject_is_published' => false , 'depth' => 1 , 'path_string' => null , 'path_identification_string' => null , 'is_hidden' => false , 'is_invisible' => false , 'sort_field' => $ sortField , 'sort_order' => $ sortOrder , 'modified_subnode' => 0 , 'remote_id' => eZRemoteIdUtility :: generate ( 'node' ) , 'priority' => 0 ) ; $ node = new eZContentObjectTreeNode ( $ row ) ; return $ node ; }
Creates a new tree node and returns it.

The attribute remote_id will get an automatic and unique value.

@param int $parentNodeID The ID of the parent or null if the node is not known yet.
@param int $contentObjectID The ID of the object it points to or null if it is not known yet.
@param int $contentObjectVersion The version of the object or 0 if not known yet.
@param int $sortField Number describing the field to sort by, or 0 if not known yet.
@param bool $sortOrder Which way to sort, true means ascending while false is descending.

@return eZContentObjectTreeNode
Creates a new tree node and returns it .