Function Hook_import_smf2->get_setting
Definitions
sources/hooks/modules/admin_import/smf2.php
- Get an SMF setting.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$db | object | required parameter | N/A | N/A | The database connector to import from |
$setting | ID_TEXT | required parameter | N/A | N/A | The name of the setting |
$allow_missing | boolean | False | N/A | N/A | Whether to allow a missing setting without throwing an error |
Return
- The setting value (null: Setting does not exist and $allow_setting is true)
- Type: ?string
- Set: N/A
- Range: N/A