class ChooseTag extends BaseTag (View source)

Traits

Properties

protected $node from  BaseTag
protected $store from  BaseTag

Methods

string
translate(string $text, string $pattern = '/[^{{\\}\\}]+(?=}})/')

No description

readAttr(string $name, $default = null)

No description

string
incExp(string $exp, int $step = 1)

No description

__construct(DOMNode $node, Store $store)

No description

from  BaseTag
string|null
handle()

No description

Details

string translate(string $text, string $pattern = '/[^{{\\}\\}]+(?=}})/')

No description

Parameters

string $text
string $pattern

Return Value

string

See also

https://stackoverflow.com/q/413071/2732184
https://www.regextester.com/97707

readAttr(string $name, $default = null)

No description

Parameters

string $name
$default

protected string incExp(string $exp, int $step = 1)

No description

Parameters

string $exp
int $step

Return Value

string

__construct(DOMNode $node, Store $store)

No description

Parameters

DOMNode $node
Store $store

string|null handle()

No description

Return Value

string|null