Function Resource_fs_base->resource_edit
Definitions
sources/resource_fs_base_class.php
- Edits the resource to the given properties. Wraps file_edit/folder_edit.
- 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 |
$filename | ID_TEXT | required parameter | N/A | N/A | The filename |
$path | string | required parameter | N/A | N/A | The path (blank: root / not applicable) |
$properties | array | required parameter | N/A | N/A | Properties (may be empty, properties given are open to interpretation by the hook but generally correspond to database fields) |
$explicit_move | boolean | False | N/A | N/A | Whether we are definitely moving (as opposed to possible having it in multiple positions) |
Return
- The resource ID (false: error, could not create via these properties / here)
- Type: ~ID_TEXT
- Set: N/A
- Range: N/A