17    protected $stay_with_command = array( 
"", 
"render", 
"view", 
"infoScreen", 
"showStaff", 
"performPaste", 
"cut" );
 
   30    public function __construct($a_expl_id, $a_parent_obj, $a_parent_cmd, $a_tree)
 
   32        parent::__construct($a_expl_id, $a_parent_obj, $a_parent_cmd, $a_tree);
 
   35        $this->tree->initLangCode();
 
   47        if ($node[
"title"] == 
"__OrgUnitAdministration") {
 
   48            $node[
"title"] = 
$DIC->language()->txt(
"objs_orgu");
 
   50        if ($node[
"child"] == 
$_GET[
"ref_id"]) {
 
   51            return "<span class='ilExp2NodeContent ilHighlighted'>" . $node[
"title"] . 
"</span>";
 
   53            return $node[
"title"];
 
   78        $ilias = 
$DIC[
'ilias'];
 
   79        if ($ilias->getSetting(
'custom_icons')) {
 
   80            $icons_cache = ilObjOrgUnit::getIconsCache();
 
   82            if (isset($icons_cache[$obj_id])) {
 
   83                return $icons_cache[$obj_id];
 
   87        return ilObject::_getIcon($obj_id, 
"tiny", $a_node[
"type"]);
 
  100        if ($this->select_postvar) {
 
  104        if (
$DIC->ctrl()->getCmd() == 
"performPaste") {
 
  105            $DIC->ctrl()->setParameterByClass(
"ilObjOrgUnitGUI", 
"target_node", $node[
"child"]);
 
  107        $array = 
$DIC->ctrl()->getParameterArrayByClass(
"ilObjOrgUnitGUI");
 
  108        $temp = $array[
'ref_id'];
 
  110        $DIC->ctrl()->setParameterByClass(
"ilObjOrgUnitGUI", 
"ref_id", $node[
"child"]);
 
  111        $DIC->ctrl()->setParameterByClass(
"ilObjPluginDispatchGUI", 
"ref_id", $node[
"child"]);
 
  114        $DIC->ctrl()->setParameterByClass(
"ilObjOrgUnitGUI", 
'ref_id', $temp);
 
  125        if (
$DIC->ctrl()->getCmdClass() == 
"ilobjorgunitgui" and in_array(
$DIC->ctrl()->getCmd(), $this->stay_with_command)) {
 
  126            return $DIC->ctrl()->getLinkTargetByClass(array( 
"ilAdministrationGUI", 
$DIC->ctrl()->getCmdClass() ), 
$DIC->ctrl()->getCmd());
 
  128            return $DIC->ctrl()->getLinkTargetByClass(array( 
"ilAdministrationGUI", 
"ilobjorgunitgui" ), 
"view");
 
  136        return $DIC->ctrl()->getLinkTargetByClass(
"ilObjPluginDispatchGUI", 
"forward");
 
  152        $ilAccess = 
$DIC->access();
 
  155        if (is_array($wl) && count($wl) > 0) {
 
  163        if (is_array($bl) && count($bl) > 0) {
 
  164            $bl_childs = array();
 
  166                if (!in_array(
$c[
"type"], $bl)) {
 
  176            if (!$ilAccess->checkAccess(
'visible', 
'', $child[
'ref_id'])) {
 
  197        usort($a_childs, array( __CLASS__, 
"sortbyTitle" ));
 
  211        return strcmp($a[
"title"], $b[
"title"]);
 
  226        $ilAccess = 
$DIC->access();
 
  228        if ($ilAccess->checkAccess(
'read', 
'', $a_node[
'ref_id'])) {
 
  240        $current_node = filter_input(INPUT_GET, 
'item_ref_id');
 
  241        if ($a_node[
'child'] == $current_node || $this->tree->isGrandChild($current_node, $a_node[
'child'])) {
 
An exception for terminatinating execution or to throw for unit testing.
static _lookupObjId($a_id)
Class ilOrgUnitExplorerGUI.
isNodeClickable($a_node)
Is node clickable?
getNodeIcon($a_node)
Get node icon Return custom icon of OrgUnit type if existing.
__construct($a_expl_id, $a_parent_obj, $a_parent_cmd, $a_tree)
getChildsOfNode($a_parent_node_id)
Get childs of node.
sortChilds($a_childs, $a_parent_node_id)
Sort childs.
isNodeSelectable($a_node)
Is node selectable?
Explorer class that works on tree objects (Services/Tree)
setTypeWhiteList($a_val)
Set type white list.
getTypeWhiteList()
Get type white list.
getTypeBlackList()
Get type black list.
getOrderField()
Get order field.