3 require_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
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) {
31 parent::__construct($a_expl_id, $a_parent_obj, $a_parent_cmd, $a_tree);
34 $this->tree->initLangCode();
45 if ($node[
"title"] ==
"__OrgUnitAdministration") {
46 $node[
"title"] = $lng->txt(
"objs_orgu");
48 if ($node[
"child"] ==
$_GET[
"ref_id"]) {
49 return "<span class='ilExp2NodeContent ilHighlighted'>" . $node[
"title"] .
"</span>";
51 return $node[
"title"];
74 if ($ilias->getSetting(
'custom_icons')) {
75 $icons_cache = ilObjOrgUnit::getIconsCache();
77 if (isset($icons_cache[$obj_id])) {
78 return $icons_cache[$obj_id];
93 if ($ilCtrl->getCmd() ==
"performPaste") {
94 $ilCtrl->setParameterByClass(
"ilObjOrgUnitGUI",
"target_node", $node[
"child"]);
96 $ilCtrl->setParameterByClass(
"ilObjOrgUnitGUI",
"ref_id", $node[
"child"]);
109 return $ilCtrl->getLinkTargetByClass($ilCtrl->getCmdClass(), $ilCtrl->getCmd());
111 return $ilCtrl->getLinkTargetByClass(
"ilobjorgunitgui",
"view");
128 if (is_array($wl) && count($wl) > 0) {
136 if (is_array($bl) && count($bl) > 0) {
137 $bl_childs = array();
138 foreach (
$childs as $k => $c) {
139 if (!in_array($c[
"type"], $bl)) {
148 foreach (
$childs as $key => $child) {
149 if (!$ilAccess->checkAccess(
'visible',
'', $child[
'ref_id'])) {
169 usort($a_childs, array( __CLASS__,
"sortbyTitle" ));
182 return strcmp($a[
"title"], $b[
"title"]);
197 if ($ilAccess->checkAccess(
'read',
'', $a_node[
'ref_id'])) {
isNodeClickable($a_node)
Is node clickable?
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
getTypeBlackList()
Get type black list.
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)
sortChilds($a_childs, $a_parent_node_id)
Sort childs.
static _lookupObjId($a_id)
getOrderField()
Get order field.
Explorer class that works on tree objects (Services/Tree)
Class ilOrgUnitExplorerGUI.
getChildsOfNode($a_parent_node_id)
Get childs of node.
getTypeWhiteList()
Get type white list.