|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Hook-Class for exporting data-collections (used in SOAP-Class) This Class avoids duplicated code by routing the request to the right place. More...
Collaboration diagram for ilDclContentExporter: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 12 of file class.ilDclContentExporter.php.
| ilDclContentExporter::__construct | ( | $ref_id, | |
$table_id = null, |
|||
$filter = array() |
|||
| ) |
Definition at line 43 of file class.ilDclContentExporter.php.
References $DIC, $filter, $lng, $ref_id, $table_id, and filter().
Here is the call graph for this function:| 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 148 of file class.ilDclContentExporter.php.
References $filename, $format, $table, exit, EXPORT_EXCEL, fillHeaderExcel(), fillMetaExcel(), fillRowExcel(), filter(), getExportContentPath(), IN_PROGRESS_POSTFIX, ilUtil\makeDirParents(), ilDclCache\resetCache(), sanitizeFilename(), and ilUtil\sendInfo().
Here is the call graph for this function:| ilDclContentExporter::exportAsync | ( | $format = self::EXPORT_EXCEL, |
|
$filepath = null |
|||
| ) |
Start Export async.
| string | $format | |
| null | $filepath |
| ilDclException |
Definition at line 246 of file class.ilDclContentExporter.php.
References $_COOKIE, $client_id, $DIC, $format, $res, ilSession\_duplicate(), and SOAP_FUNCTION_NAME.
Here is the call graph for this function:
|
protected |
Fill Excel header.
| ilDclTable | $table | |
| ilExcel | $worksheet | |
| $row |
Definition at line 115 of file class.ilDclContentExporter.php.
References $table.
Referenced by export().
Here is the caller graph for this function:
|
protected |
Fill Excel meta-data.
| $table | |
| $worksheet | |
| $row |
Definition at line 134 of file class.ilDclContentExporter.php.
Referenced by export().
Here is the caller graph for this function:
|
protected |
Fill a excel row.
| ilDclTable | $table | |
| ilExcel | $worksheet | |
| ilDclBaseRecordModel | $record | |
| $row |
Definition at line 97 of file class.ilDclContentExporter.php.
References $table, and ilDclBaseRecordModel\fillRecordFieldExcelExport().
Referenced by export().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclContentExporter::getExportContentPath | ( | $format | ) |
Return export path.
| $format |
Definition at line 83 of file class.ilDclContentExporter.php.
References $format, and ilExport\_getExportDirectory().
Referenced by export().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclContentExporter::sanitizeFilename | ( | $filename | ) |
Sanitize the given filename The ilUtil::_sanitizeFilemame() does not clean enough.
| $filename |
Definition at line 68 of file class.ilDclContentExporter.php.
References $filename.
Referenced by export().
Here is the caller graph for this function:
|
protected |
Definition at line 32 of file class.ilDclContentExporter.php.
|
protected |
Definition at line 28 of file class.ilDclContentExporter.php.
Referenced by __construct().
|
protected |
Definition at line 36 of file class.ilDclContentExporter.php.
Referenced by __construct().
|
protected |
Definition at line 20 of file class.ilDclContentExporter.php.
Referenced by __construct().
|
protected |
Definition at line 40 of file class.ilDclContentExporter.php.
Referenced by export(), fillHeaderExcel(), and fillRowExcel().
|
protected |
Definition at line 24 of file class.ilDclContentExporter.php.
Referenced by __construct().
| const ilDclContentExporter::EXPORT_EXCEL = 'xlsx' |
Definition at line 15 of file class.ilDclContentExporter.php.
Referenced by export(), and ilDclRecordListTableGUI\exportData().
| const ilDclContentExporter::IN_PROGRESS_POSTFIX = '.prog' |
Definition at line 16 of file class.ilDclContentExporter.php.
Referenced by export(), ilDclExportTableGUI\fillRow(), and ilDclExportTableGUI\isExportInProgress().
| const ilDclContentExporter::SOAP_FUNCTION_NAME = 'exportDataCollectionContent' |
Definition at line 14 of file class.ilDclContentExporter.php.
Referenced by exportAsync().