4include_once
'./Services/Tree/classes/class.ilTree.php';
29 $query =
'INSERT INTO ecs_cms_tree ' .
30 '(tree,child,parent,lft,rgt,depth) ' .
32 $ilDB->quote($tree,
'integer') .
', ' .
33 $ilDB->quote($a_child,
'integer') .
', ' .
34 $ilDB->quote(0,
'integer') .
', ' .
35 $ilDB->quote(1,
'integer') .
', ' .
36 $ilDB->quote(100,
'integer') .
', ' .
37 $ilDB->quote(1,
'integer') .
' )';
54 $GLOBALS[
'DIC']->logger()->wsrv()->debug(
'Deleting cms tree: ' . $a_tree_id);
55 $query =
'DELETE FROM ecs_cms_tree ' .
56 'WHERE tree = ' .
$ilDB->quote($a_tree_id,
'integer');
71 $query =
'SELECT COUNT(*) num FROM ecs_cms_tree WHERE tree = ' .
$ilDB->quote($a_tree_id,
'integer');
74 return $row->num > 0 ?
true :
false;
89 $query =
'SELECT child FROM ecs_cms_tree WHERE tree = ' .
$ilDB->quote($a_tree_id,
'integer');
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
return true
Flag indicating whether or not HTTP headers will be sent when outputting captcha image/audio.
static lookupRootId($a_tree_id)
lookup root id
insertRootNode($tree, $a_child)
treeExists($a_tree_id)
Check if tree exists.
static deleteByTreeId($a_tree_id)
Delete tree by tree_id.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
setObjectTablePK($a_column_name)
set column containing primary key in object table @access public
useCache($a_use=true)
Use Cache (usually activated)
setTableNames($a_table_tree, $a_table_obj_data, $a_table_obj_reference="")
set table names The primary key of the table containing your object_data must be 'obj_id' You may use...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
foreach($_POST as $key=> $value) $res