ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ilDclRecordListGUI Class Reference
+ Collaboration diagram for ilDclRecordListGUI:

Public Member Functions

 __construct (ilObjDataCollectionGUI $a_parent_obj, int $table_id, int $tableview_id)
 
 getRefId ()
 
 getObjId ()
 
 executeCommand ()
 execute command More...
 
 listRecords ()
 
 showImportExcel (?ilPropertyFormGUI $form=null)
 
 initImportForm ()
 Init form. More...
 
 importExcel ()
 Import Data from Excel sheet. More...
 
 endImport (int $i, array $warnings)
 End import. More...
 
 sendFile ()
 send File to User More...
 
 getTableId ()
 
 getTableviewId ()
 

Data Fields

const GET_TABLE_ID = 'table_id'
 
const GET_TABLEVIEW_ID = 'tableview_id'
 
const GET_MODE = "mode"
 
const MODE_VIEW = "view"
 
const MODE_MANAGE = "manage"
 
const CMD_LIST_RECORDS = 'listRecords'
 
const CMD_SHOW = 'show'
 
const CMD_CONFIRM_DELETE_RECORDS = 'confirmDeleteRecords'
 
const CMD_CANCEL_DELETE = 'cancelDelete'
 
const CMD_DELETE_RECORDS = 'deleteRecords'
 
const CMD_SHOW_IMPORT_EXCEL = 'showImportExcel'
 

Protected Member Functions

 applyFilter ()
 
 resetFilter ()
 
 setSubTabs (string $active_mode=self::GET_MODE)
 
 getRecordListTableGUI ()
 
 createSwitchers ()
 

Protected Attributes

ILIAS UI Factory $ui_factory
 
ILIAS UI Renderer $renderer
 
string $mode = self::MODE_VIEW
 Stores current mode active. More...
 
ilDclTable $table_obj
 
int $table_id
 
int $obj_id
 
ilObjDataCollectionGUI $parent_obj
 
int $tableview_id
 
ilCtrl $ctrl
 
ilToolbarGUI $toolbar
 
ilLanguage $lng
 
ilTabsGUI $tabs
 
ILIAS HTTP Services $http
 
ILIAS Refinery Factory $refinery
 
ILIAS ResourceStorage Services $irss
 
bool $filter_changed = false
 

Static Protected Attributes

static array $available_modes = [self::MODE_VIEW, self::MODE_MANAGE]
 

Private Member Functions

 importRecords (string $file, bool $simulate=false)
 Import records from Excel file. More...
 
 recordBelongsToCollection (ilDclBaseRecordModel $record)
 

Private Attributes

ilAccessHandler $access
 
ilGlobalTemplateInterface $tpl
 

Detailed Description

Definition at line 21 of file class.ilDclRecordListGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilDclRecordListGUI::__construct ( ilObjDataCollectionGUI  $a_parent_obj,
int  $table_id,
int  $tableview_id 
)
Exceptions
ilCtrlException

Definition at line 63 of file class.ilDclRecordListGUI.php.

64 {
65 global $DIC;
66
67 $this->ctrl = $DIC->ctrl();
68 $this->toolbar = $DIC->toolbar();
69 $this->lng = $DIC->language();
70 $this->tabs = $DIC->tabs();
71 $this->http = $DIC->http();
72 $this->refinery = $DIC->refinery();
73 $this->irss = $DIC->resourceStorage();
74 $this->access = $DIC->access();
75 $this->tpl = $DIC->ui()->mainTemplate();
76 $this->ui_factory = $DIC->ui()->factory();
77 $this->renderer = $DIC->ui()->renderer();
78
79 $this->table_id = $table_id;
80 $this->tableview_id = $tableview_id;
81
82 $this->obj_id = $a_parent_obj->getObject()->getId();
83 $this->parent_obj = $a_parent_obj;
84 $this->table_obj = ilDclCache::getTableCache($table_id);
85
86 $this->ctrl->setParameterByClass(ilDclRecordEditGUI::class, self::GET_TABLE_ID, $this->table_id);
87 $this->ctrl->setParameterByClass(ilDclRecordEditGUI::class, self::GET_TABLEVIEW_ID, $this->tableview_id);
88 $this->ctrl->setParameterByClass(ilDclDetailedViewGUI::class, self::GET_TABLE_ID, $this->table_id);
89 $this->ctrl->setParameterByClass(ilDclDetailedViewGUI::class, self::GET_TABLEVIEW_ID, $this->tableview_id);
90
91 $this->mode = self::MODE_VIEW;
92
93 if ($this->http->wrapper()->query()->has(self::GET_MODE)) {
94 $mode = $this->http->wrapper()->query()->retrieve(self::GET_MODE, $this->refinery->kindlyTo()->string());
95 if (in_array($mode, self::$available_modes, true)) {
96 $this->mode = $mode;
97 }
98 }
99 }
renderer()
static getTableCache(?int $table_id=null)
string $mode
Stores current mode active.
static http()
Fetches the global http state from ILIAS.
global $DIC
Definition: shib_login.php:26

