Function Hook_import_smf2->fill_static_perms_all

Definitions

sources/hooks/modules/admin_import/smf2.php

  • Fills the static_perm_arr with profile permissions for all software groups.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$pid integer No No required parameter N/A N/A Profile ID to use
$fid integer No No required parameter N/A N/A Forum ID to use
$db object No No required parameter N/A N/A The database connector to import from
$table_prefix string No No required parameter N/A N/A The table prefix the target prefix is using

Preview

Code (PHP)

/**
 * Fills the static_perm_arr with profile permissions for all software groups.
 *
 * @param  integer $pid Profile ID to use
 * @param  integer $fid Forum ID to use
 * @param  object $db The database connector to import from
 * @param  string $table_prefix The table prefix the target prefix is using
 */

public function fill_static_perms_all(int $pid, int $fid, object $db, string $table_prefix)