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

Class: XML_HTMLSax3_StateParser

Source Location: /XML_HTMLSax3-3.0.0/HTMLSax3.php

Class Overview


Base State Parser


Author(s):

Methods


Child classes:

XML_HTMLSax3_StateParser_Lt430
Parser for PHP Versions below 4.3.0. Uses a slower parsing mechanism than
XML_HTMLSax3_StateParser_Gtet430
Parser for PHP Versions equal to or greater than 4.3.0. Uses a faster

Inherited Variables

Inherited Methods


Class Details

[line 44]
Base State Parser
  • Abstract:
  • Access: protected


[ Top ]


Method Detail

XML_HTMLSax3_StateParser (Constructor)   [line 159]

XML_HTMLSax3_StateParser XML_HTMLSax3_StateParser( &$htmlsax)

Constructs XML_HTMLSax3_StateParser setting up states
  • Var: instance of user front end class
  • Access: protected

Parameters:

   &$htmlsax   — 

[ Top ]

ignoreCharacter   [line 186]

void ignoreCharacter( )

Moves the position forward one character
  • Access: protected

[ Top ]

ignoreWhitespace   [line 233]

void ignoreWhitespace( )

Moves the position forward past any whitespace characters
  • Abstract:
  • Access: protected

Overridden in child classes as:

XML_HTMLSax3_StateParser_Lt430::ignoreWhitespace()
Moves the position forward past any whitespace characters
XML_HTMLSax3_StateParser_Gtet430::ignoreWhitespace()
Moves the position forward past any whitespace characters

[ Top ]

parse   [line 242]

void parse( string $data)

Begins the parsing operation, setting up any decorators, depending on

parse options invoking _parse() to execute parsing

  • Access: protected

Overridden in child classes as:

XML_HTMLSax3_StateParser_Lt430::parse()
Begins the parsing operation, setting up the unparsed XML entities
XML_HTMLSax3_StateParser_Gtet430::parse()
Begins the parsing operation, setting up the parsed and unparsed

Parameters:

string   $data   —  XML document to parse

[ Top ]

scanCharacter   [line 195]

mixed scanCharacter( )

Returns the next character from the XML document or void if at end
  • Access: protected

[ Top ]

scanUntilCharacters   [line 225]

string scanUntilCharacters( string $string)

Returns a string from the current position until the first instance of

one of the characters in the supplied string argument

  • Abstract:
  • Access: protected

Overridden in child classes as:

XML_HTMLSax3_StateParser_Lt430::scanUntilCharacters()
Returns a string from the current position until the first instance of
XML_HTMLSax3_StateParser_Gtet430::scanUntilCharacters()
Returns a string from the current position until the first instance of one of the characters in the supplied string argument.

Parameters:

string   $string   —  string to search until

[ Top ]

scanUntilString   [line 208]

string scanUntilString( string $string)

Returns a string from the current position to the next occurance

of the supplied string

  • Access: protected

Parameters:

string   $string   —  string to search until

[ Top ]

unscanCharacter   [line 177]

void unscanCharacter( )

Moves the position back one character
  • Access: protected

[ Top ]

_parse   [line 308]

void _parse( [constant $state = XML_HTMLSAX3_STATE_START])

Performs the parsing itself, delegating calls to a specific parser

state

  • Access: protected

Parameters:

constant   $state   —  state object to parse with

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:11:50 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.