ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 ()
 
 checkAccess ()
 

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.

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

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_TABLEVIEW_ID, $this->tableview_id);
89 
90  $this->mode = self::MODE_VIEW;
91 
92  if ($this->http->wrapper()->query()->has(self::GET_MODE)) {
93  $mode = $this->http->wrapper()->query()->retrieve(self::GET_MODE, $this->refinery->kindlyTo()->string());
94  if (in_array($mode, self::$available_modes, true)) {
95  $this->mode = $mode;
96  }
97  }
98  }
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
static getTableCache(int $table_id=null)
string $mode
Stores current mode active.
+ 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.

References listRecords().

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  }
+ Here is the call graph for this function:

◆ checkAccess()

ilDclRecordListGUI::checkAccess ( )
protected

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

References $table_id, and $tableview_id.

Referenced by executeCommand().

556  : bool
557  {
558  if (null === $this->table_id || null === $this->tableview_id) {
559  return false;
560  }
561 
562  return ilObjDataCollectionAccess::hasAccessTo(
563  $this->parent_obj->getRefId(),
566  );
567  }
+ Here is the caller graph for this function:

◆ createSwitchers()

ilDclRecordListGUI::createSwitchers ( )
protected

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

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

Referenced by listRecords().

531  : void
532  {
533  if (ilObjDataCollectionAccess::hasWriteAccess($this->parent_obj->getRefId())) {
534  $tables = $this->parent_obj->object->getTables();
535  } else {
536  $tables = $this->parent_obj->object->getVisibleTables();
537  }
538 
539  $switcher = new ilDclSwitcher($this->toolbar, $this->ui_factory, $this->ctrl, $this->lng);
540  $switcher->addTableSwitcherToToolbar(
541  $tables,
542  self::class,
543  self::CMD_SHOW
544  );
545 
546  $switcher->addViewSwitcherToToolbar(
547  $this->table_obj->getVisibleTableViews(),
548  $this->getTableId(),
549  self::class,
550  self::CMD_SHOW
551  );
552  $this->ctrl->setParameterByClass(self::class, self::GET_TABLEVIEW_ID, $this->tableview_id);
553 
554  }
static hasWriteAccess(int $ref, ?int $user_id=0)
+ 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.

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

Referenced by importRecords().

