Class HTML_Template_BO_Parser

Description

Template parser. Also performs translation using translator.

Note about parse<construct> functions. It returns array(false) if <construct> isn't found at the beginning of the rest or array(true, $parsed) if <construct> parsed successfully. Also it can call setError if <construct> has invalid format.

  • access: public

Located in /parser.inc (line 24)


	
			
Method Summary
HTML_Template_BO_Parser HTML_Template_BO_Parser (array $sourceInfo, HTML_Template_BO_Translator $translator)
array parseTr ()
Methods
Constructor HTML_Template_BO_Parser (line 59)
  • access: public
HTML_Template_BO_Parser HTML_Template_BO_Parser (array $sourceInfo, HTML_Template_BO_Translator $translator)
  • array $sourceInfo: has indices: charset, text, isLibrary
  • HTML_Template_BO_Translator $translator: translator converts sintactic constructions into executable code
parseTr (line 712)

Parse and translate template.

  • return: If the first element is true, then template parsed successfully, result of translation is in the second element. Otherwise error occured. Error is in the second element. Format of translation result depends on the translator used. See translator's description. Format of error: error is an array with indices: 'id' => error code, 'symbolNumber' => symbol number in source, 'lineNumber' => line number in source, 'sourceFragment', 'sourceText'
  • see: HTML_Template_BO_Compiler, HTML_Template_BO_Interp
  • access: public
array parseTr ()

Documentation generated on Thu, 03 Aug 2006 08:25:53 +0300 by phpDocumentor 1.2.3