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");
66 $this->
addMultiCommand(
"removeFromSystem", $lng->txt(
"btn_remove_system"));
77 global $rbacsystem, $objDefinition, $tree;
80 $childs = $tree->getChilds($this->ref_id);
81 foreach ($childs as $key => $val)
84 if (!$rbacsystem->checkAccess(
"visible",$val[
"ref_id"]))
90 if ($objDefinition->getDevMode($val[
"type"]))
96 if ($val[
"type"] ==
"adm")
100 if (!$this->parent_obj->isVisible($val[
"ref_id"], $val[
"type"]))
120 if (!$objDefinition->hasCheckbox($a_set[
"type"]) ||
121 $a_set[
"obj_id"] == SYSTEM_ROLE_ID ||
122 $a_set[
"obj_id"] == SYSTEM_USER_ID ||
123 $a_set[
"obj_id"] == ANONYMOUS_ROLE_ID)
125 $this->tpl->touchBlock(
"no_checkbox");
129 $this->tpl->setCurrentBlock(
"checkbox");
130 $this->tpl->setVariable(
"ID", $a_set[
"ref_id"]);
131 $this->tpl->parseCurrentBlock();
135 $class_name = $objDefinition->getClassName($a_set[
"type"]);
136 $class = strtolower(
"ilObj".$class_name.
"GUI");
137 $ilCtrl->setParameterByClass($class,
"ref_id", $a_set[
"ref_id"]);
138 $this->tpl->setVariable(
"HREF_TITLE", $ilCtrl->getLinkTargetByClass($class,
"view"));
139 $ilCtrl->setParameterByClass($class,
"ref_id",
$_GET[
"ref_id"]);
143 if (is_array(
$_SESSION[
"clipboard"][
"ref_ids"]))
145 if (in_array($a_set[
"ref_id"],
$_SESSION[
"clipboard"][
"ref_ids"]))
150 $title =
"<del>".$title.
"</del>";
154 $title =
"<font color=\"green\">+</font> ".$title;
158 $title =
"<font color=\"black\"><</font> ".$title;
163 $this->tpl->setVariable(
"VAL_TITLE",
$title);
164 $this->tpl->setVariable(
"VAL_DESC",
ilUtil::shortenText($a_set[
"desc"] ,MAXLENGTH_OBJ_DESC,
true));
165 $this->tpl->setVariable(
"VAL_LAST_CHANGE", $a_set[
"last_update"]);
166 $alt = ($objDefinition->isPlugin($a_set[
"type"]))
167 ? $lng->txt(
"icon").
" ".
ilPlugin::lookupTxt(
"rep_robj", $a_set[
"type"],
"obj_".$a_set[
"type"])
168 : $lng->txt(
"icon").
" ".$lng->txt(
"obj_".$a_set[
"type"]);