AbstractConfig
in package
MapTab Configuration Class
Tags
Table of Contents
- $configLoader : PluginManager
- Configuration loader
- __construct() : mixed
- Constructor
- getOptions() : array<string|int, mixed>
- Convert a config object to an options array; return empty array if configuration is missing or incomplete.
Properties
$configLoader
Configuration loader
protected
PluginManager
$configLoader
Methods
__construct()
Constructor
public
__construct(PluginManager $configLoader) : mixed
Parameters
- $configLoader : PluginManager
-
Configuration loader
Return values
mixed —getOptions()
Convert a config object to an options array; return empty array if configuration is missing or incomplete.
protected
getOptions(string $configName, string $section, array<string|int, mixed> $validOptions) : array<string|int, mixed>
Parameters
- $configName : string
-
Name of config file to read
- $section : string
-
Name of section to read
- $validOptions : array<string|int, mixed>
-
List of valid fields to read