Function Resource_fs_base->file_save_json
Definitions
sources/resource_fs_base_class.php
- Save function for resource-fs (for files). Parses the data for some resource to a resource-fs JSON file.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$filename | ID_TEXT | required parameter | N/A | N/A | Filename |
$path | string | required parameter | N/A | N/A | The path (blank: root / not applicable) |
$data | string | required parameter | N/A | N/A | Resource data |
Return
- The resource ID (false: error, could not create via these properties / here)
- Type: ~ID_TEXT
- Set: N/A
- Range: N/A