SLP_Power_Options
extends SLP_AddOn_Options
in package
Manage the Power options, especially the Admin UI setting up the settings.
Table of Contents
Properties
- $addon : object
- $initialized : bool
- $myslp : MySLP
- $our_options : array<string|int, string>
- $slplus : SLPlus
- $uses_myslp : bool
- $uses_slplus : bool
- $slug : mixed
Methods
- __construct() : mixed
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- activate_contact_fields() : mixed
- Do this when the use contact fields checkbox has changed.
- flush_permalinks() : mixed
- Flush the permalinks.
- get_instance() : static
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- get_show_cats_on_search_items() : mixed
- Get the dropdown selections for the category selector.
- initialize() : mixed
- Things we do at the start.
- set_properties() : mixed
- Set our properties.
- update_location_pages_urls() : mixed
- Update ALL the pages_url in the locations table when permalink changed.
- attach_to_slp() : mixed
- Go and create the smart options.
- create_options() : mixed
- Create our options.
- augment_general_server_security() : mixed
- General / Server / Security
- augment_general_server_web_app() : mixed
- General | App | Features
- augment_settings_map_markers() : mixed
- Settings / Map / Markers
- augment_settings_results_appearance() : mixed
- Settings / Results / Appearance
- augment_settings_results_functionality() : mixed
- Settings / Results / Functionality
- augment_settings_search_appearance() : mixed
- Settings / Search / Appearance
- augment_system_wide_options() : mixed
- System wide (not directly settable) options.
- general_admin_messages() : mixed
- General | Admin | Messages
- pages_settings_appearance() : mixed
- Pages | Settings | Appearance
- pages_settings_behavior() : mixed
- Pages | Settings | Behavior
- search_labels() : mixed
- Settings | Search | Labels
- view_appearance() : mixed
- Settings | View | Appearance
Properties
$addon
public
object
$addon
$initialized read-only
public
bool
$initialized
Have our options been initialized
$myslp
public
MySLP
$myslp
$our_options
public
array<string|int, string>
$our_options
The slugs for options that this add on manipulates
$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
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
boolactivate_contact_fields()
Do this when the use contact fields checkbox has changed.
public
activate_contact_fields(mixed $key, mixed $old_value, mixed $new_value) : mixed
Parameters
- $key : mixed
- $old_value : mixed
- $new_value : mixed
flush_permalinks()
Flush the permalinks.
public
flush_permalinks() : 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
staticget_show_cats_on_search_items()
Get the dropdown selections for the category selector.
public
get_show_cats_on_search_items() : mixed
initialize()
Things we do at the start.
public
initialize() : mixed
set_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
update_location_pages_urls()
Update ALL the pages_url in the locations table when permalink changed.
public
update_location_pages_urls() : mixed
This makes daily operations MUCH faster but this can be a VERY SLOW process on sites with lots of locations.
attach_to_slp()
Go and create the smart options.
protected
attach_to_slp(array<string|int, mixed> $these_options[, array<string|int, mixed> $defaults = array() ]) : mixed
Parameters
- $these_options : array<string|int, mixed>
- $defaults : array<string|int, mixed> = array()
create_options()
Create our options.
protected
create_options() : mixed
augment_general_server_security()
General / Server / Security
private
augment_general_server_security() : mixed
augment_general_server_web_app()
General | App | Features
private
augment_general_server_web_app() : mixed
augment_settings_map_markers()
Settings / Map / Markers
private
augment_settings_map_markers() : mixed
augment_settings_results_appearance()
Settings / Results / Appearance
private
augment_settings_results_appearance() : mixed
augment_settings_results_functionality()
Settings / Results / Functionality
private
augment_settings_results_functionality() : mixed
augment_settings_search_appearance()
Settings / Search / Appearance
private
augment_settings_search_appearance() : mixed
augment_system_wide_options()
System wide (not directly settable) options.
private
augment_system_wide_options() : mixed
general_admin_messages()
General | Admin | Messages
private
general_admin_messages() : mixed
pages_settings_appearance()
Pages | Settings | Appearance
private
pages_settings_appearance() : mixed
pages_settings_behavior()
Pages | Settings | Behavior
private
pages_settings_behavior() : mixed
search_labels()
Settings | Search | Labels
private
search_labels() : mixed
view_appearance()
Settings | View | Appearance
private
view_appearance() : mixed