SLP_Admin_General
extends SLP_Object_With_Objects
in package
Store Locator Plus General Settings Interface
Table of Contents
Properties
- $addon : object
- $Admin_General_Text : SLP_Admin_General_Text
- $class_prefix : string
- $dir : string
- $Message_Manager : SLP_Message_Manager
- $myslp : MySLP
- $Settings : SLP_Settings
- $slplus : SLPlus
- $uses_myslp : bool
- $uses_slplus : bool
- $objects : mixed
- $slug : mixed
Methods
- __construct() : mixed
- __get() : mixed
- Get the value, running it through a filter.
- __isset() : bool
- Allow isset to be called on private properties.
- add_object() : mixed
- add_premium_subscription_settings() : mixed
- Add Premium Subscription section to settings page.
- build_admin_tab() : mixed
- Build the admin tab.
- build_app_tab() : mixed
- Build the app (was server) tab.
- build_schedule_tab() : mixed
- Add the schedule messages group.
- build_user_interface_tab() : mixed
- Build the User Settings Panel
- display() : mixed
- Render the map settings admin page.
- get_instance() : static
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- instantiate() : null|object
- Instantiate an object of the noted class.
- save_options() : mixed
- Execute the save settings action.
- set_properties() : mixed
- Set our properties.
- at_startup() : mixed
- Things to do at startup after this baby is initialized. Override in your class.
- initialize() : mixed
- Set the dir property.
- set_default_object_options() : mixed
- Set our object options.
- add_admin_add_on_packs_group() : mixed
- Add Admin Add On Packs group
- add_admin_locations_group() : mixed
- Add the Admin Locations Group
- add_network_aware_addon_settings() : mixed
- Add on settings with multisite awareness. Display different things depend on the WP mode.
Properties
$addon
public
object
$addon
$Admin_General_Text
public
SLP_Admin_General_Text
$Admin_General_Text
$class_prefix
public
string
$class_prefix
the prefix that goes before all our classes
$dir
public
string
$dir
the root directory for this theme
$Message_Manager
public
SLP_Message_Manager
$Message_Manager
$myslp
public
MySLP
$myslp
$Settings
public
SLP_Settings
$Settings
$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.
$objects
protected
mixed
$objects
= array('Admin_General_Text' => array('auto_instantiate' => \true, 'subdir' => 'include/module/admin/'), 'Message_Manager' => array('auto_instantiate' => \true, 'subdir' => 'include/module/message/'), 'Settings' => array('auto_instantiate' => \true, 'subdir' => 'include/module/settings/'))
$slug
protected
mixed
$slug
Methods
__construct()
public
__construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
__get()
Get the value, running it through a filter.
public
__get(string $property) : mixed
Parameters
- $property : string
Return values
mixed —null if not set or the value
__isset()
Allow isset to be called on private properties.
public
__isset(mixed $property) : bool
Parameters
- $property : mixed
Return values
booladd_object()
public
add_object(mixed $object) : mixed
Parameters
- $object : mixed
add_premium_subscription_settings()
Add Premium Subscription section to settings page.
public
add_premium_subscription_settings(array<string|int, mixed> $group_params) : mixed
Parameters
- $group_params : array<string|int, mixed>
build_admin_tab()
Build the admin tab.
public
build_admin_tab() : mixed
build_app_tab()
Build the app (was server) tab.
public
build_app_tab() : mixed
build_schedule_tab()
Add the schedule messages group.
public
build_schedule_tab(SLP_Settings $settings) : mixed
Parameters
- $settings : SLP_Settings
build_user_interface_tab()
Build the User Settings Panel
public
build_user_interface_tab() : mixed
display()
Render the map settings admin page.
public
display() : 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
staticinstantiate()
Instantiate an object of the noted class.
public
instantiate(string $class[, array<string|int, mixed> $options = array() ]) : null|object
Parameters
- $class : string
- $options : array<string|int, mixed> = array()
Return values
null|objectsave_options()
Execute the save settings action.
public
save_options() : mixed
set_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
at_startup()
Things to do at startup after this baby is initialized. Override in your class.
protected
at_startup() : mixed
NOTE: this will not run at initialization if $this->objects is empty.
initialize()
Set the dir property.
protected
initialize() : mixed
Fires from \SLPlus_BaseClass_Object::__construct
set_default_object_options()
Set our object options.
protected
set_default_object_options() : mixed
add_admin_add_on_packs_group()
Add Admin Add On Packs group
private
add_admin_add_on_packs_group(string $section_slug) : mixed
Parameters
- $section_slug : string
add_admin_locations_group()
Add the Admin Locations Group
private
add_admin_locations_group(string $section_slug) : mixed
Parameters
- $section_slug : string
add_network_aware_addon_settings()
Add on settings with multisite awareness. Display different things depend on the WP mode.
private
add_network_aware_addon_settings(mixed $group_params) : mixed
Parameters
- $group_params : mixed