SLPPower_Activation
extends SLP_BaseClass_Activation
in package
Manage plugin activation.
Table of Contents
Properties
- $addon : SLPPower
- $myslp : MySLP
- $slplus : SLPlus
- $updating_from : string
- $uses_myslp : bool
- $uses_slplus : bool
- $slug : mixed
- $smartOptions : mixed
- $something_changed : mixed
Methods
- __construct() : mixed
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- add_data_extensions() : mixed
- Add the contact fields.
- 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
- Update legacy settings.
- setup_smart_option() : mixed
- Setup Smart Options.
- create_MoreInfoTable() : mixed
- Install or update the main table
- dbupdater() : string
- Update the data structures on new db versions.
- install_reporting_tables() : mixed
- Install reporting tables
Properties
$addon
public
SLPPower
$addon
$myslp
public
MySLP
$myslp
$slplus
public
SLPlus
$slplus
$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
$smartOptions
protected
mixed
$smartOptions
= array('ajax_orderby_catcount', 'default_icons', 'hide_empty', 'label_category', 'log_import_messages', 'log_schedule_messages', 'permalink_flush_needed', 'reporting_enabled', 'show_cats_on_search', 'show_icon_array', 'show_legend_text', 'show_option_all', 'use_contact_fields', 'use_pages', 'use_nonces', 'use_sensor')
$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
booladd_data_extensions()
Add the contact fields.
public
add_data_extensions() : mixed
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
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()
Update legacy settings.
public
update() : mixed
setup_smart_option()
Setup Smart Options.
protected
setup_smart_option(mixed $slug, mixed $value) : mixed
Parameters
- $slug : mixed
- $value : mixed
create_MoreInfoTable()
Install or update the main table
private
create_MoreInfoTable() : mixed
Tags
dbupdater()
Update the data structures on new db versions.
private
dbupdater(string $sql, string $table_name) : string
Parameters
- $sql : string
- $table_name : string
Tags
Return values
stringinstall_reporting_tables()
Install reporting tables
private
install_reporting_tables() : mixed
Update the plugin version in config.php on every structure change.