Function Resource_fs_base->set_resource_privileges_from_preset__members

Definitions

sources/resource_fs_base_class.php

  • Set resource privileges from a preset so that a member has custom privileges on the resource.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

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)
$member_presets array required parameter N/A N/A A mapping from member ID to preset value. Preset values are 0 (read only) to 3 (moderation)
$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)