Öffentliche Methoden | |
__construct () | |
compileTemplate (Smarty_Internal_Template $template, $nocache=null, $parent_compiler=null) | |
compileTag ($tag, $args, $parameter=array()) | |
compileVariable ($variable) | |
processText ($text) | |
callTagCompiler ($tag, $args, $param1=null, $param2=null, $param3=null) | |
getPlugin ($plugin_name, $plugin_type) | |
getPluginFromDefaultHandler ($tag, $plugin_type) | |
appendCode ($left, $right) | |
processNocacheCode ($content, $is_code) | |
makeNocacheCode ($code) | |
pushTrace ($file, $uid, $line, $debug=true) | |
popTrace () | |
trigger_template_error ($args=null, $line=null) | |
Statische öffentliche Attribute | |
static | $_tag_objects = array() |
Geschützte Methoden | |
doCompile ($_content) | |
Private Methoden | |
compileTag2 ($tag, $args, $parameter) | |
Definiert in Zeile 18 der Datei smarty_internal_templatecompilerbase.php.
__construct | ( | ) |
Initialize compiler
Definiert in Zeile 313 der Datei smarty_internal_templatecompilerbase.php.
appendCode | ( | $left, | |
$right | |||
) |
Append code segments and remove unneeded ?> <?php transitions
string | $left | |
string | $right |
Definiert in Zeile 874 der Datei smarty_internal_templatecompilerbase.php.
callTagCompiler | ( | $tag, | |
$args, | |||
$param1 = null , |
|||
$param2 = null , |
|||
$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
string | $tag | tag name |
array | $args | list of tag attributes |
mixed | $param1 | optional parameter |
mixed | $param2 | optional parameter |
mixed | $param3 | optional parameter |
Definiert in Zeile 741 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von compileTag2().
compileTag | ( | $tag, | |
$args, | |||
$parameter = array() |
|||
) |
Compile Tag This is a call back from the lexer/parser
Save current prefix code Compile tag Merge tag prefix code with saved one (required nested tags in attributes)
string | $tag | tag name |
array | $args | array with tag attributes |
array | $parameter | array with compilation parameter |
SmartyCompilerException | |
SmartyException |
Definiert in Zeile 453 der Datei smarty_internal_templatecompilerbase.php.
Benutzt $prefix_code und compileTag2().
|
private |
Compile Tag
string | $tag | tag name |
array | $args | array with tag attributes |
array | $parameter | array with compilation parameter |
SmartyCompilerException | |
SmartyException |
Definiert in Zeile 473 der Datei smarty_internal_templatecompilerbase.php.
Benutzt callTagCompiler(), getPlugin(), getPluginFromDefaultHandler(), Smarty\PLUGIN_BLOCK, Smarty\PLUGIN_COMPILER, Smarty\PLUGIN_FUNCTION und trigger_template_error().
Wird benutzt von compileTag().
compileTemplate | ( | Smarty_Internal_Template | $template, |
$nocache = null , |
|||
$parent_compiler = null |
|||
) |
Method to compile a Smarty template
Smarty_Internal_Template | $template | template object to compile |
bool | $nocache | true is shall be compiled in nocache mode |
null | Smarty_Internal_TemplateCompilerBase | $parent_compiler |
Definiert in Zeile 327 der Datei smarty_internal_templatecompilerbase.php.
Benutzt $nocache, $nocache_hash, $parent_compiler, $template, $templateFunctionCode, Smarty_Internal_Extension_CodeFrame\create(), doCompile(), Smarty_Internal_Debug\end_compile(), Smarty_Internal_Filter_Handler\runFilter(), Smarty\SMARTY_VERSION und Smarty_Internal_Debug\start_compile().
compileVariable | ( | $variable) |
compile variable
string | $variable |
Definiert in Zeile 698 der Datei smarty_internal_templatecompilerbase.php.
Benutzt $nocache.
|
abstractprotected |
method to compile a Smarty template
mixed | $_content | template source |
Wird benutzt von compileTemplate().
getPlugin | ( | $plugin_name, | |
$plugin_type | |||
) |
Check for plugins and return function name
$plugin_name | ||
string | $plugin_type | type of plugin |
Definiert in Zeile 770 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von compileTag2().
getPluginFromDefaultHandler | ( | $tag, | |
$plugin_type | |||
) |
Check for plugins by default plugin handler
string | $tag | name of tag |
string | $plugin_type | type of plugin |
Definiert in Zeile 829 der Datei smarty_internal_templatecompilerbase.php.
Benutzt trigger_template_error().
Wird benutzt von compileTag2().
makeNocacheCode | ( | $code) |
Generate nocache code string
string | $code | PHP code |
Definiert in Zeile 933 der Datei smarty_internal_templatecompilerbase.php.
popTrace | ( | ) |
restore file and line offset
Definiert in Zeile 963 der Datei smarty_internal_templatecompilerbase.php.
processNocacheCode | ( | $content, | |
$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.
string | $content | content of template element |
boolean | $is_code | true if content is compiled code |
Definiert in Zeile 896 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von Smarty_Internal_Compile_Private_Php\compile().
processText | ( | $text) |
This method is called from parser to process a text content section
string | $text |
Definiert in Zeile 718 der Datei smarty_internal_templatecompilerbase.php.
pushTrace | ( | $file, | |
$uid, | |||
$line, | |||
$debug = true |
|||
) |
push current file and line offset on stack for tracing {block} source lines
string | $file | new filename |
string | $uid | uid of file |
int | $line | line offset to source |
bool | $debug | false debug end_compile shall not be called |
Definiert in Zeile 946 der Datei smarty_internal_templatecompilerbase.php.
trigger_template_error | ( | $args = null , |
|
$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
string | $args | individual error message or null |
string | $line | line-number |
SmartyCompilerException | when an unexpected token is found |
Definiert in Zeile 989 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von Smarty_Internal_Compile_Private_Php\compile(), compileTag2(), Smarty_Internal_SmartyTemplateCompiler\doCompile() und getPluginFromDefaultHandler().
|
static |
Definiert in Zeile 47 der Datei smarty_internal_templatecompilerbase.php.
$_tag_stack = array() |
Definiert in Zeile 54 der Datei smarty_internal_templatecompilerbase.php.
$abort_and_recompile = false |
Definiert in Zeile 257 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von Smarty_Internal_SmartyTemplateCompiler\doCompile().
$called_functions = array() |
Definiert in Zeile 201 der Datei smarty_internal_templatecompilerbase.php.
$compiles_template_function = false |
Definiert in Zeile 194 der Datei smarty_internal_templatecompilerbase.php.
$default_handler_plugins = array() |
Definiert in Zeile 145 der Datei smarty_internal_templatecompilerbase.php.
$default_modifier_list = null |
Definiert in Zeile 152 der Datei smarty_internal_templatecompilerbase.php.
$extends_uid = array() |
Definiert in Zeile 110 der Datei smarty_internal_templatecompilerbase.php.
$forceNocache = false |
Definiert in Zeile 159 der Datei smarty_internal_templatecompilerbase.php.
$has_code = false |
Definiert in Zeile 278 der Datei smarty_internal_templatecompilerbase.php.
$has_output = false |
Definiert in Zeile 292 der Datei smarty_internal_templatecompilerbase.php.
$has_variable_string = false |
Definiert in Zeile 285 der Datei smarty_internal_templatecompilerbase.php.
$inheritance = false |
Definiert in Zeile 96 der Datei smarty_internal_templatecompilerbase.php.
$inheritance_child = false |
Definiert in Zeile 103 der Datei smarty_internal_templatecompilerbase.php.
$known_modifier_type = array() |
Definiert in Zeile 229 der Datei smarty_internal_templatecompilerbase.php.
$mergedSubTemplatesCode = array() |
Definiert in Zeile 75 der Datei smarty_internal_templatecompilerbase.php.
$mergedSubTemplatesData = array() |
Definiert in Zeile 68 der Datei smarty_internal_templatecompilerbase.php.
$modifier_plugins = array() |
Definiert in Zeile 222 der Datei smarty_internal_templatecompilerbase.php.
$nocache = false |
Definiert in Zeile 243 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von compileTemplate() und compileVariable().
$nocache_hash = null |
Definiert in Zeile 33 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von compileTemplate().
$parent_compiler = null |
Definiert in Zeile 236 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von compileTemplate().
$php_handling = 0 |
Definiert in Zeile 215 der Datei smarty_internal_templatecompilerbase.php.
$prefix_code = array() |
Definiert in Zeile 264 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von compileTag().
$prefixCodeStack = array() |
Definiert in Zeile 271 der Datei smarty_internal_templatecompilerbase.php.
$smarty = null |
Definiert in Zeile 26 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von Smarty_Internal_SmartyTemplateCompiler\__construct().
$sources = array() |
Definiert in Zeile 89 der Datei smarty_internal_templatecompilerbase.php.
$stripRegEx = '![\t ]*[\r\n]+[\t ]*!' |
Definiert in Zeile 299 der Datei smarty_internal_templatecompilerbase.php.
$suppressFilter = false |
Definiert in Zeile 180 der Datei smarty_internal_templatecompilerbase.php.
$suppressHeader = false |
Definiert in Zeile 166 der Datei smarty_internal_templatecompilerbase.php.
$suppressNocacheProcessing = false |
Definiert in Zeile 40 der Datei smarty_internal_templatecompilerbase.php.
$suppressTemplatePropertyHeader = false |
Definiert in Zeile 173 der Datei smarty_internal_templatecompilerbase.php.
$tag_nocache = false |
Definiert in Zeile 250 der Datei smarty_internal_templatecompilerbase.php.
$template = null |
Definiert in Zeile 61 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von compileTemplate().
$templateFunctionCode = '' |
Definiert in Zeile 208 der Datei smarty_internal_templatecompilerbase.php.
Wird benutzt von compileTemplate().
$templateProperties = array() |
Definiert in Zeile 82 der Datei smarty_internal_templatecompilerbase.php.
$trace_filepath = '' |
Definiert in Zeile 131 der Datei smarty_internal_templatecompilerbase.php.
$trace_line_offset = 0 |
Definiert in Zeile 117 der Datei smarty_internal_templatecompilerbase.php.
$trace_stack = array() |
Definiert in Zeile 138 der Datei smarty_internal_templatecompilerbase.php.
$trace_uid = '' |
Definiert in Zeile 124 der Datei smarty_internal_templatecompilerbase.php.
$write_compiled_code = true |
Definiert in Zeile 187 der Datei smarty_internal_templatecompilerbase.php.