SLP_UI_Shortcode
extends SLP_Base_Object
in package
AbstractYes
Class SLP_UI_Shortcode
Table of Contents
Constants
- shortcode = 'slp_ui'
Properties
- $ajax_response : array<string|int, mixed>
- $autoload_shortcode : bool
- $responses : array<string|int, mixed>
Methods
- __construct() : mixed
- SLP_Base_Object constructor.
- activate() : void
- Activate the shortcode processing.
- clear_ajax_response() : void
- Clear AJAX response.
- get_instance() : SLP_Base_Object
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- initialize() : void
- Do at startup.
- set_properties() : void
- Set our properties.
- process() : string
- set_ajax_response() : void
- Get location data if it would come back to JS via AJAX handler.
Constants
shortcode
public
mixed
shortcode
= 'slp_ui'
Properties
$ajax_response
protected
array<string|int, mixed>
$ajax_response
Tags
$autoload_shortcode
protected
bool
$autoload_shortcode
= \true
$responses
private
array<string|int, mixed>
$responses
Methods
__construct()
SLP_Base_Object constructor.
public
__construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
activate()
Activate the shortcode processing.
public
final activate() : void
clear_ajax_response()
Clear AJAX response.
public
final clear_ajax_response() : void
get_instance()
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
public
static get_instance([null|array<string|int, mixed> $options = array() ]) : SLP_Base_Object
Parameters
- $options : null|array<string|int, mixed> = array()
-
object init params
Return values
SLP_Base_Objectinitialize()
Do at startup.
public
final initialize() : void
set_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : void
Parameters
- $options : array<string|int, mixed> = array()
process()
protected
process(array<string|int, mixed> $attributes, string $content, string $tag) : string
Parameters
- $attributes : array<string|int, mixed>
- $content : string
- $tag : string
Tags
Return values
stringset_ajax_response()
Get location data if it would come back to JS via AJAX handler.
protected
final set_ajax_response() : void