References $DIC, $mode, $table_id, $tableview_id, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilObjectGUI\getObject(), ilDclCache\getTableCache(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), MODE_VIEW, ILIAS\Repository\refinery(), renderer(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().

+ Here is the call graph for this function:

Member Function Documentation

◆ applyFilter()

ilDclRecordListGUI::applyFilter ( )
protected
Exceptions
ilCtrlException

Definition at line 299 of file class.ilDclRecordListGUI.php.

299 : void
300 {
301 $table = new ilDclRecordListTableGUI($this, "listRecords", $this->table_obj, $this->tableview_id);
302 $table->initFilter();
303 $table->resetOffset();
304 $table->writeFilterToSession();
305 $this->filter_changed = true;
306 $this->listRecords();
307 }

References listRecords().

+ Here is the call graph for this function:

◆ createSwitchers()

ilDclRecordListGUI::createSwitchers ( )
protected

Definition at line 538 of file class.ilDclRecordListGUI.php.

538 : void
539 {
540 if (ilObjDataCollectionAccess::hasWriteAccess($this->parent_obj->getRefId())) {
541 $tables = $this->parent_obj->object->getTables();
542 } else {
543 $tables = $this->parent_obj->object->getVisibleTables();
544 }
545
546 $switcher = new ilDclSwitcher($this->toolbar, $this->ui_factory, $this->ctrl, $this->lng);
547 $switcher->addTableSwitcherToToolbar(
548 $tables,
549 self::class,
550 self::CMD_SHOW,
551 $this->getTableId()
552 );
553
554 $switcher->addViewSwitcherToToolbar(
555 $this->table_obj->getVisibleTableViews(),
556 $this->getTableId(),
557 self::class,
558 self::CMD_SHOW,
559 $this->getTableviewId()
560 );
561 }
static hasWriteAccess(int $ref, ?int $user_id=0)

References ILIAS\Repository\ctrl(), getTableId(), ilObjDataCollectionAccess\hasWriteAccess(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().

Referenced by listRecords().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ endImport()

ilDclRecordListGUI::endImport ( int  $i,
array  $warnings 
)

End import.

Exceptions
ilTemplateException

Definition at line 281 of file class.ilDclRecordListGUI.php.

281 : void
282 {
283 $output = new ilTemplate("tpl.dcl_import_terminated.html", true, true, "components/ILIAS/DataCollection");
284 $output->setVariable("IMPORT_TERMINATED", $this->lng->txt("dcl_import_terminated") . ": " . $i);
285 foreach ($warnings as $warning) {
286 $output->setCurrentBlock("warnings");
287 $output->setVariable("WARNING", $warning);
288 $output->parseCurrentBlock();
289 }
290
291 $output->setVariable("BACK_LINK", $this->ctrl->getLinkTargetByClass(ilDclRecordListGUI::class, "listRecords"));
292 $output->setVariable("BACK", $this->lng->txt("back"));
293 $this->tpl->setContent($output->get());
294 }
special template class to simplify handling of ITX/PEAR

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

Referenced by importRecords().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilDclRecordListGUI::executeCommand ( )

execute command

Exceptions
ilCtrlException

Definition at line 115 of file class.ilDclRecordListGUI.php.

115 : void
116 {
117 if (!ilObjDataCollectionAccess::hasAccessTo($this->getRefId(), $this->table_id, $this->tableview_id)) {
118 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('permission_denied'), true);
119 return;
120 }
121
122 $this->ctrl->saveParameter($this, self::GET_MODE);
123 $cmd = $this->ctrl->getCmd(self::CMD_SHOW);
124
125 // 'show' fills all filters with the predefined values from the tableview,
126 // whereas 'listRecords' handels the filters "normally", filling them from the POST-variable
127 switch ($cmd) {
128 case self::CMD_SHOW:
131 $this->setSubTabs($this->mode);
132 $this->listRecords();
133 break;
135 $this->confirmDeleteRecords();
136 break;
138 $this->deleteRecords();
139 break;
141 $this->tabs->setBackTarget($this->lng->txt('back'), $this->ctrl->getLinkTarget($this));
142 $this->$cmd();
143 break;
144
145 default:
146 $this->$cmd();
147 break;
148 }
149 }
setSubTabs(string $active_mode=self::GET_MODE)

References CMD_CANCEL_DELETE, CMD_CONFIRM_DELETE_RECORDS, CMD_DELETE_RECORDS, CMD_LIST_RECORDS, CMD_SHOW, CMD_SHOW_IMPORT_EXCEL, ILIAS\Repository\ctrl(), getRefId(), listRecords(), ILIAS\Repository\lng(), setSubTabs(), and ILIAS\Repository\tabs().

+ Here is the call graph for this function:

◆ getObjId()

ilDclRecordListGUI::getObjId ( )

Definition at line 106 of file class.ilDclRecordListGUI.php.

106 : int
107 {
108 return $this->parent_obj->getObject()->getId();
109 }

◆ getRecordListTableGUI()

ilDclRecordListGUI::getRecordListTableGUI ( )
protected

Definition at line 500 of file class.ilDclRecordListGUI.php.

501 {
503
504 $list = new ilDclRecordListTableGUI($this, "listRecords", $table_obj, $this->tableview_id, $this->mode);
505 $list->initFilter();
506
507 $list->setExternalSegmentation(true);
508 $list->setExternalSorting(true);
509 $list->determineOffsetAndOrder();
510
511 if ($this->filter_changed) {
512 $list->resetOffset();
513 }
514
515 $limit = $list->getLimit();
516 $offset = $list->getOffset();
517
519 (string) $this->getRefId(),
520 $list->getOrderField(),
521 $list->getOrderDirection(),
522 $limit,
523 $offset,
524 $list->getFilter()
525 );
526 $records = $data['records'];
527 $total = $data['total'];
528
529 $list->setMaxCount($total);
530 $list->setRecordData($records);
531
532 $list->determineOffsetAndOrder();
533 $list->determineLimit();
534
535 return $list;
536 }
getPartialRecords(string $ref_id, string $sort, string $direction, ?int $limit, int $offset, array $filter=[])
Return only the needed subset of record objects for the table, according to sorting,...

