SLP_Power_Cron
extends SLPlus_BaseClass_Object
in package
The cron job processing class.
Table of Contents
Properties
- $addon : object
- $myslp : MySLP
- $slplus : SLPlus
- $uses_myslp : bool
- $uses_slplus : bool
- $slug : mixed
- $messages : mixed
Methods
- __construct() : mixed
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- geocode_locations() : mixed
- Start the location geocoding.
- get_instance() : static
- 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
$addon
public
object
$addon
$myslp
public
MySLP
$myslp
$slplus
public
SLPlus
$slplus
$uses_myslp
public
bool
$uses_myslp
Set to true to add a $myslp property pointing to global $myslp
$uses_slplus
public
bool
$uses_slplus
Set to true (default) if the object needs access to the SLPlus plugin object.
$slug
protected
mixed
$slug
$messages
private
mixed
$messages
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_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() ]) : static
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
staticimport_locations()
Start the location import.
public
import_locations(int $attachment_id) : mixed
Parameters
- $attachment_id : int
Tags
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
make_bot_babies()
Add our hooks that spin off bot babies.
public
make_bot_babies() : mixed
Tags
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
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