SLP_Power_Admin_Locations_Import
extends SLP_Object_With_Objects
in package
The things that modify the Admin / Locations / Import UX.
Table of Contents
Constants
- subtab_slug = 'import'
Properties
- $addon : SLPPower
- $addon : mixed
- $class_prefix : string
- $dir : mixed
- $dir : string
- $objects : array<string|int, mixed>
- $settings : SLP_Settings
- $slplus : SLPlus
- $uses_slplus : bool
- $class_prefix : mixed
- $objects : mixed
- $slplus : mixed
- $uses_slplus : mixed
- $settings : mixed
Methods
- __construct() : mixed
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- add_object() : mixed
- create_import_subtab() : mixed
- Add the bulk upload form to add locations.
- get_instance() : SLPlus_BaseClass_Object
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- instantiate() : null|object
- Instantiate an object of the noted class.
- set_properties() : mixed
- Set our properties.
- at_startup() : mixed
- Things to do at startup after this baby is initialized. Override in your class.
- initialize() : mixed
- Connect our addon.
- set_default_object_options() : mixed
- Set default options for objects. Override in your class.
- augment_class() : string
- Augment the class names so we can reference simple property names.
- auto_instantiate() : mixed
- Any object with auto_instantiate set to true is instantiate during initialization.
- configure_javascript_variables() : mixed
- Configure the variables to be passed into the JavaScript code.
- create_string_cron_schedule() : string
- Get the cron schedule as a formatted HTML string.
- generate_recurring_import_card() : mixed
- get_html_for_scheduled_import_list() : string
- Get HTML cards to show scheduled data
- import_file_settings_group() : mixed
- File Settings Group
- import_messages_group() : mixed
- Import Messages Group
- import_remote_file_group() : mixed
- Remote File Retrieval Group
- import_schedule_group() : mixed
- Add the import messages group.
- new_import_upload_csv_group() : mixed
- Upload CSV Group
- status_bar() : mixed
- Create the import status bar.
Constants
subtab_slug
public
mixed
subtab_slug
= 'import'
Properties
$addon
public
SLPPower
$addon
$addon
public
mixed
$addon
$class_prefix
public
string
$class_prefix
the prefix that goes before all our classes
$dir
public
mixed
$dir
$dir
public
string
$dir
the root directory for this theme
$objects
public
array<string|int, mixed>
$objects
key = class name, array of attributes() auto_instantiate = true , instantiate the object when this object initializes object = the instantiated object options = default startup options subdir = the subdirectory (from theme root) that contains the class definition
$settings read-only
public
SLP_Settings
$settings
$slplus
public
SLPlus
$slplus
$uses_slplus
public
bool
$uses_slplus
Set to true (default) if the object needs access to the SLPlus plugin object.
$class_prefix
protected
mixed
$class_prefix
$objects
protected
mixed
$objects
= array()
$slplus
protected
mixed
$slplus
$uses_slplus
protected
mixed
$uses_slplus
= \true
$settings
private
mixed
$settings
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
booladd_object()
public
add_object( $object) : mixed
Parameters
create_import_subtab()
Add the bulk upload form to add locations.
public
create_import_subtab(SLP_Settings $settings) : mixed
Parameters
- $settings : SLP_Settings
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_Objectinstantiate()
Instantiate an object of the noted class.
public
instantiate(string $class[, array<string|int, mixed> $options = array() ]) : null|object
Parameters
- $class : string
- $options : array<string|int, mixed> = array()
Return values
null|objectset_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
at_startup()
Things to do at startup after this baby is initialized. Override in your class.
protected
at_startup() : mixed
initialize()
Connect our addon.
protected
final initialize() : mixed
set_default_object_options()
Set default options for objects. Override in your class.
protected
set_default_object_options() : mixed
augment_class()
Augment the class names so we can reference simple property names.
private
augment_class(string $class) : string
Parameters
- $class : string
Return values
stringauto_instantiate()
Any object with auto_instantiate set to true is instantiate during initialization.
private
auto_instantiate() : mixed
configure_javascript_variables()
Configure the variables to be passed into the JavaScript code.
private
configure_javascript_variables() : mixed
create_string_cron_schedule()
Get the cron schedule as a formatted HTML string.
private
create_string_cron_schedule() : string
Return values
stringgenerate_recurring_import_card()
private
generate_recurring_import_card( $meta) : mixed
Parameters
get_html_for_scheduled_import_list()
Get HTML cards to show scheduled data
private
get_html_for_scheduled_import_list() : string
Return values
stringimport_file_settings_group()
File Settings Group
private
import_file_settings_group(string $section_slug) : mixed
Parameters
- $section_slug : string
import_messages_group()
Import Messages Group
private
import_messages_group(string $section_slug) : mixed
Parameters
- $section_slug : string
import_remote_file_group()
Remote File Retrieval Group
private
import_remote_file_group(string $section_slug) : mixed
Parameters
- $section_slug : string
import_schedule_group()
Add the import messages group.
private
import_schedule_group(string $section_slug) : mixed
Parameters
- $section_slug : string
new_import_upload_csv_group()
Upload CSV Group
private
new_import_upload_csv_group(string $section_slug) : mixed
Parameters
- $section_slug : string
status_bar()
Create the import status bar.
private
status_bar() : mixed