Function __global->set_category_permissions_from_environment
Definitions
sources/permissions2.php
- Assuming that permission details are POSTed, set the permissions for the specified category, in the current page.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $permission_module | ID_TEXT | No | No | required parameter | N/A | N/A | The permission module being checked for category access |
| $category | ID_TEXT | No | No | required parameter | N/A | N/A | The category being checked for access (often, a number cast to a string) |
| $page | ?ID_TEXT | No | No | Null | N/A | N/A | The page this is for (null: current page) |
Preview
Code (PHP)
/**
* Assuming that permission details are POSTed, set the permissions for the specified category, in the current page.
*
* @param ID_TEXT $permission_module The permission module being checked for category access
* @param ID_TEXT $category The category being checked for access (often, a number cast to a string)
* @param ?ID_TEXT $page The page this is for (null: current page)
*/
function set_category_permissions_from_environment(string $permission_module, string $category, ?string $page = null)
* Assuming that permission details are POSTed, set the permissions for the specified category, in the current page.
*
* @param ID_TEXT $permission_module The permission module being checked for category access
* @param ID_TEXT $category The category being checked for access (often, a number cast to a string)
* @param ?ID_TEXT $page The page this is for (null: current page)
*/
function set_category_permissions_from_environment(string $permission_module, string $category, ?string $page = null)

