ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($error_class=null) | |
Constructor. More... | |
_PEAR () | |
Destructor (the emulated type of...). More... | |
registerShutdownFunc ($func, $args=array()) | |
Use this function to register a shutdown method for static classes. More... | |
isError ($data, $code=null) | |
Tell whether a value is a PEAR error. More... | |
expectError ($code=' *') | |
This method is used to tell which errors you expect to get. More... | |
popExpect () | |
This method pops one element off the expected error codes stack. More... | |
_checkDelExpect ($error_code) | |
This method checks unsets an error code if available. More... | |
delExpect ($error_code) | |
This method deletes all occurences of the specified element from the expected error codes stack. More... | |
& | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. More... | |
& | throwError ($message=null, $code=null, $userinfo=null) |
Simpler form of raiseError with fewer options. More... | |
staticPushErrorHandling ($mode, $options=null) | |
staticPopErrorHandling () | |
pushErrorHandling ($mode, $options=null) | |
Push a new error handler on top of the error handler options stack. More... | |
popErrorHandling () | |
Pop the last error handler used. More... | |
loadExtension ($ext) | |
OS independant PHP extension load. More... | |
Static Public Member Functions | |
static & | getStaticProperty ($class, $var) |
If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. More... | |
static | setErrorHandling ($mode=null, $options=null) |
Sets how errors generated by this object should be handled. More... | |
Data Fields | |
$_debug = false | |
$_default_error_mode = null | |
$_default_error_options = null | |
$_default_error_handler = '' | |
$_error_class = 'PEAR_Error' | |
$_expected_errors = array() | |
PEAR::__construct | ( | $error_class = null | ) |
Constructor.
Registers this object in $_PEAR_destructor_object_list for destructor emulation if a destructor object exists.
string | $error_class | (optional) which class to use for error objects, defaults to PEAR_Error. public |
Definition at line 170 of file PEAR.php.
References $GLOBALS.
PEAR::_checkDelExpect | ( | $error_code | ) |
This method checks unsets an error code if available.
mixed | error code |
Definition at line 423 of file PEAR.php.
Referenced by delExpect().
PEAR::_PEAR | ( | ) |
Destructor (the emulated type of...).
Does nothing right now, but is included for forward compatibility, so subclass destructors should always call it.
See the note in the class desciption about output from destructors.
public
PEAR::delExpect | ( | $error_code | ) |
This method deletes all occurences of the specified element from the expected error codes stack.
mixed | $error_code | error code that should be deleted |
Definition at line 453 of file PEAR.php.
References $error, _checkDelExpect(), and raiseError().
PEAR::expectError | ( | $code = '*' | ) |
This method is used to tell which errors you expect to get.
Expected errors are always returned with error mode PEAR_ERROR_RETURN. Expected error codes are stored in a stack, and this method pushes a new element onto it. The list of expected errors are in effect until they are popped off the stack with the popExpect() method.
Note that this method can not be called statically
mixed | $code | a single error code or an array of error codes to expect |
Definition at line 388 of file PEAR.php.
References $_expected_errors, $code, and array.
Referenced by MDB2_Driver_oci8\nextID(), MDB2_Driver_pgsql\nextID(), MDB2_Driver_mysql\nextID(), and MDB2_Driver_mysqli\nextID().
|
static |
If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them.
Eg. in your method(s) do this: $myVar = &PEAR::getStaticProperty('myclass', 'myVar'); You MUST use a reference, or they will not persist!
public
string | $class | The calling classname, to prevent clashes |
string | $var | The variable to retrieve. |
Definition at line 231 of file PEAR.php.
References array.
Referenced by PEAR_Error\__construct(), and _PEAR_call_destructors().
PEAR::isError | ( | $data, | |
$code = null |
|||
) |
Tell whether a value is a PEAR error.
mixed | $data | the value to test |
int | $code | if $data is an error object, return true only if $code is a string and $obj->getMessage() == $code or $code is an integer and $obj->getCode() == $code public |
Definition at line 280 of file PEAR.php.
Referenced by MDB2_Driver_Common\__call(), MDB2_Driver_mysql\_affectedRows(), MDB2_Driver_mysqli\_affectedRows(), MDB2_Driver_pgsql\_affectedRows(), MDB2_Driver_oci8\_affectedRows(), MDB2_Driver_Datatype_Common\_baseConvertResult(), MDB2_Driver_oci8\_doConnect(), MDB2_Driver_pgsql\_doConnect(), MDB2_Driver_mysql\_doQuery(), MDB2_Driver_mysqli\_doQuery(), MDB2_Driver_pgsql\_doQuery(), MDB2_Driver_oci8\_doQuery(), MDB2_Driver_Common\_doQuery(), MDB2_Statement_pgsql\_execute(), MDB2_Statement_oci8\_execute(), MDB2_Statement_mysql\_execute(), MDB2_Statement_mysqli\_execute(), MDB2_Statement_Common\_execute(), MDB2_Driver_Manager_Common\_fixIndexName(), MDB2_Driver_Manager_Common\_fixSequenceName(), MDB2_Driver_Datatype_Common\_getBLOBDeclaration(), MDB2_Driver_Datatype_Common\_getCLOBDeclaration(), MDB2_Result_oci8\_getColumnNames(), MDB2_Result_pgsql\_getColumnNames(), MDB2_Result_mysql\_getColumnNames(), MDB2_Result_mysqli\_getColumnNames(), MDB2_Driver_Manager_Common\_getCreateTableQuery(), MDB2_Driver_Datatype_Common\_getDeclaration(), MDB2_Driver_Datatype_Common\_getDeclarationOptions(), MDB2_Driver_Datatype_pgsql\_getIntegerDeclaration(), MDB2_Driver_Datatype_mysqli\_getIntegerDeclaration(), MDB2_Driver_Datatype_mysql\_getIntegerDeclaration(), MDB2_Driver_Datatype_Common\_getIntegerDeclaration(), MDB2_Driver_Manager_oci8\_makeAutoincrement(), MDB2_Driver_Datatype_mysql\_mapNativeDatatype(), MDB2_Driver_Datatype_mysqli\_mapNativeDatatype(), MDB2_Driver_Datatype_oci8\_mapNativeDatatype(), MDB2_Driver_Datatype_pgsql\_mapNativeDatatype(), MDB2_Driver_Datatype_Common\_mapNativeDatatype(), MDB2_Driver_Datatype_pgsql\_quoteBLOB(), MDB2_Driver_Datatype_Common\_quoteDate(), MDB2_Driver_Datatype_Common\_quoteLOB(), MDB2_Driver_Datatype_Common\_quoteText(), MDB2_Driver_Datatype_Common\_quoteTime(), MDB2_Driver_Datatype_Common\_quoteTimestamp(), MDB2_Driver_Datatype_Common\_readFile(), MDB2_Driver_Datatype_oci8\_readLOB(), MDB2_Driver_Datatype_oci8\_retrieveLOB(), MDB2_Driver_Common\_wrapResult(), MDB2_Driver_Manager_pgsql\alterTable(), MDB2_Driver_Manager_mysql\alterTable(), MDB2_Driver_Manager_mysqli\alterTable(), MDB2_Driver_Manager_Common\alterTable(), MDB2_Extended\autoExecute(), MDB2_Extended\autoPrepare(), MDB2_Driver_mysql\beginTransaction(), MDB2_Driver_mysqli\beginTransaction(), MDB2_Driver_pgsql\beginTransaction(), MDB2_Statement_Common\bindParamArray(), MDB2_Statement_Common\bindValueArray(), MDB2_Extended\buildManipSQL(), MDB2_Driver_Datatype_Common\checkResultTypes(), MDB2_Driver_oci8\commit(), MDB2_Driver_mysqli\commit(), MDB2_Driver_mysql\commit(), MDB2_Driver_pgsql\commit(), MDB2_Driver_Datatype_Common\compareDefinition(), MDB2_Driver_Common\compareDefinition(), MDB2_Driver_Common\completeNestedTransaction(), MDB2_Driver_mysqli\connect(), MDB2_Driver_mysql\connect(), MDB2_Driver_oci8\connect(), MDB2\connect(), MDB2_Driver_pgsql\connect(), MDB2_Driver_Datatype_Common\convertResult(), MDB2_Driver_Datatype_Common\convertResultRow(), MDB2_Driver_Manager_Common\createConstraint(), MDB2_Driver_Manager_mysql\createConstraint(), MDB2_Driver_Manager_mysqli\createConstraint(), MDB2_Driver_Manager_pgsql\createDatabase(), MDB2_Driver_Manager_oci8\createDatabase(), MDB2_Driver_Manager_mysqli\createDatabase(), MDB2_Driver_Manager_mysql\createDatabase(), MDB2_Driver_Manager_Common\createDatabase(), MDB2_Driver_Manager_mysql\createIndex(), MDB2_Driver_Manager_Common\createIndex(), MDB2_Driver_Manager_mysqli\createIndex(), MDB2_Driver_Manager_pgsql\createSequence(), MDB2_Driver_Manager_Common\createSequence(), MDB2_Driver_Manager_mysql\createSequence(), MDB2_Driver_Manager_mysqli\createSequence(), MDB2_Driver_Manager_mysqli\createTable(), MDB2_Driver_Manager_mysql\createTable(), MDB2_Driver_Manager_Common\createTable(), MDB2_Iterator\current(), MDB2_Driver_Native_pgsql\deleteOID(), MDB2_Driver_Manager_Common\dropConstraint(), MDB2_Driver_Manager_mysql\dropConstraint(), MDB2_Driver_Manager_mysqli\dropConstraint(), MDB2_Driver_Manager_pgsql\dropDatabase(), MDB2_Driver_Manager_mysqli\dropDatabase(), MDB2_Driver_Manager_mysql\dropDatabase(), MDB2_Driver_Manager_oci8\dropDatabase(), MDB2_Driver_Manager_Common\dropDatabase(), MDB2_Driver_Manager_mysql\dropIndex(), MDB2_Driver_Manager_Common\dropIndex(), MDB2_Driver_Manager_mysqli\dropIndex(), MDB2_Driver_Manager_pgsql\dropSequence(), MDB2_Driver_Manager_Common\dropSequence(), MDB2_Driver_Manager_mysql\dropSequence(), MDB2_Driver_Manager_mysqli\dropSequence(), MDB2_Driver_Manager_Common\dropTable(), MDB2\errorMessage(), MDB2_Driver_mysql\escape(), MDB2_Driver_mysqli\escape(), MDB2_Driver_pgsql\escape(), MDB2_Driver_Common\exec(), MDB2_Extended\execParam(), MDB2_Statement_Common\execute(), MDB2_Extended\executeMultiple(), MDB2_Driver_Function_pgsql\executeStoredProc(), MDB2_Driver_Function_oci8\executeStoredProc(), MDB2_Driver_Function_mysqli\executeStoredProc(), MDB2_Driver_Function_mysql\executeStoredProc(), MDB2_Driver_Function_Common\executeStoredProc(), MDB2\factory(), MDB2_Result_Common\fetchAll(), MDB2_Result_Common\fetchCol(), ilAuthContainerMultiple\fetchData(), ilAuthContainerLDAP\fetchData(), MDB2_Result_Common\fetchOne(), MDB2_Result_oci8\fetchRow(), MDB2_Result_pgsql\fetchRow(), MDB2_Result_mysql\fetchRow(), MDB2_Result_mysqli\fetchRow(), MDB2_BufferedResult_oci8\fetchRow(), MDB2_Statement_pgsql\free(), MDB2_Statement_mysql\free(), MDB2_Statement_mysqli\free(), MDB2_Extended\getAfterID(), MDB2_Extended\getAll(), MDB2_Extended\getAssoc(), MDB2_Extended\getBeforeID(), MDB2_Extended\getCol(), MDB2_Result_Common\getColumnNames(), MDB2_Driver_Common\getConnection(), MDB2_Driver_Datatype_Common\getDeclaration(), MDB2_Driver_Common\getDeclaration(), MDB2_Driver_Manager_Common\getFieldDeclarationList(), MDB2_Extended\getOne(), MDB2_Extended\getRow(), MDB2_Driver_Reverse_Common\getSequenceDefinition(), MDB2_Driver_Reverse_oci8\getSequenceDefinition(), MDB2_Driver_pgsql\getSequenceName(), MDB2_Driver_mysql\getServerVersion(), MDB2_Driver_oci8\getServerVersion(), MDB2_Driver_mysqli\getServerVersion(), MDB2_Driver_pgsql\getServerVersion(), MDB2_Driver_Reverse_Common\getTableConstraintDefinition(), MDB2_Driver_Reverse_mysql\getTableConstraintDefinition(), MDB2_Driver_Reverse_pgsql\getTableConstraintDefinition(), MDB2_Driver_Reverse_oci8\getTableConstraintDefinition(), MDB2_Driver_Reverse_mysqli\getTableConstraintDefinition(), MDB2_Driver_Manager_mysqli\getTableCreationQuery(), MDB2_Driver_Reverse_pgsql\getTableFieldDefinition(), MDB2_Driver_Reverse_oci8\getTableFieldDefinition(), MDB2_Driver_Reverse_mysql\getTableFieldDefinition(), MDB2_Driver_Reverse_Common\getTableFieldDefinition(), MDB2_Driver_Reverse_mysqli\getTableFieldDefinition(), MDB2_Driver_Reverse_Common\getTableIndexDefinition(), MDB2_Driver_Reverse_mysql\getTableIndexDefinition(), MDB2_Driver_Reverse_oci8\getTableIndexDefinition(), MDB2_Driver_Reverse_pgsql\getTableIndexDefinition(), MDB2_Driver_Reverse_mysqli\getTableIndexDefinition(), MDB2_Driver_Reverse_Common\getTriggerDefinition(), MDB2_Driver_Reverse_pgsql\getTriggerDefinition(), MDB2_Driver_Reverse_mysql\getTriggerDefinition(), MDB2_Driver_Reverse_mysqli\getTriggerDefinition(), MDB2_Driver_Reverse_oci8\getTriggerDefinition(), MDB2_Driver_Datatype_oci8\getTypeDeclaration(), MDB2_Driver_Datatype_mysql\getTypeDeclaration(), MDB2_Driver_Datatype_mysqli\getTypeDeclaration(), MDB2_Driver_Datatype_pgsql\getTypeDeclaration(), MDB2_Driver_Datatype_Common\getTypeDeclaration(), MDB2_Driver_Datatype_Common\getValidTypes(), MDB2_Driver_Function_Common\guid(), MDB2_Extended\limitQuery(), MDB2_Driver_Manager_pgsql\listDatabases(), MDB2_Driver_Manager_mysql\listDatabases(), MDB2_Driver_Manager_mysqli\listDatabases(), MDB2_Driver_Manager_Common\listDatabases(), MDB2_Driver_Manager_mysql\listFunctions(), MDB2_Driver_Manager_pgsql\listFunctions(), MDB2_Driver_Manager_mysqli\listFunctions(), MDB2_Driver_Manager_Common\listFunctions(), MDB2_Driver_Manager_pgsql\listSequences(), MDB2_Driver_Manager_Common\listSequences(), MDB2_Driver_Manager_mysql\listSequences(), MDB2_Driver_Manager_mysqli\listSequences(), MDB2_Driver_Manager_pgsql\listTableConstraints(), MDB2_Driver_Manager_Common\listTableConstraints(), MDB2_Driver_Manager_mysql\listTableConstraints(), MDB2_Driver_Manager_mysqli\listTableConstraints(), MDB2_Driver_Manager_pgsql\listTableFields(), MDB2_Driver_Manager_mysql\listTableFields(), MDB2_Driver_Manager_Common\listTableFields(), MDB2_Driver_Manager_mysqli\listTableFields(), MDB2_Driver_Manager_pgsql\listTableIndexes(), MDB2_Driver_Manager_mysql\listTableIndexes(), MDB2_Driver_Manager_Common\listTableIndexes(), MDB2_Driver_Manager_mysqli\listTableIndexes(), MDB2_Driver_Manager_mysql\listTables(), MDB2_Driver_Manager_pgsql\listTables(), MDB2_Driver_Manager_mysqli\listTables(), MDB2_Driver_Manager_Common\listTables(), MDB2_Driver_Manager_mysql\listTableTriggers(), MDB2_Driver_Manager_pgsql\listTableTriggers(), MDB2_Driver_Manager_mysqli\listTableTriggers(), MDB2_Driver_Manager_Common\listTableTriggers(), MDB2_Driver_Manager_pgsql\listTableViews(), MDB2_Driver_Manager_Common\listTableViews(), MDB2_Driver_Manager_pgsql\listUsers(), MDB2_Driver_Manager_mysql\listUsers(), MDB2_Driver_Manager_mysqli\listUsers(), MDB2_Driver_Manager_Common\listUsers(), MDB2_Driver_Manager_pgsql\listViews(), MDB2_Driver_Manager_Common\listViews(), MDB2_Driver_Manager_mysql\listViews(), MDB2_Driver_Manager_mysqli\listViews(), MDB2_Driver_Common\loadModule(), ilDAVLocks\lockWithoutCheckingObj(), MDB2_Driver_Datatype_Common\mapNativeDatatype(), MDB2_Driver_Datatype_mysqli\mapPrepareDatatype(), MDB2_Driver_Datatype_pgsql\mapPrepareDatatype(), MDB2_Driver_Datatype_Common\mapPrepareDatatype(), MDB2_Driver_Datatype_mysqli\matchPattern(), MDB2_Driver_Datatype_mysql\matchPattern(), MDB2_Driver_Datatype_pgsql\matchPattern(), MDB2_Driver_Datatype_Common\matchPattern(), MDB2_Driver_oci8\nextID(), MDB2_Driver_pgsql\nextID(), MDB2_Driver_mysql\nextID(), MDB2_Driver_mysqli\nextID(), MDB2_Result_pgsql\nextResult(), MDB2_Result_mysqli\nextResult(), MDB2_BufferedResult_mysqli\nextResult(), MDB2_Driver_Datatype_oci8\patternEscapeString(), MDB2_Driver_Datatype_pgsql\patternEscapeString(), MDB2_Driver_oci8\prepare(), MDB2_Driver_pgsql\prepare(), MDB2_Driver_mysql\prepare(), MDB2_Driver_mysqli\prepare(), MDB2_Driver_Common\prepare(), MDB2_Driver_Common\query(), MDB2_Driver_Datatype_Common\quote(), MDB2_Driver_Common\quote(), MDB2_Driver_Common\raiseError(), MDB2_Driver_mysql\replace(), MDB2_Driver_mysqli\replace(), MDB2_Driver_Common\replace(), MDB2_Driver_oci8\rollback(), MDB2_Driver_pgsql\rollback(), MDB2_Driver_mysqli\rollback(), MDB2_Driver_mysql\rollback(), MDB2_Driver_pgsql\setCharset(), MDB2_Driver_mysql\setCharset(), MDB2_Driver_mysqli\setCharset(), MDB2\setOptions(), MDB2_Result_Common\setResultTypes(), MDB2_Driver_oci8\standaloneExec(), MDB2_Driver_oci8\standaloneQuery(), MDB2_Driver_pgsql\standaloneQuery(), MDB2_Driver_Common\standaloneQuery(), MDB2_Driver_Common\subSelect(), ilDBPdoReversePostgres\tableInfo(), MDB2_Driver_Reverse_Common\tableInfo(), MDB2_Driver_Reverse_mysql\tableInfo(), MDB2_Driver_Reverse_pgsql\tableInfo(), MDB2_Driver_Reverse_mysqli\tableInfo(), MDB2_Driver_Reverse_oci8\tableInfo(), MDB2_BufferedResult_pgsql\valid(), MDB2_BufferedResult_mysql\valid(), MDB2_BufferedResult_mysqli\valid(), MDB2_Driver_Datatype_oci8\writeLOBToFile(), and MDB2_Driver_Datatype_Common\writeLOBToFile().
PEAR::loadExtension | ( | $ext | ) |
OS independant PHP extension load.
Remember to take care on the correct extension name for case sensitive OSes.
string | $ext | The extension name |
Definition at line 749 of file PEAR.php.
Referenced by MDB2_Driver_oci8\_doConnect(), MDB2_Driver_mysqli\connect(), MDB2_Driver_mysql\connect(), and MDB2_Driver_pgsql\connect().
PEAR::popErrorHandling | ( | ) |
Pop the last error handler used.
Definition at line 725 of file PEAR.php.
References $GLOBALS, $options, and setErrorHandling().
PEAR::popExpect | ( | ) |
This method pops one element off the expected error codes stack.
Definition at line 407 of file PEAR.php.
Referenced by MDB2_Driver_oci8\nextID(), MDB2_Driver_pgsql\nextID(), MDB2_Driver_mysql\nextID(), and MDB2_Driver_mysqli\nextID().
PEAR::pushErrorHandling | ( | $mode, | |
$options = null |
|||
) |
Push a new error handler on top of the error handler options stack.
With this you can easily override the actual error handler for some code and restore it later with popErrorHandling.
mixed | $mode | (same as setErrorHandling) |
mixed | $options | (same as setErrorHandling) |
Definition at line 694 of file PEAR.php.
References $_default_error_mode, $_default_error_options, $GLOBALS, $options, array, and setErrorHandling().
& PEAR::raiseError | ( | $message = null , |
|
$code = null , |
|||
$mode = null , |
|||
$options = null , |
|||
$userinfo = null , |
|||
$error_class = null , |
|||
$skipmsg = false |
|||
) |
This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied.
If the $mode and $options parameters are not specified, the object's defaults are used.
mixed | $message | a text error message or a PEAR error object |
int | $code | a numeric error code (it is up to your class to define these if you want to use codes) |
int | $mode | One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE, PEAR_ERROR_CALLBACK, PEAR_ERROR_EXCEPTION. |
mixed | $options | If $mode is PEAR_ERROR_TRIGGER, this parameter specifies the PHP-internal error level (one of E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR). If $mode is PEAR_ERROR_CALLBACK, this parameter specifies the callback function or method. In other error modes this parameter is ignored. |
string | $userinfo | If you need to pass along for example debug information, this parameter is meant for that. |
string | $error_class | The returned error object will be instantiated from this class, if specified. |
bool | $skipmsg | If true, raiseError will only pass error codes, the error message parameter will be dropped. |
public
Definition at line 522 of file PEAR.php.
References $_default_error_mode, $_default_error_options, $_error_class, $code, $GLOBALS, $options, and PEAR_ERROR_RETURN.
Referenced by delExpect(), ilIndependentTemplate\getFile(), MDB2\raiseError(), MDB2_Driver_Common\raiseError(), ilDB\raisePearError(), and throwError().
PEAR::registerShutdownFunc | ( | $func, | |
$args = array() |
|||
) |
|
static |
Sets how errors generated by this object should be handled.
Can be invoked both in objects and statically. If called statically, setErrorHandling sets the default behaviour for all PEAR objects. If called in an object, setErrorHandling sets the default behaviour for that object.
int | $mode | One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE, PEAR_ERROR_CALLBACK or PEAR_ERROR_EXCEPTION. |
mixed | $options | When $mode is PEAR_ERROR_TRIGGER, this is the error level (one of E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR). |
When $mode is PEAR_ERROR_CALLBACK, this parameter is expected to be the callback function or method. A callback function is a string with the name of the function, a callback method is an array of two elements: the element at index 0 is the object, and the element at index 1 is the name of the method to call in the object.
When $mode is PEAR_ERROR_PRINT or PEAR_ERROR_DIE, this is a printf format string used when printing the error message.
public
Definition at line 337 of file PEAR.php.
References $GLOBALS, $options, PEAR_ERROR_CALLBACK, PEAR_ERROR_DIE, PEAR_ERROR_EXCEPTION, PEAR_ERROR_PRINT, PEAR_ERROR_RETURN, and PEAR_ERROR_TRIGGER.
Referenced by ilDB\connect(), ilDB\connectHost(), popErrorHandling(), and pushErrorHandling().
PEAR::staticPopErrorHandling | ( | ) |
Definition at line 644 of file PEAR.php.
References $GLOBALS, $options, PEAR_ERROR_CALLBACK, PEAR_ERROR_DIE, PEAR_ERROR_EXCEPTION, PEAR_ERROR_PRINT, PEAR_ERROR_RETURN, and PEAR_ERROR_TRIGGER.
PEAR::staticPushErrorHandling | ( | $mode, | |
$options = null |
|||
) |
Definition at line 609 of file PEAR.php.
References $GLOBALS, $options, array, PEAR_ERROR_CALLBACK, PEAR_ERROR_DIE, PEAR_ERROR_EXCEPTION, PEAR_ERROR_PRINT, PEAR_ERROR_RETURN, and PEAR_ERROR_TRIGGER.
& PEAR::throwError | ( | $message = null , |
|
$code = null , |
|||
$userinfo = null |
|||
) |
Simpler form of raiseError with fewer options.
In most cases message, code and userinfo are enough.
string | $message |
Definition at line 595 of file PEAR.php.
References $code, and raiseError().
PEAR::$_default_error_mode = null |
Definition at line 120 of file PEAR.php.
Referenced by pushErrorHandling(), and raiseError().
PEAR::$_default_error_options = null |
Definition at line 129 of file PEAR.php.
Referenced by pushErrorHandling(), and raiseError().
PEAR::$_error_class = 'PEAR_Error' |
Definition at line 146 of file PEAR.php.
Referenced by raiseError().
PEAR::$_expected_errors = array() |
Definition at line 154 of file PEAR.php.
Referenced by expectError().