39         $this->
access = $DIC->access();
    40         $this->obj_definition = $DIC[
"objDefinition"];
    43         $this->
setId(self::TABLE_BASE_ID);
    46         $this->
lng->loadLanguageModule(
'rep');
    52     public function init(): void
    55             $this->
lng->txt(
'rep_trash_table_title') . 
' "' .
    62         $this->
addColumn($this->
lng->txt(
'rep_trash_table_col_deleted_by'), 
'deleted_by');
    63         $this->
addColumn($this->
lng->txt(
'rep_trash_table_col_deleted_on'), 
'deleted');
    64         $this->
addColumn($this->
lng->txt(
'rep_trash_table_col_num_subs'), 
'');
    79             'tpl.trash_list_row.html',
    80             'Services/Repository/Trash'    85         $this->
addMultiCommand(
'restoreToNewLocation', $this->
lng->txt(
'btn_undelete_new_location'));
    86         $this->
addMultiCommand(
'confirmRemoveFromSystem', $this->
lng->txt(
'btn_remove_system'));
    98             $this->
lng->txt(
'type')
   101         if ($type->getValue() != 
'') {
   102             $this->current_filter[
'type'] = $type->getValue();
   109             $this->
lng->txt(
'title')
   111         if (
$title->getValue() != 
'') {
   112             $this->current_filter[
'title'] = 
$title->getValue();
   118             $this->
lng->txt(
'rep_trash_table_col_deleted_by')
   120         $this->current_filter[
'deleted_by'] = $deleted_by->getValue();
   126             $this->
lng->txt(
'rep_trash_table_col_deleted_on')
   128         $this->current_filter[
'deleted'] = $deleted->getValue();
   135         $max_trash_entries = 0;
   138         $items = $trash_tree_reader->getTrashNodeForContainer(
   140             $this->current_filter,
   151         foreach ($items as $item) {
   152             $row[
'id'] = $item->getRefId();
   153             $row[
'obj_id'] = $item->getObjId();
   154             $row[
'type'] = $item->getType();
   157             $row[
'deleted_by_id'] = $item->getDeletedBy();
   158             $row[
'deleted_by'] = $this->
lng->txt(
'rep_trash_deleted_by_unknown');
   160                 $row[
'deleted_by'] = $login;
   162             $row[
'deleted'] = $item->getDeleted();
   163             $row[
'num_subs'] = $trash_tree_reader->getNumberOfTrashedNodesForTrashedContainer($item->getRefId());
   172     protected function fillRow(array $a_set): void
   174         $this->tpl->setVariable(
'ID', $a_set[
'id']);
   175         $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
   176         if (trim($a_set[
'description']) !== 
'') {
   177             $this->tpl->setCurrentBlock(
'with_desc');
   178             $this->tpl->setVariable(
'VAL_DESC', $a_set[
'description']);
   179             $this->tpl->parseCurrentBlock();
   182         $this->tpl->setCurrentBlock(
'with_path');
   184         $path->enableTextOnly(
false);
   185         $this->tpl->setVariable(
'PATH', 
$path->getPath($this->ref_id, $a_set[
'id']));
   186         $this->tpl->parseCurrentBlock();
   189             (
int) $a_set[
'obj_id'],
   194             $alt = ($this->obj_definition->isPlugin($a_set[
'type']))
   196                 : $this->
lng->txt(
'icon') . 
' ' . $this->
lng->txt(
'obj_' . $a_set[
'type'])
   198             $this->tpl->setVariable(
'IMG_PATH', $img);
   199             $this->tpl->setVariable(
'IMG_ALT', $alt);
   202         $this->tpl->setVariable(
'VAL_DELETED_BY', $a_set[
'deleted_by']);
   206         $this->tpl->setVariable(
'VAL_SUBS', (
string) (
int) $a_set[
'num_subs']);
   212         $subs = $trash->getTrashedNodeTypesForContainer($this->ref_id);
   216         foreach ($subs as $type) {
   217             if ($type === 
'rolf') {
   220             if ($type === 
'root') {
   224             if (!$this->obj_definition->isRBACObject($type)) {
   227             if ($this->obj_definition->isPlugin($type)) {
   228                 $this->
lng->loadLanguageModule(
'rep_robj_' . $type);
   229                 $options[$type] = $this->
lng->txt(
'rep_robj_' . $type . 
'_objs_' . $type);
   231                 $options[$type] = $this->
lng->txt(
'objs_' . $type);
   234         asort($options, SORT_LOCALE_STRING);
   235         array_unshift($options, $this->
lng->txt(
'select_one'));
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Creates a path for a start and endnode. 
 
enable(string $a_module_name)
 
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item. 
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
__construct(object $a_parent_obj, string $a_parent_cmd, int $ref_id)
 
setEnableTitle(bool $a_enabletitle)
 
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
 
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
 
static _lookupObjId(int $ref_id)
 
parses the objects.xml it handles the xml-description of all ilias objects 
 
setExternalSorting(bool $a_val)
 
addFilterItemByMetaType(string $id, int $type=self::FILTER_TEXT, bool $a_optional=false, string $caption="")
Add filter by standard type. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupTitle(int $obj_id)
 
setDefaultOrderField(string $a_defaultorderfield)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
static lookupTxtById(string $plugin_id, string $lang_var)
 
setEnableNumInfo(bool $a_val)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
setDefaultFilterVisiblity(bool $a_status)
 
addMultiCommand(string $a_cmd, string $a_text)
 
determineOffsetAndOrder(bool $a_omit_offset=false)
 
setEnableHeader(bool $a_enableheader)
 
setMaxCount(int $a_max_count)
set max. 
 
ilObjectDefinition $obj_definition
 
setExternalSegmentation(bool $a_val)
 
static _lookupLogin(int $a_user_id)