Store Locator Plus®

SLP_Power_Locations_Geocode extends SLPlus_BaseClass_Object
in package

Geocode Locations

Table of Contents

Constants

cron_hook  = 'slp_geocode_locations'

Properties

$slplus  : SLPlus
$uses_slplus  : bool
$slplus  : mixed
$uses_slplus  : mixed

Methods

__construct()  : mixed
__get()  : SLPlus_BaseClass_Object
__isset()  : bool
geocode()  : mixed
Geocode up to the max ID.
get_active_list()  : array<string|int, mixed>
Return a list of active location imports by attachment ID.
get_count_of_uncoded_locations()  : int
Get total count of uncoded IDs.
get_instance()  : SLPlus_BaseClass_Object
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
get_max_uncoded_id()  : int
Get max uncoded slid
set_properties()  : mixed
Set our properties.
start()  : mixed
Start the Cron-based geocoding process.
initialize()  : mixed
Do these things when this object is invoked. Override in your class.
reset_last_geocoded_location()  : mixed
Reset last geocoded location.
respawn()  : false|int
Respawn a single me, if I am not already in the spawning pool.
stop_processing()  : mixed
Stop file processing, update meta.

Constants

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

geocode()

Geocode up to the max ID.

public geocode(int $max_id) : mixed
Parameters
$max_id : int

highest location ID that was not geocoded

get_active_list()

Return a list of active location imports by attachment ID.

public get_active_list() : array<string|int, mixed>
Tags
used-by

\SLP_Power_REST_Handler::get_geocoding

Return values
array<string|int, mixed>

get_count_of_uncoded_locations()

Get total count of uncoded IDs.

public get_count_of_uncoded_locations() : int
Return values
int

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

set_properties()

Set our properties.

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

initialize()

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

protected initialize() : mixed

stop_processing()

Stop file processing, update meta.

private stop_processing(int $id) : mixed
Parameters
$id : int

        
On this page

Search results