ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 59 of file class.ilDclRecordListGUI.php.
References $_GET, $DIC, $lng, $tableview_id, and ilDclCache\getTableCache().
|
protected |
Definition at line 324 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 619 of file class.ilDclRecordListGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 572 of file class.ilDclRecordListGUI.php.
References $DIC, getAvailableTables(), and ilSubmitButton\getInstance().
Referenced by executeCommand().
ilDclRecordListGUI::doTableSwitch | ( | ) |
doTableSwitch
Definition at line 301 of file class.ilDclRecordListGUI.php.
References $_POST.
ilDclRecordListGUI::doTableViewSwitch | ( | ) |
doTableViewSwitch
Definition at line 314 of file class.ilDclRecordListGUI.php.
References $_POST.
ilDclRecordListGUI::endImport | ( | $i, | |
$warnings | |||
) |
End import.
$i | |
$warnings |
Definition at line 276 of file class.ilDclRecordListGUI.php.
References $DIC, $i, and $tpl.
Referenced by importRecords().
ilDclRecordListGUI::executeCommand | ( | ) |
execute command
Definition at line 95 of file class.ilDclRecordListGUI.php.
References $DIC, $ilSetting, $tpl, checkAccess(), createSwitchers(), ilLinkButton\getInstance(), getRecordListTableGUI(), ilObjDataCollectionAccess\hasAccessToFields(), ilObjDataCollectionAccess\hasPermissionToAddRecord(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
|
protected |
Definition at line 504 of file class.ilDclRecordListGUI.php.
References ilObjDataCollectionAccess\hasWriteAccess().
Referenced by createSwitchers().
|
protected |
$use_tableview_filter |
Definition at line 525 of file class.ilDclRecordListGUI.php.
References $data, $table_obj, and $total.
Referenced by executeCommand().
ilDclRecordListGUI::importExcel | ( | ) |
Import Data from Excel sheet.
Definition at line 238 of file class.ilDclRecordListGUI.php.
References ilObjDataCollectionAccess\hasPermissionToAddRecord(), importRecords(), initImportForm(), and showImportExcel().
|
private |
Import records from Excel file.
$file | ||
bool | $simulate |
Definition at line 261 of file class.ilDclRecordListGUI.php.
References $result, and endImport().
Referenced by importExcel().
ilDclRecordListGUI::initImportForm | ( | ) |
Init form.
Definition at line 212 of file class.ilDclRecordListGUI.php.
References ilFormPropertyGUI\setInfo(), and ilFormPropertyGUI\setRequired().
Referenced by importExcel(), and showImportExcel().
|
private |
ilDclBaseRecordModel | $record |
Definition at line 463 of file class.ilDclRecordListGUI.php.
References $_GET, $DIC, $mode, and ilDclBaseRecordModel\getTable().
Referenced by sendFile().
|
protected |
Definition at line 337 of file class.ilDclRecordListGUI.php.
ilDclRecordListGUI::sendFile | ( | ) |
send File to User
Definition at line 350 of file class.ilDclRecordListGUI.php.
References $_GET, $_POST, $DIC, $ilUser, $tpl, ilUtil\deliverFile(), ilDclCache\getRecordCache(), ilDclCache\getRecordFieldCache(), ilDclCache\getRecordRepresentation(), ilDclPropertyFormGUI\rebuildTempFileByHash(), recordBelongsToCollection(), and ilUtil\sendInfo().
ilDclRecordListGUI::showImportExcel | ( | $form = null | ) |
Definition at line 196 of file class.ilDclRecordListGUI.php.
References $DIC, $tpl, and initImportForm().
Referenced by importExcel().
|
staticprotected |
Definition at line 52 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 40 of file class.ilDclRecordListGUI.php.
|
protected |
Definition at line 44 of file class.ilDclRecordListGUI.php.
Referenced by __construct().
|
protected |
Definition at line 32 of file class.ilDclRecordListGUI.php.
Referenced by recordBelongsToCollection().
|
protected |
Definition at line 36 of file class.ilDclRecordListGUI.php.
Referenced by getRecordListTableGUI().
|
protected |
Definition at line 48 of file class.ilDclRecordListGUI.php.
Referenced by __construct().
const ilDclRecordListGUI::CMD_CANCEL_DELETE = 'cancelDelete' |
Definition at line 24 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_CONFIRM_DELETE_RECORDS = 'confirmDeleteRecords' |
Definition at line 23 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_DELETE_RECORDS = 'deleteRecords' |
Definition at line 25 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_LIST_RECORDS = 'listRecords' |
Definition at line 21 of file class.ilDclRecordListGUI.php.
Referenced by ilObjDataCollectionGUI\executeCommand(), and ilDclTableViewEditGUI\permissionDenied().
const ilDclRecordListGUI::CMD_SHOW = 'show' |
Definition at line 22 of file class.ilDclRecordListGUI.php.
const ilDclRecordListGUI::CMD_SHOW_IMPORT_EXCEL = 'showImportExcel' |
Definition at line 26 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 20 of file class.ilDclRecordListGUI.php.
Referenced by ilDclRecordListTableGUI\addActionRowIfNeeded().
const ilDclRecordListGUI::MODE_VIEW = 1 |
Definition at line 19 of file class.ilDclRecordListGUI.php.