Function __global->cns_get_member_best_group_property

Definitions

sources/cns_groups.php

  • Get the best value of all values of a property for a member (due to members being in multiple usergroups).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$member_id MEMBER No No required parameter N/A N/A The ID of the member
$property ID_TEXT No No required parameter N/A N/A The identifier of the property

Returns

  • The property value
  • Type: mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the best value of all values of a property for a member (due to members being in multiple usergroups).
 *
 * @param  MEMBER $member_id The ID of the member
 * @param  ID_TEXT $property The identifier of the property
 * @return mixed The property value
 */

function cns_get_member_best_group_property(int $member_id, string $property)