4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
5 require_once(
'./Services/Repository/classes/class.ilObjectPlugin.php');
60 $this->ctrl = $DIC->ctrl();
61 $this->lng = $DIC->language();
62 $this->access = $DIC->access();
63 $this->rbacsystem = $DIC->rbac()->system();
64 $this->obj_definition = $DIC[
"objDefinition"];
65 $this->tree = $DIC->repositoryTree();
67 $lng = $DIC->language();
68 $ilAccess = $DIC->access();
69 $lng = $DIC->language();
71 $this->ref_id = $a_ref_id;
73 $this->
setId(
'recf_' . $a_ref_id);
74 parent::__construct($a_parent_obj, $a_parent_cmd);
79 $this->
addColumn($this->lng->txt(
"type"),
"",
"1");
80 $this->
addColumn($this->lng->txt(
"title"),
"title");
81 $this->
addColumn($this->lng->txt(
"last_change"),
"last_update",
"25%");
85 $this->
setRowTemplate(
"tpl.admin_sub_items_row.html",
"Services/Repository");
145 $childs =
$tree->getChilds($this->ref_id);
146 foreach ($childs as
$key => $val) {
148 if (!
$rbacsystem->checkAccess(
"visible", $val[
"ref_id"])) {
153 if ($objDefinition->getDevMode($val[
"type"])) {
158 if ($val[
"type"] ==
"adm") {
161 if (!$this->parent_obj->isVisible($val[
"ref_id"], $val[
"type"])) {
182 if (!$objDefinition->hasCheckbox($a_set[
"type"]) ||
183 $a_set[
"obj_id"] == SYSTEM_ROLE_ID ||
184 $a_set[
"obj_id"] == SYSTEM_USER_ID ||
185 $a_set[
"obj_id"] == ANONYMOUS_ROLE_ID) {
186 $this->tpl->touchBlock(
"no_checkbox");
188 $this->tpl->setCurrentBlock(
"checkbox");
189 $this->tpl->setVariable(
"ID", $a_set[
"ref_id"]);
190 $this->tpl->parseCurrentBlock();
194 $class_name = $objDefinition->getClassName($a_set[
"type"]);
195 $class = strtolower(
"ilObj" . $class_name .
"GUI");
196 $ilCtrl->setParameterByClass($class,
"ref_id", $a_set[
"ref_id"]);
197 $this->tpl->setVariable(
"HREF_TITLE",
$ilCtrl->getLinkTargetByClass($class,
"view"));
198 $ilCtrl->setParameterByClass($class,
"ref_id",
$_GET[
"ref_id"]);
202 if (is_array(
$_SESSION[
"clipboard"][
"ref_ids"])) {
203 if (in_array($a_set[
"ref_id"],
$_SESSION[
"clipboard"][
"ref_ids"])) {
219 $this->tpl->setVariable(
"VAL_TITLE",
$title);
222 $alt = ($objDefinition->isPlugin($a_set[
"type"]))
224 :
$lng->txt(
"icon") .
" " .
$lng->txt(
"obj_" . $a_set[
"type"]);
225 $this->tpl->setVariable(
"IMG_TYPE",
ilUtil::img(ilObject::_getIcon($a_set[
"obj_id"],
"small"), $alt));
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
static lookupTxtById($plugin_id, $lang_var)
TableGUI class for sub items listed in repository administration.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
fillRow($a_set)
Fill table row.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
isEditable()
Check if table is editable (write permission granted)
addMultiCommand($a_cmd, $a_text)
Add Command button.
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static _lookupType($a_id, $a_reference=false)
lookup object type
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
setEnableHeader($a_enableheader)
Set Enable Header.
__construct( $a_parent_obj, $a_parent_cmd, $a_ref_id, $editable=false)
Constructor.
setEnableTitle($a_enabletitle)
Set Enable Title.