\Smarty_Internal_Config_File_Compiler

Main config file compiler class

Summary

Methods
Properties
Constants
__construct()
compileSource()
trigger_config_file_error()
$lex
$parser
$smarty
$config
$config_data
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$lex

$lex : object

Lexer object

Type

object

$parser

$parser : object

Parser object

Type

object

$smarty

$smarty : \Smarty

Smarty object

Type

\Smarty — object

$config_data

$config_data : array

Compiled config data sections and variables

Type

array

Methods

__construct()

__construct(\Smarty  $smarty) 

Initialize compiler

Parameters

\Smarty $smarty

base instance

compileSource()

compileSource(\Smarty_Internal_Config  $config) : boolean

Method to compile a Smarty template.

Parameters

\Smarty_Internal_Config $config

config object

Returns

boolean —

true if compiling succeeded, false if it failed

trigger_config_file_error()

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 case the parser is called to obtain information about exspected tokens.

If parameter $args contains a string this is used as error message

Parameters

string $args

individual error message or null