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
- $initialized : bool
- $our_options : mixed
- $our_options : array<string|int, string>
- $slplus : SLPlus
- $uses_slplus : bool
- $addon : mixed
- $slplus : mixed
- $uses_slplus : mixed
- $initialized : 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() : SLPlus_BaseClass_Object
- 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.
- 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.
- initialize() : mixed
- Do these things when this object is invoked. Override in your class.
- 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
$initialized read-only
public
bool
$initialized
Have our options been initialized
$our_options
public
mixed
$our_options
= array()
$our_options
public
array<string|int, string>
$our_options
The slugs for options that this add on manipulates
$slplus
public
SLPlus
$slplus
$uses_slplus
public
bool
$uses_slplus
Set to true (default) if the object needs access to the SLPlus plugin object.
$addon
protected
mixed
$addon
$slplus
protected
mixed
$slplus
$uses_slplus
protected
mixed
$uses_slplus
= \true
$initialized
private
mixed
$initialized
= \false
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( $key, $old_value, $new_value) : mixed
Parameters
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() ]) : SLPlus_BaseClass_Object
TODO: PHP7.4 and PHP8.0 the static instance variable returns an object matching $class TODO: PHP8.1 the static instance continually returns the FIRST object (SLP_Admin_Helper) every time -- it is like PHP8.1 static instance is bound to base_class-object versus the calling class object
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
SLPlus_BaseClass_Objectget_show_cats_on_search_items()
Get the dropdown selections for the category selector.
public
get_show_cats_on_search_items() : 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
initialize()
Do these things when this object is invoked. Override in your class.
protected
initialize() : 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