4 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
68 $this->tree = $DIC->repositoryTree();
70 $this->obj_definition = $DIC[
"objDefinition"];
71 $this->lng = $DIC->language();
72 $this->ctrl = $DIC->ctrl();
73 $this->rbacsystem = $DIC->rbac()->system();
74 $this->db = $DIC->database();
75 $this->
user = $DIC->user();
76 $this->access = $DIC->access();
77 $tree = $DIC->repositoryTree();
79 $objDefinition = $DIC[
"objDefinition"];
81 $this->cur_ref_id = (int)
$_GET[
"ref_id"];
83 $this->top_node_id = 0;
84 parent::__construct(
"adm_exp", $a_parent_obj, $a_parent_cmd,
$tree);
91 foreach ($objDefinition->getSubObjectsRecursively(
"root") as $rtype) {
92 if ($rtype[
"name"] !=
"itgr" && !$objDefinition->isSideBlock($rtype[
"name"])) {
98 if ((
int)
$_GET[
"ref_id"] > 0) {
113 $title = $a_node[
"title"];
146 $title = $a_node[
"title"];
154 return parent::getNodeIconAlt($a_node);
165 if ($a_node[
"child"] ==
$_GET[
"ref_id"] ||
183 $class_name = $objDefinition->getClassName($a_node[
"type"]);
184 $class = strtolower(
"ilObj" . $class_name .
"GUI");
185 $ilCtrl->setParameterByClass($class,
"ref_id", $a_node[
"child"]);
186 $link =
$ilCtrl->getLinkTargetByClass($class,
"view");
187 $ilCtrl->setParameterByClass($class,
"ref_id",
$_GET[
"ref_id"]);
202 $visible =
$rbacsystem->checkAccess(
'visible', $a_node[
"child"]);
203 if ($a_node[
"type"] ==
"rolf" && $a_node[
"child"] != ROLE_FOLDER_ID) {
223 if ($parent_obj_id > 0) {
226 $parent_type =
"dummy";
227 $this->type_grps[
"dummy"] =
array(
"root" =>
"dummy");
230 if (empty($this->type_grps[$parent_type])) {
231 $this->type_grps[$parent_type] =
232 $objDefinition->getGroupedRepositoryObjectTypes($parent_type);
236 foreach ($a_childs as $child) {
237 $g = $objDefinition->getGroupOfObj($child[
"type"]);
241 $group[$g][] = $child;
245 foreach ($this->type_grps[$parent_type] as
$t => $g) {
246 if (is_array($group[
$t])) {
248 include_once(
"./Services/Container/classes/class.ilContainer.php");
249 include_once(
"./Services/Container/classes/class.ilContainerSorting.php");
251 $group = $sort->sortItems($group);
257 foreach ($group[$t] as $k => $item) {
276 if (!
$rbacsystem->checkAccess(
"read", $a_parent_node_id)) {
280 return parent::getChildsOfNode($a_parent_node_id);
297 return $rbacsystem->checkAccess(
'read', $a_node[
"child"]);
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
setSkipRootNode($a_val)
Set skip root node.
getNodeIconAlt($a_node)
Get node icon alt text.
getNodeHref($a_node)
Get href for node.
setPathOpen($a_id)
Set node path to be opened.
isNodeVisible($a_node)
Is node visible.
getNodeContent($a_node)
Get node content.
setTypeWhiteList($a_val)
Set type white list.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
static _lookupObjId($a_id)
isNodeHighlighted($a_node)
Is node highlighted?
Administration explorer GUI class.
getNodeId($a_node)
Get id for node.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
isNodeClickable($a_node)
Is node clickable?
getNodeIcon($a_node)
Get node icon.
getRootNode()
Get root node.
Explorer class that works on tree objects (Services/Tree)
sortChilds($a_childs, $a_parent_node_id)
Sort childs.
setOrderField($a_val, $a_numeric=false)
Set order field.
static _getInstance($a_obj_id)
get instance by obj_id
getChildsOfNode($a_parent_node_id)
Get childs of node.