References $data, $table_obj, ilDclTable\getPartialRecords(), and getRefId().

Referenced by listRecords().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRefId()

ilDclRecordListGUI::getRefId ( )

Definition at line 101 of file class.ilDclRecordListGUI.php.

101 : int
102 {
103 return $this->parent_obj->getRefId();
104 }

Referenced by executeCommand(), and getRecordListTableGUI().

+ Here is the caller graph for this function:

◆ getTableId()

ilDclRecordListGUI::getTableId ( )

Definition at line 563 of file class.ilDclRecordListGUI.php.

563 : int
564 {
565 return $this->table_id;
566 }

References $table_id.

Referenced by createSwitchers().

+ Here is the caller graph for this function:

◆ getTableviewId()

ilDclRecordListGUI::getTableviewId ( )

Definition at line 568 of file class.ilDclRecordListGUI.php.

568 : int
569 {
570 return $this->tableview_id;
571 }

References $tableview_id.

◆ importExcel()

ilDclRecordListGUI::importExcel ( )

Import Data from Excel sheet.

Definition at line 247 of file class.ilDclRecordListGUI.php.

247 : void
248 {
250 $this->parent_obj->getRefId(),
251 $this->table_id
252 )) || !$this->table_obj->getImportEnabled()) {
253 throw new ilDclException($this->lng->txt("access_denied"));
254 }
255 $form = $this->initImportForm();
256 if ($form->checkInput()) {
257 $file = $form->getInput("import_file");
258 $file_location = $file["tmp_name"];
259 $simulate = $form->getInput("simulate");
260 $this->importRecords($file_location, (bool) $simulate);
261 } else {
262 $this->showImportExcel($form);
263 }
264 }
showImportExcel(?ilPropertyFormGUI $form=null)
importRecords(string $file, bool $simulate=false)
Import records from Excel file.
static hasPermissionToAddRecord(int $ref_id, int $table_id)