281  : void
282  {
283  $output = new ilTemplate("tpl.dcl_import_terminated.html", true, true, "Modules/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  }
+ 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 114 of file class.ilDclRecordListGUI.php.

References checkAccess(), ILIAS\Repository\ctrl(), listRecords(), ILIAS\Repository\lng(), setSubTabs(), and ILIAS\Repository\tabs().

114  : void
115  {
116  if (!$this->checkAccess()) {
117  $this->tpl->setOnScreenMessage('failure', $this->lng->txt('permission_denied'), true);
118  return;
119  }
120 
121  $this->ctrl->saveParameter($this, self::GET_MODE);
122  $cmd = $this->ctrl->getCmd(self::CMD_SHOW);
123 
124  // 'show' fills all filters with the predefined values from the tableview,
125  // whereas 'listRecords' handels the filters "normally", filling them from the POST-variable
126  switch ($cmd) {
127  case self::CMD_SHOW:
128  case self::CMD_CANCEL_DELETE:
129  case self::CMD_LIST_RECORDS:
130  $this->setSubTabs($this->mode);
131  $this->listRecords();
132  break;
133  case self::CMD_CONFIRM_DELETE_RECORDS:
134  $this->confirmDeleteRecords();
135  break;
136  case self::CMD_DELETE_RECORDS:
137  $this->deleteRecords();
138  break;
139  case self::CMD_SHOW_IMPORT_EXCEL:
140  $this->tabs->setBackTarget($this->lng->txt('back'), $this->ctrl->getLinkTarget($this));
141  $this->$cmd();
142  break;
143 
144  default:
145  $this->$cmd();
146  break;
147  }
148  }
setSubTabs(string $active_mode=self::GET_MODE)
+ Here is the call graph for this function:

◆ getObjId()

ilDclRecordListGUI::getObjId ( )

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

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

◆ getRecordListTableGUI()

ilDclRecordListGUI::getRecordListTableGUI ( )
protected

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

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

Referenced by listRecords().

494  {
496 
497  $list = new ilDclRecordListTableGUI($this, "listRecords", $table_obj, $this->tableview_id, $this->mode);
498  $list->initFilter();
499 
500  $list->setExternalSegmentation(true);
501  $list->setExternalSorting(true);
502  $list->determineOffsetAndOrder();
503 
504  if ($this->filter_changed) {
505  $list->resetOffset();
506  }
507 
508  $limit = $list->getLimit();
509  $offset = $list->getOffset();
510 
512  (string) $this->getRefId(),
513  $list->getOrderField(),
514  $list->getOrderDirection(),
515  $limit,
516  $offset,
517  $list->getFilter()
518  );
519  $records = $data['records'];
520  $total = $data['total'];
521 
522  $list->setMaxCount($total);
523  $list->setRecordData($records);
524 
525  $list->determineOffsetAndOrder();
526  $list->determineLimit();
527 
528  return $list;
529  }
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, paging and filters.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRefId()

ilDclRecordListGUI::getRefId ( )

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

Referenced by getRecordListTableGUI().

100  : int
101  {
102  return $this->parent_obj->getRefId();
103  }
+ Here is the caller graph for this function:

◆ getTableId()

ilDclRecordListGUI::getTableId ( )

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

References $table_id.

Referenced by createSwitchers().

569  : int
570  {
571  return $this->table_id;
572  }
+ Here is the caller graph for this function:

◆ getTableviewId()

ilDclRecordListGUI::getTableviewId ( )

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

References $tableview_id.

574  : int
575  {
576  return $this->tableview_id;
577  }

◆ importExcel()

ilDclRecordListGUI::importExcel ( )

Import Data from Excel sheet.

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

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

247  : void
248  {
250  $this->parent_obj->getRefId(),
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)
static hasPermissionToAddRecord(int $ref_id, int $table_id)
importRecords(string $file, bool $simulate=false)
Import records from Excel file.
+ 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.

References $table_id, endImport(), and ilDclContentImporter\import().

Referenced by importExcel().

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.
import(string $file, bool $simulate=false)
+ 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.

References ILIAS\Repository\lng(), and ilFileInputGUI\setSuffixes().

Referenced by importExcel(), and showImportExcel().

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 file property in a property form.
setSuffixes(array $a_suffixes)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listRecords()

ilDclRecordListGUI::listRecords ( )

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

References $ilSetting, $message, $table_id, 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().

150  : void
151  {
152  $list = $this->getRecordListTableGUI();
153 
154  $this->createSwitchers();
155 
156  $permission_to_add_or_import = ilObjDataCollectionAccess::hasPermissionToAddRecord(
157  $this->parent_obj->getRefId(),
159  ) && $this->table_obj->hasCustomFields();
160  if ($permission_to_add_or_import) {
161  $this->ctrl->setParameterByClass(ilDclRecordEditGUI::class, "record_id", null);
162 
163  $add_new = $this->ui_factory->button()->primary(
164  $this->lng->txt("dcl_add_new_record"),
165  $this->ctrl->getFormActionByClass(ilDclRecordEditGUI::class, "create")
166  );
167  $this->toolbar->addStickyItem($add_new);
168  }
169 
170  if ($permission_to_add_or_import && $this->table_obj->getImportEnabled()) {
171  $this->ctrl->setParameterByClass(ilDclRecordEditGUI::class, "record_id", null);
172 
173  $import_button = $this->ui_factory->button()->standard(
174  $this->lng->txt("dcl_import_records .xls"),
175  $this->ctrl->getFormActionByClass(ilDclRecordListGUI::class, self::CMD_SHOW_IMPORT_EXCEL)
176  );
177  $this->toolbar->addComponent($import_button);
178  }
179 
180  if (count($this->table_obj->getRecordFields()) == 0) {
181  $message = $this->lng->txt("dcl_no_fields_yet") . " "
183  $this->parent_obj->getRefId(),
185  ) ? $this->lng->txt("dcl_create_fields") : "");
186  $this->tpl->setOnScreenMessage('info', $message, true);
187  }
188 
189  $target = '';
190  if ($this->http->wrapper()->query()->has('table_id')) {
191  $target .= $this->http->wrapper()->query()->retrieve('table_id', $this->refinery->to()->string());
192  }
193  if ($this->http->wrapper()->query()->has('tableview_id')) {
194  $target .= '_' . $this->http->wrapper()->query()->retrieve('tableview_id', $this->refinery->to()->string());
195  }
196 
197  $this->tpl->setPermanentLink("dcl", $this->parent_obj->getRefId(), $target);
198 
199  if ($desc = $this->table_obj->getDescription()) {
200  $ilSetting = new ilSetting('advanced_editing');
201  if ($ilSetting->get('advanced_editing_javascript_editor')) {
202  $desc = "<div class='ilDclTableDescription'>" . $desc . "</div>";
203  } else {
204  $desc = "<div class='ilDclTableDescription'>" . nl2br(htmlspecialchars($desc, ENT_QUOTES | ENT_SUBSTITUTE, 'utf-8')) . "</div>";
205  }
206  }
207  $this->tpl->setContent($desc . $list->getHTML());
208  }
static hasAccessToFields(int $ref_id, int $table_id)
static http()
Fetches the global http state from ILIAS.
global $ilSetting
Definition: privfeed.php:18
static hasPermissionToAddRecord(int $ref_id, int $table_id)
$message
Definition: xapiexit.php:32
+ 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.

