class vB_TemplateParser_TagLiteral extends vB_TemplateParser_Tag

Methods

static array
validate(vB_DomNode $main_node, vB_TemplateParser $parser)

Validate the use of this tag. Can validate any aspects of the tag, including attributes, siblings, parents, and children

static string
compile(vB_DomNode $main_node, vB_TemplateParser $parser)

Compile this tag. Note that you must account for children as well.

static string
compileVar(string $main_var)

Compile / Convert dot notation variable into proper array syntax.

static 
validateVar($main_var, $allow_array = true)

No description

Details

at line 488
static array validate(vB_DomNode $main_node, vB_TemplateParser $parser)

Validate the use of this tag. Can validate any aspects of the tag, including attributes, siblings, parents, and children

Parameters

vB_DomNode $main_node DOM Node of type text
vB_TemplateParser $parser vB_TemplateParser object

Return Value

array Array of errors

at line 493
static string compile(vB_DomNode $main_node, vB_TemplateParser $parser)

Compile this tag. Note that you must account for children as well.

Parameters

vB_DomNode $main_node DOM Node of type text
vB_TemplateParser $parser vB_TemplateParser object

Return Value

string Evalable string

in vB_TemplateParser_Tag at line 55
static string compileVar(string $main_var)

Compile / Convert dot notation variable into proper array syntax.

e.g. myvar.element becomes $myvar['element']

Parameters

string $main_var raw string

Return Value

string coverted string

in vB_TemplateParser_Tag at line 84
static validateVar($main_var, $allow_array = true)

Parameters

$main_var
$allow_array