ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 18 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 154 of file class.ilDclContentExporter.php.
References $filename, $format, $ilCtrl, $list, $row, $table, $title, exit, fillHeaderExcel(), fillMetaExcel(), fillRowExcel(), getExportContentPath(), ilUtil\makeDirParents(), ilDclCache\resetCache(), sanitizeFilename(), and ilUtil\sendInfo().
Referenced by ilDclRecordListTableGUI\exportData().
ilDclContentExporter::exportAsync | ( | $format = self::EXPORT_EXCEL , |
|
$filepath = null |
|||
) |
Start Export async.
string | $format | |
null | $filepath |
ilDclException |
Definition at line 254 of file class.ilDclContentExporter.php.
References $_COOKIE, $client_id, $DIC, $format, $ilLog, $res, $table_id, and ilSession\_duplicate().
|
protected |
Fill Excel header.
ilDclTable | $table | |
ilExcel | $worksheet | |
$row |
Definition at line 121 of file class.ilDclContentExporter.php.
References $row, and ilDclTable\getFields().
Referenced by export().
|
protected |
Fill Excel meta-data.
$table | |
$worksheet | |
$row |
Definition at line 140 of file class.ilDclContentExporter.php.
Referenced by export().
|
protected |
Fill a excel row.
ilDclTable | $table | |
ilExcel | $worksheet | |
ilDclBaseRecordModel | $record | |
$row |
Definition at line 103 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 89 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 74 of file class.ilDclContentExporter.php.
References $filename.
Referenced by export().
|
protected |
Definition at line 38 of file class.ilDclContentExporter.php.
|
protected |
Definition at line 34 of file class.ilDclContentExporter.php.
Referenced by __construct().
|
protected |
Definition at line 42 of file class.ilDclContentExporter.php.
Referenced by __construct().
|
protected |
Definition at line 26 of file class.ilDclContentExporter.php.
Referenced by __construct().
|
protected |
Definition at line 46 of file class.ilDclContentExporter.php.
Referenced by export().
|
protected |
Definition at line 30 of file class.ilDclContentExporter.php.
Referenced by __construct(), and exportAsync().
const ilDclContentExporter::EXPORT_EXCEL = 'xlsx' |
Definition at line 21 of file class.ilDclContentExporter.php.
Referenced by ilDclRecordListTableGUI\exportData().
const ilDclContentExporter::IN_PROGRESS_POSTFIX = '.prog' |
Definition at line 22 of file class.ilDclContentExporter.php.
Referenced by ilDclExportTableGUI\fillRow(), and ilDclExportTableGUI\isExportInProgress().
const ilDclContentExporter::SOAP_FUNCTION_NAME = 'exportDataCollectionContent' |
Definition at line 20 of file class.ilDclContentExporter.php.