This class does extend all internal compile plugins
| package | Smarty |
|---|---|
| subpackage | Compiler |
closeTag(object $compiler, array | string $expectedTag) : mixed
Raise an error if this stack-top doesn't match with expected opening tags
objectcompiler object
arraystringthe expected opening tag names
mixedany type the opening tag's name or saved datagetAttributes(object $compiler, array $attributes) : array
The attributes passed for the tag to compile are checked against the list of required and optional attributes. Required attributes must be present. Optional attributes are check against the corresponding list. The keyword '_any' specifies that any attribute will be accepted as valid
objectcompiler object
arrayattributes applied to the tag
arrayof mapped attributes for further processingopenTag(object $compiler, string $openTag, mixed $data)
Optionally additional data can be saved on stack
objectcompiler object
stringthe opening tag's name
mixedoptional data saved
$option_flags : array
$optional_attributes : array
$required_attributes : array
$shorttag_order : array