$default_options
$default_options : array
Valid options with default values.
A singleton to manage Geo Mashup saved options.
get(string $key1, string $key2, string $key3) : string|array
Get a saved option value.
$single_map_options_array = $geo_mashup_options->get( 'single_map' );
$google_key = $geo_mashup_options->get( 'overall', 'google_key' );
$add_global_satellite_map = $geo_mashup_options->get( 'global_map', 'add_map_type_control', 'G_SATELLITE_MAP' );
string | $key1 | Highest level key. |
string | $key2 | Second level key. |
string | $key3 | Third level key. |
The option value or values.
valid_options(array $option_array, array $defaults, boolean $add_missing) : array
Remove invalid option keys from an array, and replace invalid values with defaults.
array | $option_array | An array of options to validate. |
array | $defaults | Optional array of valid default values. |
boolean | $add_missing | Set if input is not from a form, so missing values are not unchecked checkboxes and should get default values. |
Valid options.