|
static | data_exportdata (int $dataid, array $fields, array $selectedfields, entries_exporter $exporter, int $currentgroup=0, context $context=null, bool $userdetails=false, bool $time=false, bool $approval=false, bool $tags=false, bool $includefiles=true) |
| Exports the data of the mod_data instance to an entries_exporter object which then can export it to a file format.
|
|
◆ data_exportdata()
static mod_data\local\exporter\utils::data_exportdata |
( |
int | $dataid, |
|
|
array | $fields, |
|
|
array | $selectedfields, |
|
|
entries_exporter | $exporter, |
|
|
int | $currentgroup = 0, |
|
|
context | $context = null, |
|
|
bool | $userdetails = false, |
|
|
bool | $time = false, |
|
|
bool | $approval = false, |
|
|
bool | $tags = false, |
|
|
bool | $includefiles = true ) |
|
static |
Exports the data of the mod_data instance to an entries_exporter object which then can export it to a file format.
- Parameters
-
int | $dataid | |
array | $fields | |
array | $selectedfields | |
entries_exporter | $exporter | the entries_exporter object used |
int | $currentgroup | group ID of the current group. This is used for exporting data while maintaining group divisions. |
context | null | $context | the context in which the operation is performed (for capability checks) |
bool | $userdetails | whether to include the details of the record author |
bool | $time | whether to include time created/modified |
bool | $approval | whether to include approval status |
bool | $tags | whether to include tags |
bool | $includefiles | whether files should be exported as well |
- Return values
-
The documentation for this class was generated from the following file:
- mod/data/classes/local/exporter/utils.php