/** * Constructor * @access public * @param string scriptname * @param int user_id */ function __construct($a_target, $a_templates = false) { $this->templates = $a_templates; parent::ilExplorer($a_target); $this->setFilterMode(IL_FM_POSITIVE); $this->addFilter("skrt"); $this->addFilter("skll"); $this->addFilter("scat"); // $this->addFilter("sktr"); $this->setTitleLength(999); include_once "./Services/Skill/classes/class.ilSkillTree.php"; $this->tree = new ilSkillTree(); $this->root_id = $this->tree->readRootId(); $this->setSessionExpandVariable("skpexpand"); $this->checkPermissions(false); $this->setPostSort(false); $this->setOrderColumn("order_nr"); // $this->textwidth = 200; $this->force_open_path = array(); $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->buildSelectableTree($this->root_id); }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ function __construct($a_target, $a_par_class = "") { global $tree, $ilCtrl; $this->ctrl =& $ilCtrl; $this->parent_class = $a_par_class; parent::ilExplorer($a_target); }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ public function __construct($a_target, $a_user_id) { parent::__construct($a_target); $this->tree = new ilTree($a_user_id); $this->tree->setTableNames('mail_tree', 'mail_obj_data'); $this->root_id = $this->tree->readRootId(); $this->user_id = $a_user_id; }
/** * Constructor * @access public * @param string scriptname */ function ilStyleScopeExplorer($a_target) { if ($_GET["id"] > 0) { $this->style_id = $_GET["id"]; } else { $this->style_id = $_GET["stlye_id"]; } parent::ilExplorer($a_target); }
public function __construct($a_target) { global $lng, $objDefinition; $this->lng = $lng; $this->objDefinition = $objDefinition; parent::ilExplorer($a_target); $this->initItemCounter(1); $this->setTitleLength(ilObject::TITLE_LENGTH); }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ function ilBookmarkExplorer($a_target, $a_user_id) { parent::ilExplorer($a_target); $this->tree = new ilTree($a_user_id); $this->tree->setTableNames('bookmark_tree', 'bookmark_data'); $this->root_id = $this->tree->readRootId(); $this->user_id = $a_user_id; $this->allowed_types = array('bmf', 'dum'); $this->enablesmallmode = false; }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ function ilSCORMExplorer($a_target, &$a_slm_obj) { parent::ilExplorer($a_target); $this->slm_obj =& $a_slm_obj; $this->tree = new ilSCORMTree($a_slm_obj->getId()); $this->root_id = $this->tree->readRootId(); $this->checkPermissions(false); $this->outputIcons(true); $this->setOrderColumn(""); }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ function ilMediaPoolExplorer($a_target, &$a_media_pool) { parent::ilExplorer($a_target); $this->tree =& $a_media_pool->getTree(); $this->root_id = $this->tree->readRootId(); $this->media_pool =& $a_media_pool; $this->order_column = "title"; $this->setSessionExpandVariable("mepexpand"); $this->checkPermissions(false); $this->setPostSort(false); }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ function __construct($a_target) { global $tree, $ilCtrl; $this->ctrl =& $ilCtrl; parent::ilExplorer($a_target); $this->setFrameTarget(""); $this->force_open_path = array(); if ($_GET["ref_id"] > 0) { $this->force_open_path = $tree->getPathId($_GET["ref_id"]); } $this->setSelectableTypes(array('mep')); }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ function __construct($a_target, $a_par_class = "ilpcfilelistgui") { global $tree, $ilCtrl; $this->ctrl =& $ilCtrl; $this->parent_class = $a_par_class; parent::ilExplorer($a_target); $this->force_open_path = array(); if ($_GET["ref_id"] > 0) { $this->force_open_path = $tree->getPathId($_GET["ref_id"]); } $this->setFrameTarget(""); }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ function ilLMMenuObjectSelector($a_target, &$a_gui_obj) { global $tree, $ilCtrl; $this->ctrl = $ilCtrl; $this->gui_obj = $a_gui_obj; parent::ilExplorer($a_target); $this->tree = $tree; $this->root_id = $this->tree->readRootId(); $this->order_column = "title"; $this->setSessionExpandVariable("lm_menu_expand"); $this->addFilter("rolf"); $this->addFilter("adm"); }
public function __construct($a_target, $a_server_id, $a_mid, $a_tree_id) { global $tree; parent::__construct($a_target); $this->type = self::SEL_TYPE_CHECK; $this->setOrderColumn('title'); $this->setTitleLength(1024); // reset filter $this->filter = array(); $this->addFormItemForType(''); $this->server_id = $a_server_id; $this->mid = $a_mid; $this->tree_id = $a_tree_id; }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ function ilLMExplorer($a_target, &$a_lm_obj) { parent::ilExplorer($a_target); $this->tree = new ilTree($a_lm_obj->getId()); $this->tree->setTableNames('lm_tree', 'lm_data'); $this->tree->setTreeTablePK("lm_id"); $this->root_id = $this->tree->readRootId(); $this->lm_obj =& $a_lm_obj; $this->order_column = ""; $this->setSessionExpandVariable("lmexpand"); $this->checkPermissions(false); $this->setPostSort(false); $this->textwidth = 200; }
/** * @param $a_target */ function ilObjectSelector($a_target) { global $tree, $ilCtrl; $this->ctrl = $ilCtrl; parent::ilExplorer($a_target); $this->tree = $tree; $this->root_id = $this->tree->readRootId(); $this->order_column = "title"; $this->setSessionExpandVariable("paya_link_expand"); // add here all container objects #$this->addFilter("root"); #$this->addFilter("cat"); #$this->setFilterMode(IL_FM_NEGATIVE); $this->setFiltered(false); }
/** * @access public * @param $a_target (i.e. ilias.php?cmd=showObjectSelector&cmdClass=ilpaymentobjectgui&cmdNode=8n:8z:90&baseClass=ilShopController) * @param string $a_classname i.e. ilpaymentobjectgui */ public function __construct($a_target, $a_classname) { global $tree, $ilCtrl; $this->ctrl = $ilCtrl; parent::ilExplorer($a_target); $this->tree = $tree; $this->root_id = $this->tree->readRootId(); $this->order_column = "title"; $this->setSessionExpandVariable("paya_link_expand"); $this->addFilter("adm"); $this->addFilter("rolf"); $this->addFilter("chat"); #$this->addFilter('fold'); $this->setFilterMode(IL_FM_NEGATIVE); $this->setFiltered(true); $this->classname = $a_classname; }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ function ilRoleDesktopItemSelector($a_target, $role_desk_item_obj) { global $tree, $ilCtrl; $this->ctrl = $ilCtrl; $this->role_desk_obj =& $role_desk_item_obj; parent::ilExplorer($a_target); $this->tree = $tree; $this->root_id = $this->tree->readRootId(); $this->order_column = "title"; $this->setSessionExpandVariable("role_desk_item_link_expand"); $this->addFilter("adm"); $this->addFilter("rolf"); #$this->addFilter("chat"); #$this->addFilter('fold'); $this->setFilterMode(IL_FM_NEGATIVE); $this->setFiltered(true); $this->setTitleLength(ilObject::TITLE_LENGTH); }
/** * Constructor */ public function __construct($a_target) { global $tree; parent::__construct($a_target); $this->tree = $tree; $this->root_id = $this->tree->readRootId(); $this->order_column = "title"; $this->setSessionExpandVariable("ref_repexpand"); $this->addFilter("root"); $this->addFilter("cat"); #$this->addFilter("grp"); #$this->addFilter("fold"); $this->addFilter("crs"); $this->setFilterMode(IL_FM_POSITIVE); $this->setFiltered(true); $this->setTitleLength(ilObject::TITLE_LENGTH); $this->checkPermissions(true); }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ function ilRepositoryCopySelector($a_target) { global $tree, $ilCtrl; $this->ctrl = $ilCtrl; parent::ilExplorer($a_target); $this->tree = $tree; $this->root_id = $this->tree->readRootId(); $this->order_column = "title"; $this->setSessionExpandVariable("rep_copy_expand"); // add here all container objects $this->addFilter("root"); $this->addFilter("cat"); $this->addFilter("grp"); $this->addFilter("fold"); $this->addFilter("crs"); $this->setFilterMode(IL_FM_POSITIVE); $this->setFiltered(true); $this->setTitleLength(ilObject::TITLE_LENGTH); }
/** * Constructor * @access public * @param string target */ function ilSolutionExplorer($a_target, $a_target_class) { global $tree, $ilCtrl; $this->ctrl = $ilCtrl; $this->target_class = $a_target_class; parent::ilExplorer($a_target); $this->tree = $tree; $this->root_id = $this->tree->readRootId(); $this->order_column = "title"; $this->setSessionExpandVariable("expand_sol"); // add here all container objects $this->addFilter("root"); $this->addFilter("cat"); $this->addFilter("grp"); $this->addFilter("fold"); $this->addFilter("crs"); $this->setFilterMode(IL_FM_POSITIVE); $this->setFiltered(true); }
public function __construct($a_target, $a_sid, $a_mid) { global $tree; parent::__construct($a_target); $this->sid = $a_sid; $this->mid = $a_mid; $this->type = self::SEL_TYPE_RADIO; $this->tree = $tree; $this->setRoot($tree->readRootId()); $this->setOrderColumn('title'); // reset filter $this->filter = array(); $this->addFilter('root'); $this->addFilter('cat'); $this->addFormItemForType('root'); $this->addFormItemForType('cat'); $this->setFiltered(true); $this->setFilterMode(IL_FM_POSITIVE); $this->initMappings(); }
/** * Show cms explorer */ protected function dShowCmsExplorer(ilExplorer $localExplorer) { global $tree; include_once './Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php'; include_once './Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingCmsExplorer.php'; include_once './Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php'; $explorer = new ilECSNodeMappingCmsExplorer($this->ctrl->getLinkTarget($this, 'dEditTree'), $this->getServer()->getServerId(), $this->getMid(), (int) $_REQUEST['tid']); $explorer->setRoot(ilECSCmsTree::lookupRootId((int) $_REQUEST['tid'])); $explorer->setTree(new ilECSCmsTree((int) $_REQUEST['tid'])); $explorer->setPostVar('rnodes[]'); // Read checked items from mapping of checked items in local explorer $active_node = $tree->getRootId(); foreach ($localExplorer->getCheckedItems() as $ref_id) { $explorer->setCheckedItems(ilECSNodeMappingAssignments::lookupMappedItemsForRefId($this->getServer()->getServerId(), $this->getMid(), (int) $_REQUEST['tid'], $ref_id)); $active_node = $ref_id; } include_once './Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php'; include_once './Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php'; $cmsTree = new ilECSCmsTree((int) $_REQUEST['tid']); foreach (ilECSNodeMappingAssignments::lookupAssignmentsByRefId($this->getServer()->getServerId(), $this->getMid(), (int) $_REQUEST['tid'], $active_node) as $cs_id) { foreach ($cmsTree->getPathId($cs_id) as $path_id) { #$explorer->setExpand($path_id); } } $explorer->setTargetGet('rref_id'); $explorer->setSessionExpandVariable('rexpand'); $explorer->setExpand((int) $_GET['rexpand']); $explorer->setExpandTarget($this->ctrl->getLinkTarget($this, 'dEditTree')); $explorer->setOutput(0); $GLOBALS['tpl']->setVariable('REMOTE_EXPLORER', $explorer->getOutput()); }
/** * get image path */ function getImage($a_name, $a_type = "", $a_obj_id = "") { if ($a_type != "") { return ilObject::_getIcon($a_obj_id, "tiny", $a_type); } return parent::getImage($a_name); }
/** * Constructor * @access public * @param string scriptname * @param int user_id */ function ilLMMenuObjectSelector($a_target) { global $tree, $ilCtrl; $this->ctrl =& $ilCtrl; parent::ilExplorer($a_target); }
/** * Get childs of node * * @param int $a_parent_id parent id * @return array childs */ function getChildsOfNode($a_parent_id) { switch (ilSkillTreeNode::_lookupType($a_parent_id)) { /* 'id' => string '1' (length=1) 'skill_id' => string '4' (length=1) 'nr' => string '1' (length=1) 'title' => string 'UngenĂ¼gend' (length=11) 'description' => null 'trigger_ref_id' => string '0' (length=1) 'trigger_obj_id' => string '0' (length=1) */ default: $childs = parent::getChildsOfNode($a_parent_id); //var_dump($childs); return $childs; } }
/** * Constructor */ function __construct($a_target) { parent::__construct($a_target); }
public function buildTitle($title, $a_obj_id, $a_type) { return parent::buildTitle($title, $a_obj_id, $a_type); }
/** * get image path */ function getImage($a_name, $a_type = "", $a_obj_id = "") { if ($a_type != "") { // custom icons if ($this->ilias->getSetting("custom_icons") && in_array($a_type, array("cat", "grp", "crs"))) { require_once "./Services/Container/classes/class.ilContainer.php"; if (($path = ilContainer::_lookupIconPath($a_obj_id, "tiny")) != "") { return $path; } } } return parent::getImage($a_name); }
/** * overwritten method from base class * @access private * @param integer * @param array * @return string */ function formatObject(&$tpl, $a_node_id, $a_option, $a_obj_id = 0) { global $lng; /* $tpl->setCurrentBlock("icon"); $tpl->setVariable("ICON_IMAGE" , $this->getImage("icon_".$a_option["type"]."_s.png", $a_option["type"], $a_obj_id)); $tpl->setVariable("TARGET_ID" , "iconid_".$a_node_id); $this->iconList[] = "iconid_".$a_node_id; $tpl->setVariable("TXT_ALT_IMG", $lng->txt($a_option["desc"])); $tpl->parseCurrentBlock(); $this->outputIcons(false);*/ parent::formatObject($tpl, $a_node_id, $a_option, $a_obj_id); }
function getOutput() { global $tpl; $html = parent::getOutput(); $tpl->setBodyClass("std"); return $html; }