References ilObjDataCollectionAccess\hasPermissionToAddRecord(), importRecords(), initImportForm(), ILIAS\Repository\lng(), and showImportExcel().

+ Here is the call graph for this function:

◆ importRecords()

ilDclRecordListGUI::importRecords ( string  $file,
bool  $simulate = false 
)
private

Import records from Excel file.

Definition at line 269 of file class.ilDclRecordListGUI.php.

269 : void
270 {
271 $importer = new ilDclContentImporter($this->parent_obj->object->getRefId(), $this->table_id);
272 $result = $importer->import($file, $simulate);
273
274 $this->endImport($result['line'], $result['warnings']);
275 }
endImport(int $i, array $warnings)
End import.

References endImport().

Referenced by importExcel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initImportForm()

ilDclRecordListGUI::initImportForm ( )

Init form.

Definition at line 221 of file class.ilDclRecordListGUI.php.

222 {
223 $form = new ilPropertyFormGUI();
224
225 $item = new ilCustomInputGUI();
226 $item->setHtml($this->lng->txt('dcl_file_format_description'));
227 $item->setTitle("Info");
228 $form->addItem($item);
229
230 $file = new ilFileInputGUI($this->lng->txt("import_file"), "import_file");
231 $file->setSuffixes(['xlsx']);
232 $file->setRequired(true);
233 $form->addItem($file);
234
235 $cb = new ilCheckboxInputGUI($this->lng->txt("dcl_simulate_import"), "simulate");
236 $cb->setInfo($this->lng->txt("dcl_simulate_info"));
237 $form->addItem($cb);
238
239 $form->addCommandButton("importExcel", $this->lng->txt("import"));
240
241 return $form;
242 }
This class represents a checkbox property in a property form.
This class represents a custom property in a property form.
This class represents a file property in a property form.
This class represents a property form user interface.

References ILIAS\Repository\lng().

Referenced by importExcel(), and showImportExcel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listRecords()

ilDclRecordListGUI::listRecords ( )

Definition at line 151 of file class.ilDclRecordListGUI.php.

151 : void
152 {
153 $list = $this->getRecordListTableGUI();
154
155 $this->createSwitchers();
156
157 $this->ctrl->setParameter($this, 'table_id', $this->table_id);
158 $this->ctrl->setParameter($this, 'tableview_id', $this->tableview_id);
159
160 $permission_to_add_or_import = ilObjDataCollectionAccess::hasPermissionToAddRecord(
161 $this->parent_obj->getRefId(),
162 $this->table_id
163 ) && $this->table_obj->hasCustomFields();
164 if ($permission_to_add_or_import) {
165 $this->ctrl->setParameterByClass(ilDclRecordEditGUI::class, "record_id", null);
166
167 $add_new = $this->ui_factory->button()->primary(
168 $this->lng->txt("dcl_add_new_record"),
169 $this->ctrl->getFormActionByClass(ilDclRecordEditGUI::class, "create")
170 );
171 $this->toolbar->addStickyItem($add_new);
172 }
173
174 if ($permission_to_add_or_import && $this->table_obj->getImportEnabled()) {
175 $this->ctrl->setParameterByClass(ilDclRecordEditGUI::class, "record_id", null);
176
177 $import_button = $this->ui_factory->button()->standard(
178 $this->lng->txt("dcl_import_records .xls"),
179 $this->ctrl->getFormActionByClass(ilDclRecordListGUI::class, self::CMD_SHOW_IMPORT_EXCEL)
180 );
181 $this->toolbar->addComponent($import_button);
182 }
183
184 if (count($this->table_obj->getRecordFields()) == 0) {
185 $message = $this->lng->txt("dcl_no_fields_yet") . " "
187 $this->parent_obj->getRefId(),
188 $this->table_id
189 ) ? $this->lng->txt("dcl_create_fields") : "");
190 $this->tpl->setOnScreenMessage('info', $message, true);
191 }
192
193 $target = '';
194 if ($this->http->wrapper()->query()->has('table_id')) {
195 $target .= $this->http->wrapper()->query()->retrieve('table_id', $this->refinery->to()->string());
196 }
197 if ($this->http->wrapper()->query()->has('tableview_id')) {
198 $target .= '_' . $this->http->wrapper()->query()->retrieve('tableview_id', $this->refinery->to()->string());
199 }
200
201 $this->tpl->setPermanentLink("dcl", $this->parent_obj->getRefId(), $target);
202
203 if ($desc = $this->table_obj->getDescription()) {
204 $desc = $this->refinery->string()->markdown()->toHTML()->transform($desc);
205 $desc = '<div class="ilDclTableDescription">' . $desc . '</div>';
206 }
207 $this->tpl->setContent($desc . $list->getHTML());
208 }
static hasAccessToFields(int $ref_id, int $table_id)

