[ Index ]

PHP Cross Reference of Web Application Component Toolkit

title

Body

[close]

/framework/template/compiler/ -> sourcefileparser.inc.php (summary)

(no description)

Version: $Id: sourcefileparser.inc.php,v 1.103 2004/11/20 17:23:17 jeffmoore Exp $
File Size: 297 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

sourcefileparser:: (19 methods):
  sourcefileparser()
  buildfilterchain()
  parse()
  changetocomponentparsingstate()
  changetoliteralparsingstate()
  setdocumentlocator()
  startelement()
  endelement()
  emptyelement()
  characters()
  cdata()
  processinginstruction()
  escape()
  comment()
  doctype()
  jasp()
  unexpectedeof()
  invalidentitysyntax()
  invalidattributesyntax()


Class: sourcefileparser  - X-Ref

The source template parser is the core of the WACT template engine

sourcefileparser($sourcefile)   X-Ref
Constructs SourecFileParser. Uses readTemplateFile() to get the contents
of the template.

access: protected
param: string path and filename of source template

buildfilterchain($saxfilters)   X-Ref
Creates Build a filter chain

access: protected
return: HTMLParser

parse(&$ComponentRoot)   X-Ref
Used to parse the source template.
Initially invoked by the CompileTemplate function,
the first component argument being a ComponentTree.
Uses the TagDictionary to spot compiler components

access: protected
param: object compile time component
return: void

changetocomponentparsingstate()   X-Ref
Switch to component parsing state

access: public
return: void

changetoliteralparsingstate($tag)   X-Ref
Switch to literal parsing state

access: public
param: string tag name marking the literal component
return: void

setdocumentlocator(&$locator)   X-Ref
Document Locator Handler

access: private
param: Locator
return: void

startelement($tag, $attrs)   X-Ref
Sax Open Handler

access: private
param: string tag name
param: array attributes
return: void

endelement($tag)   X-Ref
Sax Close Handler

access: private
param: string tag name
return: void

emptyelement($tag, $attrs)   X-Ref
Sax Open Handler

access: private
param: string tag name
param: array attributes
return: void

characters($text)   X-Ref
Sax Data Handler

access: private
param: string text content in tag
return: void

cdata($text)   X-Ref
Sax CDATA Handler

access: private
param: string text content in tag
return: void

processinginstruction($target, $instruction)   X-Ref
Sax Processing Instruction Handler

access: private
param: string target processor (e.g. php)
param: string text content in PI
return: void

escape($text)   X-Ref
Sax XML Escape Handler

access: private
param: string text content in escape
return: void

comment($text)   X-Ref
Sax XML Comment Handler

access: private
param: string text content in comment
return: void

doctype($text)   X-Ref
Sax XML doctype Handler

access: private
param: string text content in doctype
return: void

jasp($text)   X-Ref
Sax JSP / ASP markup Handler

access: private
param: string text content in JASP tags
return: void

unexpectedeof($text)   X-Ref
Sax EOF Handler

access: private
param: string text content in tag
return: void

invalidentitysyntax($text)   X-Ref
Sax Entity syntax Error Handler

access: private
param: string text content in tag
return: void

invalidattributesyntax()   X-Ref
Sax Attribute syntax Error Handler

access: private
param: string text content in tag
return: void



Generated: Sun Nov 28 19:36:09 2004 Cross-referenced by PHPXref 0.5