phpDocumentor Testlink
[ class tree: Testlink ] [ index: Testlink ] [ all elements ]

Class: tree

Source Location: /tree.class.php

Class tree

Class Overview

TestLink Open Source Project - http://testlink.sourceforge.net/ This script is distributed under the GNU General Public License 2 or later.

Filename $RCSfile: tree.html,v $

Located in /tree.class.php [line 17]



		
				Author(s):
		
  • Francisco Mancardi

    20090313 - franciscom - added getTreeRoot() 20090207 - franciscom - new method check_name_is_unique() 20081227 - franciscom - new method - get_full_path_verbose()

Information Tags:
Version:  $Revision: 1.1.2.1 $

Properties

Methods

[ Top ]
Property Summary
mixed   $class_name  
mixed   $db  
mixed   $node_descr_id  
mixed   $node_tables  
mixed   $node_types  
mixed   $node_types_table  
mixed   $obj_table  
mixed   $ROOT_NODE_PARENT_ID  
mixed   $ROOT_NODE_TYPE_ID  

[ Top ]
Method Summary
tree   tree()  
void   change_child_order()  
void   change_order_bulk()  
void   change_parent()  
void   check_name_is_unique()   check_name_is_unique
void   delete_subtree()  
void   delete_subtree_objects()   delete_subtree_objects()
void   getBottomOrder()  
void   getTreeRoot()   getTreeRoot()
void   get_available_node_types()  
void   get_children()  
void   get_full_path_verbose()  
void   get_node_hierachy_info()  
void   get_path()  
void   get_subtree()  
void   get_subtree_list()  
void   new_node()  
void   new_root_node()  
void   _get_path()  
void   _get_subtree()  
void   _get_subtree_list()  
void   _get_subtree_rec()  

[ Top ]
Properties
mixed   $class_name = array( 1 => 'testproject','testsuite',
'testcase',null,'testplan',
'requirement_spec_mgr','requirement_mgr')
[line 25]

[ Top ]
mixed   $db [line 45]

[ Top ]
mixed   $node_descr_id = array() [line 29]

[ Top ]
mixed   $node_tables = array('testproject' => 'testprojects',
'testsuite' => 'testsuites',
'testplan' => 'testplans',
'testcase' => 'testcases',
'tcversion' => 'tcversions',
'requirement_spec' =>'req_specs',
'requirement' =>'requirements' )
[line 31]

[ Top ]
mixed   $node_types = array( 1 => 'testproject','testsuite',
'testcase','tcversion','testplan',
'requirement_spec','requirement')
[line 20]

[ Top ]
mixed   $node_types_table = 'node_types' [line 47]

[ Top ]
mixed   $obj_table = 'nodes_hierarchy' [line 46]

[ Top ]
mixed   $ROOT_NODE_PARENT_ID = NULL [line 43]

[ Top ]
mixed   $ROOT_NODE_TYPE_ID = 1 [line 42]

[ Top ]
Methods
Constructor tree  [line 59]

  tree tree( &$db  )

Parameters:
   &$db: 


[ Top ]
change_child_order  [line 554]

  void change_child_order( $parent_id, $node_id, $top_bottom, [ $exclude_node_types = null]  )

Parameters:
   $parent_id: 
   $node_id: 
   $top_bottom: 
   $exclude_node_types: 


[ Top ]
change_order_bulk  [line 523]

  void change_order_bulk( $nodes  )

Parameters:
   $nodes: 


[ Top ]
change_parent  [line 438]

  void change_parent( $node_id, $parent_id  )

Parameters:
   $node_id: 
   $parent_id: 


[ Top ]
check_name_is_unique  [line 990]

  void check_name_is_unique( $id, $name, $node_type_id  )

check_name_is_unique

args:

returns:

Parameters:
   $id: 
   $name: 
   $node_type_id: 


[ Top ]
delete_subtree  [line 250]

  void delete_subtree( $node_id  )

Parameters:
   $node_id: 


[ Top ]
delete_subtree_objects  [line 1035]

  void delete_subtree_objects( $node_id, [ $and_not_in_clause = ''], [ $exclude_children_of = null], [ $exclude_branches = null]  )

