[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/exception/ -> MWException.php (summary)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

File Size: 262 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MWException:: (12 methods):
  useOutputPage()
  isLoggable()
  useMessageCache()
  runHooks()
  msg()
  getHTML()
  getText()
  getPageTitle()
  reportHTML()
  report()
  isCommandLine()
  header()


Class: MWException  - X-Ref

MediaWiki exception

useOutputPage()   X-Ref
Should the exception use $wgOut to output the error?

return: bool

isLoggable()   X-Ref
Whether to log this exception in the exception debug log.

return: bool

useMessageCache()   X-Ref
Can the extension use the Message class/wfMessage to get i18n-ed messages?

return: bool

runHooks( $name, $args = array()   X-Ref
Run hook to allow extensions to modify the text of the exception

param: string $name Class name of the exception
param: array $args Arguments to pass to the callback functions
return: string|null String to output or null if any hook has been called

msg( $key, $fallback )   X-Ref
Get a message from i18n

param: string $key Message name
param: string $fallback Default message if the message cache can't be
return: string Message with arguments replaced

getHTML()   X-Ref
If $wgShowExceptionDetails is true, return a HTML message with a
backtrace to the error, otherwise show a message to ask to set it to true
to show that information.

return: string Html to output

getText()   X-Ref
Get the text to display when reporting the error on the command line.
If $wgShowExceptionDetails is true, return a text message with a
backtrace to the error.

return: string

getPageTitle()   X-Ref
Return the title of the page when reporting this error in a HTTP response.

return: string

reportHTML()   X-Ref
Output the exception report using HTML.


report()   X-Ref
Output a report about the exception and takes care of formatting.
It will be either HTML or plain text based on isCommandLine().


isCommandLine()   X-Ref
Check whether we are in command line mode or not to report the exception
in the correct format.

return: bool

header( $header )   X-Ref
Send a header, if we haven't already sent them. We shouldn't,
but sometimes we might in a weird case like Export

param: string $header



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1