[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/domit/ -> xml_saxy_shared.php (summary)

SAXY_Parser_Base is a base class for SAXY and SAXY Lite

Author: John Heinstein <johnkarl@nbnet.nb.ca>
Copyright: (C) 2004 John Heinstein. All rights reserved
License: http://www.gnu.org/copyleft/lesser.html LGPL License
Version: 1.0
File Size: 294 lines (8 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SAXY_Parser_Base:: (13 methods):
  SAXY_Parser_Base()
  xml_set_element_handler()
  xml_set_character_data_handler()
  xml_set_cdata_section_handler()
  convertEntities()
  appendEntityTranslationTable()
  getCharFromEnd()
  parseAttributes()
  parseBetweenTags()
  fireStartElementEvent()
  fireEndElementEvent()
  fireCharacterDataEvent()
  fireCDataSectionEvent()


Class: SAXY_Parser_Base  - X-Ref

The base SAX Parser class

SAXY_Parser_Base()   X-Ref
Constructor for SAX parser


xml_set_element_handler($startHandler, $endHandler)   X-Ref
Sets a reference to the handler for the start element event

param: mixed A reference to the start element handler

xml_set_character_data_handler($handler)   X-Ref
Sets a reference to the handler for the data event

param: mixed A reference to the data handler

xml_set_cdata_section_handler($handler)   X-Ref
Sets a reference to the handler for the CDATA Section event

param: mixed A reference to the CDATA Section handler

convertEntities($truthVal)   X-Ref
Sets whether predefined entites should be replaced with their equivalent characters during parsing

param: boolean True if entity replacement is to occur

appendEntityTranslationTable($table)   X-Ref
Appends an array of entity mappings to the existing translation table

Intended mainly to facilitate the conversion of non-ASCII entities into equivalent characters

param: array A list of entity mappings in the format: array('&amp;' => '&');

getCharFromEnd($text, $index)   X-Ref
Gets the nth character from the end of the string

param: string The text to be queried
param: int The index from the end of the string
return: string The found character

parseAttributes($attrText)   X-Ref
Parses the attributes string into an array of key / value pairs

param: string The attribute text
return: Array An array of key / value pairs

parseBetweenTags($betweenTagText)   X-Ref
Parses character data

param: string The character data

fireStartElementEvent($tagName, $attributes)   X-Ref
Fires a start element event

param: string The start element tag name
param: Array The start element attributes

fireEndElementEvent($tagName)   X-Ref
Fires an end element event

param: string The end element tag name

fireCharacterDataEvent($data)   X-Ref
Fires a character data event

param: string The character data

fireCDataSectionEvent($data)   X-Ref
Fires a CDATA Section event

param: string The CDATA Section data



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1