SLP_Premier_Category_UI
extends SLPlus_BaseClass_Object
in package
Add stuff to the Tagalong UI.
Table of Contents
Properties
- $addon : object
- $myslp : MySLP
- $slplus : SLPlus
- $uses_myslp : bool
- $uses_slplus : bool
- $slug : mixed
- $class : mixed
Methods
- __construct() : mixed
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- create_string_for_button_bar_selector() : string
- Create the button bar selector.
- create_string_for_single_parent_selector() : string
- Create the single parent selector.
- create_string_horizontal_checkboxes() : string
- Horizontal category checkboxes.
- create_string_vertical_checkboxes() : string
- Vertical category checkboxes.
- get_checklist() : string
- Generate the checklist HTML for categories.
- get_class() : mixed
- get_instance() : static
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- initialize() : mixed
- Init
- set_properties() : mixed
- Set our properties.
- get_div_html() : string
- Generate the checklist HTML for categories.
- get_label_html() : string
- Get the HTML for the label.
- get_taxonomy_query_args() : array<string|int, mixed>
- Set the arguments needed for a taxonomy query.
Properties
$addon
public
object
$addon
$myslp
public
MySLP
$myslp
$slplus
public
SLPlus
$slplus
$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
$class
private
mixed
$class
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
boolcreate_string_for_button_bar_selector()
Create the button bar selector.
public
static create_string_for_button_bar_selector(bool $has_label) : string
Show a button bar for categories.
Parameters
- $has_label : bool
Return values
stringcreate_string_for_single_parent_selector()
Create the single parent selector.
public
static create_string_for_single_parent_selector(bool $has_label) : string
Shows one drop down for each parent category. If no parents this is empty.
Parameters
- $has_label : bool
Return values
stringcreate_string_horizontal_checkboxes()
Horizontal category checkboxes.
public
static create_string_horizontal_checkboxes(bool $has_label) : string
Parameters
- $has_label : bool
Return values
stringcreate_string_vertical_checkboxes()
Vertical category checkboxes.
public
static create_string_vertical_checkboxes(bool $has_label) : string
Parameters
- $has_label : bool
Return values
stringget_checklist()
Generate the checklist HTML for categories.
public
get_checklist(string $class, bool $has_label) : string
Parameters
- $class : string
- $has_label : bool
Return values
stringget_class()
public
get_class() : 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()
Init
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()
get_div_html()
Generate the checklist HTML for categories.
private
get_div_html(bool $has_label, string $selector_html) : string
Parameters
- $has_label : bool
- $selector_html : string
Return values
stringget_label_html()
Get the HTML for the label.
private
get_label_html() : string
Return values
stringget_taxonomy_query_args()
Set the arguments needed for a taxonomy query.
private
get_taxonomy_query_args() : array<string|int, mixed>