Smarty_Internal_Config_File_Compiler Klassenreferenz

Smarty_Internal_Config_File_Compiler Klassenreferenz

Öffentliche Methoden

 __construct ($lexer_class, $parser_class, Smarty $smarty)
 
 compileTemplate (Smarty_Internal_Template $template)
 
 trigger_config_file_error ($args=null)
 

Datenfelder

 $lexer_class
 
 $parser_class
 
 $lex
 
 $parser
 
 $smarty
 
 $template
 
 $config_data = array()
 
 $write_compiled_code = true
 

Ausführliche Beschreibung

Definiert in Zeile 18 der Datei smarty_internal_config_file_compiler.php.

Beschreibung der Konstruktoren und Destruktoren

__construct (   $lexer_class,
  $parser_class,
Smarty  $smarty 
)

Initialize compiler

Parameter
string$lexer_classclass name
string$parser_classclass name
Smarty$smartyglobal instance

Definiert in Zeile 82 der Datei smarty_internal_config_file_compiler.php.

Benutzt $lexer_class, $parser_class und $smarty.

Dokumentation der Elementfunktionen

compileTemplate ( Smarty_Internal_Template  $template)

Method to compile Smarty config source.

Parameter
Smarty_Internal_Template$template
Rückgabe
bool true if compiling succeeded, false if it failed

Definiert in Zeile 100 der Datei smarty_internal_config_file_compiler.php.

Benutzt $lex, $parser, $template, Smarty_Internal_Extension_CodeFrame\create(), Smarty_Internal_Debug\end_compile(), Smarty\SMARTY_VERSION und Smarty_Internal_Debug\start_compile().

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

trigger_config_file_error (   $args = 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
Ausnahmebehandlung
SmartyCompilerException

Definiert in Zeile 159 der Datei smarty_internal_config_file_compiler.php.

Benutzt Smarty_Internal_Configfilelexer\instance() und Smarty_Internal_Configfileparser\instance().

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

Dokumentation der Datenelemente

$config_data = array()

Definiert in Zeile 66 der Datei smarty_internal_config_file_compiler.php.

$lex

Definiert in Zeile 38 der Datei smarty_internal_config_file_compiler.php.

Wird benutzt von compileTemplate().

$lexer_class

Definiert in Zeile 25 der Datei smarty_internal_config_file_compiler.php.

Wird benutzt von __construct().

$parser

Definiert in Zeile 45 der Datei smarty_internal_config_file_compiler.php.

Wird benutzt von compileTemplate().

$parser_class

Definiert in Zeile 32 der Datei smarty_internal_config_file_compiler.php.

Wird benutzt von __construct().

$smarty

Definiert in Zeile 52 der Datei smarty_internal_config_file_compiler.php.

Wird benutzt von __construct().

$template

Definiert in Zeile 59 der Datei smarty_internal_config_file_compiler.php.

Wird benutzt von compileTemplate().

$write_compiled_code = true

Definiert in Zeile 73 der Datei smarty_internal_config_file_compiler.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.