References createSwitchers(), ILIAS\Repository\ctrl(), getRecordListTableGUI(), ilObjDataCollectionAccess\hasAccessToFields(), ilObjDataCollectionAccess\hasPermissionToAddRecord(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\toolbar().

Referenced by applyFilter(), executeCommand(), and resetFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ recordBelongsToCollection()

ilDclRecordListGUI::recordBelongsToCollection ( ilDclBaseRecordModel  $record)
private

Definition at line 462 of file class.ilDclRecordListGUI.php.

462 : bool
463 {
464 $table = $record->getTable();
465 $obj_id = $this->parent_obj->object->getId();
466 $obj_id_rec = $table->getCollectionObject()->getId();
467
468 return $obj_id == $obj_id_rec;
469 }

References $obj_id, and ilDclBaseRecordModel\getTable().

Referenced by sendFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetFilter()

ilDclRecordListGUI::resetFilter ( )
protected
Exceptions
ilCtrlException

Definition at line 312 of file class.ilDclRecordListGUI.php.

312 : void
313 {
314 $table = new ilDclRecordListTableGUI($this, "show", $this->table_obj, $this->tableview_id);
315 $table->initFilter();
316 $table->resetOffset();
317 $table->resetFilter();
318 $this->filter_changed = true;
319 $this->listRecords();
320 }

References listRecords().

+ Here is the call graph for this function:

◆ sendFile()

ilDclRecordListGUI::sendFile ( )

send File to User

Definition at line 325 of file class.ilDclRecordListGUI.php.

325 : void
326 {
327 $hasIlFileHash = $this->http->wrapper()->query()->has('ilfilehash');
328 //need read access to receive file
329 if ($this->access->checkAccess('read', "", $this->parent_obj->getRefId())) {
330 // deliver temp-files
331 if ($hasIlFileHash) {
332 $filehash = $this->http->wrapper()->query()->retrieve(
333 'ilfilehash',
334 $this->refinery->kindlyTo()->string()
335 );
336 $field_id = $this->http->wrapper()->query()->retrieve('field_id', $this->refinery->kindlyTo()->int());
338
339 $filepath = $_FILES["field_" . $field_id]['tmp_name'];
340 $filetitle = $_FILES["field_" . $field_id]['name'];
341
342 ilFileDelivery::deliverFileLegacy($filepath, $filetitle);
343 } else {
344 $rec_id = $this->http->wrapper()
345 ->query()
346 ->retrieve('record_id', $this->refinery->kindlyTo()->int());
347
348 $record = ilDclCache::getRecordCache($rec_id);
349 if (!$this->recordBelongsToCollection($record)) {
350 return;
351 }
352
353 $field_id = $this->http->wrapper()
354 ->query()
355 ->retrieve('field_id', $this->refinery->kindlyTo()->string());
356
357
358
359 // Find the current revision
360 $rid_string = $record->getRecordFieldValue($field_id);
361 $identification = $this->irss->manage()->find($rid_string);
362 if ($identification === null) {
363 return;
364 }
365 $current_revision = $this->irss->manage()->getCurrentRevision($identification);
366
367 // Download the File
368 $this->irss->consume()
369 ->download($identification)
370 ->overrideFileName($current_revision->getTitle())
371 ->run();
372 }
373 }
374 }
static getRecordCache(?int $record_id)
static rebuildTempFileByHash(string $hash)
recordBelongsToCollection(ilDclBaseRecordModel $record)
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)

