3 require_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
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();
46 if ($node[
"title"] ==
"__OrgUnitAdministration") {
47 $node[
"title"] =
$lng->txt(
"objs_orgu");
49 if ($node[
"child"] ==
$_GET[
"ref_id"]) {
50 return "<span class='ilExp2NodeContent ilHighlighted'>" . $node[
"title"] .
"</span>";
52 return $node[
"title"];
75 $ilias = $DIC[
'ilias'];
76 if ($ilias->getSetting(
'custom_icons')) {
77 $icons_cache = ilObjOrgUnit::getIconsCache();
79 if (isset($icons_cache[$obj_id])) {
80 return $icons_cache[$obj_id];
96 if (
$ilCtrl->getCmd() ==
"performPaste") {
97 $ilCtrl->setParameterByClass(
"ilObjOrgUnitGUI",
"target_node", $node[
"child"]);
99 $ilCtrl->setParameterByClass(
"ilObjOrgUnitGUI",
"ref_id", $node[
"child"]);
100 $ilCtrl->setParameterByClass(
"ilObjPluginDispatchGUI",
"ref_id", $node[
"child"]);
116 return $ilCtrl->getLinkTargetByClass(
array(
"ilAdministrationGUI",
"ilobjorgunitgui" ),
"view");
125 return $ilCtrl->getLinkTargetByClass(
"ilObjPluginDispatchGUI",
"forward");
140 $ilAccess = $DIC[
'ilAccess'];
143 if (is_array($wl) && count($wl) > 0) {
151 if (is_array($bl) && count($bl) > 0) {
152 $bl_childs =
array();
153 foreach (
$childs as $k => $c) {
154 if (!in_array($c[
"type"], $bl)) {
163 foreach (
$childs as $key => $child) {
164 if (!$ilAccess->checkAccess(
'visible',
'', $child[
'ref_id'])) {
184 usort($a_childs,
array( __CLASS__,
"sortbyTitle" ));
197 return strcmp($a[
"title"], $b[
"title"]);
211 $ilAccess = $DIC[
'ilAccess'];
213 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)
Create styles array
The data for the language used.
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.