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):
Information Tags:
| Version: | $Revision: 1.1.2.1 $ |
|
Properties
|
Methods
|
Methods
void change_child_order(
$parent_id,
$node_id,
$top_bottom, [
$exclude_node_types = null]
)
|
|
Parameters:
|
|
$parent_id: |
|
|
|
$node_id: |
|
|
|
$top_bottom: |
|
|
|
$exclude_node_types: |
|
void change_order_bulk(
$nodes
)
|
|
Parameters:
void change_parent(
$node_id,
$parent_id
)
|
|
Parameters:
void check_name_is_unique(
$id,
$name,
$node_type_id
)
|
|
check_name_is_unique
args: returns:
Parameters:
|
|
$id: |
|
|
|
$name: |
|
|
|
$node_type_id: |
|
void delete_subtree(
$node_id
)
|
|
Parameters:
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: |
|
void getBottomOrder(
$parentID
)
|
|
Parameters:
void getTreeRoot(
$node_id
)
|
|
getTreeRoot()
Parameters:
void get_available_node_types(
)
|
|
void get_children(
$id, [
$exclude_node_types = null]
)
|
|
Parameters:
|
|
$id: |
|
|
|
$exclude_node_types: |
|
void get_full_path_verbose(
&$items
)
|
|
Parameters:
void get_node_hierachy_info(
$node_id
)
|
|
Parameters:
void get_path(
$node_id, [
$to_node_id = null], [
$format = 'full']
)
|
|
Parameters:
|
|
$node_id: |
|
|
|
$to_node_id: |
|
|
|
$format: |
|
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: |
|
void get_subtree_list(
$node_id, [
$node_type_id = null]
)
|
|
Parameters:
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: |
|
void new_root_node(
[
$name = '']
)
|
|
Parameters:
void _get_path(
$node_id,
&$node_list, [
$to_node_id = null], [
$format = 'full']
)
|
|
Parameters:
|
|
$node_id: |
|
|
|
&$node_list: |
|
|
|
$to_node_id: |
|
|
|
$format: |
|
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: |
|
void _get_subtree_list(
$node_id,
&$node_list, [
$node_type_id = null]
)
|
|
Parameters:
|
|
$node_id: |
|
|
|
&$node_list: |
|
|
|
$node_type_id: |
|
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: |
|
|
|