Function __global->_get_view_access_for_node
Definitions
sources/sitemap_ajax.php
- Get a mapping of set access for a particular sitemap node.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $admin_groups | array | No | No | required parameter | N/A | N/A | Global list of admin groups |
| $groups | array | No | No | required parameter | N/A | N/A | Global map of usergroups (ID => name) |
| $node | array | No | No | required parameter | N/A | N/A | The sitemap node |
Returns
- A map of set access (group => N/A) (null: no view permissions for this node)
- Type: ?array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a mapping of set access for a particular sitemap node.
*
* @param array $admin_groups Global list of admin groups
* @param array $groups Global map of usergroups (ID => name)
* @param array $node The sitemap node
* @return ?array A map of set access (group => N/A) (null: no view permissions for this node)
*/
function _get_view_access_for_node(array $admin_groups, array $groups, array $node) : ?array
* Get a mapping of set access for a particular sitemap node.
*
* @param array $admin_groups Global list of admin groups
* @param array $groups Global map of usergroups (ID => name)
* @param array $node The sitemap node
* @return ?array A map of set access (group => N/A) (null: no view permissions for this node)
*/
function _get_view_access_for_node(array $admin_groups, array $groups, array $node) : ?array

