SLP® phpDocs

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

$smartOptions

public array<string|int, string> $smartOptions

A list of addon options converting to SmartOptions

$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.

$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')

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

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
static

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

        
On this page

Search results