4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
    5require_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();
 
   66        $ilCtrl = 
$DIC->ctrl();
 
   68        $ilAccess = 
$DIC->access();
 
   71        $this->ref_id = $a_ref_id;
 
   73        $this->
setId(
'recf_' . $a_ref_id);
 
   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"]) ||
 
  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"]);
 
An exception for terminatinating execution or to throw for unit testing.
TableGUI class for sub items listed in repository administration.
isEditable()
Check if table is editable (write permission granted)
fillRow($a_set)
Fill table row.
__construct( $a_parent_obj, $a_parent_cmd, $a_ref_id, $editable=false)
Constructor.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
@classDescription Date and time handling
static lookupTxtById($plugin_id, $lang_var)
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static _lookupType($a_id, $a_reference=false)
lookup object type
setEnableHeader($a_enableheader)
Set Enable Header.
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.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
const SYSTEM_USER_ID
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc