Function Resource_fs_base->resource_add
Definitions
sources/resource_fs_base_class.php
- Adds some resource with the given label and properties. Wraps file_add/folder_add.
- 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 | Resource type |
$label | LONG_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 (may be empty, properties given are open to interpretation by the hook but generally correspond to database fields) |
Return
- The resource ID (false: error, could not create via these properties / here)
- Type: ~ID_TEXT
- Set: N/A
- Range: N/A