15 protected const ORGU =
"orgu";
19 protected $stay_with_command = array(
'',
'render',
'view',
'infoScreen',
'showStaff',
'performPaste',
'cut');
43 $this->tree->initLangCode();
56 if ($node[
'title'] ===
'__OrgUnitAdministration') {
57 $node[
'title'] = $DIC->language()->txt(
'objs_orgu');
59 if ((
int) $node[
'child'] === (
int)
$_GET[
'ref_id']) {
60 return "<span class='ilExp2NodeContent ilHighlighted'>" . $node[
'title'] .
'</span>';
63 return $node[
'title'];
87 $ilias = $DIC[
'ilias'];
88 if ($ilias->getSetting(
'custom_icons')) {
89 $icons_cache = ilObjOrgUnit::getIconsCache();
91 if (isset($icons_cache[$obj_id])) {
92 return $icons_cache[$obj_id];
96 return ilObject::_getIcon($obj_id,
"tiny", $a_node[
"type"]);
109 if ($this->select_postvar) {
113 if ($DIC->ctrl()->getCmd() ===
'performPaste') {
114 $DIC->ctrl()->setParameterByClass(ilObjOrgUnitGUI::class,
'target_node', $node[
'child']);
116 $array = $DIC->ctrl()->getParameterArrayByClass(ilObjOrgUnitGUI::class);
117 $temp = $array[
'ref_id'];
119 $DIC->ctrl()->setParameterByClass(ilObjOrgUnitGUI::class,
'ref_id', $node[
'child']);
120 $DIC->ctrl()->setParameterByClass(ilObjPluginDispatchGUI::class,
'ref_id', $node[
'child']);
123 $DIC->ctrl()->setParameterByClass(ilObjOrgUnitGUI::class,
'ref_id', $temp);
135 if ($DIC->ctrl()->getCmdClass() === strtolower(ilObjOrgUnitGUI::class) && in_array($DIC->ctrl()->getCmd(),
$this->stay_with_command,
true)) {
136 return $DIC->ctrl()->getLinkTargetByClass(array(ilAdministrationGUI::class, $DIC->ctrl()->getCmdClass()), $DIC->ctrl()->getCmd());
139 return $DIC->ctrl()->getLinkTargetByClass(array(ilAdministrationGUI::class, ilObjOrgUnitGUI::class),
'view');
150 return $DIC->ctrl()->getLinkTargetByClass(ilObjPluginDispatchGUI::class,
'forward');
162 $ilAccess = $DIC->access();
164 if ($ilAccess->checkAccess(
'read',
'', $a_node[
'ref_id'])) {
181 return !($a_node[
'child'] === $current_node || $this->tree->isGrandChild($current_node, $a_node[
'child']));
186 $children = parent::getChildsOfNode($a_parent_node_id);
188 if (!is_null($this->access)) {
200 return $this->access->checkAccess(
"visible",
"", $child[
"ref_id"]);
getNodeIcon($a_node)
Get node icon Return custom icon of OrgUnit type if existing.
setTypeWhiteList($a_val)
Set type white list.
__construct($a_expl_id, $a_parent_obj, $a_parent_cmd, $a_tree, \ilAccessHandler $access=null)
Interface ilAccessHandler.
static _lookupObjId($a_id)
isNodeSelectable($a_node)
filterChildrenByPermission(array $children)
Explorer class that works on tree objects (Services/Tree)
__construct(Container $dic, ilPlugin $plugin)
Interface for mapping data-structures to the Tree.
getChildsOfNode($a_parent_node_id)