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
string
tag name
array
list of tag attributes
mixed
optional parameter
mixed
optional parameter
mixed
optional parameter
string
compiled 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
string
tag name
array
array with tag attributes
array
array with compilation parameter
string
compiled codecompileTemplate(\Smarty_Internal_Template $template) : bool
bool
true if compiling succeeded, false if it failedgetPlugin($plugin_name, string $plugin_type) : string
string
type of plugin
string
call name of functiongetPluginFromDefaultHandler(string $tag, string $plugin_type) : boolean
string
name of tag
string
type of plugin
boolean
true 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.
string
content of template element
boolean
true if content is compiled code
string
contenttrigger_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
string
individual error message or null
string
line-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