SLPWidget_Legacy_Settings
extends SLPlus_BaseClass_Object
in package
Class SLPWidget_Settings
Tags
Table of Contents
Properties
- $addon : object
- $button_label : mixed
- $default_title : mixed
- $maximum_result_set : mixed
- $myslp : MySLP
- $radius_label : mixed
- $search_label : mixed
- $slplus : SLPlus
- $uses_myslp : bool
- $uses_slplus : bool
- $slug : mixed
- $settings_array : mixed
Methods
- __construct() : mixed
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- applySettings() : mixed
- get_instance() : static
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- getSettings() : mixed
- Reduces the class's settings to an array and returns them
- initialize() : mixed
- Create a settings class
- options() : mixed
- Loads default options or gets them from the db if they already exist
- set_properties() : mixed
- Set our properties.
- Settings() : array<string|int, mixed>
- Gets the plugin settings
- reduceSettings() : mixed
- Reduces all class vars into an array for saving or distribution
Properties
$addon
public
object
$addon
$button_label
public
mixed
$button_label
$default_title
public
mixed
$default_title
$maximum_result_set
public
mixed
$maximum_result_set
$myslp
public
MySLP
$myslp
$radius_label
public
mixed
$radius_label
$search_label
public
mixed
$search_label
$slplus
public
SLPlus
$slplus
$uses_myslp
public
bool
$uses_myslp
Set to true to add a $myslp property pointing to global $myslp
$uses_slplus
public
bool
$uses_slplus
Set to true (default) if the object needs access to the SLPlus plugin object.
$slug
protected
mixed
$slug
$settings_array
private
mixed
$settings_array
Methods
__construct()
public
__construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
__get()
public
__get(string $property) : SLPlus_BaseClass_Object
Parameters
- $property : string
Return values
SLPlus_BaseClass_Object__isset()
public
__isset(string $property) : bool
Parameters
- $property : string
Return values
boolapplySettings()
public
applySettings(mixed $var) : mixed
Parameters
- $var : mixed
get_instance()
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
public
static get_instance([bool $no_global = false ][, mixed $params = array() ]) : static
Parameters
- $no_global : bool = false
-
set to true to skip assigning object to SLP global as a property.
- $params : mixed = array()
-
object init params
Return values
staticgetSettings()
Reduces the class's settings to an array and returns them
public
getSettings(mixed $settings) : mixed
Parameters
- $settings : mixed
Return values
mixed —The settings array
initialize()
Create a settings class
public
initialize() : mixed
options()
Loads default options or gets them from the db if they already exist
public
options(mixed $default) : mixed
Parameters
- $default : mixed
Return values
mixed —The options from the db or the defaults
set_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
Settings()
Gets the plugin settings
public
static Settings() : array<string|int, mixed>
Return values
array<string|int, mixed> —This plugin's settings class
reduceSettings()
Reduces all class vars into an array for saving or distribution
private
reduceSettings() : mixed