MySLP_Categories
extends SLPlus_BaseClass_Object
in package
Categories class. This only runs if SLP Power is active
Tags
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
$slplus
public
SLPlus
$slplus
$uses_slplus
public
bool
$uses_slplus
Set to true (default) if the object needs access to the SLPlus plugin object.
$slplus
protected
mixed
$slplus
$uses_slplus
protected
mixed
$uses_slplus
= \true
$addon
private
mixed
$addon
$power
private
mixed
$power
$screen
private
mixed
$screen
$sub_panel
private
mixed
$sub_panel
$title
private
mixed
$title
$walker
private
mixed
$walker
Methods
__construct()
Class constructor
public
__construct(mixed $data) : mixed
Parameters
- $data : mixed
Tags
__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_hooks_and_filters()
Admin hook, enqueue and localized script
public
add_hooks_and_filters() : mixed
Tags
display()
Display the markup for Categories
public
display() : mixed
Tags
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_Objectset_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
add_fields()
Display the form content based on name param for Categories page
private
add_fields(mixed $name) : mixed
Parameters
- $name : mixed
Tags
add_forms()
Add forms for sub content
private
add_forms() : mixed
Tags
add_main_panel()
Display the main title for Categories page
private
add_main_panel() : mixed
Tags
add_sub_panel()
Display the submenu for Categories page
private
add_sub_panel() : mixed
Tags
myslp_walker()
private
myslp_walker() : mixed