Function __global->cns_may_control_group
Definitions
sources/cns_groups_action2.php
- Find whether a certain member may control a certain usergroup.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $group_id | GROUP | No | No | required parameter | N/A | N/A | The usergroup |
| $member_id | MEMBER | No | No | required parameter | N/A | N/A | The member |
| $group_row | ?array | No | No | Null | N/A | N/A | Database row for usergroup, passed for performance optimisation (null: lookup) |
Returns
- The answer
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find whether a certain member may control a certain usergroup.
*
* @param GROUP $group_id The usergroup
* @param MEMBER $member_id The member
* @param ?array $group_row Database row for usergroup, passed for performance optimisation (null: lookup)
* @return boolean The answer
*/
function cns_may_control_group(int $group_id, int $member_id, ?array $group_row = null) : bool
* Find whether a certain member may control a certain usergroup.
*
* @param GROUP $group_id The usergroup
* @param MEMBER $member_id The member
* @param ?array $group_row Database row for usergroup, passed for performance optimisation (null: lookup)
* @return boolean The answer
*/
function cns_may_control_group(int $group_id, int $member_id, ?array $group_row = null) : bool
