4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
5 require_once(
'./Services/Repository/classes/class.ilObjectPlugin.php');
25 $this->ref_id = $a_ref_id;
27 $this->
setId(
'recf_'. $a_ref_id);
28 parent::__construct($a_parent_obj, $a_parent_cmd);
33 $this->
addColumn($this->lng->txt(
"type"),
"",
"1");
34 $this->
addColumn($this->lng->txt(
"title"),
"title");
35 $this->
addColumn($this->lng->txt(
"last_change"),
"last_update",
"25%");
39 $this->
setRowTemplate(
"tpl.admin_sub_items_row.html",
"Services/Repository");
76 $this->
addMultiCommand(
"removeFromSystem", $lng->txt(
"btn_remove_system"));
87 global $rbacsystem, $objDefinition, $tree;
90 $childs = $tree->getChilds($this->ref_id);
91 foreach ($childs as $key => $val)
94 if (!$rbacsystem->checkAccess(
"visible",$val[
"ref_id"]))
100 if ($objDefinition->getDevMode($val[
"type"]))
106 if ($val[
"type"] ==
"adm")
110 if (!$this->parent_obj->isVisible($val[
"ref_id"], $val[
"type"]))
130 if (!$objDefinition->hasCheckbox($a_set[
"type"]) ||
131 $a_set[
"obj_id"] == SYSTEM_ROLE_ID ||
132 $a_set[
"obj_id"] == SYSTEM_USER_ID ||
133 $a_set[
"obj_id"] == ANONYMOUS_ROLE_ID)
135 $this->tpl->touchBlock(
"no_checkbox");
139 $this->tpl->setCurrentBlock(
"checkbox");
140 $this->tpl->setVariable(
"ID", $a_set[
"ref_id"]);
141 $this->tpl->parseCurrentBlock();
145 $class_name = $objDefinition->getClassName($a_set[
"type"]);
146 $class = strtolower(
"ilObj".$class_name.
"GUI");
147 $ilCtrl->setParameterByClass($class,
"ref_id", $a_set[
"ref_id"]);
148 $this->tpl->setVariable(
"HREF_TITLE", $ilCtrl->getLinkTargetByClass($class,
"view"));
149 $ilCtrl->setParameterByClass($class,
"ref_id",
$_GET[
"ref_id"]);
153 if (is_array(
$_SESSION[
"clipboard"][
"ref_ids"]))
155 if (in_array($a_set[
"ref_id"],
$_SESSION[
"clipboard"][
"ref_ids"]))
160 $title =
"<del>".$title.
"</del>";
164 $title =
"<font color=\"green\">+</font> ".$title;
168 $title =
"<font color=\"black\"><</font> ".$title;
173 $this->tpl->setVariable(
"VAL_TITLE",
$title);
176 $alt = ($objDefinition->isPlugin($a_set[
"type"]))
178 : $lng->txt(
"icon").
" ".$lng->txt(
"obj_".$a_set[
"type"]);
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static lookupTxtById($plugin_id, $lang_var)
TableGUI class for sub items listed in repository administration.
static shortenText($a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
fillRow($a_set)
Fill table row.
addMultiCommand($a_cmd, $a_text)
Add Command button.
static formatDate(ilDateTime $date)
Format a date public.
__construct($a_parent_obj, $a_parent_cmd, $a_ref_id)
Constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
setEnableHeader($a_enableheader)
Set Enable Header.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setEnableTitle($a_enabletitle)
Set Enable Title.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.