Function __global->_cns_group_absorb_privileges_of

Definitions

sources/cns_groups_action2.php

  • Helper function, for copy permissions relating to one, to another.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$to GROUP No No required parameter N/A N/A The record ID that is having its permissions replaced
$from GROUP No No required parameter N/A N/A The record ID that the permissions are being drawn from
$table ID_TEXT No No required parameter N/A N/A The table holding the permissions
$id ID_TEXT No No group_id N/A N/A The name of the field in the table that holds the ID

Preview

Code (PHP)

/**
 * Helper function, for copy permissions relating to one, to another.
 *
 * @param  GROUP $to The record ID that is having its permissions replaced
 * @param  GROUP $from The record ID that the permissions are being drawn from
 * @param  ID_TEXT $table The table holding the permissions
 * @param  ID_TEXT $id The name of the field in the table that holds the ID
 */

function _cns_group_absorb_privileges_of(int $to, int $from, string $table, string $id = 'group_id')