Documentation

Shortcode_Controller
in package

Shortcode Controller

Tags
subpackage

Shortcode

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

Properties

$instance  : mixed
The singleton instances.
$_shortcodeNames  : mixed
Array of Shortcodes' names
$_shortcodes  : mixed
Array of Shortcodes

Methods

addStrTab()  : string
Add double tab to the left
applyShortcodes()  : string
Apply Shortcode
getCount()  : int
Get Count of Shortcodes
getShortcodes()  : array<string|int, mixed>
Get List of Shortcodes
instance()  : object
Register an existing instance as a singleton.
loadShortcodes()  : mixed
Load List of Shortcodes
prepareCallShortcode()  : string
Prepare body and args to call shortcode
rebuild()  : self
Rebuild Shortcode List

Properties

$instance

The singleton instances.

public static mixed $instance = \NULL

$_shortcodeNames

Array of Shortcodes' names

protected mixed $_shortcodeNames = \NULL

$_shortcodes

Array of Shortcodes

protected mixed $_shortcodes = array()

Methods

addStrTab()

Add double tab to the left

public static addStrTab(string $str) : string
Parameters
$str : string
Return values
string

applyShortcodes()

Apply Shortcode

public applyShortcodes(string $string) : string
Parameters
$string : string
Return values
string

getCount()

Get Count of Shortcodes

public getCount() : int
Return values
int

getShortcodes()

Get List of Shortcodes

public getShortcodes() : array<string|int, mixed>
Return values
array<string|int, mixed>

instance()

Register an existing instance as a singleton.

public static instance() : object
Return values
object

loadShortcodes()

Load List of Shortcodes

public loadShortcodes() : mixed

prepareCallShortcode()

Prepare body and args to call shortcode

public static prepareCallShortcode(array<string|int, mixed> $matches) : string
Parameters
$matches : array<string|int, mixed>
Return values
string

rebuild()

Rebuild Shortcode List

public rebuild() : self
Return values
self

        
On this page

Search results