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 parent::__construct($a_parent_obj, $a_parent_cmd);
30 $this->
addColumn($this->lng->txt(
""),
"",
"1", 1);
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");
40 $this->
setRowTemplate(
"tpl.trash_list_row.html",
"Services/Repository");
46 $this->
addMultiCommand(
"confirmRemoveFromSystem", $lng->txt(
"btn_remove_system"));
54 global
$lng, $objDefinition;
59 $alt = ($objDefinition->isPlugin($a_set[
"type"]))
61 : $lng->txt(
"icon").
" ".$lng->txt(
"obj_".$a_set[
"type"]);
65 $this->tpl->setVariable(
"ID", $a_set[
"ref_id"]);
66 $this->tpl->setVariable(
"VAL_TITLE", $a_set[
"title"]);
67 $this->tpl->setVariable(
"VAL_LAST_CHANGE", $a_set[
"last_update"]);
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)
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
fillRow($a_set)
Fill table row.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.