References ILIAS\Repository\access(), ilFileDelivery\deliverFileLegacy(), ilDclCache\getRecordCache(), ILIAS\FileDelivery\http(), ilDclPropertyFormGUI\rebuildTempFileByHash(), recordBelongsToCollection(), and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

◆ setSubTabs()

ilDclRecordListGUI::setSubTabs ( string  $active_mode = self::GET_MODE)
protected

Definition at line 471 of file class.ilDclRecordListGUI.php.

471 : void
472 {
473 $this->ctrl->setParameter($this, self::GET_MODE, self::MODE_VIEW);
474 if ($this->http->wrapper()->query()->has(self::GET_TABLEVIEW_ID)) {
475 $this->ctrl->setParameter(
476 $this,
477 self::GET_TABLEVIEW_ID,
478 $this->http->wrapper()->query()->retrieve(self::GET_TABLEVIEW_ID, $this->refinery->kindlyTo()->int())
479 );
480 }
481 $this->tabs->addSubTab(
482 self::MODE_VIEW,
483 $this->lng->txt('view'),
484 $this->ctrl->getLinkTarget($this, self::CMD_LIST_RECORDS)
485 );
486
487 $ref_id = $this->http->wrapper()->query()->retrieve('ref_id', $this->refinery->kindlyTo()->int());
488 if ($this->table_obj->hasPermissionToDeleteRecords($ref_id)) {
489 $this->ctrl->setParameter($this, self::GET_MODE, self::MODE_MANAGE);
490 $this->tabs->addSubTab(
491 self::MODE_MANAGE,
492 $this->lng->txt('dcl_manage'),
493 $this->ctrl->getLinkTarget($this, self::CMD_LIST_RECORDS)
494 );
495 }
496 $this->tabs->activateSubTab($active_mode);
497 $this->ctrl->clearParameters($this);
498 }
$ref_id
Definition: ltiauth.php:66

References $ref_id, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\tabs().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showImportExcel()

ilDclRecordListGUI::showImportExcel ( ?ilPropertyFormGUI  $form = null)

Definition at line 210 of file class.ilDclRecordListGUI.php.

210 : void
211 {
212 if (!$form) {
213 $form = $this->initImportForm();
214 }
215 $this->tpl->setContent($form->getHTML());
216 }

References initImportForm().

Referenced by importExcel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilDclRecordListGUI::$access
private

Definition at line 35 of file class.ilDclRecordListGUI.php.

◆ $available_modes

array ilDclRecordListGUI::$available_modes = [self::MODE_VIEW, self::MODE_MANAGE]
staticprotected

Definition at line 49 of file class.ilDclRecordListGUI.php.

◆ $ctrl

ilCtrl ilDclRecordListGUI::$ctrl
protected

Definition at line 51 of file class.ilDclRecordListGUI.php.

◆ $filter_changed

bool ilDclRecordListGUI::$filter_changed = false
protected

Definition at line 58 of file class.ilDclRecordListGUI.php.

◆ $http

ILIAS HTTP Services ilDclRecordListGUI::$http
protected

Definition at line 55 of file class.ilDclRecordListGUI.php.

◆ $irss

ILIAS ResourceStorage Services ilDclRecordListGUI::$irss
protected

Definition at line 57 of file class.ilDclRecordListGUI.php.

◆ $lng

ilLanguage ilDclRecordListGUI::$lng
protected

Definition at line 53 of file class.ilDclRecordListGUI.php.

◆ $mode

string ilDclRecordListGUI::$mode = self::MODE_VIEW
protected

Stores current mode active.

Definition at line 43 of file class.ilDclRecordListGUI.php.

Referenced by __construct().

◆ $obj_id

