Function Resource_fs_base->_compute_privilege_preset_scheme
Definitions
sources/resource_fs_base_class.php
- Work out what a privilege preset means for a kind of resource.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$filename | ?ID_TEXT | required parameter | N/A | N/A | Resource filename (assumed to be of a folder type) (null: $resource_type & $category specified instead) |
$resource_type | ?ID_TEXT | Null | N/A | N/A | The resource type (null: $filename specified instead) |
$category | ?ID_TEXT | Null | N/A | N/A | The resource ID (null: $filename specified instead) |
Return
- A mapping from privilege to minimum preset level required for privilege activation (null: unworkable)
- Type: ?array
- Set: N/A
- Range: N/A