$template
$template :
The template itself
SmartTemplateParser Class Used by SmartTemplate Class
var_name(string $tag) : array
Splits Template-Style Variable Names into an Array-Name/Key-Name Components {example} : array( "_obj", "example" ) -> $_obj['example'] {example.value} : array( "_obj['example']", "value" ) -> $_obj['example']['value'] {example.0.value} : array( "_obj['example'][0]", "value" ) -> $_obj['example'][0]['value'] {top.example} : array( "_stack[0]", "example" ) -> $_stack[0]['example'] {parent.example} : array( "_stack[$_stack_cnt-1]", "example" ) -> $_stack[$_stack_cnt-1]['example'] {parent.parent.example} : array( "_stack[$_stack_cnt-2]", "example" ) -> $_stack[$_stack_cnt-2]['example']
string | $tag | Variale Name used in Template |
Array Name, Key Name
cmd_name(string $tag) : array
Determine Template Command from Variable Name {variable} : array( "echo", "variable" ) -> echo $_obj['variable'] {variable > new_name} : array( "_obj['new_name']=", "variable" ) -> $_obj['new_name']= $_obj['variable']
string | $tag | Variale Name used in Template |
Array Command, Variable