Store Locator Plus®

SLP_Power_Admin_Locations_Actions extends SLPlus_BaseClass_Object
in package

Handle location actions.

Table of Contents

Properties

$addon  : mixed
$location_handler  : SLP_Power_Admin_Locations
$location_handler  : mixed
$offset  : int
$slp_action_handler  : SLP_Admin_Locations_Actions
$slp_action_handler  : mixed
$slplus  : SLPlus
$uses_slplus  : bool
$slplus  : mixed
$uses_slplus  : mixed
$offset  : mixed

Methods

__construct()  : mixed
__get()  : SLPlus_BaseClass_Object
__isset()  : bool
add_where_uncoded_to_sql()  : string
Setup the show uncoded filter for manage locations.
create_pages()  : WP_Error
Create Pages
get_instance()  : SLPlus_BaseClass_Object
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
process()  : mixed
Additional location processing on manage locations admin page.
set_properties()  : mixed
Set our properties.
set_taxonomy_for_location()  : array<string|int, mixed>
Set the Tagalong categories for the new store page.
update_category_and_page_id()  : mixed
Attach our category data to the update string.
initialize()  : mixed
Do these things when this object is invoked. Override in your class.
categorize_locations()  : mixed
Perform the manage locations action for bulk categorization.
delete_pages()  : mixed
Delete Pages
export_locations_to_local_csv_file()  : mixed
Export locations to a local CSV file that to be fetched manually.
tag_locations()  : mixed
Tag a location

Properties

$uses_slplus

public bool $uses_slplus

Set to true (default) if the object needs access to the SLPlus plugin object.

Methods

__construct()

public __construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
$options : array<string|int, mixed> = array()

__isset()

public __isset(string $property) : bool
Parameters
$property : string
Return values
bool

add_where_uncoded_to_sql()

Setup the show uncoded filter for manage locations.

public add_where_uncoded_to_sql(string $where) : string
Parameters
$where : string
Return values
string

create_pages()

Create Pages

public create_pages() : WP_Error
Tags
used-by

\SLP_Power_AJAX::create_page

used-by

\SLP_Power_Admin_Locations_Actions::process

Return values
WP_Error

| null

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_Object

process()

Additional location processing on manage locations admin page.

public process(string $action) : mixed
Parameters
$action : string

set_properties()

Set our properties.

public set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
$options : array<string|int, mixed> = array()

set_taxonomy_for_location()

Set the Tagalong categories for the new store page.

public set_taxonomy_for_location(array<string|int, mixed> $pageAttributes) : array<string|int, mixed>

SLP Filter: slp_location_page_attributes

Parameters
$pageAttributes : array<string|int, mixed>
  • the wp_insert_post page attributes
Return values
array<string|int, mixed>
  • pageAttributes with tax_input set

update_category_and_page_id()

Attach our category data to the update string.

public update_category_and_page_id() : mixed

Put it in the sl_option_value field as a seralized string.

Assumes currentLocation is set.

initialize()

Do these things when this object is invoked. Override in your class.

protected initialize() : mixed

export_locations_to_local_csv_file()

Export locations to a local CSV file that to be fetched manually.

private export_locations_to_local_csv_file() : mixed

        
On this page

Search results