Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /home/cch/www/pear/XML/Parser.php
PEAR Repository -

XML_Parser

PEAR
   |
  +-- XML_Parser

Base class for other PEAR classes. Provides rudimentary

 

private class XML_Parser extends PEAR

Base class for other PEAR classes. Provides rudimentary
emulation of destructors.

If you want a destructor in your class, inherit PEAR and make a
destructor method called _yourclassname (same name as the
constructor, but with a "_" prefix). Also, in your constructor you
have to call the PEAR constructor: <code>$this->PEAR();</code>.
The destructor method will be called without parameters. Note that
at in some SAPI implementations (such as Apache), any output during
the request shutdown (in which destructors are called) seems to be
discarded. If you need to get any debug information from your
destructor, use <code>error_log()</code>, <code>syslog()</code> or
something like that instead.

AuthorsStig Bakken <ssb@fast.no>
SincePHP 4.0.2

 

Methods inherited from PEAR

pear, _pear, iserror, pear_error, getmode, getcallback, getmessage, getcode, gettype, getdebuginfo, tostring, _pear_call_destructors

Public Method Summary

void

XML_Parser(string $charset)

Private Method Summary

void

setInputFile( $file)

void

setInput( $fp)

void

parse()

void

parseString( $data, boolean $eof)

void

XML_Parser_Error(string $msgorparser, integer $code, string $mode, string $level)

Fields inherited from PEAR

$_debug, $error_prepend, $error_append, $mode, $level, $code, $message, $debuginfo, $file, $line

Private Field Summary

unknown

$parser

unknown

$fp

boolean

$folding

string

$error_message_prefix

Public Method Details

XML_Parser

public void XML_Parser( string $charset )

 

Parameter
string $charset
Returns void


Private Method Details

setInputFile

private void setInputFile( $file )

 

Parameter
$file
Returns void


setInput

private void setInput( $fp )

 

Parameter
$fp
Returns void


parse

private void parse( )

 

Returns void


parseString

private void parseString( $data, boolean $eof )

 

Parameter
$data
boolean $eof
Returns void


XML_Parser_Error

private void XML_Parser_Error( string $msgorparser, integer $code, string $mode, string $level )

 

Parameter
string $msgorparser
integer $code
string $mode
string $level
Returns void


Private Field Details

$parser

private unknown $parser

>>unknown<<


$fp

private unknown $fp

>>unknown<<


$folding

private boolean $folding

>>true<<


$error_message_prefix

private string $error_message_prefix

>>'XML_Parser: '<<



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta