ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Hook-Class for exporting data-collections (used in SOAP-Class) This Class avoids duplicated code by routing the request to the right place. More...
Public Member Functions | |
__construct ($ref_id, $table_id=null, $filter=array()) | |
sanitizeFilename ($filename) | |
Sanitize the given filename The ilUtil::_sanitizeFilemame() does not clean enough. More... | |
getExportContentPath ($format) | |
Return export path. More... | |
export ($format=self::EXPORT_EXCEL, $filepath=null, $send=false) | |
Creates an export of a specific datacollection table. More... | |
exportAsync ($format=self::EXPORT_EXCEL, $filepath=null) | |
Start Export async. More... | |
Data Fields | |
const | SOAP_FUNCTION_NAME = 'exportDataCollectionContent' |
const | EXPORT_EXCEL = 'xlsx' |
const | IN_PROGRESS_POSTFIX = '.prog' |
Protected Member Functions | |
fillRowExcel (ilDclTable $table, ilExcel $worksheet, ilDclBaseRecordModel $record, $row) | |
Fill a excel row. More... | |
fillHeaderExcel (ilDclTable $table, ilExcel $worksheet, $row) | |
Fill Excel header. More... | |
fillMetaExcel ($table, $worksheet, $row) | |
Fill Excel meta-data. More... | |
Protected Attributes | |
$ref_id | |
$table_id | |
$filter | |
$dcl | |
$lng | |
$table | |
Hook-Class for exporting data-collections (used in SOAP-Class) This Class avoids duplicated code by routing the request to the right place.
Definition at line 20 of file class.ilDclContentExporter.php.
ilDclContentExporter::__construct | ( | $ref_id, | |
$table_id = null , |
|||
$filter = array() |
|||
) |
int $table_id Table Id for ilDclContentExporter::export | ( | $format = self::EXPORT_EXCEL , |
|
$filepath = null , |
|||
$send = false |
|||
) |
Creates an export of a specific datacollection table.
string | $format | |
null | $filepath | |
bool | false | $send |
Definition at line 159 of file class.ilDclContentExporter.php.
References $adapter, $filename, $format, $ilCtrl, $list, $row, $table, $title, array, date, exit, fillHeaderExcel(), fillMetaExcel(), fillRowExcel(), getExportContentPath(), ilUtil\makeDirParents(), ilDclCache\resetCache(), sanitizeFilename(), ilUtil\sendInfo(), and time.
Referenced by ilDclRecordListTableGUI\exportData().
ilDclContentExporter::exportAsync | ( | $format = self::EXPORT_EXCEL , |
|
$filepath = null |
|||
) |
Start Export async.
string | $format | |
null | $filepath |
ilDclException |
Definition at line 255 of file class.ilDclContentExporter.php.
References $_COOKIE, $client_id, $DIC, $format, $ilLog, $res, $table_id, ilSession\_duplicate(), and array.
|
protected |
Fill Excel header.
ilDclTable | $table | |
ilExcel | $worksheet | |
$row |
Definition at line 126 of file class.ilDclContentExporter.php.
References $row, and ilDclTable\getFields().
Referenced by export().
|
protected |
Fill Excel meta-data.
$table | |
$worksheet | |
$row |
Definition at line 145 of file class.ilDclContentExporter.php.
Referenced by export().
|
protected |
Fill a excel row.
ilDclTable | $table | |
ilExcel | $worksheet | |
ilDclBaseRecordModel | $record | |
$row |
Definition at line 108 of file class.ilDclContentExporter.php.
References $row, ilDclBaseRecordModel\fillRecordFieldExcelExport(), and ilDclTable\getFields().
Referenced by export().
ilDclContentExporter::getExportContentPath | ( | $format | ) |
Return export path.
$format |
Definition at line 94 of file class.ilDclContentExporter.php.
References $format, and ilExport\_getExportDirectory().
Referenced by export().
ilDclContentExporter::sanitizeFilename | ( | $filename | ) |
Sanitize the given filename The ilUtil::_sanitizeFilemame() does not clean enough.
$filename |
Definition at line 81 of file class.ilDclContentExporter.php.
References $filename, and array.
Referenced by export().
|
protected |
Definition at line 45 of file class.ilDclContentExporter.php.
|
protected |
Definition at line 40 of file class.ilDclContentExporter.php.
Referenced by __construct().
|
protected |
Definition at line 50 of file class.ilDclContentExporter.php.
Referenced by __construct().
|
protected |
Definition at line 30 of file class.ilDclContentExporter.php.
Referenced by __construct().
|
protected |
Definition at line 55 of file class.ilDclContentExporter.php.
Referenced by export().
|
protected |
Definition at line 35 of file class.ilDclContentExporter.php.
Referenced by __construct(), and exportAsync().
const ilDclContentExporter::EXPORT_EXCEL = 'xlsx' |
Definition at line 24 of file class.ilDclContentExporter.php.
Referenced by ilDclRecordListTableGUI\exportData().
const ilDclContentExporter::IN_PROGRESS_POSTFIX = '.prog' |
Definition at line 25 of file class.ilDclContentExporter.php.
Referenced by ilDclExportTableGUI\fillRow(), and ilDclExportTableGUI\isExportInProgress().
const ilDclContentExporter::SOAP_FUNCTION_NAME = 'exportDataCollectionContent' |
Definition at line 22 of file class.ilDclContentExporter.php.