Function Resource_fs_base->set_resource_privileges__members
Definitions
sources/resource_fs_base_class.php
- Set a resource privilege so that a member has a custom privilege on the resource.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $filename | ?ID_TEXT | No | No | required parameter | N/A | N/A | Resource filename (assumed to be of a folder type) (null: $resource_type & $category specified instead) |
| $member_settings | array | No | No | required parameter | N/A | N/A | A map between member ID, and a map of privilege to setting |
| $resource_type | ?ID_TEXT | No | No | Null | N/A | N/A | The resource type (null: $filename specified instead) |
| $category | ?ID_TEXT | No | No | Null | N/A | N/A | The resource ID (null: $filename specified instead) |
Preview
Code (PHP)
/**
* Set a resource privilege so that a member has a custom privilege on the resource.
*
* @param ?ID_TEXT $filename Resource filename (assumed to be of a folder type) (null: $resource_type & $category specified instead)
* @param array $member_settings A map between member ID, and a map of privilege to setting
* @param ?ID_TEXT $resource_type The resource type (null: $filename specified instead)
* @param ?ID_TEXT $category The resource ID (null: $filename specified instead)
*/
public function set_resource_privileges__members(?string $filename, array $member_settings, ?string $resource_type = null, ?string $category = null)
* Set a resource privilege so that a member has a custom privilege on the resource.
*
* @param ?ID_TEXT $filename Resource filename (assumed to be of a folder type) (null: $resource_type & $category specified instead)
* @param array $member_settings A map between member ID, and a map of privilege to setting
* @param ?ID_TEXT $resource_type The resource type (null: $filename specified instead)
* @param ?ID_TEXT $category The resource ID (null: $filename specified instead)
*/
public function set_resource_privileges__members(?string $filename, array $member_settings, ?string $resource_type = null, ?string $category = null)

