vBulletin v6.1.0

vB_Utility_Template_Parser
in package
uses vB_Utility_Trait_NoSerialize

Parser for the vB Template Language. Produces PHP code that generates the proper html

Table of Contents

Properties

$outputVar  : string

Methods

__construct()  : mixed
Constructor.
__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
_parse_nodes()  : string
Parse an array of nodes. Append the output to a variable in order of occurrance.
compile()  : string
Compile the template into PHP Code
getOption()  : mixed
validate()  : array<string|int, mixed>
Validate the text for invalid tag nesting and usage (eg, an elseif after an else).

Properties

$outputVar

public string $outputVar = '$final_rendered'

Methods

__construct()

Constructor.

public __construct(string $text, array<string|int, mixed>|bool $allowedTags, array<string|int, mixed>|bool $allowedCurlies[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$text : string
$allowedTags : array<string|int, mixed>|bool
$allowedCurlies : array<string|int, mixed>|bool
$options : array<string|int, mixed> = []

__serialize()

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

__sleep()

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

__unserialize()

public __unserialize(mixed $serialized) : void
Parameters
$serialized : mixed

_parse_nodes()

Parse an array of nodes. Append the output to a variable in order of occurrance.

public _parse_nodes(array<string|int, mixed> $nodes) : string
Parameters
$nodes : array<string|int, mixed>
Return values
string

Outputtable string

compile()

Compile the template into PHP Code

public compile() : string
Return values
string

-- PHP code represenation fo the template

getOption()

public getOption(string $option) : mixed
Parameters
$option : string

validate()

Validate the text for invalid tag nesting and usage (eg, an elseif after an else).

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

-- validation errors found.


        
On this page

Search results