Class Smarty_Internal_TemplateCompilerBase
Main abstract compiler class
Direct known subclasses
Smarty_Internal_SmartyTemplateCompilerPackage: Smarty\Compiler
Author: Uwe Tews
Located at plugins/smarty/smarty_source/sysplugins/smarty_internal_templatecompilerbase.php
abstract protected
boolean
|
|
public
|
|
public
boolean
|
#
compileTemplate(
Method to compile a Smarty template |
public
string
|
#
compileTag( string $tag, array $args, array $parameter = array() )
Compile Tag This is a call back from the lexer/parser It executes the required compile plugin for the Smarty tag |
public
string
|
#
callTagCompiler( string $tag, array $args, mixed $param1 = null, mixed $param2 = null, mixed $param3 = null )
lazy loads internal compile plugin for tag and calls the compile method compile objects cached for reuse. class name format: Smarty_Internal_Compile_TagName plugin filename format: Smarty_Internal_Tagname.php |
public
string
|
|
public
boolean
|
#
getPluginFromDefaultHandler( string $tag, string $plugin_type )
Check for plugins by default plugin handler |
public
string
|
#
processNocacheCode( string $content, boolean $is_code )
Inject inline code for nocache template sections 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. |
public
|
|
public
|
|
public
|
#
trigger_template_error( string $args = null, string $line = null )
display compiler error messages without dying 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 |
private
mixed
|
$nocache_hash
hash for nocache sections |
#
null
|
public
boolean
|
$suppressNocacheProcessing
suppress generation of nocache code |
#
false
|
public
boolean
|
$suppressMergedTemplates
suppress generation of merged template code |
#
false
|
public static
array
|
$_tag_objects
compile tag objects |
#
array()
|
public
array
|
$_tag_stack
tag stack |
#
array()
|
public
|
$template
current template |
#
null
|
public
array
|
$merged_templates
merged templates |
#
array()
|
public
array
|
$sources
sources which must be compiled |
#
array()
|
public
boolean
|
$inheritance
flag that we are inside {block} |
#
false
|
public
boolean
|
$inheritance_child
flag when compiling inheritance child template |
#
false
|
public
array
|
$extends_uid
uid of templates called by {extends} for recursion check |
#
array()
|
public
integer
|
$trace_line_offset
source line offset for error messages |
#
0
|
public
string
|
$trace_uid
trace uid |
#
''
|
public
string
|
$trace_filepath
trace file path |
#
''
|
public
array
|
$trace_stack
stack for tracing file and line of nested {block} tags |
#
array()
|
public
array
|
$default_handler_plugins
plugins loaded by default plugin handler |
#
array()
|
public
mixed
|
$default_modifier_list
saved preprocessed modifier list |
#
null
|
public
boolean
|
$forceNocache
force compilation of complete template as nocache |
#
false
|
public
boolean
|
$suppressHeader
suppress Smarty header code in compiled template |
#
false
|
public
boolean
|
$suppressTemplatePropertyHeader
suppress template property header code in compiled template |
#
false
|
public
boolean
|
$suppressFilter
suppress pre and post filter |
#
false
|
public
boolean
|
$write_compiled_code
flag if compiled template file shall we written |
#
true
|
public
boolean
|
$compiles_template_function
flag if currently a template function is compiled |
#
false
|
public
array
|
$called_functions
called subfuntions from template function |
#
array()
|
public
array
|
$modifier_plugins
flags for used modifier plugins |
#
array()
|
public
array
|
$known_modifier_type
type of already compiled modifier |
#
array()
|