Store Locator Plus®

MySLP_Categories extends SLPlus_BaseClass_Object
in package

Categories class. This only runs if SLP Power is active

Tags
since
1.3.7

Table of Contents

Properties

$slplus  : SLPlus
$uses_slplus  : bool
$slplus  : mixed
$uses_slplus  : mixed
$addon  : mixed
$power  : mixed
$screen  : mixed
$sub_panel  : mixed
$title  : mixed
$walker  : mixed

Methods

__construct()  : mixed
Class constructor
__get()  : SLPlus_BaseClass_Object
__isset()  : bool
add_hooks_and_filters()  : mixed
Admin hook, enqueue and localized script
display()  : mixed
Display the markup for Categories
get_instance()  : SLPlus_BaseClass_Object
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
set_properties()  : mixed
Set our properties.
initialize()  : mixed
Do these things when this object is invoked. Override in your class.
add_content()  : mixed
Display the submenu content for Categories page
add_fields()  : mixed
Display the form content based on name param for Categories page
add_forms()  : mixed
Add forms for sub content
add_main_panel()  : mixed
Display the main title for Categories page
add_sub_panel()  : mixed
Display the submenu for Categories page
myslp_walker()  : mixed

Properties

$uses_slplus

public bool $uses_slplus

Set to true (default) if the object needs access to the SLPlus plugin object.

Methods

__construct()

Class constructor

public __construct(mixed $data) : mixed
Parameters
$data : mixed
Tags
since
1.3.7

__isset()

public __isset(string $property) : bool
Parameters
$property : string
Return values
bool

add_hooks_and_filters()

Admin hook, enqueue and localized script

public add_hooks_and_filters() : mixed
Tags
since
1.3.7

display()

Display the markup for Categories

public display() : mixed
Tags
since
1.3.7

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_Object

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

add_content()

Display the submenu content for Categories page

private add_content() : mixed
Tags
since
1.3.7

add_fields()

Display the form content based on name param for Categories page

private add_fields(mixed $name) : mixed
Parameters
$name : mixed
Tags
since
1.3.7

add_forms()

Add forms for sub content

private add_forms() : mixed
Tags
since
1.3.7

add_main_panel()

Display the main title for Categories page

private add_main_panel() : mixed
Tags
since
1.3.7

add_sub_panel()

Display the submenu for Categories page

private add_sub_panel() : mixed
Tags
since
1.3.7

        
On this page

Search results