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();
48 if ($node[
"title"] ==
"__OrgUnitAdministration") {
49 $node[
"title"] =
$lng->txt(
"objs_orgu");
51 if ($node[
"child"] ==
$_GET[
"ref_id"]) {
52 return "<span class='ilExp2NodeContent ilHighlighted'>" . $node[
"title"] .
"</span>";
54 return $node[
"title"];
79 $ilias = $DIC[
'ilias'];
80 if ($ilias->getSetting(
'custom_icons')) {
81 $icons_cache = ilObjOrgUnit::getIconsCache();
83 if (isset($icons_cache[$obj_id])) {
84 return $icons_cache[$obj_id];
101 if (
$ilCtrl->getCmd() ==
"performPaste") {
102 $ilCtrl->setParameterByClass(
"ilObjOrgUnitGUI",
"target_node", $node[
"child"]);
104 $array =
$ilCtrl->getParameterArrayByClass(
"ilObjOrgUnitGUI");
105 $temp = $array[
'ref_id'];
107 $ilCtrl->setParameterByClass(
"ilObjOrgUnitGUI",
"ref_id", $node[
"child"]);
108 $ilCtrl->setParameterByClass(
"ilObjPluginDispatchGUI",
"ref_id", $node[
"child"]);
111 $ilCtrl->setParameterByClass(
"ilObjOrgUnitGUI",
'ref_id', $temp);
127 return $ilCtrl->getLinkTargetByClass(
array(
"ilAdministrationGUI",
"ilobjorgunitgui" ),
"view");
137 return $ilCtrl->getLinkTargetByClass(
"ilObjPluginDispatchGUI",
"forward");
153 $ilAccess = $DIC[
'ilAccess'];
156 if (is_array($wl) && count($wl) > 0) {
164 if (is_array($bl) && count($bl) > 0) {
165 $bl_childs =
array();
166 foreach (
$childs as $k => $c) {
167 if (!in_array($c[
"type"], $bl)) {
177 if (!$ilAccess->checkAccess(
'visible',
'', $child[
'ref_id'])) {
198 usort($a_childs,
array( __CLASS__,
"sortbyTitle" ));
212 return strcmp($a[
"title"], $b[
"title"]);
227 $ilAccess = $DIC[
'ilAccess'];
229 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.