30 protected const ORGU =
"orgu";
31 protected array
$stay_with_command = array(
'',
'render',
'view',
'infoScreen',
'showStaff',
'performPaste',
'cut');
52 $this->tree->initLangCode();
53 $this->
access = $DIC->access();
55 $this->http_post = $DIC->http()->wrapper()->post();
56 $this->http_query = $DIC->http()->wrapper()->query();
69 if ($node[
'title'] ===
'__OrgUnitAdministration') {
70 $node[
'title'] = $this->
lng->txt(
'objs_orgu');
72 if ((
int) $node[
'child'] === (
int)
$_GET[
'ref_id']) {
73 return "<span class='ilExp2NodeContent ilHighlighted'>" . $node[
'title'] .
'</span>';
95 if ($this->
settings->get(
'custom_icons')) {
98 if (isset($icons_cache[$obj_id])) {
99 return $icons_cache[$obj_id];
114 if ($this->select_postvar) {
118 if ($this->
ctrl->getCmd() ===
'performPaste') {
119 $this->
ctrl->setParameterByClass(ilObjOrgUnitGUI::class,
'target_node', $node[
'child']);
121 $array = $this->
ctrl->getParameterArrayByClass(ilObjOrgUnitGUI::class);
122 $temp = $array[
'ref_id'];
124 $this->
ctrl->setParameterByClass(ilObjOrgUnitGUI::class,
'ref_id', $node[
'child']);
125 $this->
ctrl->setParameterByClass(ilObjPluginDispatchGUI::class,
'ref_id', $node[
'child']);
128 $this->
ctrl->setParameterByClass(ilObjOrgUnitGUI::class,
'ref_id', $temp);
134 if ($this->
ctrl->getCmdClass() === strtolower(ilObjOrgUnitGUI::class) && in_array(
135 $this->
ctrl->getCmd(),
139 return $this->
ctrl->getLinkTargetByClass(
140 array(ilAdministrationGUI::class, $this->
ctrl->getCmdClass()),
141 $this->
ctrl->getCmd()
145 return $this->
ctrl->getLinkTargetByClass(array(ilAdministrationGUI::class, ilObjOrgUnitGUI::class),
'view');
153 return $this->
ctrl->getLinkTargetByClass(ilObjPluginDispatchGUI::class,
'forward');
166 if ($this->
access->checkAccess(
'read',
'', $node[
'ref_id'])) {
181 if ($this->http_post->has(
"id")) {
185 $r->kindlyTo()->listOf(
$r->kindlyTo()->int()),
187 } elseif ($this->http_query->has(
"item_ref_id")) {
191 $r->kindlyTo()->listOf(
$r->kindlyTo()->int()),
201 if ($node[
"child"] == $sn) {
205 if ($this->tree->isGrandChild($sn, $node[
"child"])) {
218 if (is_object($a_node)) {
219 return (array) $a_node;
227 $children = parent::getChildsOfNode($a_parent_node_id);
236 return $this->
access->checkAccess(
"visible",
"", $child[
"ref_id"]);
ILIAS HTTP Wrapper RequestWrapper $http_query
static getIconsCache()
Returns an array that maps from OrgUnit object IDs to its icon defined by the assigned OrgUnit type...
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
static secureString(string $a_str, bool $a_strip_html=true, string $a_allow="")
setTypeWhiteList(array $a_val)
Set type white list.
getNodeContent($a_node)
Get content of a node.
getNodeIcon($a_node)
Get node icon.
ILIAS Refinery Factory $refinery
static _lookupObjId(int $ref_id)
__construct($a_expl_id, $a_parent_obj, $a_parent_cmd, $a_tree, \ilAccessHandler $access=null)
getNodeArrayRepresentation($a_node)
isNodeSelectable($a_node)
ILIAS HTTP Wrapper RequestWrapper $http_post
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)