ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 14 of file class.ilDclRecordListGUI.php.
ilDclRecordListGUI::__construct | ( | ilObjDataCollectionGUI | $a_parent_obj, |
$table_id | |||
) |
ilObjDataCollectionGUI | $a_parent_obj | |
$table_id |
Definition at line 65 of file class.ilDclRecordListGUI.php.
References $_GET, $DIC, $ilCtrl, $lng, $tableview_id, and ilDclCache\getTableCache().
|
protected |
Definition at line 325 of file class.ilDclRecordListGUI.php.
References $table.
|
protected |
Definition at line 607 of file class.ilDclRecordListGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 560 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 316 of file class.ilDclRecordListGUI.php.
References $_POST.
ilDclRecordListGUI::endImport | ( | $i, | |
$warnings | |||
) |
End import.
$i | |
$warnings |
Definition at line 279 of file class.ilDclRecordListGUI.php.
References $DIC, $i, $output, $tpl, $warning, and $warnings.
Referenced by importRecords().
ilDclRecordListGUI::executeCommand | ( | ) |
execute command
Definition at line 101 of file class.ilDclRecordListGUI.php.
References $DIC, $ilSetting, $list, $tpl, checkAccess(), createSwitchers(), ilLinkButton\getInstance(), getRecordListTableGUI(), ilObjDataCollectionAccess\hasAccessToFields(), ilObjDataCollectionAccess\hasPermissionToAddRecord(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
|
protected |
Definition at line 503 of file class.ilDclRecordListGUI.php.
References $options, $table, array, and ilObjDataCollectionAccess\hasWriteAccess().
Referenced by createSwitchers().
|
protected |
$use_tableview_filter |
Definition at line 523 of file class.ilDclRecordListGUI.php.
References $data, $list, $records, $table_obj, and $total.
Referenced by executeCommand().
ilDclRecordListGUI::importExcel | ( | ) |
Import Data from Excel sheet.
Definition at line 241 of file class.ilDclRecordListGUI.php.
References $file, $form, ilObjDataCollectionAccess\hasPermissionToAddRecord(), importRecords(), initImportForm(), and showImportExcel().
|
private |
Import records from Excel file.
$file | ||
bool | $simulate |
Definition at line 264 of file class.ilDclRecordListGUI.php.
References $file, $result, and endImport().
Referenced by importExcel().
ilDclRecordListGUI::initImportForm | ( | ) |
Init form.
Definition at line 214 of file class.ilDclRecordListGUI.php.
References $file, $form, and ilFormPropertyGUI\setInfo().
Referenced by importExcel(), and showImportExcel().
|
private |
ilDclBaseRecordModel | $record |
Definition at line 463 of file class.ilDclRecordListGUI.php.
References $_GET, $DIC, $mode, $table, and ilDclBaseRecordModel\getTable().
Referenced by sendFile().
|
protected |
ilDclRecordListGUI::sendFile | ( | ) |
send File to User
Definition at line 350 of file class.ilDclRecordListGUI.php.
References $_GET, $_POST, $DIC, $ilUser, $key, $tpl, array, ilUtil\deliverFile(), ilDclCache\getRecordCache(), ilDclCache\getRecordFieldCache(), ilDclCache\getRecordRepresentation(), ilDclPropertyFormGUI\rebuildTempFileByHash(), recordBelongsToCollection(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
ilDclRecordListGUI::showImportExcel | ( | $form = null | ) |
Definition at line 199 of file class.ilDclRecordListGUI.php.
References $DIC, $form, $tpl, and initImportForm().
Referenced by importExcel().
|
staticprotected |
Definition at line 58 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 44 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 48 of file class.ilDclRecordListGUI.php.
Referenced by __construct().
|
protected |
Definition at line 35 of file class.ilDclRecordListGUI.php.
Referenced by recordBelongsToCollection().
|
protected |
Definition at line 40 of file class.ilDclRecordListGUI.php.
Referenced by getRecordListTableGUI().
|
protected |
Definition at line 53 of file class.ilDclRecordListGUI.php.
Referenced by __construct().
const ilDclRecordListGUI::CMD_CANCEL_DELETE = 'cancelDelete' |
Definition at line 26 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_CONFIRM_DELETE_RECORDS = 'confirmDeleteRecords' |
Definition at line 25 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_DELETE_RECORDS = 'deleteRecords' |
Definition at line 27 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_LIST_RECORDS = 'listRecords' |
Definition at line 23 of file class.ilDclRecordListGUI.php.
Referenced by ilObjDataCollectionGUI\executeCommand(), and ilDclTableViewEditGUI\permissionDenied().
const ilDclRecordListGUI::CMD_SHOW = 'show' |
Definition at line 24 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_SHOW_IMPORT_EXCEL = 'showImportExcel' |
Definition at line 28 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::GET_MODE = 'mode' |
Definition at line 18 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::GET_TABLE_ID = 'table_id' |
Definition at line 16 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::GET_TABLEVIEW_ID = 'tableview_id' |
Definition at line 17 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::MODE_MANAGE = 2 |
Definition at line 21 of file class.ilDclRecordListGUI.php.
Referenced by ilDclRecordListTableGUI\buildData().
const ilDclRecordListGUI::MODE_VIEW = 1 |
Definition at line 20 of file class.ilDclRecordListGUI.php.