Main abstract compiler class
| package | Smarty |
|---|---|
| subpackage | Compiler |
__construct()
callTagCompiler(string $tag, array $args, mixed $param1, mixed $param2, mixed $param3) : string
compile objects cached for reuse. class name format: Smarty_Internal_Compile_TagName plugin filename format: Smarty_Internal_Tagname.php
stringtag name
arraylist of tag attributes
mixedoptional parameter
mixedoptional parameter
mixedoptional parameter
stringcompiled codecompileTag(string $tag, array $args, array $parameter) : string
This is a call back from the lexer/parser It executes the required compile plugin for the Smarty tag
stringtag name
arrayarray with tag attributes
arrayarray with compilation parameter
stringcompiled codecompileTemplate(\Smarty_Internal_Template $template) : bool
booltrue if compiling succeeded, false if it failedgetPlugin($plugin_name, string $plugin_type) : string
stringtype of plugin
stringcall name of functiongetPluginFromDefaultHandler(string $tag, string $plugin_type) : boolean
stringname of tag
stringtype of plugin
booleantrue if foundprocessNocacheCode(string $content, boolean $is_code) : string
This method gets the content of each template element from the parser. If the content is compiled code and it should be not cached the code is injected into the rendered output.
stringcontent of template element
booleantrue if content is compiled code
stringcontenttrigger_template_error(string $args, string $line)
If parameter $args is empty it is a parser detected syntax error. In this case the parser is called to obtain information about expected tokens.
If parameter $args contains a string this is used as error message
stringindividual error message or null
stringline-number
\SmartyCompilerException |
when an unexpected token is found |
|---|
$_tag_objects : array
$_tag_stack : array
$called_functions : array
$compiles_template_function : bool
$default_handler_plugins : array
$default_modifier_list : mixed
$forceNocache : boolean
$inheritance : bool
$known_modifier_type : array
$merged_templates : array
$modifier_plugins : array
$suppressHeader : bool
$suppressMergedTemplates : bool
$suppressNocacheProcessing : bool
$suppressTemplatePropertyHeader : bool
$template : \Smarty_Internal_Template
$write_compiled_code : bool
$nocache_hash : mixed