Function __global->get_comcode_page_editability_per_zone
Definitions
sources/permissions.php
- Find what zones a member may edit Comcode pages in.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | The member being checked for access (null: current member) |
Returns
- A list of pairs: The zone name, and a bitmask of COMCODE_EDIT_* constants identifying the level of editing permission present
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find what zones a member may edit Comcode pages in.
*
* @param ?MEMBER $member_id The member being checked for access (null: current member)
* @return array A list of pairs: The zone name, and a bitmask of COMCODE_EDIT_* constants identifying the level of editing permission present
*/
function get_comcode_page_editability_per_zone(?int $member_id = null) : array
* Find what zones a member may edit Comcode pages in.
*
* @param ?MEMBER $member_id The member being checked for access (null: current member)
* @return array A list of pairs: The zone name, and a bitmask of COMCODE_EDIT_* constants identifying the level of editing permission present
*/
function get_comcode_page_editability_per_zone(?int $member_id = null) : array

