4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
24 $this->ref_id = $a_ref_id;
31 $this->
addColumn($this->lng->txt(
"type"),
"",
"1");
32 $this->
addColumn($this->lng->txt(
"title"),
"title");
33 $this->
addColumn($this->lng->txt(
"last_change"),
"last_update",
"25%");
37 $this->
setRowTemplate(
"tpl.admin_sub_items_row.html",
"Services/Repository");
74 $this->
addMultiCommand(
"removeFromSystem", $lng->txt(
"btn_remove_system"));
85 global $rbacsystem, $objDefinition, $tree;
88 $childs = $tree->getChilds($this->ref_id);
89 foreach ($childs as $key => $val)
92 if (!$rbacsystem->checkAccess(
"visible",$val[
"ref_id"]))
98 if ($objDefinition->getDevMode($val[
"type"]))
104 if ($val[
"type"] ==
"adm")
108 if (!$this->parent_obj->isVisible($val[
"ref_id"], $val[
"type"]))
128 if (!$objDefinition->hasCheckbox($a_set[
"type"]) ||
129 $a_set[
"obj_id"] == SYSTEM_ROLE_ID ||
130 $a_set[
"obj_id"] == SYSTEM_USER_ID ||
131 $a_set[
"obj_id"] == ANONYMOUS_ROLE_ID)
133 $this->tpl->touchBlock(
"no_checkbox");
137 $this->tpl->setCurrentBlock(
"checkbox");
138 $this->tpl->setVariable(
"ID", $a_set[
"ref_id"]);
139 $this->tpl->parseCurrentBlock();
143 $class_name = $objDefinition->getClassName($a_set[
"type"]);
144 $class = strtolower(
"ilObj".$class_name.
"GUI");
145 $ilCtrl->setParameterByClass($class,
"ref_id", $a_set[
"ref_id"]);
146 $this->tpl->setVariable(
"HREF_TITLE", $ilCtrl->getLinkTargetByClass($class,
"view"));
147 $ilCtrl->setParameterByClass($class,
"ref_id",
$_GET[
"ref_id"]);
151 if (is_array(
$_SESSION[
"clipboard"][
"ref_ids"]))
153 if (in_array($a_set[
"ref_id"],
$_SESSION[
"clipboard"][
"ref_ids"]))
158 $title =
"<del>".$title.
"</del>";
162 $title =
"<font color=\"green\">+</font> ".$title;
166 $title =
"<font color=\"black\"><</font> ".$title;
171 $this->tpl->setVariable(
"VAL_TITLE",
$title);
174 $alt = ($objDefinition->isPlugin($a_set[
"type"]))
175 ? $lng->txt(
"icon").
" ".
ilPlugin::lookupTxt(
"rep_robj", $a_set[
"type"],
"obj_".$a_set[
"type"])
176 : $lng->txt(
"icon").
" ".$lng->txt(
"obj_".$a_set[
"type"]);