| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
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 (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 26 of file class.ilDclContentExporter.php.
| ilDclContentExporter::__construct | ( | int | $ref_id, | 
| ?int | $table_id, | ||
| array | $filter = []  | 
        ||
| ) | 
Definition at line 52 of file class.ilDclContentExporter.php.
References $DIC, $filter, $lng, $ref_id, $table_id, ILIAS\Repository\filter(), ILIAS\Repository\lng(), and ilLanguage\loadLanguageModule().
 Here is the call graph for this function:| 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 131 of file class.ilDclContentExporter.php.
References $filename, $filter, fillHeaderExcel(), fillMetaExcel(), fillRowExcel(), getExportContentPath(), ILIAS\Repository\lng(), ilFileUtils\makeDirParents(), ilDclCache\resetCache(), and sanitizeFilename().
Referenced by ilDclRecordListTableGUI\exportData().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDclContentExporter::exportAsync | ( | string | $format = self::EXPORT_EXCEL,  | 
        
| string | $filepath = null  | 
        ||
| ) | 
Definition at line 202 of file class.ilDclContentExporter.php.
References $_COOKIE, $client_id, $DIC, $res, $table_id, and ilSession\_duplicate().
 Here is the call graph for this function:
      
  | 
  protected | 
Fill Excel header.
Definition at line 108 of file class.ilDclContentExporter.php.
References ilDclTable\getFields().
Referenced by export().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Fill Excel meta-data.
Definition at line 122 of file class.ilDclContentExporter.php.
Referenced by export().
 Here is the caller graph for this function:
      
  | 
  protected | 
Fill a excel row.
Definition at line 91 of file class.ilDclContentExporter.php.
References ilDclBaseRecordModel\fillRecordFieldExcelExport(), and ilDclTable\getFields().
Referenced by export().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDclContentExporter::getExportContentPath | ( | string | $format | ) | 
Return export path.
Definition at line 83 of file class.ilDclContentExporter.php.
References ilExport\_getExportDirectory().
Referenced by export().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDclContentExporter::sanitizeFilename | ( | string | $filename | ) | 
Sanitize the given filename The ilUtil::_sanitizeFilename() does not clean enough.
Definition at line 73 of file class.ilDclContentExporter.php.
Referenced by export().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 44 of file class.ilDclContentExporter.php.
      
  | 
  protected | 
Array with filters.
Definition at line 42 of file class.ilDclContentExporter.php.
Referenced by __construct(), and export().
      
  | 
  protected | 
Definition at line 46 of file class.ilDclContentExporter.php.
Referenced by __construct().
      
  | 
  private | 
Definition at line 49 of file class.ilDclContentExporter.php.
      
  | 
  protected | 
Ref-ID of DataCollection.
Definition at line 34 of file class.ilDclContentExporter.php.
Referenced by __construct().
      
  | 
  protected | 
Definition at line 48 of file class.ilDclContentExporter.php.
      
  | 
  protected | 
Table-Id for export.
Definition at line 38 of file class.ilDclContentExporter.php.
Referenced by __construct(), and exportAsync().
      
  | 
  protected | 
Definition at line 50 of file class.ilDclContentExporter.php.
| const ilDclContentExporter::EXPORT_EXCEL = 'xlsx' | 
Definition at line 29 of file class.ilDclContentExporter.php.
Referenced by ilDclRecordListTableGUI\exportData().
| const ilDclContentExporter::IN_PROGRESS_POSTFIX = '.prog' | 
Definition at line 30 of file class.ilDclContentExporter.php.
Referenced by ilDclExportTableGUI\fillRow(), and ilDclExportTableGUI\isExportInProgress().
| const ilDclContentExporter::SOAP_FUNCTION_NAME = 'exportDataCollectionContent' | 
Definition at line 28 of file class.ilDclContentExporter.php.