Function Resource_fs_base->resource_save
Definitions
sources/resource_fs_base_class.php
- Save function for resource-fs. Parses the data for some resource to a resource-fs JSON file. Wraps file_save/folder_save.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$resource_type | ID_TEXT | required parameter | N/A | N/A | The resource type |
$label | ID_TEXT | required parameter | N/A | N/A | Filename OR Resource label |
$path | string | required parameter | N/A | N/A | The path (blank: root / not applicable) |
$properties | array | [] | N/A | N/A | Properties |
$search_label_as | ?ID_TEXT | Null | N/A | N/A | Whether to look for existing records using $filename as a label and this resource type (null: $filename is a strict file name) |
$search_path | ?ID_TEXT | Null | N/A | N/A | Search path (null: the same as the path saving at) |
Return
- The resource ID (false: error, could not create via these properties / here)
- Type: ~ID_TEXT
- Set: N/A
- Range: N/A