Function Hook_task_privacy_download->create_json_file
Definitions
sources/hooks/systems/tasks/privacy_download.php
- Create a JSON file from the given table data.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$table_name | string | No | No | required parameter | N/A | N/A | The name of the table from which this data comes |
$data | array | No | No | required parameter | N/A | N/A | The data to be saved |
&$data_file | array | Yes | No | required parameter | N/A | N/A | The tar data file array |
Preview
Code (PHP)
/**
* Create a JSON file from the given table data.
*
* @param string $table_name The name of the table from which this data comes
* @param array $data The data to be saved
* @param array $data_file The tar data file array
*/
protected function create_json_file(string $table_name, array $data, array &$data_file)
* Create a JSON file from the given table data.
*
* @param string $table_name The name of the table from which this data comes
* @param array $data The data to be saved
* @param array $data_file The tar data file array
*/
protected function create_json_file(string $table_name, array $data, array &$data_file)