delete_subtree_objects()

ATTENTION: subtree root node ($node_id) IS NOT DELETED.

Parameters:
   $node_id: 
   $and_not_in_clause: 
   $exclude_children_of: 
   $exclude_branches: 


[ Top ]
getBottomOrder  [line 602]

  void getBottomOrder( $parentID  )

Parameters:
   $parentID: 


[ Top ]
getTreeRoot  [line 1020]

  void getTreeRoot( $node_id  )

getTreeRoot()

Parameters:
   $node_id: 


[ Top ]
get_available_node_types  [line 78]

  void get_available_node_types( )



[ Top ]
get_children  [line 481]

  void get_children( $id, [ $exclude_node_types = null]  )

Parameters:
   $id: 
   $exclude_node_types: 


[ Top ]
get_full_path_verbose  [line 955]

  void get_full_path_verbose( &$items  )

Parameters:
   &$items: 


[ Top ]
get_node_hierachy_info  [line 167]

  void get_node_hierachy_info( $node_id  )

Parameters:
   $node_id: 


[ Top ]
get_path  [line 348]

  void get_path( $node_id, [ $to_node_id = null], [ $format = 'full']  )

Parameters:
   $node_id: 
   $to_node_id: 
   $format: 


[ Top ]
get_subtree  [line 707]

  void get_subtree( $node_id, [ $exclude_node_types = null], [ $exclude_children_of = null], [ $exclude_branches = null], [ $and_not_in_clause = ''], [ $bRecursive = false], [ $order_cfg = array("type" =>'spec_order')], [ $key_type = 'std']  )

Parameters:
   $node_id: 
   $exclude_node_types: 
   $exclude_children_of: 
   $exclude_branches: 
   $and_not_in_clause: 
   $bRecursive: 
   $order_cfg: 
   $key_type: 


[ Top ]
get_subtree_list  [line 198]

  void get_subtree_list( $node_id, [ $node_type_id = null]  )

Parameters:
   $node_id: 
   $node_type_id: 


[ Top ]
new_node  [line 122]

  void new_node( $parent_id, $node_type_id, [ $name = ''], [ $node_order = 0], [ $node_id = 0]  )

Parameters:
   $parent_id: 
   $node_type_id: 
   $name: 
   $node_order: 
   $node_id: 


[ Top ]
new_root_node  [line 100]

  void new_root_node( [ $name = '']  )

Parameters:
   $name: 


[ Top ]
_get_path  [line 374]

  void _get_path( $node_id, &$node_list, [ $to_node_id = null], [ $format = 'full']  )

Parameters:
   $node_id: 
   &$node_list: 
   $to_node_id: 
   $format: 


[ Top ]
_get_subtree  [line 746]

  void _get_subtree( $node_id, &$node_list, [ $and_not_in_clause = ''], [ $exclude_children_of = null], [ $exclude_branches = null], [ $order_cfg = array("type" =>'spec_order')]  )

Parameters:
   $node_id: 
   &$node_list: 
   $and_not_in_clause: 
   $exclude_children_of: 
   $exclude_branches: 
   $order_cfg: 


[ Top ]
_get_subtree_list  [line 219]

  void _get_subtree_list( $node_id, &$node_list, [ $node_type_id = null]  )

Parameters:
   $node_id: 
   &$node_list: 
   $node_type_id: 


[ Top ]
_get_subtree_rec  [line 833]

  void _get_subtree_rec( $node_id, &$pnode, [ $and_not_in_clause = ''], [ $exclude_children_of = null], [ $exclude_branches = null], [ $order_cfg = array("type" =>'spec_order')], [ $key_type = 'std']  )

Parameters:
   $node_id: 
   &$pnode: 
   $and_not_in_clause: 
   $exclude_children_of: 
   $exclude_branches: 
   $order_cfg: 
   $key_type: 


[ Top ]

Documentation generated on Fri, 03 Apr 2009 14:13:50 +0200 by phpDocumentor 1.4.1