ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Class ilDataCollectionRecordListGUI. More...
Public Member Functions | |
__construct (ilObjDataCollectionGUI $a_parent_obj, $table_id) | |
executeCommand () | |
execute command More... | |
exportExcel () | |
Export DC as Excel sheet. More... | |
showImportExcel ($form=NULL) | |
importExcel () | |
Import Data from Excel sheet. More... | |
endImport ($i, $warnings) | |
End import. More... | |
getReferenceFromValue ($field, $value) | |
doTableSwitch () | |
doTableSwitch More... | |
sendFile () | |
send File to User More... | |
Data Fields | |
const | MODE_VIEW = 1 |
const | MODE_MANAGE = 2 |
Protected Member Functions | |
applyFilter () | |
resetFilter () | |
Protected Attributes | |
$mode = self::MODE_VIEW | |
$max_imports = 100 | |
$supported_import_datatypes | |
$table_obj | |
$ctrl | |
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... | |
getExcelCharForInteger ($int) | |
checkImportType ($field, &$warnings) | |
getImportFieldsFromTitles ($titles, &$warnings) | |
recordBelongsToCollection (ilDataCollectionRecord $record) | |
Class ilDataCollectionRecordListGUI.
Definition at line 22 of file class.ilDataCollectionRecordListGUI.php.
ilDataCollectionRecordListGUI::__construct | ( | ilObjDataCollectionGUI | $a_parent_obj, |
$table_id | |||
) |
ilObjDataCollectionGUI | $a_parent_obj | |
$table_id |
Definition at line 64 of file class.ilDataCollectionRecordListGUI.php.
References $_GET, $ilCtrl, and ilDataCollectionCache\getTableCache().
|
protected |
Definition at line 493 of file class.ilDataCollectionRecordListGUI.php.
|
private |
ilDataCollectionField | $field | |
array | $warnings |
Definition at line 435 of file class.ilDataCollectionRecordListGUI.php.
References $lng, and $supported_import_datatypes.
Referenced by getImportFieldsFromTitles().
ilDataCollectionRecordListGUI::doTableSwitch | ( | ) |
doTableSwitch
Definition at line 485 of file class.ilDataCollectionRecordListGUI.php.
References $_POST, and $ilCtrl.
ilDataCollectionRecordListGUI::endImport | ( | $i, | |
$warnings | |||
) |
End import.
$i | |
$warnings |
Definition at line 375 of file class.ilDataCollectionRecordListGUI.php.
References $ilCtrl, $lng, and $tpl.
Referenced by importRecords().
ilDataCollectionRecordListGUI::executeCommand | ( | ) |
execute command
Definition at line 83 of file class.ilDataCollectionRecordListGUI.php.
References $cmd, $data, $ilCtrl, $lng, $options, $records, $total, $tpl, ilObjDataCollection\_hasWriteAccess(), ilLinkButton\getInstance(), ilDataCollectionLinkButton\getInstance(), and ilUtil\sendInfo().
ilDataCollectionRecordListGUI::exportExcel | ( | ) |
Export DC as Excel sheet.
Definition at line 210 of file class.ilDataCollectionRecordListGUI.php.
References $ilCtrl, $lng, $table_obj, exit, ilTable2GUI\EXPORT_EXCEL, and ilDataCollectionRecordListTableGUI\setRecordData().
|
private |
Definition at line 415 of file class.ilDataCollectionRecordListGUI.php.
Referenced by getImportFieldsFromTitles(), and importRecords().
|
private |
$titles | string[] |
$warnings |
Definition at line 453 of file class.ilDataCollectionRecordListGUI.php.
References $lng, ilDataCollectionStandardField\_getAllStandardFieldTitles(), checkImportType(), getExcelCharForInteger(), and ilStr\isUtf8().
Referenced by importRecords().
ilDataCollectionRecordListGUI::getReferenceFromValue | ( | $field, | |
$value | |||
) |
$field | ilDataCollectionField |
$value |
Definition at line 401 of file class.ilDataCollectionRecordListGUI.php.
References ilDataCollectionCache\getFieldCache(), and ilDataCollectionCache\getTableCache().
Referenced by importRecords().
ilDataCollectionRecordListGUI::importExcel | ( | ) |
Import Data from Excel sheet.
Definition at line 272 of file class.ilDataCollectionRecordListGUI.php.
References $file, $lng, exit, importRecords(), and showImportExcel().
|
private |
Import records from Excel file.
$file | ||
bool | $simulate |
Definition at line 297 of file class.ilDataCollectionRecordListGUI.php.
References $file, $ilUser, $lng, endImport(), getExcelCharForInteger(), getImportFieldsFromTitles(), getReferenceFromValue(), IL_CAL_DATETIME, IL_CAL_UNIX, ilDataCollectionDatatype\INPUTFORMAT_DATETIME, ilDataCollectionDatatype\INPUTFORMAT_REFERENCE, and ilStr\isUtf8().
Referenced by importExcel().
|
private |
ilDataCollectionRecord | $record |
Definition at line 598 of file class.ilDataCollectionRecordListGUI.php.
References $_GET, $ilCtrl, $lng, and ilDataCollectionRecord\getTable().
Referenced by sendFile().
|
protected |
Definition at line 502 of file class.ilDataCollectionRecordListGUI.php.
ilDataCollectionRecordListGUI::sendFile | ( | ) |
send File to User
Definition at line 514 of file class.ilDataCollectionRecordListGUI.php.
References $_GET, $_POST, $ilCtrl, $lng, $tpl, ilUtil\deliverFile(), ilDataCollectionCache\getRecordCache(), recordBelongsToCollection(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
ilDataCollectionRecordListGUI::showImportExcel | ( | $form = NULL | ) |
Definition at line 229 of file class.ilDataCollectionRecordListGUI.php.
References $file, $ilCtrl, $lng, $tpl, and ilFormPropertyGUI\setInfo().
Referenced by importExcel().
|
staticprotected |
Definition at line 57 of file class.ilDataCollectionRecordListGUI.php.
|
protected |
Definition at line 53 of file class.ilDataCollectionRecordListGUI.php.
|
protected |
Definition at line 35 of file class.ilDataCollectionRecordListGUI.php.
|
protected |
Definition at line 31 of file class.ilDataCollectionRecordListGUI.php.
|
protected |
Definition at line 39 of file class.ilDataCollectionRecordListGUI.php.
Referenced by checkImportType().
|
protected |
Definition at line 49 of file class.ilDataCollectionRecordListGUI.php.
Referenced by exportExcel().
const ilDataCollectionRecordListGUI::MODE_MANAGE = 2 |
Definition at line 25 of file class.ilDataCollectionRecordListGUI.php.
Referenced by ilDataCollectionRecordListTableGUI\fillRowExcel().
const ilDataCollectionRecordListGUI::MODE_VIEW = 1 |
Definition at line 24 of file class.ilDataCollectionRecordListGUI.php.