References ilDclBaseRecordModel\getTable().

Referenced by sendFile().

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  }
+ 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.

References listRecords().

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  }
+ Here is the call graph for this function:

◆ sendFile()

ilDclRecordListGUI::sendFile ( )

send File to User

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

References $message, $ref_id, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilFileDelivery\deliverFileLegacy(), ilDclCache\getRecordCache(), ilDclCache\getRecordFieldCache(), ilDclCache\getRecordRepresentation(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ilDclPropertyFormGUI\rebuildTempFileByHash(), recordBelongsToCollection(), ILIAS\Repository\refinery(), and ILIAS\Repository\tabs().

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  }
recordBelongsToCollection(ilDclBaseRecordModel $record)
static rebuildTempFileByHash(string $hash)
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
static http()
Fetches the global http state from ILIAS.
static getRecordCache(?int $record_id)
+ 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.

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

Referenced by executeCommand().

471  : void
472  {
473  $this->ctrl->setParameter($this, self::GET_MODE, self::MODE_VIEW);
474  $this->tabs->addSubTab(
475  self::MODE_VIEW,
476  $this->lng->txt('view'),
477  $this->ctrl->getLinkTarget($this, self::CMD_LIST_RECORDS)
478  );
479 
480  $ref_id = $this->http->wrapper()->query()->retrieve('ref_id', $this->refinery->kindlyTo()->int());
481  if ($this->table_obj->hasPermissionToDeleteRecords($ref_id)) {
482  $this->ctrl->setParameter($this, self::GET_MODE, self::MODE_MANAGE);
483  $this->tabs->addSubTab(
484  self::MODE_MANAGE,
485  $this->lng->txt('dcl_manage'),
486  $this->ctrl->getLinkTarget($this, self::CMD_LIST_RECORDS)
487  );
488  }
489  $this->tabs->activateSubTab($active_mode);
490  $this->ctrl->clearParameters($this);
491  }
static http()
Fetches the global http state from ILIAS.
$ref_id
Definition: ltiauth.php:67
+ 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.

References initImportForm().

Referenced by importExcel().

210  : void
211  {
212  if (!$form) {
213  $form = $this->initImportForm();
214  }
215  $this->tpl->setContent($form->getHTML());
216  }
+ 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.

◆ $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

◆ $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(), checkAccess(), 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.

◆ CMD_CONFIRM_DELETE_RECORDS

const ilDclRecordListGUI::CMD_CONFIRM_DELETE_RECORDS = 'confirmDeleteRecords'

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

◆ CMD_DELETE_RECORDS

const ilDclRecordListGUI::CMD_DELETE_RECORDS = 'deleteRecords'

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

◆ 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.

◆ CMD_SHOW_IMPORT_EXCEL

const ilDclRecordListGUI::CMD_SHOW_IMPORT_EXCEL = 'showImportExcel'

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

◆ 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.

Referenced by ilDclRecordListTableGUI\buildData().

◆ MODE_VIEW

const ilDclRecordListGUI::MODE_VIEW = "view"

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


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