SLP_Experience_Activation
extends SLP_BaseClass_Activation
in package
Manage plugin activation.
Table of Contents
Properties
- $addon : SLP_BaseClass_Addon
- $myslp : MySLP
- $slplus : SLPlus
- $smartOptions : array<string|int, string>
- $updating_from : string
- $uses_myslp : bool
- $uses_slplus : bool
- $slug : mixed
- $smart_options : mixed
- Going to be SLP Smart Options now
- $something_changed : mixed
Methods
- __construct() : mixed
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- get_instance() : static
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- initialize() : mixed
- Things we do at startup.
- set_properties() : mixed
- Set our properties.
- update() : mixed
- Add extended data fields when updating.
- setup_smart_option() : mixed
- Override
- add_extended_data_fields() : mixed
- Add extended data fields used by this plugin.
Properties
$addon
public
SLP_BaseClass_Addon
$addon
$myslp
public
MySLP
$myslp
$slplus
public
SLPlus
$slplus
$smartOptions
public
array<string|int, string>
$smartOptions
A list of addon options converting to SmartOptions
$updating_from
public
string
$updating_from
The version of this add-on that was installed previously.
$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
$smart_options
Going to be SLP Smart Options now
protected
mixed
$smart_options
= array('add_tel_to_phone', 'address_placeholder', 'append_to_search', 'bubblelayout', 'first_entry_for_radius_selector', 'google_map_style', 'hide_bubble', 'hide_distance', 'hide_map', 'hide_search_form', 'label_for_find_button', 'label_for_map_toggle', 'label_for_name', 'layout', 'map_controls_subheader', 'map_options_scaleControl', 'map_options_mapTypeControl', 'map_initial_display', 'maplayout', 'name_placeholder', 'no_autozoom', 'no_homeicon_at_start', 'results_box_title', 'resultslayout', 'search_box_title', 'searchlayout', 'show_maptoggle', 'show_country', 'show_hours', 'starting_image', 'url_allow_address')
$something_changed
protected
mixed
$something_changed
= \false
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
boolget_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
staticinitialize()
Things we do at startup.
public
initialize() : mixed
set_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
update()
Add extended data fields when updating.
public
update() : mixed
setup_smart_option()
Override
protected
setup_smart_option(mixed $slug, mixed $value) : mixed
Parameters
- $slug : mixed
- $value : mixed
add_extended_data_fields()
Add extended data fields used by this plugin.
private
add_extended_data_fields() : mixed