Function __global->cns_ensure_groups_cached

Definitions

sources/cns_groups.php

  • Ensure a list of usergroups are cached in memory.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$groups mixed No No required parameter N/A N/A The list of usergroups (array) or '*'
$tolerant boolean No No False N/A N/A Be tolerant of missing usergroups

Preview

Code (PHP)

/**
 * Ensure a list of usergroups are cached in memory.
 *
 * @param  mixed $groups The list of usergroups (array) or '*'
 * @param  boolean $tolerant Be tolerant of missing usergroups
 */

function cns_ensure_groups_cached($groups, bool $tolerant = false)