API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JError::attachHandler | ( | ) |
JError::customErrorHandler | ( | $ | level, |
$ | msg | ||
) |
JError::customErrorPage | ( | &$ | error | ) | [static] |
Display a custom error page and exit gracefully
object | $error | Exception object |
Références $config, $data, $document, $error, JText::_(), JFactory::getApplication(), JFactory::getConfig(), JDocument::getInstance(), JFactory::getLanguage(), jimport(), JResponse::setBody(), et JResponse::toString().
JError::detachHandler | ( | ) |
& JError::getError | ( | $ | unset = false | ) | [static] |
JError::getErrorHandling | ( | $ | level | ) | [static] |
Method to get the current error handler settings for a specified error level.
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().
& JError::getErrors | ( | ) | [static] |
Method for retrieving the exception stack
public
Références $GLOBALS.
Référencé par UserViewLogin::display().
& JError::handleCallback | ( | &$ | error, |
$ | options | ||
) | [static] |
& JError::handleDie | ( | &$ | error, |
$ | options | ||
) | [static] |
Die error handler
object | $error | Exception object to handle |
array | $options | Handler options |
Références $error, jexit(), et translateErrorLevel().
& JError::handleEcho | ( | &$ | error, |
$ | options | ||
) | [static] |
Echo error handler
object | $error | Exception object to handle |
array | $options | Handler options |
Références $error, et translateErrorLevel().
& JError::handleIgnore | ( | &$ | error, |
$ | options | ||
) | [static] |
& JError::handleLog | ( | &$ | error, |
$ | options | ||
) | [static] |
Log error handler
object | $error | Exception object to handle |
array | $options | Handler options |
Références $error, JLog::getInstance(), et jimport().
& JError::handleMessage | ( | &$ | error, |
$ | options | ||
) | [static] |
Message error handler
object | $error | Exception object to handle |
array | $options | Handler options |
Références $error, $mainframe, et $type.
& JError::handleVerbose | ( | &$ | error, |
$ | options | ||
) | [static] |
Verbose error handler
object | $error | Exception object to handle |
array | $options | Handler options |
Références $error, et translateErrorLevel().
JError::isError | ( | &$ | object | ) | [static] |
Method to determine if a value is an exception object. This check supports both JException and PHP5 Exception objects
public
mixed | &$object | Object to check |
Référencé par JFactory::_createDBO(), JCache::clean(), JView::display(), ContactController::display(), TemplatesView::editCSSSource(), TemplatesView::editTemplate(), TemplatesView::editTemplateSource(), JArchive::extract(), JAJAXHandler::ftproot(), JAJAXHandler::ftpverify(), JCache::gc(), JCache::get(), JObject::getError(), JApplication::getMenu(), JApplication::getPathway(), JApplication::getRouter(), UserController::login(), JAdministrator::login(), LoginController::login(), UserController::logout(), LoginController::logout(), JInstallationModel::makeDB(), plgUserJoomla::onLoginUser(), JCache::remove(), sendMail(), JDocumentError::setError(), HTML_languages::showLanguages(), JCache::store(), et ContactController::submit().
& JError::raise | ( | $ | level, |
$ | code, | ||
$ | msg, | ||
$ | info = null , |
||
$ | backtrace = false |
||
) | [static] |
Create a new JException object given the passed arguments
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 $GLOBALS, getErrorHandling(), jexit(), et jimport().
Référencé par customErrorHandler(), raiseError(), raiseNotice(), et raiseWarning().
& JError::raiseError | ( | $ | code, |
$ | msg, | ||
$ | info = null |
||
) | [static] |
Wrapper method for the raise() method with predefined error level of E_ERROR and backtrace set to true.
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 JSessionStorageXcache::__construct(), JInstallationModel::__construct(), JSessionStorageMemcache::__construct(), JCacheStorageMemcache::__construct(), JSessionStorageEaccelerator::__construct(), JSessionStorageApc::__construct(), JFactory::_createDBO(), JController::_createView(), ContentModelSection::_loadData(), ContentModelCategory::_loadData(), InstallerModel::_loadItems(), ContentController::accessMenu(), UserController::activate(), JMenuTree::addNode(), JSite::authorize(), UsersController::block(), WeblinksControllerWeblink::cancel(), changeContact(), ContentController::changeContent(), changeFrontPage(), changePublishNewsFeeds(), JPath::check(), BannersModelBanner::click(), JFolder::copy(), copyCategorySave(), copyCategorySelect(), ContentController::copyItemSave(), copySectionSave(), copySectionSelect(), UserViewRegister::display(), PollViewPoll::display(), ContentViewArticle::display(), ContactViewContact::display(), WeblinksControllerWeblink::edit(), UserController::edit(), ContentController::edit(), JController::execute(), JInstallationHelper::findFtpRoot(), ContentController::findkey(), JInstallationHelper::FTPVerify(), JArchive::getAdapter(), JFactory::getApplication(), ContentModelArticle::getArticle(), ContentModelSection::getCategories(), WeblinksModelCategory::getCategory(), NewsfeedsModelCategory::getCategory(), ContentModelCategory::getCategory(), WeblinksModelWeblink::getData(), MailtoViewMailto::getData(), ContentModelSection::getData(), NewsfeedsModelNewsfeed::getData(), ContentModelCategory::getData(), JRouter::getInstance(), JPathway::getInstance(), JRegistryFormat::getInstance(), JDocument::getInstance(), JDatabase::getInstance(), JCache::getInstance(), JApplication::getInstance(), ContentModelElement::getList(), JView::getName(), JModel::getName(), JController::getName(), JApplication::getName(), ContentModelSection::getSection(), ContentModelCategory::getSiblings(), JModel::getTable(), BannersModelBanner::getUrl(), JController::getView(), BannersModelBanner::impress(), JDocument::loadRenderer(), JView::loadTemplate(), JTable::move(), moveCategorySave(), moveCategorySelect(), ContentController::moveSectionSave(), WeblinksController::publish(), PollController::publish(), PluginsController::publish(), publishCategories(), publishSections(), JDatabaseMySQLi::query(), JDatabaseMySQL::query(), UserController::register(), UserController::register_save(), WeblinksController::remove(), UsersController::remove(), removeCategories(), ContentController::removeContent(), removeFrontPage(), removeMessage(), removeSections(), JDocumentFeed::render(), JComponentHelper::renderComponent(), restoreTrash(), WeblinksControllerWeblink::save(), UserController::save(), ContentController::save(), PollController::save(), PluginsController::save(), saveCategory(), saveContact(), saveMessage(), saveNewsFeed(), PluginsController::saveorder(), ContentController::saveOrder(), BannerControllerBanner::saveOrder(), saveOrder(), saveSection(), MailtoController::send(), setErrorHandling(), ContentModelArticle::store(), ContentModelArticle::storeVote(), ContentController::toggleFrontPage(), WeblinksController::unpublish(), JObserver::update(), et ContentController::viewContent().
& JError::raiseNotice | ( | $ | code, |
$ | msg, | ||
$ | info = null |
||
) | [static] |
Wrapper method for the raise() method with predefined error level of E_NOTICE and backtrace set to false.
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 mosAdminMenus::menuItem(), mosAdminMenus::menutypes(), plgEditorTinymce::onInit(), ConfigControllerApplication::save(), TemplatesController::saveTemplate(), TemplatesController::saveTemplateCSS(), TemplatesController::saveTemplateSource(), JMail::Send(), MailtoController::send(), et MediaControllerFile::upload().
& JError::raiseWarning | ( | $ | code, |
$ | msg, | ||
$ | info = null |
||
) | [static] |
Wrapper method for the raise() method with predefined error level of E_WARNING and backtrace set to false.
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 JHTML::_(), JAuthentication::__construct(), JInstallerComponent::_buildAdminMenus(), WeblinksViewWeblink::_displayForm(), ContentViewArticle::_displayForm(), JInstaller::_findManifest(), InstallerModelInstall::_getPackageFromFolder(), InstallerModelInstall::_getPackageFromUpload(), InstallerModelInstall::_getPackageFromUrl(), plgUserJoomla::_getUser(), JSimpleXML::_handleError(), JPluginHelper::_load(), JModuleHelper::_load(), JComponentHelper::_load(), JEditor::_loadEditor(), JFTP::_mode(), JFTP::_passive(), JFTP::_putCmd(), JInstallerComponent::_removeAdminMenus(), JFTP::_verifyResponse(), JInstaller::abort(), JUserHelper::activateUser(), changePublishNewsFeeds(), JFTP::chdir(), JFTP::chmod(), JFTP::connect(), JFile::copy(), BannerControllerBanner::copy(), copyCategorySave(), JInstaller::copyFiles(), copySectionSave(), JFTP::create(), JFolder::create(), JFTP::delete(), JFolder::delete(), MediaControllerFolder::delete(), JFile::delete(), MediaControllerFile::delete(), JInstallerHelper::detectType(), ContentViewArticle::display(), MenusController::doCopyMenu(), MenusController::doDeleteMenu(), JInstallerHelper::downloadPackage(), ConfigControllerComponent::edit(), BannerControllerClient::edit(), BannerControllerBanner::edit(), TemplatesController::editTemplate(), JArchiveZip::extract(), JArchiveTar::extract(), JArchiveGzip::extract(), JArchiveBzip2::extract(), JArchive::extract(), JFolder::files(), JFolder::folders(), JInstallationHelper::FTPVerify(), JFTP::get(), JUser::getInstance(), JTable::getInstance(), JCacheStorage::getInstance(), JModel::getInstance(), modBannersHelper::getModel(), JView::getName(), modWhosonlineHelper::getOnlineCount(), modWhosonlineHelper::getOnlineMemberNames(), modPollHelper::getPoll(), JFactory::getXMLParser(), JInstallerTemplate::install(), JInstallerComponent::install(), ContentModelArticle::isCheckedOut(), JFTP::listDetails(), JFTP::listNames(), JUser::load(), JMenuSite::load(), JToolBar::loadButtonType(), JFTP::login(), JApplication::login(), JFTP::mkdir(), JFile::move(), moveCategorySave(), plgUserJoomla::onLoginUser(), JInstaller::parseFiles(), JInstaller::parseLanguages(), JInstaller::parseMedia(), JInstaller::parseQueries(), JInstaller::parseSQLFiles(), TemplatesController::previewTemplate(), BannerControllerBanner::publish(), JFTP::pwd(), JFTP::read(), JFile::read(), JDispatcher::register(), UserController::register_save(), JFTP::reinit(), InstallerModelLanguages::remove(), BannerControllerClient::remove(), BannerControllerBanner::remove(), removeNewsFeeds(), JFTP::rename(), JFTP::restart(), ConfigControllerComponent::save(), BannerControllerClient::save(), BannerControllerBanner::save(), ConfigControllerApplication::save(), MenusController::saveMenu(), BannerControllerBanner::saveOrder(), MailtoController::send(), JClientHelper::setCredentialsFromRequest(), MenusModelList::setItemState(), JMail::setSender(), JFTP::store(), ContentModelArticle::storeVote(), ContactController::submit(), JFTP::syst(), MenusModelList::toTrash(), JDispatcher::trigger(), JInstallerTemplate::uninstall(), JInstallerPlugin::uninstall(), JInstallerModule::uninstall(), JInstallerLanguage::uninstall(), JInstallerComponent::uninstall(), JFile::upload(), MediaControllerFile::upload(), ContactController::vcard(), PollController::vote(), et JFTP::write().
JError::registerErrorLevel | ( | $ | level, |
$ | name, | ||
$ | handler = 'ignore' |
||
) | [static] |
Method to register a new error level for handling errors
This allows you to add custom error levels to the built-in
int | $level | Error level to register |
string | $name | Human readable name for the error level |
string | $handler | Error handler to set for the new error level [optional] |
Références $GLOBALS, $name, et setErrorHandling().
JError::setErrorHandling | ( | $ | level, |
$ | mode, | ||
$ | options = null |
||
) | [static] |
Method to set the way the JError will handle 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:
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 JInstallation::__construct(), JDatabase::getInstance(), et registerErrorLevel().
JError::translateErrorLevel | ( | $ | level | ) | [static] |
Translate an error level integer to a human readable string e.g. E_ERROR will be translated to 'Error'
int | $level | Error level to translate |
Références $GLOBALS.
Référencé par handleDie(), handleEcho(), et handleVerbose().