Smarty_Internal_Config_File_Compiler
Main config file compiler class
- Full name:
\Smarty_Internal_Config_File_Compiler
Properties
lexer_class
Lexer class name
parser_class
Parser class name
lex
Lexer object
parser
Parser object
smarty
Smarty object
template
Smarty object
config_data
Compiled config data sections and variables
write_compiled_code
compiled config data must always be written
Methods
__construct
Initialize compiler
Parameters:
Parameter | Type | Description |
---|---|---|
$lexer_class |
string | class name |
$parser_class |
string | class name |
$smarty |
\Smarty | global instance |
compileTemplate
Method to compile Smarty config source.
Parameters:
Parameter | Type | Description |
---|---|---|
$template |
\Smarty_Internal_Template |
Return Value:
true if compiling succeeded, false if it failed
Throws:
trigger_config_file_error
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
Parameters:
Parameter | Type | Description |
---|---|---|
$args |
string | individual error message or null |
Throws:
Automatically generated on 2025-03-18