Class Smarty_Internal_Config_File_Compiler

Description

Main config file compiler class

Located in /libs/sysplugins/smarty_internal_config_file_compiler.php (line 19)


	
			
Variable Summary
Smarty_Internal_Config $config
array $config_data
object $lex
object $parser
Method Summary
Smarty_Internal_Config_File_Compiler __construct (Smarty $smarty)
bool compileSource ( $config)
void trigger_config_file_error ([string $args = null])
Variables
Smarty_Internal_Config $config (line 47)

Smarty object

  • var: object
  • access: public
array $config_data = array() (line 54)

Compiled config data sections and variables

  • access: public
object $lex (line 26)

Lexer object

  • access: public
object $parser (line 33)

Parser object

  • access: public
Smarty $smarty (line 40)

Smarty object

  • var: object
  • access: public
Methods
Constructor __construct (line 61)

Initialize compiler

  • access: public
Smarty_Internal_Config_File_Compiler __construct (Smarty $smarty)
  • Smarty $smarty: base instance
compileSource (line 74)

Method to compile a Smarty template.

  • return: true if compiling succeeded, false if it failed
  • access: public
bool compileSource ( $config)
  • Smarty_Internal_Config $config: config object
trigger_config_file_error (line 110)

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

  • access: public
void trigger_config_file_error ([string $args = null])
  • string $args: individual error message or null

Documentation generated on Sat, 24 Sep 2011 20:23:52 +0200 by phpDocumentor 1.4.1