SLP_Power_Admin_Locations
extends SLPlus_BaseClass_Object
in package
The things that modify the Admin / Locations UX for power, adding import subtab, tweaking the add form.
Table of Contents
Properties
- $addon : mixed
- $import_subtab : mixed
- $slplus : SLPlus
- $uses_slplus : bool
- $slplus : mixed
- $uses_slplus : mixed
- $settings : mixed
Methods
- __construct() : mixed
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- action_ManageLocations_ByProperty() : string
- Filter the manage locations list by property matches in the filter form.
- add_location_tab_panels() : mixed
- Add the panels to the location tab including the import subtab and filters on the list locations subtab.
- extend_bulk_actions() : array<string|int, mixed>
- Add more actions to the Bulk Action drop down on the admin Locations/Manage Locations interface.
- get_instance() : SLPlus_BaseClass_Object
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- handle_actions() : mixed
- Additional location processing on manage locations admin page.
- initialize() : mixed
- Start things for admin locations.
- modify_add_form() : mixed
- Extend the edit location form to show store pages data.
- modify_script_data() : array<string|int, mixed>
- Modify the manage locations localized script data.
- set_properties() : mixed
- Set our properties.
- create_LocationFilterInputArray() : array<string|int, string>
- Create an array of location filter inputs from $_REQUEST.
- create_object_locations_import_subtab() : mixed
- Create and attach the admin locations import object.
Properties
$addon
public
mixed
$addon
$import_subtab
public
mixed
$import_subtab
$slplus
public
SLPlus
$slplus
$uses_slplus
public
bool
$uses_slplus
Set to true (default) if the object needs access to the SLPlus plugin object.
$slplus
protected
mixed
$slplus
$uses_slplus
protected
mixed
$uses_slplus
= \true
$settings
private
mixed
$settings
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
boolaction_ManageLocations_ByProperty()
Filter the manage locations list by property matches in the filter form.
public
action_ManageLocations_ByProperty(string $where) : string
Parameters
- $where : string
Return values
stringadd_location_tab_panels()
Add the panels to the location tab including the import subtab and filters on the list locations subtab.
public
add_location_tab_panels(SLP_Settings $settings) : mixed
Parameters
- $settings : SLP_Settings
Tags
extend_bulk_actions()
Add more actions to the Bulk Action drop down on the admin Locations/Manage Locations interface.
public
extend_bulk_actions(array<string|int, mixed> $dropdownItems) : array<string|int, mixed>
Parameters
- $dropdownItems : array<string|int, mixed>
Tags
Return values
array<string|int, 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_Objecthandle_actions()
Additional location processing on manage locations admin page.
public
handle_actions(mixed $slp_action_handler) : mixed
Parameters
- $slp_action_handler : mixed
initialize()
Start things for admin locations.
public
initialize() : mixed
modify_add_form()
Extend the edit location form to show store pages data.
public
modify_add_form() : mixed
modify_script_data()
Modify the manage locations localized script data.
public
modify_script_data(array<string|int, mixed> $script_data) : array<string|int, mixed>
Parameters
- $script_data : array<string|int, mixed>
Return values
array<string|int, mixed>set_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
create_LocationFilterInputArray()
Create an array of location filter inputs from $_REQUEST.
private
create_LocationFilterInputArray() : array<string|int, string>
Return values
array<string|int, string> —named array
create_object_locations_import_subtab()
Create and attach the admin locations import object.
private
create_object_locations_import_subtab() : mixed