API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
patErrorManager::addIgnore | ( | $ | codes | ) | [static] |
add error codes to be ingored
public
mixed | $codes | either an array of error code or a single code that will be ignored in future |
Références $GLOBALS.
patErrorManager::clearExpect | ( | ) | [static] |
empty list of errors to be ignored
public
Références $GLOBALS.
patErrorManager::clearIgnore | ( | ) | [static] |
empty list of errors to be ignored
public
Références $GLOBALS.
patErrorManager::getErrorHandling | ( | $ | level | ) |
retrieves the current error handling settings for the specified error level.
public
int | $level | The error level to retrieve. This can be any of PHP's own error levels, e.g. E_ALL, E_NOTICE... |
Références $GLOBALS.
Référencé par raise().
patErrorManager::getExpect | ( | ) | [static] |
recieve all registerd error codes that will be ignored
public
Références $GLOBALS.
patErrorManager::getIgnore | ( | ) | [static] |
recieve all registerd error codes that will be ignored
public
Références $GLOBALS.
& patErrorManager::handleErrorCallback | ( | &$ | error, |
$ | options | ||
) |
& patErrorManager::handleErrorDie | ( | &$ | error, |
$ | options | ||
) |
handleError: die display error-message and die
private
object | $error | patError-Object |
array | $options | options for handler |
Références $error, jexit(), et translateErrorLevel().
& patErrorManager::handleErrorEcho | ( | &$ | error, |
$ | options | ||
) |
handleError: Echo display error message
private
object | $error | patError-Object |
array | $options | options for handler |
Références $error, et translateErrorLevel().
& patErrorManager::handleErrorIgnore | ( | &$ | error, |
$ | options | ||
) |
& patErrorManager::handleErrorTrigger | ( | &$ | error, |
$ | options | ||
) |
& patErrorManager::handleErrorVerbose | ( | &$ | error, |
$ | options | ||
) |
handleError: Verbose display verbose output for developing purpose
private
object | $error | patError-Object |
array | $options | options for handler |
Références $error, et translateErrorLevel().
patErrorManager::isError | ( | &$ | object | ) | [static] |
method for checking whether the return value of a pat application method is a pat error object.
public
mixed | &$object |
Références $GLOBALS.
Référencé par patTemplate_Reader::_endElement(), patTemplate_Reader::_startElement(), patTemplate::applyInputFilter(), patTemplate::applyOutputFilter(), patTemplate_Compiler::compileTemplate(), patTemplate::displayParsedTemplate(), patTemplate::dump(), JTemplate::fetch(), patTemplate_Reader_DB::getDataFromDb(), patTemplate::getParsedTemplate(), patTemplate_Reader_IT::loadTemplate(), patTemplate_Reader_File::loadTemplate(), patTemplate::loadTemplateFromInput(), patTemplate::parseIntoVar(), patTemplate_Reader::parseString(), patTemplate_Reader_IT::parseString(), patTemplate::parseTemplate(), patTemplate_Reader_IT::readTemplates(), patTemplate_Reader_File::readTemplates(), patTemplate_Reader_DB::readTemplates(), patTemplate::readTemplatesFromInput(), et patTemplate::useTemplateCache().
patErrorManager::popExpect | ( | ) | [static] |
remove top of error-codes from stack
public
Références $GLOBALS.
patErrorManager::pushExpect | ( | $ | codes | ) | [static] |
add expected errors to stack
public
mixed | $codes | either an array of error code or a single code that will be ignored in future |
Références $GLOBALS.
& patErrorManager::raise | ( | $ | level, |
$ | code, | ||
$ | msg, | ||
$ | info = null |
||
) |
creates a new patError object given the specified information.
public
int | $level | The error level - use any of PHP's own error levels for this: E_ERROR, E_WARNING, E_NOTICE, E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE. |
string | $code | The application-internal error code for this error |
string | $msg | The error message, which may also be shown the user if need be. |
mixed | $info | Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN). |
Références $class, $error, $GLOBALS, getErrorHandling(), et jexit().
Référencé par raiseError(), raiseNotice(), et raiseWarning().
& patErrorManager::raiseError | ( | $ | code, |
$ | msg, | ||
$ | info = null |
||
) | [static] |
wrapper for the raise() method where you do not have to specify the error level - a patError object with error level E_ERROR will be returned.
public
string | $code | The application-internal error code for this error |
string | $msg | The error message, which may also be shown the user if need be. |
mixed | $info | Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN). |
Références raise().
Référencé par patTemplate_Reader::_endElement(), patTemplate_Reader_IT::_getFileContents(), patTemplate_Reader_File::_getFileContents(), patTemplate_Reader::_handleVariable(), patTemplate_Reader::_initLink(), patTemplate_Reader::_initSubTemplate(), patTemplate::_parseDependencies(), patTemplate_Reader::_prepareTmplAttributes(), patTemplate_Reader_File::_resolveFullPath(), patTemplate_Reader::_startElement(), patTemplate_Function_Call::call(), patTemplate_Reader_DB::getDataFromDb(), patTemplate::loadModule(), patTemplate_Reader_DB::parseInputStringToQuery(), patTemplate_Reader::parseString(), patTemplate_Reader_IT::parseString(), patTemplate::readTemplatesFromInput(), patTemplate::setAttributes(), et setErrorHandling().
& patErrorManager::raiseNotice | ( | $ | code, |
$ | msg, | ||
$ | info = null |
||
) | [static] |
wrapper for the raise() method where you do not have to specify the error level - a patError object with error level E_NOTICE will be returned.
public
string | $code | The application-internal error code for this error |
string | $msg | The error message, which may also be shown the user if need be. |
mixed | $info | Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN). |
Références raise().
Référencé par patTemplate_Reader::_closeTemplate(), et patTemplate_Reader::_initTemplate().
& patErrorManager::raiseWarning | ( | $ | code, |
$ | msg, | ||
$ | info = null |
||
) | [static] |
wrapper for the raise() method where you do not have to specify the error level - a patError object with error level E_WARNING will be returned.
public
string | $code | The application-internal error code for this error |
string | $msg | The error message, which may also be shown the user if need be. |
mixed | $info | Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN). |
Références raise().
Référencé par patTemplate::_fetchVariables(), patTemplate::applyOutputFilter(), patTemplate::clearAttribute(), patTemplate_Compiler::compileTemplate(), patTemplate::freeTemplate(), patTemplate::getAttribute(), patTemplate::getAttributes(), patTemplate::loadTemplate(), patTemplate::parseTemplate(), patTemplate::setAttribute(), patTemplate::setAttributes(), et patTemplate::setType().
patErrorManager::registerErrorLevel | ( | $ | level, |
$ | name | ||
) |
register a new error level
This allows you to add custom error levels to the built-in
You may use this level in subsequent calls to raise(). Error handling will be set to 'ignore' for the new level, you may change it by using setErrorHandling().
You could be using PHP's predefined constants for error levels or any other integer value.
public
integer | error level |
string | human-readable name |
Références $GLOBALS, $name, et setErrorHandling().
patErrorManager::removeIgnore | ( | $ | codes | ) | [static] |
patErrorManager::setErrorClass | ( | $ | name | ) |
setErrorClass
In order to autoload this class, the filename containing that class must be named like the class itself; with an appending ".php". Although the file must be stored in the same directory as patErrorManager.php (this file)
public
string | $name | classname |
patErrorManager::setErrorHandling | ( | $ | level, |
$ | mode, | ||
$ | options = null |
||
) | [static] |
sets the way the patErrorManager will handle teh different error levels. Use this if you want to override the default settings.
Error handling modes:
You may also set the error handling for several modes at once using PHP's bit operations. Examples:
public
int | $level | The error level for which to set the error handling |
string | $mode | The mode to use for the error handling. |
mixed | $options | Optional: Any options needed for the given mode. |
Références $GLOBALS, et raiseError().
Référencé par registerErrorLevel().
patErrorManager::translateErrorLevel | ( | $ | level | ) |
translate an error level
returns the human-readable name for an error level, e.g. E_ERROR will be translated to 'Error'.
public
integer | error level |
Références $GLOBALS.
Référencé par handleErrorDie(), handleErrorEcho(), et handleErrorVerbose().