Main config file compiler class
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(string $lexer_class, string $parser_class, Smarty $smarty)
Initialize compiler
Initialize compiler Parameters
|
# | ||||||
public
|
compileTemplate(Smarty_Internal_Template $template): bool
Method to compile Smarty config source.
Method to compile Smarty config source. Returnstrue if compiling succeeded, false if it failed Throws
|
# | ||||||
public
|
trigger_config_file_error(string $args = null)
display compiler error messages without dying
If parameter $args is empty it is a parser detected syntax error.
In this…
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
Throws
|
# |
Properties | |||
---|---|---|---|
public
|
string
|
$lexer_class
|
# |
public
|
string
|
$parser_class
|
# |
public
|
object
|
$lex
|
# |
public
|
object
|
$parser
|
# |
public
|
Smarty
|
$smarty
object
object |
# |
public
|
Smarty_Internal_Template
|
$template
object
object |
# |
public
|
array
|
$config_data = []
|
# |
public
|
bool
|
$write_compiled_code = true
|
# |