Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques statiques | |
static | isError (&$object) |
static | getError ($unset=false) |
static | getErrors () |
static | addToStack (JException &$e) |
static | raise ($level, $code, $msg, $info=null, $backtrace=false) |
static | throwError (&$exception) |
static | raiseError ($code, $msg, $info=null) |
static | raiseWarning ($code, $msg, $info=null) |
static | raiseNotice ($code, $msg, $info=null) |
static | getErrorHandling ($level) |
static | setErrorHandling ($level, $mode, $options=null) |
static | attachHandler () |
static | detachHandler () |
static | registerErrorLevel ($level, $name, $handler= 'ignore') |
static | translateErrorLevel ($level) |
static | handleIgnore (&$error, $options) |
static | handleEcho (&$error, $options) |
static | handleVerbose (&$error, $options) |
static | handleDie (&$error, $options) |
static | handleMessage (&$error, $options) |
static | handleLog (&$error, $options) |
static | handleCallback (&$error, $options) |
static | customErrorPage (&$error) |
static | customErrorHandler ($level, $msg) |
static | renderBacktrace ($error) |
Attributs publics statiques | |
static | $legacy = false |
Attributs protégés statiques | |
static | $levels = array(E_NOTICE => 'Notice', E_WARNING => 'Warning', E_ERROR => 'Error') |
static | $handlers |
static | $stack = array() |
|
static |
Method to add non-JError thrown JExceptions to the JError stack for debugging purposes
JException | &$e | Add an exception to the stack. |
Références $stack, JLog\add(), et JLog\WARNING.
Référencé par JException\__construct().
|
static |
Method that attaches the error handler to JError
Références JLog\add(), et JLog\WARNING.
|
static |
Display a message to the user
integer | $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 | $msg | Error message, shown to user if need be. |
Références JLog\add(), raise(), et JLog\WARNING.
|
static |
Display a custom error page and exit gracefully
object | &$error | Exception object |
Références $app, $config, $data, $template, JText\_(), JLog\add(), JResponse\allowCache(), JFactory\getApplication(), JFactory\getConfig(), JDocument\getInstance(), JPATH_THEMES, JResponse\setBody(), JResponse\toString(), et JLog\WARNING.
Référencé par plgSystemRedirect\handleError(), et plgSystemLogout\handleError().
|
static |
Method that detaches the error handler from JError
Références JLog\add(), et JLog\WARNING.
|
static |
Method for retrieving the last exception object in the error stack
boolean | $unset | True to remove the error from the stack. |
Références $stack, JLog\add(), et JLog\WARNING.
Référencé par plgSystemDebug\displayErrors().
|
static |
Method to get the current error handler settings for a specified error level.
integer | $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 $handlers, JLog\add(), et JLog\WARNING.
Référencé par throwError().
|
static |
Method for retrieving the exception stack
Références $stack, JLog\add(), et JLog\WARNING.
Référencé par plgSystemDebug\__destruct().
|
static |
Callback error handler
object | &$error | Exception object to handle |
array | $options | Handler options |
Références $options, JLog\add(), et JLog\WARNING.
|
static |
Die error handler
object | &$error | Exception object to handle |
array | $options | Handler options |
Références JLog\add(), jexit(), translateErrorLevel(), et JLog\WARNING.
|
static |
Echo error handler
object | &$error | Exception object to handle |
array | $options | Handler options |
Références $i, JLog\add(), translateErrorLevel(), et JLog\WARNING.
|
static |
Ignore error handler
object | &$error | Exception object to handle |
array | $options | Handler options |
Références JLog\add(), et JLog\WARNING.
|
static |
Log error handler Logs the error message to a system log file
object | &$error | Exception object to handle |
array | $options | Handler options |
Références $options, JLog\add(), JLog\getInstance(), null, et JLog\WARNING.
|
static |
Message error handler Enqueues the error message into the system queue
object | &$error | Exception object to handle |
array | $options | Handler options |
Références $type, JLog\add(), JFactory\getApplication(), et JLog\WARNING.
|
static |
Verbose error handler
object | &$error | Exception object to handle |
array | $options | Handler options |
Références JLog\add(), null, translateErrorLevel(), et JLog\WARNING.
|
static |
Method to determine if a value is an exception object. This check supports both JException and PHP5 Exception objects
mixed | &$object | Object to check |
Références JLog\add(), et JLog\WARNING.
Create a new JException object given the passed arguments
integer | $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). |
boolean | $backtrace | Add a stack backtrace to the exception. |
Références JLog\add(), jimport(), throwError(), et JLog\WARNING.
Référencé par customErrorHandler(), raiseError(), raiseNotice(), raiseWarning(), et JInstallationControllerSetup\setlanguage().
|
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 JLog\add(), raise(), et JLog\WARNING.
Référencé par JHtml\_(), JSessionStorageXcache\__construct(), JSessionStorageWincache\__construct(), JSessionStorageApc\__construct(), JSessionStorageEaccelerator\__construct(), JSessionStorageMemcache\__construct(), JSessionStorageMemcached\__construct(), JControllerAdmin\__construct(), JControllerForm\__construct(), JModel\__construct(), JInstaller\abort(), UsersControllerRegistration\activate(), JSite\authorise(), JHtml\call(), JPath\check(), plgSystemSef\checkBuffer(), UsersControllerGroups\checkin(), BannersModelBanner\click(), ContentParseRoute(), JFolder\copy(), JController\createView(), UsersControllerGroups\delete(), UsersControllerLevel\delete(), JAdministrator\dispatch(), JSite\dispatch(), ContactViewCategory\display(), ConfigViewComponent\display(), AdminViewProfile\display(), JInstallationViewComplete\display(), JInstallationViewDatabase\display(), JInstallationViewLanguage\display(), JInstallationViewLicense\display(), JInstallationViewSite\display(), BannersViewDownload\display(), ContentViewFeatured\display(), JInstallationViewFilesystem\display(), MessagesViewMessage\display(), ContentViewForm\display(), WeblinksViewForm\display(), CheckinViewCheckin\display(), ModulesViewPositions\display(), UsersViewUser\display(), ConfigViewApplication\display(), ModulesViewSelect\display(), UsersViewLevels\display(), UsersViewUsers\display(), WeblinksViewWeblinks\display(), WeblinksViewWeblink\display(), BannersViewTracks\display(), CategoriesViewCategories\display(), CategoriesViewCategory\display(), UsersViewLevel\display(), ContactViewContact\display(), ContentViewArticle\display(), BannersViewClients\display(), LanguagesViewLanguage\display(), LanguagesViewLanguages\display(), MenusViewMenu\display(), MessagesViewConfig\display(), MessagesViewMessages\display(), ModulesViewModules\display(), NewsfeedsViewNewsfeed\display(), NewsfeedsViewNewsfeeds\display(), PluginsViewPlugin\display(), PluginsViewPlugins\display(), TemplatesViewStyle\display(), TemplatesViewStyles\display(), TemplatesViewTemplate\display(), UsersViewGroup\display(), UsersViewGroups\display(), NewsfeedsViewCategory\display(), WeblinksViewCategory\display(), CacheViewCache\display(), MenusViewItem\display(), MenusViewMenus\display(), SearchViewSearches\display(), JInstallationViewPreinstall\display(), UsersViewDebugGroup\display(), UsersViewDebugUser\display(), TemplatesViewSource\display(), ContentViewCategories\display(), NewsfeedsViewCategories\display(), WeblinksViewCategories\display(), BannersViewClient\display(), BannersViewBanner\display(), RedirectViewLink\display(), ContactViewCategories\display(), ModulesViewModule\display(), RedirectViewLinks\display(), WeblinksController\display(), ContactViewContacts\display(), ContentViewArticles\display(), UsersViewReset\display(), UsersViewRemind\display(), FinderViewFilter\display(), FinderViewFilters\display(), FinderViewStatistics\display(), InstallerViewManage\display(), UsersViewLogin\display(), UsersViewProfile\display(), UsersViewRegistration\display(), ContentViewCategory\display(), MenusViewItems\display(), FinderViewIndex\display(), FinderViewMaps\display(), BannersViewBanners\display(), FinderViewSearch\display(), ContentController\display(), TemplatesViewTemplates\display(), InstallerViewLanguages\display(), UsersControllerProfile\edit(), TemplatesControllerSource\edit(), JDatabaseMySQLi\execute(), JDatabaseMySQL\execute(), JDatabaseSQLSrv\execute(), JController\execute(), JArchive\getAdapter(), JFactory\getApplication(), JCacheStorageMemcached\getConnection(), JCacheStorageMemcache\getConnection(), MailtoViewMailto\getData(), JFormFieldGroupedList\getGroups(), JPathway\getInstance(), JCacheController\getInstance(), JRouter\getInstance(), JApplication\getInstance(), JDatabase\getInstance(), JDocument\getInstance(), NewsfeedsModelNewsfeed\getItem(), ContentModelArticle\getItem(), ContactModelContact\getItem(), BannersModelBanner\getItem(), modLoggedHelper\getList(), modLatestHelper\getList(), modPopularHelper\getList(), JModel\getName(), JView\getName(), JController\getName(), JModel\getTable(), JController\getView(), WeblinksControllerWeblink\go(), BannersModelBanners\impress(), JDocument\loadRenderer(), JView\loadTemplate(), plgUserContactCreator\onUserAfterSave(), UsersControllerGroups\publish(), UsersControllerRegistration\register(), JDocumentFeed\render(), JComponentHelper\renderComponent(), UsersControllerGroups\reorder(), MessagesControllerConfig\save(), MenusControllerMenu\save(), UsersControllerProfile\save(), MenusControllerItem\save(), TemplatesControllerSource\save(), UsersControllerGroups\saveorder(), MailtoController\send(), setErrorHandling(), ContactControllerContact\submit(), et UsersParseRoute().
|
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 JLog\add(), raise(), et JLog\WARNING.
Référencé par JHtmlAccess\assetgroups(), ContentControllerFeatured\delete(), NewsfeedsViewNewsfeed\display(), ContactControllerContacts\featured(), ContentControllerArticles\featured(), JElementAuthor\fetchElement(), JHtmlList\genericordering(), JFormFieldUserMessages\getGroups(), UsersHelper\getGroups(), JFormFieldRules\getInput(), JHtmlUser\groups(), JHtmlMenu\linkoptions(), plgEditorTinymce\onInit(), InstallerModelManage\publish(), JAdministrator\render(), MenusControllerMenu\save(), ConfigModelApplication\save(), MenusModelItem\save(), MailtoController\send(), JMail\Send(), MenusModelItem\setHome(), JInstallerLanguage\uninstall(), MediaControllerFile\upload(), JHtmlAccess\usergroup(), JHtmlAccess\usergroups(), et ConfigModelApplication\writeConfigFile().
|
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 JLog\add(), raise(), et JLog\WARNING.
Référencé par JExtension\__construct(), JAuthentication\__construct(), JoomlaupdateControllerUpdate\_applyCredentials(), JInstallerComponent\_buildAdminMenus(), plgContentJoomla\_countItemsInCategory(), plgContentJoomla\_countItemsInChildren(), JCacheStorageFile\_deleteFolder(), InstallerModelLanguages\_downloadPackage(), JCacheStorageFile\_filesInFolder(), JCacheStorageFile\_folders(), JElementContentLanguages\_getOptions(), InstallerModelInstall\_getPackageFromFolder(), InstallerModelInstall\_getPackageFromUpload(), InstallerModelInstall\_getPackageFromUrl(), plgUserJoomla\_getUser(), JSimpleXML\_handleError(), JInstallerLanguage\_install(), LoginModelLogin\_load(), JPluginHelper\_load(), JModuleHelper\_load(), JComponentHelper\_load(), JEditor\_loadEditor(), JFTP\_mode(), JFTP\_passive(), JFTP\_putCmd(), JInstallerComponent\_removeAdminMenus(), JFTP\_verifyResponse(), JInstaller\abort(), RedirectControllerLinks\activate(), UsersControllerUsers\activate(), UsersModelUser\activate(), JUserHelper\activateUser(), ModulesControllerModule\add(), MenusHtmlMenus\association(), JAuthentication\authenticate(), MediaControllerFile\authoriseUser(), UsersModelUser\block(), UsersControllerUsers\changeBlock(), JFTP\chdir(), CheckinController\checkin(), JFTP\chmod(), JHtmlBanner\clientlist(), JFTP\connect(), TemplatesControllerTemplate\copy(), JFile\copy(), TemplatesModelTemplate\copy(), JInstaller\copyFiles(), MediaControllerFolder\create(), JFolder\create(), JFTP\create(), ContentControllerFeatured\delete(), MediaControllerFolder\delete(), UsersControllerLevel\delete(), BannersControllerTracks\delete(), MenusControllerMenus\delete(), MessagesModelMessage\delete(), CacheController\delete(), TemplatesModelStyle\delete(), CategoriesControllerCategories\delete(), JControllerAdmin\delete(), BannersModelTracks\delete(), JFile\delete(), UsersModelGroup\delete(), MediaControllerFile\delete(), UsersModelUser\delete(), JFolder\delete(), ModulesModelModule\delete(), JModelAdmin\delete(), JFTP\delete(), JInstallerHelper\detectType(), JInstallerLibrary\discover_install(), JInstallerTemplate\discover_install(), JInstallerModule\discover_install(), JInstallerLanguage\discover_install(), JInstallerPlugin\discover_install(), JInstallerComponent\discover_install(), MediaViewMediaList\display(), ContentViewForm\display(), WeblinksViewForm\display(), ContentViewArticle\display(), UsersViewDebugGroup\display(), UsersViewDebugUser\display(), WeblinksViewCategory\display(), ContentViewCategories\display(), ContactViewContact\display(), NewsfeedsViewCategories\display(), WeblinksViewCategories\display(), ContactViewCategories\display(), TemplatesViewPrevuuw\display(), ContactViewFeatured\display(), ContentViewFeatured\display(), ConfigController\display(), AdminViewSysinfo\display(), NewsfeedsViewNewsfeed\display(), UsersController\display(), JInstallerHelper\downloadPackage(), TemplatesControllerStyles\duplicate(), ModulesControllerModules\duplicate(), ModulesModelModule\duplicate(), TemplatesControllerSource\edit(), JHtmlContentLanguage\existing(), JArchive\extract(), JArchiveBzip2\extract(), JArchiveGzip\extract(), JArchiveTar\extract(), JArchiveZip\extract(), ContactControllerContacts\featured(), ContentControllerArticles\featured(), JElementSQL\fetchElement(), JFolder\files(), JInstaller\findManifest(), PluginsHelper\folderOptions(), JFolder\folders(), JFTP\get(), MenusHelper\getAssociations(), BannersHelper\getClientOptions(), JFactory\getFeedParser(), JFormFieldModal_Article\getInput(), JFormFieldModuleOrder\getInput(), JFormFieldModal_Newsfeeds\getInput(), JFormFieldModal_Contacts\getInput(), JFormFieldModuleLayout\getInput(), JFormFieldComponentLayout\getInput(), JCacheStorage\getInstance(), JTable\getInstance(), JModel\getInstance(), JUser\getInstance(), MenusHelper\getMenuLinks(), JView\getName(), JFormFieldCategoryParent\getOptions(), JFormFieldNewsfeeds\getOptions(), JFormFieldGroupParent\getOptions(), JFormFieldMenuParent\getOptions(), JFormFieldMenuOrdering\getOptions(), JFormFieldCategoryEdit\getOptions(), JFormFieldPlugins\getOptions(), JFormFieldSQL\getOptions(), JFormFieldEditors\getOptions(), JFormFieldCategory\getOptions(), ModulesHelper\getPositions(), JSite\getTemplate(), JFactory\getXML(), JFactory\getXMLParser(), WeblinksControllerWeblink\go(), JInstallerLanguage\install(), JInstallerFile\install(), JInstallerTemplate\install(), JInstallerComponent\install(), InstallerModelUpdate\install(), RedirectHelper\isEnabled(), JHtmlAccess\level(), JFTP\listDetails(), JFTP\listNames(), JMenuSite\load(), JUser\load(), JToolBar\loadButtonType(), JUpdate\loadFromXML(), JFTP\login(), JFTP\mkdir(), JFile\move(), plgContentJoomla\onContentBeforeDelete(), plgUserContactCreator\onUserAfterSave(), plgUserJoomla\onUserAfterSave(), plgUserJoomla\onUserLogin(), JInstaller\parseFiles(), JInstaller\parseLanguages(), JInstaller\parseMedia(), JInstaller\parseQueries(), JInstaller\parseSchemaUpdates(), JInstaller\parseSQLFiles(), JInstallerFile\populateFilesAndFolderList(), JHtmlModules\positionList(), InstallerControllerManage\publish(), InstallerModelManage\publish(), JControllerAdmin\publish(), MessagesModelMessage\publish(), JModelAdmin\publish(), MenusModelItem\publish(), JFTP\pwd(), JFile\read(), JFTP\read(), JInstallerLibrary\refreshManifestCache(), JInstallerPackage\refreshManifestCache(), JInstallerTemplate\refreshManifestCache(), JInstallerLanguage\refreshManifestCache(), JInstallerModule\refreshManifestCache(), JInstallerFile\refreshManifestCache(), JInstallerPlugin\refreshManifestCache(), JInstallerComponent\refreshManifestCache(), JDispatcher\register(), JFTP\reinit(), InstallerModelManage\remove(), JInstaller\removeFiles(), JFTP\rename(), JModelAdmin\reorder(), SearchControllerSearches\reset(), JFTP\restart(), MenusControllerMenus\resync(), TemplatesControllerSource\save(), ModulesModelModule\save(), UsersModelLevels\saveorder(), JModelAdmin\saveorder(), MailtoController\send(), JClientHelper\setCredentialsFromRequest(), TemplatesControllerStyles\setDefault(), MenusControllerItems\setDefault(), MenusModelItem\setHome(), JMail\setSender(), BannersModelBanner\stick(), BannersControllerBanners\sticky_publish(), JFTP\store(), ContentModelArticle\storeVote(), ContactControllerContact\submit(), JFTP\syst(), JFormRuleUsername\test(), JFormRuleEmail\test(), JInstallerLibrary\uninstall(), JInstallerTemplate\uninstall(), JInstallerPackage\uninstall(), JInstallerFile\uninstall(), JInstallerLanguage\uninstall(), JInstallerPlugin\uninstall(), JInstallerModule\uninstall(), JInstallerComponent\uninstall(), TemplatesControllerStyles\unsetDefault(), JInstallerComponent\update(), BannersHelper\updateReset(), MediaControllerFile\upload(), JFile\upload(), JHtmlUser\userlist(), JForm\validate(), JFile\write(), et JFTP\write().
|
static |
Method to register a new error level for handling errors
This allows you to add custom error levels to the built-in
integer | $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 $levels, $name, JLog\add(), setErrorHandling(), et JLog\WARNING.
|
static |
Render the backtrace
integer | $error | The error |
Références $i, JLog\add(), null, et JLog\WARNING.
|
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:
integer | $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 $function, $handlers, $levels, $mode, $options, JLog\add(), null, raiseError(), et JLog\WARNING.
Référencé par plgSystemLogout\__construct(), plgSystemRedirect\__construct(), JDatabase\getInstance(), registerErrorLevel(), et JInstallationControllerSetup\setlanguage().
|
static |
Throw an error
object | &$exception | An exception to throw. |
Références $function, JLog\add(), getErrorHandling(), jexit(), et JLog\WARNING.
Référencé par raise().
|
static |
Translate an error level integer to a human readable string e.g. E_ERROR will be translated to 'Error'
integer | $level | Error level to translate |
Références $levels, JLog\add(), et JLog\WARNING.
Référencé par handleDie(), handleEcho(), et handleVerbose().
|
staticprotected |
Référencé par getErrorHandling(), et setErrorHandling().
|
static |
Référencé par JDatabaseMySQLi\__construct(), JDatabaseMySQL\__construct(), JDatabaseSQLSrv\__construct(), JDatabaseMySQLi\execute(), JDatabaseMySQL\execute(), JDatabaseSQLSrv\execute(), JDatabase\getInstance(), JInstallerTemplate\install(), JTable\load(), JDatabaseMySQLi\select(), JDatabaseMySQL\select(), et JDatabaseSQLSrv\select().
|
staticprotected |
Référencé par registerErrorLevel(), setErrorHandling(), et translateErrorLevel().
|
staticprotected |
Référencé par addToStack(), getError(), et getErrors().