Function __global->cns_get_member_primary_group
Definitions
sources/cns_members.php
- Get the primary of a member (supports consulting of LDAP).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | MEMBER | No | No | required parameter | N/A | N/A | The member |
Returns
- The primary
- Type: GROUP
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the primary of a member (supports consulting of LDAP).
*
* @param MEMBER $member_id The member
* @return GROUP The primary
*/
function cns_get_member_primary_group(int $member_id) : int
* Get the primary of a member (supports consulting of LDAP).
*
* @param MEMBER $member_id The member
* @return GROUP The primary
*/
function cns_get_member_primary_group(int $member_id) : int

