Function Hook_import_phpbb3->_translate_permission
Definitions
sources/hooks/modules/admin_import/phpbb3.php
- Helper function to translate phpBB permissions to software permissions.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $perm | string | No | No | required parameter | N/A | N/A | Old perm |
Returns
- New perm (null: could not convert)
- Type: ?string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Helper function to translate phpBB permissions to software permissions.
*
* @param string $perm Old perm
* @return ?string New perm (null: could not convert)
*/
protected function _translate_permission(string $perm) : ?string
* Helper function to translate phpBB permissions to software permissions.
*
* @param string $perm Old perm
* @return ?string New perm (null: could not convert)
*/
protected function _translate_permission(string $perm) : ?string

