ImportSettings
Trait to handle the importer for settings in the `Import` class.
Table of Contents
Methods
- optionsMap() : mixed
- Read all available options.
- doImportSettings() : mixed
- Import settings from JSON.
- handleSepcialSetting() : mixed
- Handle special cases for settings.
Methods
optionsMap()
Read all available options.
public
optionsMap([bool $asOptionName = false ]) : mixed
Parameters
- $asOptionName : bool = false
-
If true, the returned map contains the option name instead of value
doImportSettings()
Import settings from JSON.
protected
doImportSettings(array<string|int, mixed> $settings) : mixed
Parameters
- $settings : array<string|int, mixed>
handleSepcialSetting()
Handle special cases for settings.
protected
handleSepcialSetting(string $optionName, mixed $value, string $key) : mixed
Parameters
- $optionName : string
- $value : mixed
- $key : string