ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (ilObjDataCollectionGUI $a_parent_obj, int $table_id, int $tableview_id) | |
getRefId () | |
getObjId () | |
executeCommand () | |
execute command More... | |
showImportExcel (?ilPropertyFormGUI $form=null) | |
initImportForm () | |
Init form. More... | |
importExcel () | |
Import Data from Excel sheet. More... | |
endImport (int $i, array $warnings) | |
End import. More... | |
doTableSwitch () | |
doTableSwitch More... | |
doTableViewSwitch () | |
doTableViewSwitch 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) | |
getAvailableTables () | |
getRecordListTableGUI (bool $use_tableview_filter) | |
createSwitchers () | |
checkAccess () | |
Protected Attributes | |
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 | $ilToolbar |
ilLanguage | $lng |
ilTabsGUI | $tabs |
ILIAS HTTP Services | $http |
ILIAS Refinery Factory | $refinery |
bool | $filter_changed = false |
Static Protected Attributes | |
static array | $available_modes = [self::MODE_VIEW, self::MODE_MANAGE] |
Private Member Functions | |
init (ilDataCollectionOutboundsAdapter $adapter) | |
importRecords (string $file, bool $simulate=false) | |
Import records from Excel file. More... | |
recordBelongsToCollection (ilDclBaseRecordModel $record) | |
Private Attributes | |
ilDataCollectionUiPort | $dclUi |
ilDataCollectionAccessPort | $dclAccess |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 19 of file class.ilDclRecordListGUI.php.
ilDclRecordListGUI::__construct | ( | ilObjDataCollectionGUI | $a_parent_obj, |
int | $table_id, | ||
int | $tableview_id | ||
) |
ilCtrlException |
Definition at line 63 of file class.ilDclRecordListGUI.php.
References $DIC, $mode, $table_id, $tableview_id, ILIAS\Repository\ctrl(), ilObjectGUI\getObject(), ilDclCache\getTableCache(), ILIAS\FileDelivery\http(), init(), ILIAS\Repository\lng(), ilDataCollectionOutboundsAdapter\new(), ILIAS\Repository\refinery(), and ILIAS\Repository\tabs().
|
protected |
ilCtrlException |
Definition at line 322 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 603 of file class.ilDclRecordListGUI.php.
References $table_id, and $tableview_id.
Referenced by executeCommand().
|
protected |
Definition at line 561 of file class.ilDclRecordListGUI.php.
References $ilToolbar, ilToolbarGUI\addButtonInstance(), ilToolbarGUI\addInputItem(), ilToolbarGUI\addSeparator(), ilToolbarGUI\addText(), ILIAS\Repository\ctrl(), getAvailableTables(), ilSubmitButton\getInstance(), ILIAS\Repository\lng(), and ilToolbarGUI\setFormAction().
Referenced by executeCommand().
ilDclRecordListGUI::doTableSwitch | ( | ) |
doTableSwitch
ilCtrlException |
Definition at line 298 of file class.ilDclRecordListGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
ilDclRecordListGUI::doTableViewSwitch | ( | ) |
doTableViewSwitch
ilCtrlException |
Definition at line 312 of file class.ilDclRecordListGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
ilDclRecordListGUI::endImport | ( | int | $i, |
array | $warnings | ||
) |
End import.
ilTemplateException |
Definition at line 275 of file class.ilDclRecordListGUI.php.
References $i, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by importRecords().
ilDclRecordListGUI::executeCommand | ( | ) |
execute command
ilCtrlException |
Definition at line 111 of file class.ilDclRecordListGUI.php.
References $DIC, $ilSetting, $table_id, $tableview_id, ilToolbarGUI\addButtonInstance(), ilToolbarGUI\addStickyItem(), checkAccess(), createSwitchers(), ILIAS\Repository\ctrl(), ilLinkButton\getInstance(), getRecordListTableGUI(), ilObjDataCollectionAccess\hasAccessToFields(), ilObjDataCollectionAccess\hasPermissionToAddRecord(), ILIAS\Repository\lng(), setSubTabs(), and ILIAS\Repository\tabs().
|
protected |
Definition at line 502 of file class.ilDclRecordListGUI.php.
References ilObjDataCollectionAccess\hasWriteAccess().
Referenced by createSwitchers().
ilDclRecordListGUI::getObjId | ( | ) |
Definition at line 102 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 517 of file class.ilDclRecordListGUI.php.
References $data, $table_obj, ilDclTable\getPartialRecords(), and getRefId().
Referenced by executeCommand().
ilDclRecordListGUI::getRefId | ( | ) |
Definition at line 97 of file class.ilDclRecordListGUI.php.
Referenced by getRecordListTableGUI().
ilDclRecordListGUI::getTableId | ( | ) |
ilDclRecordListGUI::getTableviewId | ( | ) |
ilDclRecordListGUI::importExcel | ( | ) |
Import Data from Excel sheet.
Definition at line 241 of file class.ilDclRecordListGUI.php.
References $table_id, ilObjDataCollectionAccess\hasPermissionToAddRecord(), importRecords(), initImportForm(), ILIAS\Repository\lng(), and showImportExcel().
|
private |
Import records from Excel file.
Definition at line 263 of file class.ilDclRecordListGUI.php.
References $table_id, endImport(), and ilDclContentImporter\import().
Referenced by importExcel().
|
private |
Definition at line 53 of file class.ilDclRecordListGUI.php.
References ilDataCollectionOutboundsAdapter\getDataCollectionAccess(), and ilDataCollectionOutboundsAdapter\getDataCollectionUi().
Referenced by __construct().
ilDclRecordListGUI::initImportForm | ( | ) |
Init form.
Definition at line 216 of file class.ilDclRecordListGUI.php.
References ILIAS\Repository\lng(), ilFormPropertyGUI\setInfo(), and ilFormPropertyGUI\setRequired().
Referenced by importExcel(), and showImportExcel().
|
private |
Definition at line 468 of file class.ilDclRecordListGUI.php.
References ilDclBaseRecordModel\getTable().
Referenced by sendFile().
|
protected |
ilCtrlException |
Definition at line 335 of file class.ilDclRecordListGUI.php.
ilDclRecordListGUI::sendFile | ( | ) |
send File to User
Definition at line 348 of file class.ilDclRecordListGUI.php.
References $filename, ILIAS\LTI\ToolProvider\$key, $ref_id, ILIAS\Repository\ctrl(), ilFileDelivery\deliverFileAttached(), ilObjFile\getFile(), ilDclCache\getRecordCache(), ilDclCache\getRecordFieldCache(), ilDclCache\getRecordRepresentation(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ilDclPropertyFormGUI\rebuildTempFileByHash(), recordBelongsToCollection(), ILIAS\Repository\refinery(), and ILIAS\Repository\tabs().
|
protected |
Definition at line 477 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().
ilDclRecordListGUI::showImportExcel | ( | ?ilPropertyFormGUI | $form = null | ) |
Definition at line 205 of file class.ilDclRecordListGUI.php.
References initImportForm().
Referenced by importExcel().
|
staticprotected |
Definition at line 41 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 45 of file class.ilDclRecordListGUI.php.
|
private |
Definition at line 43 of file class.ilDclRecordListGUI.php.
|
private |
Definition at line 42 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 51 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 49 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 46 of file class.ilDclRecordListGUI.php.
Referenced by createSwitchers().
|
protected |
Definition at line 47 of file class.ilDclRecordListGUI.php.
|
protected |
Stores current mode active.
Definition at line 35 of file class.ilDclRecordListGUI.php.
Referenced by __construct().
|
protected |
Definition at line 38 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 39 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 50 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 37 of file class.ilDclRecordListGUI.php.
Referenced by __construct(), checkAccess(), executeCommand(), getTableId(), importExcel(), and importRecords().
|
protected |
Definition at line 36 of file class.ilDclRecordListGUI.php.
Referenced by getRecordListTableGUI().
|
protected |
Definition at line 40 of file class.ilDclRecordListGUI.php.
Referenced by __construct(), checkAccess(), executeCommand(), and getTableviewId().
|
protected |
Definition at line 48 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_CANCEL_DELETE = 'cancelDelete' |
Definition at line 29 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_CONFIRM_DELETE_RECORDS = 'confirmDeleteRecords' |
Definition at line 28 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_DELETE_RECORDS = 'deleteRecords' |
Definition at line 30 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_LIST_RECORDS = 'listRecords' |
Definition at line 26 of file class.ilDclRecordListGUI.php.
Referenced by ilObjDataCollectionGUI\executeCommand(), and ilDclTableViewEditGUI\permissionDenied().
const ilDclRecordListGUI::CMD_SHOW = 'show' |
Definition at line 27 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_SHOW_IMPORT_EXCEL = 'showImportExcel' |
Definition at line 31 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::GET_MODE = "mode" |
Definition at line 23 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::GET_TABLE_ID = 'table_id' |
Definition at line 21 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::GET_TABLEVIEW_ID = 'tableview_id' |
Definition at line 22 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::MODE_MANAGE = "manage" |
Definition at line 25 of file class.ilDclRecordListGUI.php.
Referenced by ilDclRecordListTableGUI\buildData().
const ilDclRecordListGUI::MODE_VIEW = "view" |
Definition at line 24 of file class.ilDclRecordListGUI.php.