ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
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 (int $ref_id, ?int $table_id, array $filter=[]) | |
sanitizeFilename (string $filename) | |
Sanitize the given filename The ilUtil::_sanitizeFilename() does not clean enough. More... | |
getExportContentPath (string $format) | |
Return export path. More... | |
export (string $format=self::EXPORT_EXCEL, ?string $filepath=null, bool $send=false) | |
Creates an export of a specific data collection table. More... | |
exportAsync (string $format=self::EXPORT_EXCEL, ?string $filepath=null) | |
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, int $row) | |
Fill a excel row. More... | |
fillHeaderExcel (ilDclTable $table, ilExcel $worksheet, int $row) | |
Fill Excel header. More... | |
fillMetaExcel (ilDclTable $table, ilExcel $worksheet, int $row) | |
Fill Excel meta-data. More... | |
Protected Attributes | |
int | $ref_id |
Ref-ID of DataCollection. More... | |
int | $table_id |
Table-Id for export. More... | |
array | $filter |
Array with filters. More... | |
ilObjDataCollection | $dcl |
ilLanguage | $lng |
ilDclTable | $table |
array | $tables |
Private Attributes | |
ilGlobalTemplateInterface | $main_tpl |
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 25 of file class.ilDclContentExporter.php.
ilDclContentExporter::__construct | ( | int | $ref_id, |
?int | $table_id, | ||
array | $filter = [] |
||
) |
Definition at line 51 of file class.ilDclContentExporter.php.
References $DIC, $filter, $lng, $ref_id, $table_id, ILIAS\Repository\filter(), ILIAS\Repository\lng(), and ilLanguage\loadLanguageModule().
ilDclContentExporter::export | ( | string | $format = self::EXPORT_EXCEL , |
?string | $filepath = null , |
||
bool | $send = false |
||
) |
Creates an export of a specific data collection table.
Definition at line 130 of file class.ilDclContentExporter.php.
References $filename, $filter, fillHeaderExcel(), fillMetaExcel(), fillRowExcel(), getExportContentPath(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), ILIAS\Repository\lng(), ilFileUtils\makeDirParents(), null, ilDclCache\resetCache(), and sanitizeFilename().
Referenced by ilDclRecordListTableGUI\exportData().
ilDclContentExporter::exportAsync | ( | string | $format = self::EXPORT_EXCEL , |
?string | $filepath = null |
||
) |
Definition at line 200 of file class.ilDclContentExporter.php.
References $_COOKIE, $client_id, $DIC, $res, $table_id, and ilSession\_duplicate().
Referenced by ilObjDataCollectionGUI\handleExportAsync().
|
protected |
Fill Excel header.
Definition at line 107 of file class.ilDclContentExporter.php.
References ilDclTable\getFields().
Referenced by export().
|
protected |
Fill Excel meta-data.
Definition at line 121 of file class.ilDclContentExporter.php.
Referenced by export().
|
protected |
Fill a excel row.
Definition at line 90 of file class.ilDclContentExporter.php.
References ilDclBaseRecordModel\fillRecordFieldExcelExport(), and ilDclTable\getFields().
Referenced by export().
ilDclContentExporter::getExportContentPath | ( | string | $format | ) |
Return export path.
Definition at line 82 of file class.ilDclContentExporter.php.
References ilExport\_getExportDirectory().
Referenced by export().
ilDclContentExporter::sanitizeFilename | ( | string | $filename | ) |
Sanitize the given filename The ilUtil::_sanitizeFilename() does not clean enough.
Definition at line 72 of file class.ilDclContentExporter.php.
Referenced by export().
|
protected |
Definition at line 43 of file class.ilDclContentExporter.php.
|
protected |
Array with filters.
Definition at line 41 of file class.ilDclContentExporter.php.
Referenced by __construct(), and export().
|
protected |
Definition at line 45 of file class.ilDclContentExporter.php.
Referenced by __construct().
|
private |
Definition at line 48 of file class.ilDclContentExporter.php.
|
protected |
Ref-ID of DataCollection.
Definition at line 33 of file class.ilDclContentExporter.php.
Referenced by __construct().
|
protected |
Definition at line 47 of file class.ilDclContentExporter.php.
|
protected |
Table-Id for export.
Definition at line 37 of file class.ilDclContentExporter.php.
Referenced by __construct(), and exportAsync().
|
protected |
Definition at line 49 of file class.ilDclContentExporter.php.
const ilDclContentExporter::EXPORT_EXCEL = 'xlsx' |
Definition at line 28 of file class.ilDclContentExporter.php.
Referenced by ilDclRecordListTableGUI\exportData().
const ilDclContentExporter::IN_PROGRESS_POSTFIX = '.prog' |
Definition at line 29 of file class.ilDclContentExporter.php.
const ilDclContentExporter::SOAP_FUNCTION_NAME = 'exportDataCollectionContent' |
Definition at line 27 of file class.ilDclContentExporter.php.