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
object
compiler object
array
string
the expected opening tag names
mixed
any 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
object
compiler object
array
attributes applied to the tag
array
of mapped attributes for further processingopenTag(object $compiler, string $openTag, mixed $data)
Optionally additional data can be saved on stack
object
compiler object
string
the opening tag's name
mixed
optional data saved
$option_flags : array
$optional_attributes : array
$required_attributes : array
$shorttag_order : array