Function __global->load_up_all_module_category_permissions

Definitions

sources/permissions.php

  • For efficiency reasons, load up loads of category permissions.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$member_id MEMBER No No required parameter N/A N/A The member being checked whether to have the access
$permission_module ?ID_TEXT No No Null N/A N/A The permission module being checked for category access (null: all categories)

Preview

Code (PHP)

/**
 * For efficiency reasons, load up loads of category permissions.
 *
 * @param  MEMBER $member_id The member being checked whether to have the access
 * @param  ?ID_TEXT $permission_module The permission module being checked for category access (null: all categories)
 */

function load_up_all_module_category_permissions(int $member_id, ?string $permission_module = null)