ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct (ilObjDataCollectionGUI $a_parent_obj, $table_id) | |
executeCommand () | |
execute command More... | |
showImportExcel ($form=NULL) | |
initImportForm () | |
Init form. More... | |
importExcel () | |
Import Data from Excel sheet. More... | |
endImport ($i, $warnings) | |
End import. More... | |
doTableSwitch () | |
doTableSwitch More... | |
doTableViewSwitch () | |
doTableViewSwitch More... | |
sendFile () | |
send File to User More... | |
Data Fields | |
const | GET_TABLE_ID = 'table_id' |
const | GET_TABLEVIEW_ID = 'tableview_id' |
const | GET_MODE = 'mode' |
const | MODE_VIEW = 1 |
const | MODE_MANAGE = 2 |
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 () | |
getAvailableTables () | |
getRecordListTableGUI ($use_tableview_filter) | |
createSwitchers () | |
checkAccess () | |
Protected Attributes | |
$mode = self::MODE_VIEW | |
$table_obj | |
$ctrl | |
$lng | |
$tableview_id | |
Static Protected Attributes | |
static | $available_modes = array( self::MODE_VIEW, self::MODE_MANAGE ) |
Private Member Functions | |
importRecords ($file, $simulate=false) | |
Import records from Excel file. More... | |
recordBelongsToCollection (ilDclBaseRecordModel $record) | |
Definition at line 22 of file class.ilDclRecordListGUI.php.
ilDclRecordListGUI::__construct | ( | ilObjDataCollectionGUI | $a_parent_obj, |
$table_id | |||
) |
ilObjDataCollectionGUI | $a_parent_obj | |
$table_id |
Definition at line 73 of file class.ilDclRecordListGUI.php.
References $_GET, $DIC, $ilCtrl, $lng, $tableview_id, and ilDclCache\getTableCache().
|
protected |
Definition at line 323 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 597 of file class.ilDclRecordListGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 548 of file class.ilDclRecordListGUI.php.
References $DIC, $options, array, getAvailableTables(), and ilSubmitButton\getInstance().
Referenced by executeCommand().
ilDclRecordListGUI::doTableSwitch | ( | ) |
doTableSwitch
Definition at line 304 of file class.ilDclRecordListGUI.php.
References $_POST.
ilDclRecordListGUI::doTableViewSwitch | ( | ) |
doTableViewSwitch
Definition at line 315 of file class.ilDclRecordListGUI.php.
References $_POST.
ilDclRecordListGUI::endImport | ( | $i, | |
$warnings | |||
) |
End import.
$i | |
$warnings |
Definition at line 280 of file class.ilDclRecordListGUI.php.
References $DIC, $output, and $tpl.
Referenced by importRecords().
ilDclRecordListGUI::executeCommand | ( | ) |
execute command
Definition at line 108 of file class.ilDclRecordListGUI.php.
References $cmd, $DIC, $ilSetting, $tpl, checkAccess(), createSwitchers(), ilLinkButton\getInstance(), getRecordListTableGUI(), ilObjDataCollectionAccess\hasAccessToFields(), ilObjDataCollectionAccess\hasPermissionToAddRecord(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
|
protected |
Definition at line 495 of file class.ilDclRecordListGUI.php.
References $options, array, and ilObjDataCollectionAccess\hasWriteAccess().
Referenced by createSwitchers().
|
protected |
$use_tableview_filter |
Definition at line 514 of file class.ilDclRecordListGUI.php.
References $data, $records, $table_obj, and $total.
Referenced by executeCommand().
ilDclRecordListGUI::importExcel | ( | ) |
Import Data from Excel sheet.
Definition at line 244 of file class.ilDclRecordListGUI.php.
References $file, ilObjDataCollectionAccess\hasPermissionToAddRecord(), importRecords(), initImportForm(), and showImportExcel().
|
private |
Import records from Excel file.
$file | ||
bool | $simulate |
Definition at line 266 of file class.ilDclRecordListGUI.php.
References $file, $result, and endImport().
Referenced by importExcel().
ilDclRecordListGUI::initImportForm | ( | ) |
Init form.
Definition at line 218 of file class.ilDclRecordListGUI.php.
References $file, and ilFormPropertyGUI\setInfo().
Referenced by importExcel(), and showImportExcel().
|
private |
ilDclBaseRecordModel | $record |
Definition at line 456 of file class.ilDclRecordListGUI.php.
References $_GET, $DIC, $mode, and ilDclBaseRecordModel\getTable().
Referenced by sendFile().
|
protected |
Definition at line 334 of file class.ilDclRecordListGUI.php.
ilDclRecordListGUI::sendFile | ( | ) |
send File to User
Definition at line 346 of file class.ilDclRecordListGUI.php.
References $_GET, $_POST, $DIC, $ilUser, $tpl, array, ilUtil\deliverFile(), ilObjFile\getFile(), ilDclCache\getRecordCache(), ilDclCache\getRecordFieldCache(), ilDclCache\getRecordRepresentation(), ilDclPropertyFormGUI\rebuildTempFileByHash(), recordBelongsToCollection(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
ilDclRecordListGUI::showImportExcel | ( | $form = NULL | ) |
Definition at line 204 of file class.ilDclRecordListGUI.php.
References $DIC, $tpl, and initImportForm().
Referenced by importExcel().
|
staticprotected |
Definition at line 66 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 52 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 56 of file class.ilDclRecordListGUI.php.
Referenced by __construct().
|
protected |
Definition at line 43 of file class.ilDclRecordListGUI.php.
Referenced by recordBelongsToCollection().
|
protected |
Definition at line 48 of file class.ilDclRecordListGUI.php.
Referenced by getRecordListTableGUI().
|
protected |
Definition at line 61 of file class.ilDclRecordListGUI.php.
Referenced by __construct().
const ilDclRecordListGUI::CMD_CANCEL_DELETE = 'cancelDelete' |
Definition at line 34 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_CONFIRM_DELETE_RECORDS = 'confirmDeleteRecords' |
Definition at line 33 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_DELETE_RECORDS = 'deleteRecords' |
Definition at line 35 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_LIST_RECORDS = 'listRecords' |
Definition at line 31 of file class.ilDclRecordListGUI.php.
Referenced by ilObjDataCollectionGUI\getType(), and ilDclTableViewEditGUI\permissionDenied().
const ilDclRecordListGUI::CMD_SHOW = 'show' |
Definition at line 32 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_SHOW_IMPORT_EXCEL = 'showImportExcel' |
Definition at line 36 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::GET_MODE = 'mode' |
Definition at line 26 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::GET_TABLE_ID = 'table_id' |
Definition at line 24 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::GET_TABLEVIEW_ID = 'tableview_id' |
Definition at line 25 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::MODE_MANAGE = 2 |
Definition at line 29 of file class.ilDclRecordListGUI.php.
Referenced by ilDclRecordListTableGUI\buildData().
const ilDclRecordListGUI::MODE_VIEW = 1 |
Definition at line 28 of file class.ilDclRecordListGUI.php.