int ilDclRecordListGUI::$obj_id
protected

Definition at line 46 of file class.ilDclRecordListGUI.php.

Referenced by recordBelongsToCollection().

◆ $parent_obj

ilObjDataCollectionGUI ilDclRecordListGUI::$parent_obj
protected

Definition at line 47 of file class.ilDclRecordListGUI.php.

◆ $refinery

ILIAS Refinery Factory ilDclRecordListGUI::$refinery
protected

Definition at line 56 of file class.ilDclRecordListGUI.php.

◆ $renderer

ILIAS UI Renderer ilDclRecordListGUI::$renderer
protected

Definition at line 38 of file class.ilDclRecordListGUI.php.

◆ $table_id

int ilDclRecordListGUI::$table_id
protected

Definition at line 45 of file class.ilDclRecordListGUI.php.

Referenced by __construct(), and getTableId().

◆ $table_obj

ilDclTable ilDclRecordListGUI::$table_obj
protected

Definition at line 44 of file class.ilDclRecordListGUI.php.

Referenced by getRecordListTableGUI().

◆ $tableview_id

int ilDclRecordListGUI::$tableview_id
protected

Definition at line 48 of file class.ilDclRecordListGUI.php.

Referenced by __construct(), and getTableviewId().

◆ $tabs

ilTabsGUI ilDclRecordListGUI::$tabs
protected

Definition at line 54 of file class.ilDclRecordListGUI.php.

◆ $toolbar

ilToolbarGUI ilDclRecordListGUI::$toolbar
protected

Definition at line 52 of file class.ilDclRecordListGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilDclRecordListGUI::$tpl
private

Definition at line 36 of file class.ilDclRecordListGUI.php.

◆ $ui_factory

ILIAS UI Factory ilDclRecordListGUI::$ui_factory
protected

Definition at line 37 of file class.ilDclRecordListGUI.php.

◆ CMD_CANCEL_DELETE

const ilDclRecordListGUI::CMD_CANCEL_DELETE = 'cancelDelete'

Definition at line 31 of file class.ilDclRecordListGUI.php.

Referenced by executeCommand().

◆ CMD_CONFIRM_DELETE_RECORDS

const ilDclRecordListGUI::CMD_CONFIRM_DELETE_RECORDS = 'confirmDeleteRecords'

Definition at line 30 of file class.ilDclRecordListGUI.php.

Referenced by executeCommand().

◆ CMD_DELETE_RECORDS

const ilDclRecordListGUI::CMD_DELETE_RECORDS = 'deleteRecords'

Definition at line 32 of file class.ilDclRecordListGUI.php.

Referenced by executeCommand().

◆ CMD_LIST_RECORDS

const ilDclRecordListGUI::CMD_LIST_RECORDS = 'listRecords'

◆ CMD_SHOW

const ilDclRecordListGUI::CMD_SHOW = 'show'

Definition at line 29 of file class.ilDclRecordListGUI.php.

Referenced by executeCommand().

◆ CMD_SHOW_IMPORT_EXCEL

const ilDclRecordListGUI::CMD_SHOW_IMPORT_EXCEL = 'showImportExcel'

Definition at line 33 of file class.ilDclRecordListGUI.php.

Referenced by executeCommand().

◆ GET_MODE

const ilDclRecordListGUI::GET_MODE = "mode"

Definition at line 25 of file class.ilDclRecordListGUI.php.

◆ GET_TABLE_ID

const ilDclRecordListGUI::GET_TABLE_ID = 'table_id'

Definition at line 23 of file class.ilDclRecordListGUI.php.

◆ GET_TABLEVIEW_ID

const ilDclRecordListGUI::GET_TABLEVIEW_ID = 'tableview_id'

Definition at line 24 of file class.ilDclRecordListGUI.php.

◆ MODE_MANAGE

const ilDclRecordListGUI::MODE_MANAGE = "manage"

Definition at line 27 of file class.ilDclRecordListGUI.php.

◆ MODE_VIEW

const ilDclRecordListGUI::MODE_VIEW = "view"

Definition at line 26 of file class.ilDclRecordListGUI.php.

Referenced by __construct().


The documentation for this class was generated from the following file: