4 include_once
'./Services/Tree/classes/class.ilTree.php';
27 $query =
'INSERT INTO ecs_cms_tree '.
28 '(tree,child,parent,lft,rgt,depth) '.
30 $ilDB->quote($tree,
'integer').
', '.
31 $ilDB->quote($a_child,
'integer').
', '.
32 $ilDB->quote(0,
'integer').
', '.
33 $ilDB->quote(1,
'integer').
', '.
34 $ilDB->quote(100,
'integer').
', '.
35 $ilDB->quote(1,
'integer').
' )';
50 $query =
'DELETE FROM ecs_cms_tree '.
51 'WHERE tree = '.$ilDB->quote($a_tree_id,
'integer');
64 $query =
'SELECT COUNT(*) num FROM ecs_cms_tree WHERE tree = '.$ilDB->quote($a_tree_id,
'integer');
68 return $row->num > 0 ?
true :
false;
81 $query =
'SELECT child FROM ecs_cms_tree WHERE tree = '.$ilDB->quote($a_tree_id,
'integer');