phpDocumentor GalleryCore
Storage
[ class tree: GalleryCore ] [ index: GalleryCore ] [ all elements ]

Class: GalleryXmlProcessor

Source Location: /modules/core/classes/GalleryStorage/GalleryDatabaseImport.class

Class GalleryXmlProcessor

Class Overview

GalleryXmlProcessor provides a simple xml processor. It doesn't support anything fancy like namespaces and such.

Located in /modules/core/classes/GalleryStorage/GalleryDatabaseImport.class [line 844]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Revision: 17580 $

Properties

Methods

[ Top ]
Property Summary
mixed   $_elementStack   Push down stack for xml processing.
mixed   $_xmlParser   a reference to the PHP supplied XML parser.

[ Top ]
Method Summary
GalleryXmlProcessor   GalleryXmlProcessor()  
void   getParserError()  
void   release()   This method releases the php parser.
boolean   xmlParse()   Parses the data buffer.
void   _processCData()   XML Callback to process CDATA elements. Called by the PHP Xml parser
void   _processEndElement()   XML Callback to process end elements. Called by the PHP Xml parser
void   _processStartElement()   XML Callback to process start elements. Called by the PHP Xml parser

[ Top ]
Properties
mixed   $_elementStack = array() [line 848]

Push down stack for xml processing.


[ Top ]
mixed   $_xmlParser [line 852]

a reference to the PHP supplied XML parser.


[ Top ]
Methods
Constructor GalleryXmlProcessor  [line 854]

  GalleryXmlProcessor GalleryXmlProcessor( $rootElement  )

Parameters:
   $rootElement: 


[ Top ]
getParserError  [line 884]

  void getParserError( )



[ Top ]
release  [line 880]

  void release( )

This method releases the php parser.


Information Tags:
Todo:  After PHP 4.x.x then change to a __destruct and change the call to an unset()

[ Top ]
xmlParse  [line 872]

  boolean xmlParse( string $data, boolean $isFinal  )

Parses the data buffer.

Parameters:
string   $data:  The buffer of data to parse.
boolean   $isFinal:  Flag to indicate if this is the final buffer of data.

API Tags:
Return:  Returns true on success.


[ Top ]
_processCData  [line 916]

  void _processCData( &$parser, string $cdata, object $parser  )

XML Callback to process CDATA elements. Called by the PHP Xml parser

Parameters:
object   $parser:  A reference to the php parser
string   $cdata:  A buffer of data that represents the body of the xml element
   &$parser: 

API Tags:
Access:  private


[ Top ]
_processEndElement  [line 927]

  void _processEndElement( &$parser, string $tag, object $parser  )

XML Callback to process end elements. Called by the PHP Xml parser

Parameters:
object   $parser:  A reference to the php parser
string   $tag:  The name of the tage being processed
   &$parser: 

API Tags:
Access:  private


[ Top ]
_processStartElement  [line 898]

  void _processStartElement( &$parser, string $tag, array $attributes, object $parser  )

XML Callback to process start elements. Called by the PHP Xml parser

Parameters:
object   $parser:  A reference to the php parser
string   $tag:  The name of the tage being processed
array   $attributes:  The attributes that were present on the xml element.
   &$parser: 

API Tags:
Access:  private


[ Top ]

Documentation generated on Fri, 08 Oct 2010 04:56:56 -0700 by phpDocumentor 1.3.0RC6