Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: c:/www/apache/doc2//pear/PEAR.php
PEAR 2000/12/03 -

PEAR

PEAR

Base class for other PEAR classes. Provides rudimentary

 

private class PEAR

Base class for other PEAR classes. Provides rudimentary
emulation of destructors.If you want a destructor in your class, inherit PEAR and make adestructor method called _yourclassname (same name as theconstructor, but with a "_" prefix). Also, in your constructor youhave to call the PEAR constructor: <code>$this->PEAR();</code>.The destructor method will be called without parameters. Note thatat in some SAPI implementations (such as Apache), any output duringthe request shutdown (in which destructors are called) seems to bediscarded. If you need to get any debug information from yourdestructor, use <code>error_log()</code>, <code>syslog()</code> orsomething like that instead.

AuthorsStig Bakken <ssb@fast.no>
SincePHP 4.0.2

 
Direct known subclasses: Mail, Net_SMTP, Net_Socket, XML_Parser

Public Method Summary

void

PEAR()

Constructor. Registers this object in
void

_PEAR()

Destructor (the emulated type of...). Does nothing right now,
bool

isError( &$data)

Tell whether a value is a PEAR error.

Private Method Summary

void

_PEAR_call_destructors()

Warning: documentation is missing.

Private Field Summary

boolean

$_debug

Private Constant Summary

PEAR_ERROR_RETURN >>1<< Warning: documentation is missing.
PEAR_ERROR_PRINT >>2<< Warning: documentation is missing.
PEAR_ERROR_TRIGGER >>4<< Warning: documentation is missing.
PEAR_ERROR_DIE >>8<< Warning: documentation is missing.
PEAR_ERROR_CALLBACK >>16<< Warning: documentation is missing.
PHP_BINDIR >>@prefix@/bin<< Warning: documentation is missing.
PEAR_INSTALL_DIR >>@PEAR_INSTALLDIR@<< Warning: documentation is missing.
PEAR_EXTENSION_DIR >>@EXTENSION_DIR@<< Warning: documentation is missing.

Public Method Details

PEAR

public void PEAR( )

  Constructor. Registers this object in
$_PEAR_destructor_object_list for destructor emulation.

Returns void


_PEAR

public void _PEAR( )

  Destructor (the emulated type of...). Does nothing right now,
but is included for forward compatibility, so subclassdestructors should always call it.See the note in the class desciption about output fromdestructors.

Returns void


isError

public bool isError( &$data )

  Tell whether a value is a PEAR error.

Parameter
&$data
Warning: documentation is missing.
Returns bool

true if $data is an error


Private Method Details

_PEAR_call_destructors

private void _PEAR_call_destructors( )

 

Warning: documentation is missing.

Returns void


Private Field Details

$_debug

private boolean $_debug

>>false<<



Private Constant Details

PEAR_ERROR_RETURN

define( PEAR_ERROR_RETURN, >>1<< )
Case: default: case sensitive



PEAR_ERROR_PRINT

define( PEAR_ERROR_PRINT, >>2<< )
Case: default: case sensitive



PEAR_ERROR_TRIGGER

define( PEAR_ERROR_TRIGGER, >>4<< )
Case: default: case sensitive



PEAR_ERROR_DIE

define( PEAR_ERROR_DIE, >>8<< )
Case: default: case sensitive



PEAR_ERROR_CALLBACK

define( PEAR_ERROR_CALLBACK, >>16<< )
Case: default: case sensitive



PHP_BINDIR

define( PHP_BINDIR, >>@prefix@/bin<< )
Case: default: case sensitive



PEAR_INSTALL_DIR

define( PEAR_INSTALL_DIR, >>@PEAR_INSTALLDIR@<< )
Case: default: case sensitive



PEAR_EXTENSION_DIR

define( PEAR_EXTENSION_DIR, >>@EXTENSION_DIR@<< )
Case: default: case sensitive




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta