Properties

$enablePage

$enablePage : boolean

Type

boolean

Methods

getInstance()

getInstance() : static

The singleton pattern is useful when we need to make sure that we only have a single instance of a class for the entire request lifecycle in a Web application. This usually occurs when we have global objects (such as a configuration class) or a resource (Such as an event queue).

Returns

static

__clone()

__clone() 

Clone Not allowed

Throws

\MocaBonita\tools\MbException

__wakeup()

__wakeup() 

WakeUp Not allowed.

Throws

\MocaBonita\tools\MbException

isEnablePage()

isEnablePage() : boolean

Returns

boolean

shortCode()

shortCode(string  $shortcode, string|callable|mixed  $action) : \MocaBonita\tools\MbShortCode

Add a MbShortCode to MocaBonita

Parameters

string $shortcode
string|callable|mixed $action

Returns

\MocaBonita\tools\MbShortCode

__construct()

__construct() 

Singleton construct

init()

init() 

Method to be started