Store Locator Plus®

SLP_Power_Cron extends SLPlus_BaseClass_Object
in package

The cron job processing class.

Table of Contents

Properties

$addon  : SLPPower
$messages  : SLPPower_Messages
$slplus  : SLPlus
$uses_slplus  : bool
$slplus  : mixed
$uses_slplus  : mixed
$addon  : mixed
$messages  : mixed

Methods

__construct()  : mixed
__get()  : SLPlus_BaseClass_Object
__isset()  : bool
geocode_locations()  : mixed
Start the location geocoding.
get_instance()  : SLPlus_BaseClass_Object
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
import_locations()  : mixed
Start the location import.
import_remote_locations()  : mixed
Import Remote Locations
make_bot_babies()  : mixed
Add our hooks that spin off bot babies.
schedule_one_time_job()  : mixed
Schedule a one-time import.
schedule_remote_file_retrieval()  : mixed
Schedule a remote locations file retrieval.
set_properties()  : mixed
Set our properties.
initialize()  : mixed
Do these things when this object is invoked. Override in your class.
connect_addon()  : mixed
Connnect the Power add on pointer and messages as needed.

Properties

$messages

public SLPPower_Messages $messages

The message stack for the current import operation.

$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_locations()

Start the location geocoding.

public geocode_locations(int $max_id) : mixed
Parameters
$max_id : 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

import_locations()

Start the location import.

public import_locations(int $attachment_id) : mixed
Parameters
$attachment_id : int
Tags
uses
SLP_Power_Locations_Import::import
used-by

\SLP_Power_Cron::make_bot_babies

import_remote_locations()

Import Remote Locations

public import_remote_locations(string $action, array<string|int, mixed> $params) : mixed
Parameters
$action : string

'import_csv'

$params : array<string|int, mixed>

the file_meta

Tags
used-by

\SLP_Power_Cron::make_bot_babies manages these cron calls:

make_bot_babies()

Add our hooks that spin off bot babies.

public make_bot_babies() : mixed
Tags
uses
SLP_Power_Cron::import_locations

for Cron hook slp_import_locations

schedule_one_time_job()

Schedule a one-time import.

public schedule_one_time_job(array<string|int, mixed> $file_meta) : mixed
Parameters
$file_meta : array<string|int, mixed>

schedule_remote_file_retrieval()

Schedule a remote locations file retrieval.

public schedule_remote_file_retrieval() : mixed
Tags
used-by

\SLP_Power_Cron::import_remote_locations

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

connect_addon()

Connnect the Power add on pointer and messages as needed.

private connect_addon() : mixed

        
On this page

Search results