Smarty_Internal_TemplateCompilerBase Klassenreferenz

Smarty_Internal_TemplateCompilerBase Klassenreferenz
Klassendiagramm für Smarty_Internal_TemplateCompilerBase:

Ö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)
 

Datenfelder

 $smarty = null
 
 $nocache_hash = null
 
 $suppressNocacheProcessing = false
 
 $_tag_stack = array()
 
 $template = null
 
 $mergedSubTemplatesData = array()
 
 $mergedSubTemplatesCode = array()
 
 $templateProperties = array()
 
 $sources = array()
 
 $inheritance = false
 
 $inheritance_child = false
 
 $extends_uid = array()
 
 $trace_line_offset = 0
 
 $trace_uid = ''
 
 $trace_filepath = ''
 
 $trace_stack = array()
 
 $default_handler_plugins = array()
 
 $default_modifier_list = null
 
 $forceNocache = false
 
 $suppressHeader = false
 
 $suppressTemplatePropertyHeader = false
 
 $suppressFilter = false
 
 $write_compiled_code = true
 
 $compiles_template_function = false
 
 $called_functions = array()
 
 $templateFunctionCode = ''
 
 $php_handling = 0
 
 $modifier_plugins = array()
 
 $known_modifier_type = array()
 
 $parent_compiler = null
 
 $nocache = false
 
 $tag_nocache = false
 
 $abort_and_recompile = false
 
 $prefix_code = array()
 
 $prefixCodeStack = array()
 
 $has_code = false
 
 $has_variable_string = false
 
 $has_output = false
 
 $stripRegEx = '![\t ]*[\r\n]+[\t ]*!'
 

Statische öffentliche Attribute

static $_tag_objects = array()
 

Geschützte Methoden

 doCompile ($_content)
 

Private Methoden

 compileTag2 ($tag, $args, $parameter)
 

Ausführliche Beschreibung

Definiert in Zeile 18 der Datei smarty_internal_templatecompilerbase.php.

Beschreibung der Konstruktoren und Destruktoren

__construct ( )

Initialize compiler

Definiert in Zeile 313 der Datei smarty_internal_templatecompilerbase.php.

Dokumentation der Elementfunktionen

appendCode (   $left,
  $right 
)

Append code segments and remove unneeded ?> <?php transitions

Parameter
string$left
string$right
Rückgabe
string

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

Parameter
string$tagtag name
array$argslist of tag attributes
mixed$param1optional parameter
mixed$param2optional parameter
mixed$param3optional parameter
Rückgabe
string compiled code

Definiert in Zeile 741 der Datei smarty_internal_templatecompilerbase.php.

Wird benutzt von compileTag2().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

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)

Parameter
string$tagtag name
array$argsarray with tag attributes
array$parameterarray with compilation parameter
Ausnahmebehandlung
SmartyCompilerException
SmartyException
Rückgabe
string compiled code

Definiert in Zeile 453 der Datei smarty_internal_templatecompilerbase.php.

Benutzt $prefix_code und compileTag2().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

compileTag2 (   $tag,
  $args,
  $parameter 
)
private

Compile Tag

Parameter
string$tagtag name
array$argsarray with tag attributes
array$parameterarray with compilation parameter
Ausnahmebehandlung
SmartyCompilerException
SmartyException
Rückgabe
string compiled code

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

compileTemplate ( Smarty_Internal_Template  $template,
  $nocache = null,
  $parent_compiler = null 
)

Method to compile a Smarty template

Parameter
Smarty_Internal_Template$templatetemplate object to compile
bool$nocachetrue is shall be compiled in nocache mode
null | Smarty_Internal_TemplateCompilerBase$parent_compiler
Rückgabe
bool true if compiling succeeded, false if it failed

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

compileVariable (   $variable)

compile variable

Parameter
string$variable
Rückgabe
string

Definiert in Zeile 698 der Datei smarty_internal_templatecompilerbase.php.

Benutzt $nocache.

doCompile (   $_content)
abstractprotected

method to compile a Smarty template

Parameter
mixed$_contenttemplate source
Rückgabe
bool true if compiling succeeded, false if it failed

Wird benutzt von compileTemplate().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

getPlugin (   $plugin_name,
  $plugin_type 
)

Check for plugins and return function name

Parameter
$plugin_name
string$plugin_typetype of plugin
Rückgabe
string call name of function

Definiert in Zeile 770 der Datei smarty_internal_templatecompilerbase.php.

Wird benutzt von compileTag2().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

getPluginFromDefaultHandler (   $tag,
  $plugin_type 
)

Check for plugins by default plugin handler

Parameter
string$tagname of tag
string$plugin_typetype of plugin
Rückgabe
boolean true if found

Definiert in Zeile 829 der Datei smarty_internal_templatecompilerbase.php.

Benutzt trigger_template_error().

Wird benutzt von compileTag2().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

makeNocacheCode (   $code)

Generate nocache code string

Parameter
string$codePHP code
Rückgabe
string

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.

Parameter
string$contentcontent of template element
boolean$is_codetrue if content is compiled code
Rückgabe
string content

Definiert in Zeile 896 der Datei smarty_internal_templatecompilerbase.php.

Wird benutzt von Smarty_Internal_Compile_Private_Php\compile().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

processText (   $text)

This method is called from parser to process a text content section

  • remove text from inheritance child templates as they may generate output
  • strip text if strip is enabled
Parameter
string$text
Rückgabe
null|

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

Parameter
string$filenew filename
string$uiduid of file
int$lineline offset to source
bool$debugfalse 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

Parameter
string$argsindividual error message or null
string$lineline-number
Ausnahmebehandlung
SmartyCompilerExceptionwhen 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().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

Dokumentation der Datenelemente

$_tag_objects = array()
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
$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
$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.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.