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
cron_hook
public
mixed
cron_hook
= 'slp_geocode_locations'
Properties
$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
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
boolgeocode()
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
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
intget_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_max_uncoded_id()
Get max uncoded slid
public
get_max_uncoded_id() : int
Return values
intset_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
start()
Start the Cron-based geocoding process.
public
start() : mixed
initialize()
Do these things when this object is invoked. Override in your class.
protected
initialize() : mixed
reset_last_geocoded_location()
Reset last geocoded location.
private
reset_last_geocoded_location() : mixed
respawn()
Respawn a single me, if I am not already in the spawning pool.
private
respawn(int $id) : false|int
CRON based import.
Parameters
- $id : int
Tags
Return values
false|intstop_processing()
Stop file processing, update meta.
private
stop_processing(int $id) : mixed
Parameters
- $id : int