$required_attributes
$required_attributes : array
Attribute definition: Overwrites base class.
Smarty Internal Plugin Compile extend Class
registerInit(\Smarty_Internal_TemplateCompilerBase $compiler, boolean|false $initChildSequence = false)
Register post compile callback to compile inheritance initialization code
\Smarty_Internal_TemplateCompilerBase | $compiler | |
boolean|false | $initChildSequence | if true force child template |
postCompile(\Smarty_Internal_TemplateCompilerBase $compiler, boolean|false $initChildSequence = false)
Compile inheritance initialization code as prefix
\Smarty_Internal_TemplateCompilerBase | $compiler | |
boolean|false | $initChildSequence | if true force child template |
getAttributes(object $compiler, array $attributes) : array
This function checks if the attributes passed are valid 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 | compiler object |
array | $attributes | attributes applied to the tag |
of mapped attributes for further processing
closeTag(object $compiler, array|string $expectedTag) : mixed
Pop closing tag Raise an error if this stack-top doesn't match with expected opening tags
object | $compiler | compiler object |
array|string | $expectedTag | the expected opening tag names |
any type the opening tag's name or saved data
compile(array $args, \Smarty_Internal_TemplateCompilerBase $compiler) : string
Compiles code for the {extends} tag extends: resource
array | $args | array with attributes from parser |
\Smarty_Internal_TemplateCompilerBase | $compiler | compiler object |
compiled code
compileEndChild(\Smarty_Internal_TemplateCompilerBase $compiler, null|string $template = null)
Add code for inheritance endChild() method to end of template
\Smarty_Internal_TemplateCompilerBase | $compiler | |
null|string | $template | optional inheritance parent template |
compileInclude(\Smarty_Internal_TemplateCompilerBase $compiler, string $template)
Add code for including subtemplate to end of template
\Smarty_Internal_TemplateCompilerBase | $compiler | |
string | $template | subtemplate name |