/** * constructor * * @param object $a_parent_obj * @param string $a_parent_cmd * @param ilObjLearningModule $a_lm */ public function __construct($a_parent_obj, $a_parent_cmd, $a_lm) { $this->lm = $a_lm; include_once "./Modules/LearningModule/classes/class.ilLMTree.php"; $tree = ilLMTree::getInstance($this->lm->getId()); parent::__construct("lm_public_section_" . $this->lm->getId(), $a_parent_obj, $a_parent_cmd, $tree); }
/** * Constructor * * @param object $a_parent_obj parent gui object * @param string $a_parent_cmd parent cmd * @param ilObjContentObject $a_lm learning module */ public function __construct($a_parent_obj, $a_parent_cmd, ilObjContentObject $a_lm, $a_id = "") { $this->lm = $a_lm; include_once "./Modules/LearningModule/classes/class.ilLMTree.php"; $tree = ilLMTree::getInstance($this->lm->getId()); //echo "+".$tree->isCacheUsed()."+"; // $tree = new ilTree($this->lm->getId()); // $tree->setTableNames('lm_tree','lm_data'); // $tree->setTreeTablePK("lm_id"); include_once "./Modules/LearningModule/classes/class.ilLMObject.php"; $this->cnt_lmobj = ilLMObject::preloadDataByLM($this->lm->getId()); include_once "./Services/COPage/classes/class.ilPageObject.php"; ilPageObject::preloadActivationDataByParentId($this->lm->getId()); if ($a_id == "") { $a_id = "lm_exp"; // this does not work, since it is not set yet if ($this->getOfflineMode()) { $a_id = "lm_exp_off"; } } parent::__construct($a_id, $a_parent_obj, $a_parent_cmd, $tree); $this->setSkipRootNode(false); $this->setAjax(false); $this->setPreloadChilds(true); if ((int) $_GET["obj_id"] > 0) { $this->setPathOpen((int) $_GET["obj_id"]); } }
/** * Get node icon alt text * * @param array node array * @return string alt text */ function getNodeIconAlt($a_node) { global $lng; if ($a_node["child"] == $this->getNodeId($this->getRootNode())) { return $this->slm->getTitle(); } return parent::getNodeIconAlt($a_node); }
function __construct($a_parent_obj, $a_parent_cmd, $a_selectable_type) { global $tree; parent::__construct("rep_exp", $a_parent_obj, $a_parent_cmd, $tree); $this->current_type = $a_selectable_type; $this->setTypeWhiteList(array("root", "cat", "grp", "fold", "crs", $this->current_type)); $this->setSkipRootNode(true); }
public function __construct($a_parent_obj, $a_parent_cmd, $a_user_id) { $this->tree = new ilTree($a_user_id); $this->tree->setTableNames('mail_tree', 'mail_obj_data'); parent::__construct("mail_exp", $a_parent_obj, $a_parent_cmd, $this->tree); $this->setSkipRootNode(false); $this->setAjax(false); $this->setOrderField("title,m_type"); }
/** * Constructor */ public function __construct($a_parent_obj, $a_parent_cmd, $a_media_pool) { global $ilUser; $this->media_pool = $a_media_pool; parent::__construct("mep_exp", $a_parent_obj, $a_parent_cmd, $a_media_pool->getTree()); $this->setTypeWhiteList(array("dummy", "fold")); $this->setSkipRootNode(false); $this->setAjax(true); $this->setOrderField("title"); }
/** * @param $parent_obj * @param $parent_cmd */ public function __construct($parent_obj, $parent_cmd) { /** * @var $tree ilTree * @var $ctrl ilCtrl */ global $tree, $ilCtrl; $this->ctrl = $ilCtrl; parent::__construct("pobject_exp", $this, 'showObjectSelector', $tree); $this->setTypeBlackList(array('adm', 'rolf', 'chat', 'frm')); $this->classname = $this->ctrl->getCmdClass(); }
/** * Constructor * * @param * @return */ function __construct($a_parent_obj, $a_parent_cmd, $a_tax_id, $a_target_gui, $a_target_cmd, $a_id = "") { include_once "./Services/Taxonomy/classes/class.ilTaxonomyTree.php"; $this->tax_tree = new ilTaxonomyTree($a_tax_id); if ($a_id != "") { $this->id = $a_id; } else { $this->id = "tax_expl_" . $this->tax_tree->getTreeId(); } $this->target_gui = $a_target_gui; $this->target_cmd = $a_target_cmd; parent::__construct($this->id, $a_parent_obj, $a_parent_cmd, $this->tax_tree); }
/** * Constructor */ public function __construct($a_parent_obj, $a_parent_cmd, $a_user_id = 0) { global $ilUser; if ($a_user_id == 0) { $a_user_id = $ilUser->getId(); } include_once "./Services/Bookmarks/classes/class.ilBookmarkTree.php"; $tree = new ilBookmarkTree($a_user_id); parent::__construct("bm_exp", $a_parent_obj, $a_parent_cmd, $tree); $this->setTypeWhiteList(array("bmf", "dum")); $this->setSkipRootNode(false); $this->setAjax(false); $this->setOrderField("title"); }
/** * Get childs of node * * @param int $a_parent_id parent id * @return array childs */ function getChildsOfNode($a_parent_id) { $childs = parent::getChildsOfNode($a_parent_id); include_once "./Services/Skill/classes/class.ilSkillTreeNode.php"; foreach ($childs as $c) { $this->parent[$c["child"]] = $c["parent"]; if ($this->draft[$c["parent"]]) { $this->draft[$c["child"]] = true; } else { $this->draft[$c["child"]] = ilSkillTreeNode::_lookupDraft($c["child"]); } } return $childs; }
/** * Constructor */ public function __construct($a_parent_obj, $a_parent_cmd, $a_select_gui, $a_select_cmd, $a_select_par = "obj_id") { $this->select_gui = is_object($a_select_gui) ? strtolower(get_class($a_select_gui)) : $a_select_gui; $this->select_cmd = $a_select_cmd; $this->select_par = $a_select_par; include_once "./Services/Skill/classes/class.ilSkillTree.php"; $this->tree = new ilSkillTree(); $this->root_id = $this->tree->readRootId(); parent::__construct("pskill_sel", $a_parent_obj, $a_parent_cmd, $this->tree); $this->setSkipRootNode(true); $this->all_nodes = $this->tree->getSubTree($this->tree->getNodeData($this->root_id)); foreach ($this->all_nodes as $n) { $this->node[$n["child"]] = $n; $this->child_nodes[$n["parent"]][] = $n; $this->parent[$n["child"]] = $n["parent"]; //echo "-$k-"; var_dump($n); } // $this->setTypeWhiteList(array("skrt", "skll", "scat", "sktr")); $this->buildSelectableTree($this->tree->readRootId()); }
/** * @param $a_expl_id * @param $a_parent_obj * @param $a_parent_cmd * @param $a_tree */ public function __construct($a_expl_id, $a_parent_obj, $a_parent_cmd, $a_tree) { parent::__construct($a_expl_id, $a_parent_obj, $a_parent_cmd, $a_tree); $this->setAjax(true); $this->setTypeWhiteList(array("orgu")); }
/** * Get childs of node * * @param int $a_parent_node_id node id * @return array childs array */ function getChildsOfNode($a_parent_node_id) { global $ilAccess; if (!$ilAccess->checkAccess("read", "", $a_parent_node_id)) { return array(); } return parent::getChildsOfNode($a_parent_node_id); }
function getNodeOnClick($a_node) { if ($this->onclick) { return str_replace("{NODE_CHILD}", $a_node["child"], $this->onclick); } else { // #14623 return parent::getNodeOnClick($a_node); } }
/** * Get childs of node * * @param * @return */ function getChildsOfNode($a_parent_node_id) { global $rbacsystem; if (!$rbacsystem->checkAccess("read", $a_parent_node_id)) { return array(); } $obj_id = ilObject::_lookupObjId($a_parent_node_id); if (!ilConditionHandler::_checkAllConditionsOfTarget($a_parent_node_id, $obj_id)) { return array(); } return parent::getChildsOfNode($a_parent_node_id); }
/** * Get childs of node * * @param * @return */ function getChildsOfNode($a_parent_node_id) { global $rbacsystem; if (!$rbacsystem->checkAccess("read", $a_parent_node_id)) { return array(); } return parent::getChildsOfNode($a_parent_node_id); }