WACT_TEMPLATE
[ class tree: WACT_TEMPLATE ] [ index: WACT_TEMPLATE ] [ all elements ]

Class: BaseSaxFilter

Source Location: /framework/template/compiler/saxfilters/basesaxfilter.inc.php

http://wact.sourceforge.net/index.php/BaseSaxFilter

Class Overview


BaseSaxFilter - handler methods are declared so concrete SaxFilters do not need to explicity declare them when not required.

Variables

Methods


Child classes:

TagsToLowerSaxFilter
Converts all tags and attribute names to lower case.
WhitespaceSaxFilter
SaxFilter for whitespace compression in template.

Inherited Variables

Inherited Methods


Class Details

BaseSaxFilter - handler methods are declared so concrete SaxFilters do not need to explicity declare them when not required.
abstract:  
access:  public
see:  http://wact.sourceforge.net/index.php/BaseSaxFilter

Class Variables


$ChildSaxFilter =

Child Sax filter
var:  of BaseSaxFilter
access:  public
Type:   subclass

Class Methods


method cdata

Sax cdata Handler

void cdata( string $text)

API Tags:

access:  private

Parameters:

string   $text   text content in tag

method characters

Sax Data Handler

void characters( string $text)

API Tags:

access:  private

Overridden in child classes as:

WhitespaceSaxFilter::characters()

Parameters:

string   $text   text content in tag

method comment

Sax XML Comment Handler

void comment( string $text)

API Tags:

access:  private

Parameters:

string   $text   text content in comment

method doctype

Sax doctype Handler

void doctype( string $text)

API Tags:

access:  private

Parameters:

string   $text   text content in doctype

method emptyElement

Sax Open Handler

void emptyElement( string $tag, array $attrs)

API Tags:

access:  private

Overridden in child classes as:

TagsToLowerSaxFilter::emptyElement()
Sax Open Handler

Parameters:

string   $tag   tag name
array   $attrs   attributes

method endElement

Sax Close Handler

void endElement( string $tag)

API Tags:

access:  private

Overridden in child classes as:

TagsToLowerSaxFilter::endElement()
WhitespaceSaxFilter::endElement()

Parameters:

string   $tag   tag name

method escape

Sax XML Escape Handler

void escape( string $text)

API Tags:

access:  private

Parameters:

string   $text   text content in escape

method invalidAttributeSyntax

Sax Attribute syntax Error Handler

void invalidAttributeSyntax( string 0)

API Tags:

access:  private

Parameters:

string   0   text content in tag

method invalidEntitySyntax

Sax Entity syntax Error Handler

void invalidEntitySyntax( string $text)

API Tags:

access:  private

Parameters:

string   $text   text content in tag

method jasp

Sax XML Jasp Handler

void jasp( string $text)

API Tags:

access:  private

Parameters:

string   $text   text content in JASP block

method processingInstruction

Sax Processing Instruction Handler

void processingInstruction( string $target, string $instruction)

API Tags:

access:  private

Parameters:

string   $target   target processor (e.g. php)
string   $instruction   text content in PI

method setChildSaxFilter



void setChildSaxFilter( BaseSaxFilter &$SaxFilter)

API Tags:

access:  public

Parameters:

BaseSaxFilter   &$SaxFilter   Next Filter in the Chain

method setDocumentLocator



void setDocumentLocator( Locator &$locator)

API Tags:

access:  public

Parameters:

Locator   &$locator   interface for determining location in source file

method startElement

Sax Open Handler

void startElement( string $tag, array $attrs)

API Tags:

access:  private

Overridden in child classes as:

TagsToLowerSaxFilter::startElement()
WhitespaceSaxFilter::startElement()

Parameters:

string   $tag   tag name
array   $attrs   attributes

method unexpectedEOF

Sax EOF Handler

void unexpectedEOF( string $text)

API Tags:

access:  private

Parameters:

string   $text   text content in tag
WACT: Copyright 2003 Procata, Inc. Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
Documentation generated on Sun, 28 Nov 2004 19:44:07 -0800 by phpDocumentor 1.2.3