Function Hook_import_smf2->static_perm_arr

Definitions

sources/hooks/modules/admin_import/smf2.php

  • Used to build privilege permission access to Forums.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$gid integer No No required parameter N/A N/A group ID to map
$pid integer No No required parameter N/A N/A profile ID to map
$v integer No No required parameter N/A N/A Value to map
$r boolean No No False N/A N/A Whether to return the map or not

Returns

  • The mapped Groups and Profile with highest privilege calculated
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Used to build privilege permission access to Forums.
 *
 * @param  integer $gid group ID to map
 * @param  integer $pid profile ID to map
 * @param  integer $v Value to map
 * @param  boolean $r Whether to return the map or not
 * @return array The mapped Groups and Profile with highest privilege calculated
 */

public function static_perm_arr(int $gid, int $pid, int $v, bool $r = false) : array