MediaWiki  1.28.1
docs/hooks.txt File Reference

Typedefs

using $result = The index of the header message $result[1]=The index of the body text message $result[2 through n]=Parameters passed to body text message.Please note the header message cannot receive/use parameters. 'ImportHandleLogItemXMLTag':When parsing a XML tag in a log item.Return false to stop further processing of the tag $reader:XMLReader object $logInfo:Array of information 'ImportHandlePageXMLTag':When parsing a XML tag in a page.Return false to stop further processing of the tag $reader:XMLReader object &$pageInfo:Array of information 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision.Return false to stop further processing of the tag $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information 'ImportHandleToplevelXMLTag':When parsing a top level XML tag.Return false to stop further processing of the tag $reader:XMLReader object 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload.Return false to stop further processing of the tag $reader:XMLReader object $revisionInfo:Array of information 'ImportLogInterwikiLink':Hook to change the interwiki link used in log entries and edit summaries for transwiki imports.&$fullInterwikiPrefix:Interwiki prefix, may contain colons.&$pageTitle:String that contains page title. 'ImportSources':Called when reading from the $wgImportSources configuration variable.Can be used to lazy-load the import sources list.&$importSources:The value of $wgImportSources.Modify as necessary.See the comment in DefaultSettings.php for the detail of how to structure this array. 'InfoAction':When building information to display on the action=info page.$context:IContextSource object &$pageInfo:Array of information 'InitializeArticleMaybeRedirect':MediaWiki check to see if title is a redirect.&$title:Title object for the current page &$request:WebRequest &$ignoreRedirect:boolean to skip redirect check &$target:Title/string of redirect target &$article:Article object 'InternalParseBeforeLinks':during Parser's internalParse method before links but after nowiki/noinclude/includeonly/onlyinclude and other processings.&$parser:Parser object &$text:string containing partially parsed text &$stripState:Parser's internal StripState object 'InternalParseBeforeSanitize':during Parser's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/onlyinclude and other processings.Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments.&$parser:Parser object &$text:string containing partially parsed text &$stripState:Parser's internal StripState object 'InterwikiLoadPrefix':When resolving if a given prefix is an interwiki or not.Return true without providing an interwiki to continue interwiki search.$prefix:interwiki prefix we are looking for.&$iwData:output array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid. 'InvalidateEmailComplete':Called after a user's email has been invalidated successfully.$user:user(object) whose email is being invalidated 'IRCLineURL':When constructing the URL to use in an IRC notification.Callee may modify $url and $query, URL will be constructed as $url.$query &$url:URL to index.php &$query:Query string $rc:RecentChange object that triggered url generation 'IsFileCacheable':Override the result of Article::isFileCacheable()(if true) &$article:article(object) being checked 'IsTrustedProxy':Override the result of IP::isTrustedProxy() &$ip:IP being check &$result:Change this value to override the result of IP::isTrustedProxy() 'IsUploadAllowedFromUrl':Override the result of UploadFromUrl::isAllowedUrl() $url:URL used to upload from &$allowed:Boolean indicating if uploading is allowed for given URL 'isValidEmailAddr':Override the result of Sanitizer::validateEmail(), for instance to return false if the domain name doesn't match your organization.$addr:The e-mail address entered by the user &$result:Set this and return false to override the internal checks 'isValidPassword':Override the result of User::isValidPassword() $password:The password entered by the user &$result:Set this and return false to override the internal checks $user:User the password is being validated for 'Language::getMessagesFileName':$code:The language code or the language we're looking for a messages file for &$file:The messages file path, you can override this to change the location. 'LanguageGetMagic':DEPRECATED!Use $magicWords in a file listed in $wgExtensionMessagesFiles instead.Use this to define synonyms of magic words depending of the language &$magicExtensions:associative array of magic words synonyms $lang:language code(string) 'LanguageGetNamespaces':Provide custom ordering for namespaces or remove namespaces.Do not use this hook to add namespaces.Use CanonicalNamespaces for that.&$namespaces:Array of namespaces indexed by their numbers 'LanguageGetSpecialPageAliases':DEPRECATED!Use $specialPageAliases in a file listed in $wgExtensionMessagesFiles instead.Use to define aliases of special pages names depending of the language &$specialPageAliases:associative array of magic words synonyms $lang:language code(string) 'LanguageGetTranslatedLanguageNames':Provide translated language names.&$names:array of language code=> language name $code:language of the preferred translations 'LanguageLinks':Manipulate a page's language links.This is called in various places to allow extensions to define the effective language links for a page.$title:The page's Title.&$links:Associative array mapping language codes to prefixed links of the form"language:title".&$linkFlags:Associative array mapping prefixed links to arrays of flags.Currently unused, but planned to provide support for marking individual language links in the UI, e.g.for featured articles. 'LanguageSelector':Hook to change the language selector available on a page.$out:The output page.$cssClassName:CSS class name of the language selector. 'LinkBegin':DEPRECATED!Use HtmlPageLinkRendererBegin instead.Used when generating internal and interwiki links in Linker::link(), before processing starts.Return false to skip default processing and return $ret.See documentation for Linker::link() for details on the expected meanings of parameters.$skin:the Skin object $target:the Title that the link is pointing to &$html:the contents that the< a > tag should have(raw HTML)
 
using myext.tests = array( 'script'=> 'extension/myext/tests.js', 'dependencies'=>< any module dependency you might have >)
 

Functions

for adding new MIME info to
the list Use $mimeMagic 
addExtraTypes ($stringOfTypes)
 
the array () calling protocol came about after MediaWiki 1.4rc1.
 
if the prop value should be in
the metadata multi language
array can modify can modify
indexed by page_id indexed by
prefixed DB keys can modify
can modify can modify this
should be populated with an
alert message to that effect
to be fed to an HTMLForm
object and populate $result
with the reason in the form of 
array (messagename, param1, param2,...) or a MessageSpecifier instance(you might want to use ApiMessage to provide machine-readable details for the API).For consistency
 
Returning false makes less
sense for events where the
action is and will normally be
ignored Note that none of the
examples made use of 
create_function () as a way to attach a function to a hook.This is known to cause problems(notably with Special
 
the other converts the title
to all uppercase letters in
MediaWiki we would handle this
as 
follows (note:not real code, here)
 
 if ($wgReverseTitle)
 
function ldapLogin ($username, $password)
 
We ve cleaned up the code here
by removing clumps of
infrequently used code and
moving them off somewhere else
It s much easier for someone
working with this code to see
what s _really_ going and make
changes or fix bugs In we can
take all the code that deals
with the little used title
reversing 
options (say) and put it in one place.Instead of having little title-reversing if-blocks spread all over the codebase in showAnArticle
 
either a unescaped string or a
HtmlArmor object after in
associative array form
externallinks including delete
and has completed for all link
tables whether this was an
auto creation default is conds
Array Extra conditions for the 
query (e.g."log_action != 'revision'")-showIfEmpty boolean Set to false if you don't want any output in case the loglist is empty if set to true(default)
 
processing should stop and the
error should be shown to the
user if you wanted to
authenticate users to a custom 
system (LDAP, another PHP program, whatever)
 
or there are no hooks to or
false if it shouldn t(an error
occurred, or one of the hooks
handled the action already).Checking
the return value matters more
for"before"hooks than for"complete"hooks.Hooks
this is a necessary
inconvenience to make it
possible to pass reference 
values (that can be changed) into the hook code.Also note that earlier versions of wfRunHooks took a variable number of arguments
 
either a unescaped string or a
HtmlArmor object after in
associative array form
externallinks including delete
and has completed for all link
tables whether this was an
auto creation default is conds
Array Extra conditions for the
No matching items in log is
displayed if loglist is empty
msgKey Array If you want a
nice box with a set this to
the key of the message First
element is the message
additional optional elements
are parameters for the key
that are processed with 
wfMessage () -> params() ->parseAsBlock()-offset Set to overwrite offset parameter in $wgRequest set to ''to unsetoffset-wrap String Wrap the message in html(usually something like"&lt
 

Variables

please add to it if you re
going to add events to the
MediaWiki code where normally
authentication against an
external auth plugin would be
creating a local account
incomplete & 
$abortMsg
 
Using a hook running we can
avoid having all this option
specific stuff in our mainline
code Using the function array 
$article
 
null means default in
associative array with keys
and values unescaped Should be
merged with default with a
value of false meaning to
suppress the attribute in
associative array with keys
and values unescaped noclasses
just before the function
returns a value If you return
an< a > element with HTML
attributes $attribs and
contents $html will be
returned If you return $ret
will be returned and may
include noclasses after
processing
$attribs
 
return true to allow those
checks to and false if
checking is done remove or add
to the links of a group of
changes in EnhancedChangesList
Hook subscribers can return
false to omit this line from
recentchanges use this to
change the tables headers temp
or archived zone change it to
an object instance and return
false override the list
derivative used the name of
the old file when set the
default code will be skipped
true if there is text before
this autocomment 
$auto
 
return true to allow those
checks to and false if
checking is done remove or add
to the links of a group of
changes in EnhancedChangesList
Hook subscribers can return
false to omit this line from
recentchanges 
$changesList
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place
modifiable or by returning
false and taking over the
output modifiable & 
$code
 
if the prop value should be in
the metadata multi language
array can modify can modify
indexed by page_id & 
$colours
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content 
$content
 
null means default$customAttribs
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive false for true for
descending in case the handler
function wants to provide a
converted Content object Note
that $result getContentModel()
must return $toModel.
'CustomEditor'$rcid is used in
generating this variable which
contains information about the
new such as the revision s
whether the revision was
marked as a minor edit or etc 
$differenceEngine
 
div flags Integer display
flags(NO_ACTION_LINK,
NO_EXTRA_USER_LINKS)
'LogException'returning false
will NOT prevent logging 
$e
 
passed in as a query string
parameter to the various URLs
constructed here(i.e.$prevlink)
$ldel you ll need to handle
error etc yourself modifying
$error and returning true will
cause the contents of $error
to be echoed at the top of the
edit form as wikitext Return
true without altering $error
to allow the edit to proceed & 
$editor
 
the value to return A Title
object or null for latest all
implement SearchIndexField 
$engine
 
return true to allow those
checks to and false if
checking is done remove or add
to the links of a group of
changes in EnhancedChangesList
Hook subscribers can return
false to omit this line from
recentchanges use this to
change the tables headers
$extTypes
 
it s the revision text itself
In either if gzip is the
revision text is gzipped 
$flags
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive false for true for
descending in case the handler
function wants to provide a
converted Content object Note
that $result getContentModel()
must return $toModel.
'CustomEditor'$rcid is used in
generating this variable which
contains information about the
new such as the revision s
whether the revision was
marked as a minor edit or etc
which include things like
revision author revision
RevisionDelete link and more 
$formattedRevisionTools
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state 
$generateHtml
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place
modifiable or by returning
false and taking over the
output modifiable modifiable
after all normalizations have
been except for the
$wgMaxImageArea check set to
true or false to override the
$wgMaxImageArea check result
gives extension the
possibility to transform it
themselves 
$handler
 
see documentation in includes
Linker php for
Linker::makeImageLink
$handlerParams
 
null means default in
associative array with keys
and values unescaped Should be
merged with default with a
value of false meaning to
suppress the attribute in
associative array with keys
and values unescaped noclasses
just before the function
returns a value If you return
an< a > element with HTML
attributes $attribs and
contents $html will be
returned If you return $ret
will be returned and may
include noclasses & 
$html
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place
modifiable or by returning
false and taking over the
output modifiable modifiable
after all normalizations have
been except for the
$wgMaxImageArea check 
$image
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values before the output is
cached one of or reset my talk
my contributions etc etc
otherwise the built in rate
limiting checks are if enabled 
$incrBy
 
processing should stop and the
error should be shown to the
user if you wanted to
authenticate users to a custom
you could 
$ldapServer
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive 
$limit
 
usually copyright or
history_copyright This message
must be in HTML not wikitext & 
$link
 
null means default in
associative array with keys
and values unescaped Should be
merged with default with a
value of false meaning to
suppress the attribute in
associative array with keys
and values unescaped noclasses
just before the function
returns a value If you return
an< a > element with HTML
attributes $attribs and
contents $html will be
returned If you return $ret
will be returned and may
include noclasses after
processing after in
associative array form before
processing starts Return false
to skip default processing and
return $ret 
$linkRenderer
 
either a unescaped string or a
HtmlArmor object after in
associative array form
externallinks 
$linksUpdate
 
static configuration should be
added through
ResourceLoaderGetConfigVars
instead can be used to get the
real title after the basic
globals have been set but
before ordinary actions take
place or wrap services the
preferred way to define a new
service is the
$wgServiceWiringFiles array
change it to the message you
want to define you are
encouraged to submit patches
to MediaWiki s core to add new
MIME types to mime types 
$mimeMagic
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers 
$modeName
 
Allows to change the fields on
the form that will be
generated 
$name
 
namespace and then decline to
actually register it
$namespaces
 
also included in $newHeader if any $newminor
 
if the prop value should be in
the metadata multi language
array can modify can modify
indexed by page_id indexed by
prefixed DB keys can modify
can modify can modify this
should be populated with an
alert message to that effect 
$newtalks
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive false for true for
descending in case the handler
function wants to provide a
converted Content object Note
that $result getContentModel()
must return $toModel.
'CustomEditor'$rcid is used in
generating this variable which
contains information about the
new such as the revision s
whether the revision was
marked as a minor edit or etc
which include things like
revision author revision
RevisionDelete link and more
some of which may have been
injected with the
DiffRevisionTools hook 
$nextlink
 
passed in as a query string
parameter to the various URLs
constructed here(i.e.$nextlink)
$rdel also included in
$oldHeader 
$oldminor
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context 
$options
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place
modifiable or by returning
false and taking over the
output 
$out
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object
$output
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values before the output is
cached 
$page
 
magic word & $parser
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context 
$parserOutput
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values before the output is
cached one of or reset my talk
my contributions etc
$personal_urls
 
return true to allow those
checks to and false if
checking is done remove or add
to the links of a group of
changes in EnhancedChangesList
Hook subscribers can return
false to omit this line from
recentchanges use this to
change the tables headers temp
or archived zone change it to
an object instance and return
false override the list
derivative used the name of
the old file when set the
default code will be skipped 
$pre
 
null for the local wiki Added
should default to null in
handler for backwards
compatibility add a value to
it if you want to add a cookie
that have to vary cache
options can modify 
$query
 
null for the local wiki Added
should default to null in
handler for backwards
compatibility add a value to
it if you want to add a cookie
that have to vary cache
options can modify prev or
next 
$refreshCache
 
this hook is for auditing only $req
 
error also a ContextSource you
ll probably need to make sure
the header is varied on 
$request
 
Allows to change the fields on
the form that will be
generated are created Can be
used to omit specific feeds
from being outputted You must
not use this hook to add use
OutputPage::addFeedLink()
instead.&$feedLinks hooks can
tweak the array to change how
login etc forms should look 
$requests
 
namespace and then decline to
actually register it file or
subcat 
$res
 
error also a ContextSource you
ll probably need to make sure
the header is varied on such
as when responding to a
resource loader request or
generating HTML output
$resourceLoader
 
For QUnit the mediawiki tests
qunit testrunner dependency
will be added to any module & 
$ResourceLoader
 
this hook is for auditing only $response
 
null means default in
associative array with keys
and values unescaped Should be
merged with default with a
value of false meaning to
suppress the attribute in
associative array with keys
and values unescaped noclasses & 
$ret
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values before the output is
cached one of or reset my talk
my contributions etc etc
otherwise the built in rate
limiting checks are if enabled
allows for interception of
redirect
$returnTo
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values before the output is
cached one of or reset my talk
my contributions etc etc
otherwise the built in rate
limiting checks are if enabled
allows for interception of
redirect as a string
$returnToQuery
 
please add to it if you re
going to add events to the
MediaWiki code where normally
authentication against an
external auth plugin would be
creating a local account
incomplete not yet checked for
validity & 
$retval
 
presenting them properly to
the user as errors is done by
the caller return true use
this to change the list i e
etc 
$rev
 
div flags Integer display
flags(NO_ACTION_LINK,
NO_EXTRA_USER_LINKS)
'LogException'returning false
will NOT prevent logging a
wrapping ErrorException
instead of letting the login
form give the generic error
message that the account does
not exist For when the account
has been renamed or deleted or
an array to pass a message key
and parameters create2
Corresponds to logging
log_action database field and
which is displayed in the UI & 
$revert
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context 
$revId
 
also included in $newHeader $rollback
 
the value to return A Title
object or null for latest all
implement SearchIndexField
must implement
ResultSetAugmentor
$rowAugmentors
 
usually copyright or
history_copyright This message
must be in HTML not wikitext
if the section is included
from a template 
$section
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty & 
$sectionContent
 
static configuration should be
added through
ResourceLoaderGetConfigVars
instead can be used to get the
real title after the basic
globals have been set but
before ordinary actions take
place or wrap services the
preferred way to define a new
service is the
$wgServiceWiringFiles array 
$services
 
null means default in
associative array with keys
and values unescaped Should be
merged with default with a
value of false meaning to
suppress the attribute in
associative array with keys
and values unescaped noclasses
just before the function
returns a value If you return
an< a > element with HTML
attributes $attribs and
contents $html will be
returned If you return $ret
will be returned 
$skin
 
this hook is for auditing only
RecentChangesLinked and
Watchlist 
$special
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set 
$status = Status::newGood()` to allow deletion
 
div flags Integer display
flags(NO_ACTION_LINK,
NO_EXTRA_USER_LINKS)
'LogException'returning false
will NOT prevent logging a
wrapping ErrorException 
$suppressed
 
in this case you re
responsible for computing and
outputting the entire conflict
i the difference between
revisions and your text
headers and sections and Diff
$tabindex
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist & 
$tables
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books 
$tag
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping 
$template
 
external whereas
SearchGetNearMatch runs after 
$term
 
see documentation in includes
Linker php for
Linker::makeImageLink
$time
 
namespace and then decline to
actually register it file or
subcat img or subcat 
$title
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values before the output is
cached one of or reset my talk
my contributions etc etc
otherwise the built in rate
limiting checks are if enabled
allows for interception of
redirect as a string mapping
parameter names to values
$type
 
null for the local wiki Added
should default to null in
handler for backwards
compatibility add a value to
it if you want to add a cookie
that have to vary cache
options can modify prev or
next refreshes the diff cache 
$unhide
 
please add to it if you re
going to add events to the
MediaWiki code where normally
authentication against an
external auth plugin would be
creating a local account 
$user
 
this hook is for auditing only
or null if authentication
failed before getting that far 
$username
 
static configuration should be
added through
ResourceLoaderGetConfigVars
instead & 
$vars
 
An extension or a local will
often add custom code to the
function with or without a
global variable For someone
wanting email notification
when an article is shown may 
$wgCapitalizeTitle
 
 $wgHooks ['ArticleShow'][] = 'reverseArticleTitle'
 
An extension or a local will
often add custom code to the
function with or without a
global variable For someone
wanting email notification
when an article is shown may 
$wgNotifyArticle
 
error __pad0__
 
please add to it if you re
going to add events to the
MediaWiki code 
AbortAutoAccount
 
An extension or a local will
often add custom code to the
function with or without a
global variable For someone
wanting email notification
when an article is shown may 
add
 
We ve cleaned up the code here
by removing clumps of
infrequently used code and
moving them off somewhere else
It s much easier for someone
working with this code to see
what s _really_ going and make
changes or fix bugs In 
addition
 
An extension or a local admin
 
passed in as a query string
parameter to the various URLs
constructed here(i.e.$prevlink)
$ldel you ll need to handle
error etc yourself 
Alternatively
 
and how to run hooks for an
and one after Each event has a
preferably in CamelCase For
ArticleDelete hook A clump of
code and data that should be
run when an event happens This
can be either a function and a
chunk of or an object and a
method hook function The
function part of a third party
developers and local
administrators to define code
that will be run at certain
points in the mainline and to
modify the data run by that
mainline code Hooks can keep
mainline code and make it
easier to write extensions
Hooks are a principled
alternative to local patches
for two options in MediaWiki
One reverses the order of a
title before displaying the 
article
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive false for 
ascending
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place 
ATTENTION
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive false for true for
descending in case the handler
function wants to provide a
converted Content object Note
that $result getContentModel()
must return $toModel.
'CustomEditor'$rcid is used in
generating this variable which
contains information about the
new such as the revision
author
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that 
AuthPluginAutoCreate
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub 
AutopromoteCondition
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero 
based
 
Using a hook running we can
avoid having all this option
specific stuff in our mainline
code Using the function 
becomes
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array 
BeforeDisplayNoArticleText
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place
modifiable 
BeforeInitialize
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place
modifiable or by returning
false and taking over the
output modifiable modifiable 
BeforeParserFetchFileAndTitle
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place
modifiable or by returning
false and taking over the
output modifiable modifiable
after all normalizations have
been except for the
$wgMaxImageArea check set to
true or false to override the
$wgMaxImageArea check result 
BitmapHandlerTransform
 
div flags Integer display
flags(NO_ACTION_LINK,
NO_EXTRA_USER_LINKS)
'LogException'returning false
will NOT prevent logging a
wrapping ErrorException
instead of letting the login
form give the generic error
message that the account does
not exist For when the account
has been renamed or deleted or
an array to pass a message key
and parameters 
block
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place
modifiable or by returning
false and taking over the
output modifiable modifiable
after all normalizations have
been except for the
$wgMaxImageArea check set to
true or false to override the
$wgMaxImageArea check result
gives extension the
possibility to transform it
themselves set to a
MediaTransformOutput 
BlockIp
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place
modifiable or by returning
false and taking over the
output modifiable modifiable
after all normalizations have
been except for the
$wgMaxImageArea check set to
true or false to override the
$wgMaxImageArea check result
gives extension the
possibility to transform it
themselves set to a
MediaTransformOutput the error
message to be returned in an
array 
BlockIpComplete
 
if the prop value should be in
the metadata multi language
array can modify can modify
indexed by page_id indexed by
prefixed DB keys can modify
can modify can modify this
should be populated with an
alert message to that effect
to be fed to an HTMLForm
object and populate $result
with the reason in the form of
error messages should be plain
text with no special 
bolding
 
null means default in
associative array with keys
and values unescaped Should be
merged with default with a
value of false meaning to
suppress the attribute in
associative array with keys
and values unescaped 
broken
 
it s the revision text itself
In either 
case
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point 
ChangeTagCanCreate
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag 
ChangeTagCanDelete
 
in this case you re
responsible for computing and
outputting the entire conflict
i the difference between
revisions and your text
headers and sections and Diff
overridable Default is either
copyrightwarning or
copyrightwarning2 overridable
Default is editpage tos
summary such as anonymity and
the real 
check
 
and how to run hooks for an
and one after Each event has a
preferably in CamelCase For
ArticleDelete hook A clump of
code and data that should be
run when an event happens This
can be either a function and a
chunk of or an object and a
method hook function The
function part of a third party
developers and local
administrators to define code
that will be run at certain
points in the mainline 
code
 
if the prop value should be in
the metadata multi language
array can modify can modify
indexed by page_id indexed by
prefixed DB keys can modify
can modify can modify this
should be populated with an
alert message to that effect
to be fed to an HTMLForm
object and populate $result
with the reason in the form of
error messages should be plain
text with no special 
coloring
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive false for true for
descending in case the handler
function wants to provide a
converted Content object Note
that $result getContentModel()
must return $toModel.
'CustomEditor'$rcid is used in
generating this variable which
contains information about the
new such as the revision s
whether the revision was
marked as a minor edit or etc
which include things like
revision author revision 
comment
 
Returning false makes less
sense for events where the
action is 
complete
 
namespace addition is conditional
 
and how to run hooks for an
and one after Each event has a
preferably in CamelCase For
ArticleDelete hook A clump of
code and data that should be
run when an event happens This
can be either a function and a
chunk of or an object and a
method hook function The
function part of a third party
developers and local
administrators to define code
that will be run at certain
points in the mainline and to
modify the data run by that
mainline code Hooks can keep
mainline code and make it
easier to write extensions
Hooks are a principled
alternative to local patches 
Consider
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace 
ContentHandlerDefaultModelFor
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired 
ContentModelCanBeUsedOn
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive false for true for
descending 
ContributionsLineEnding
 
error also a ContextSource you
ll probably need to make sure
the header is varied on such
as when responding to a
resource loader request or
generating HTML output
included in 
core
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values before the output is
cached one of 
create
 
the other converts the title
to all uppercase letters 
Currently
 
and how to run hooks for an
and one after Each event has a
preferably in CamelCase For
ArticleDelete hook A clump of
code and data that should be
run when an event happens This
can be either a function and a
chunk of 
data
 
We ve cleaned up the code here
by removing clumps of
infrequently used code and
moving them off somewhere else
It s much easier for someone
working with this code to see
what s _really_ going and make
changes or fix bugs In we can
take all the code that deals
with the little used title
reversing 
deleteAnArticle
 
also included in $newHeader if
any indicating whether we
should show just the 
diff
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive false for true for
descending in case the handler
function wants to provide a
converted Content object Note
that $result getContentModel()
must return $toModel.
'CustomEditor'$rcid is used in
generating this variable 
DifferenceEngineMarkPatrolledRCID
 
processing should stop and the
error should be shown to the
user if you wanted to
authenticate users to a custom
you could 
do
 
in this case you re
responsible for computing and
outputting the entire conflict
e
 
in this case you re
responsible for computing and
outputting the entire conflict
i the difference between
revisions and your text
headers and sections and Diff
overridable Default is either
copyrightwarning or
copyrightwarning2 
EditPageGetDiffContent
 
in this case you re
responsible for computing and
outputting the entire conflict
i the difference between
revisions and your text
headers and sections and Diff
overridable Default is either
copyrightwarning or
copyrightwarning2 overridable
Default is editpage tos
summary 
EmailConfirmed
 
if the prop value should be in
the metadata multi language
array can modify can modify
indexed by page_id indexed by
prefixed DB keys can modify
can modify can modify this
should be populated with an
alert message to that effect
to be fed to an HTMLForm
object and populate $result
with the reason in the form of
error messages should be plain
text with no special etc to
show that they re 
errors
 
We ve cleaned up the code here
by removing clumps of
infrequently used code and
moving them off somewhere else
It s much easier for someone
working with this code to see
what s _really_ going and make
changes or fix bugs In we can
take all the code that deals
with the little used title
reversing 
etc
 
how to add hooks for an event
 
and how to run hooks for an
and one after Each event has a
preferably in CamelCase For 
example
 
We ve cleaned up the code here
by removing clumps of
infrequently used code and
moving them off somewhere else
It s much easier for someone
working with this code to see
what s _really_ going and make
changes or fix bugs In we can
take all the code that deals
with the little used title
reversing 
exportArticle
 
processing should stop and the
error should be shown to the
user
false
 
Allows to change the fields on
the form that will be
generated are created Can be
used to omit specific feeds
from being outputted You must
not use this hook to add 
feeds
 
return true to allow those
checks to and false if
checking is done remove or add
to the links of a group of
changes in EnhancedChangesList
Hook subscribers can return
false to omit this line from
recentchanges use this to
change the tables headers temp
or archived zone 
FetchChangesList
 
We ve cleaned up the code here
by removing clumps of
infrequently used code and
moving them off somewhere else
It s much easier for someone
working with this code to see
what s _really_ going and make
changes or fix bugs In we can
take all the code that deals
with the little used title
reversing we can concentrate
it all in an extension 
file
 
return true to allow those
checks to and false if
checking is done remove or add
to the links of a group of
changes in EnhancedChangesList
Hook subscribers can return
false to omit this line from
recentchanges use this to
change the tables headers temp
or archived zone change it to
an object instance and return
false override the list
derivative used 
FileDeleteComplete
 
null means default in
associative array 
form
 
if the prop value should be in
the metadata multi language
array 
format
 
For QUnit framework
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook 
function
 
null for the local wiki Added
should default to null in
handler 
functions
 
null for the local wiki Added
should default to null in
handler for backwards
compatibility 
GalleryGetModes
 
null for the local wiki Added
should default to null in
handler for backwards
compatibility add a value to
it if you want to add a cookie
that have to vary cache
options 
GetCanonicalURL
 
null for the local wiki Added
should default to null in
handler for backwards
compatibility add a value to
it if you want to add a cookie
that have to vary cache
options can modify prev or
next refreshes the diff cache
allow viewing deleted revs
difference engine object to be
used for diff 
GetDoubleUnderscoreIDs
 
if the prop value should be in
the metadata multi language
array can modify can modify
indexed by page_id indexed by
prefixed DB keys 
GetLocalURL
 
if the prop value should be in
the metadata multi language
array can modify can modify
indexed by page_id indexed by
prefixed DB keys can modify
can modify can modify this
should be populated with an
alert message to that effect
to be fed to an HTMLForm
object 
GetRelativeTimestamp
 
presenting them properly to
the user as errors is done by
the caller return true 
getUserPermissionsErrorsExpensive
 
presenting them properly to
the user as errors is done by
the caller return true 
GitViewers
 
 gzip
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place
modifiable or by returning
false and taking over the
output modifiable modifiable
after all normalizations have
been except for the
$wgMaxImageArea check set to
true or false to override the
$wgMaxImageArea check result
gives extension the
possibility to transform it
themselves set to a
MediaTransformOutput the error
message to be returned in an
array you should do so by
altering
$wgNamespaceProtection and
$wgNamespaceContentModels
outside the 
handler
 
they could be provided by a
third party developer or
written by the admin him 
herself
 
presenting them properly to
the user as errors is done by
the caller return true use
this to change the list i e
etc next in line in page 
history
 
and how to run hooks for an
and one after Each event has a
preferably in CamelCase For
ArticleDelete hook A clump of
code and data that should be
run when an event happens This
can be either a function and a
chunk of or an object and a
method hook function The
function part of
hook
 
Using a hook running we can
avoid having all this option
specific stuff in our mainline
code Using 
hooks
 
static configuration should be
added through
ResourceLoaderGetConfigVars
instead can be used to get the
real title after the basic
globals have been set but
before ordinary actions take
place or wrap services 
However
 
either a unescaped string or a
HtmlArmor object after in
associative array form 
imagelinks
 
see documentation in includes
Linker php for
Linker::makeImageLink or false
for current used if you return
false 
ImageOpenShowImageInlineBefore
 
null for the local wiki Added in
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive false for true for
descending in case the handler
function wants to provide a
converted Content object Note
that $result getContentModel()
must return $toModel.
'CustomEditor'$rcid is used in
generating this variable which
contains information about the
new such as the revision s
whether the revision was
marked as a minor edit or etc
which include things like
revision author 
info
 
either a unescaped string or a
HtmlArmor object after in
associative array form
externallinks including delete
and 
insert
 
you don t have to do a grep
find to see where the
$wgReverseTitle variable is
say If the code is well enough 
isolated
 
presenting them properly to
the user as errors is done by
the caller return true but is
called only if expensive
checks are enabled Add a
permissions error when
permissions errors are checked
for Return false if the user
can t do 
it
 
either a unescaped string or a
HtmlArmor object after in
associative array form
externallinks including delete
and has completed for all link
tables whether this was an
auto creation default is conds
Array Extra conditions for the
No matching items in log is
displayed if loglist is empty
msgKey Array If you want a
nice box with a set this to
the key of the message First
element is the message 
key
 
usually copyright or
history_copyright This message
must be in HTML not wikitext
if the section is included
from a template to be included
in the 
link
 
in this case you re
responsible for computing and
outputting the entire conflict
i the difference between
revisions and your text
headers and sections 
Live
 
either a unescaped string or a
HtmlArmor object after in
associative array form
externallinks including delete
and has completed for all link
tables whether this was an
auto creation 
LogEventsListGetExtraInputs
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values before the output is
cached one of 
login
 
div flags Integer display
flags(NO_ACTION_LINK,
NO_EXTRA_USER_LINKS)
'LogException'returning false
will NOT prevent logging a
wrapping ErrorException
instead of letting the login
form give the generic error
message that the account does
not exist For when the account
has been renamed or deleted or
an array to pass a message key
and parameters 
LogLine
 
div & lt
 
static configuration should be
added through
ResourceLoaderGetConfigVars
instead can be used to get the
real title 
MarkPatrolled
 
hooks txt This document
describes how event hooks work
in 
MediaWiki
 
either a unescaped string or a
HtmlArmor object after in
associative array form
externallinks including delete
and has completed for all link
tables whether this was an
auto creation default is conds
Array Extra conditions for the
No matching items in log is
displayed if loglist is empty
msgKey Array If you want a
nice box with a 
message
 
passed in as a query string
parameter to the various URLs
constructed here(i.e.$prevlink)
$ldel you ll need to handle
error 
messages
 
static configuration should be
added through
ResourceLoaderGetConfigVars
instead can be used to get the
real title after the basic
globals have been set but
before ordinary actions take
place or wrap services the
preferred way to define a new
service is the
$wgServiceWiringFiles array
change it to the message you
want to define 
MimeMagicGuessFromContent
 
for adding new MIME types to
the list 
ModifyExportQuery
 
and how to run hooks for an
and one after Each event has a 
name
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive false for true for
descending in case the handler
function wants to provide a
converted Content object Note
that $result getContentModel()
must return $toModel.
'CustomEditor'$rcid is used in
generating this variable which
contains information about the
new such as the revision s
whether the revision was
marked as a minor edit or 
not
 
either a unescaped string or a
HtmlArmor 
object
 
return true to allow those
checks to 
occur
 
When an event occurs
 
We ve cleaned up the code here
by removing clumps of
infrequently used code and
moving them off somewhere else
It s much easier for someone
working with this code to see
what s _really_ going 
on
 
 otherwise
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values before the output is
cached one of or reset my talk 
page
 
and how to run hooks for an
and one after Each event has a
preferably in CamelCase For 
PageContentSave
 
and how to run hooks for an
and one after Each event has a
preferably in CamelCase For 
PageContentSaveComplete
 
either a unescaped string or a
HtmlArmor object after in
associative array form 
pagelinks
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values 
ParserTestParser
 
in this case you re
responsible for computing and
outputting the entire conflict 
part
 
this hook is for auditing only
or null if authentication
failed before getting that far
or null if we can t even
determine that probably a stub
it is not rendered in wiki
pages or galleries in category
pages allow injecting custom
HTML after the section Any
uses of the hook need to
handle escaping see
BaseTemplate::getToolbox and
BaseTemplate::makeListItem for
details on the format of
individual items inside of
this array or by returning and
letting standard HTTP
rendering take place
modifiable or by returning
false and taking over the
output modifiable modifiable
after all normalizations have
been 
performed
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values before the output is
cached one of or reset 
PerformRetroactiveAutoblock
 
do that in
ParserLimitReportFormat
instead use this to modify the
parameters of the image and a
DIV can begin in one section
and end in another Make sure
your code can handle that case
gracefully See the
EditSectionClearerLink
extension for an example zero
but section is usually empty
its values are the globals
values before the output is
cached one of or reset my talk
my contributions etc etc 
PingLimiter
 
either a plain
 
in this case you re
responsible for computing and
outputting the entire conflict
i the difference between
revisions and your text
headers and sections 
Preview
 
null means default in
associative array with keys
and values unescaped Should be
merged with default with a
value of false meaning to
suppress the attribute in
associative array with keys
and values unescaped noclasses
just before the function
returns a value If you return
an< a > element with HTML
attributes $attribs and
contents $html will be
returned If you return $ret
will be returned and may
include noclasses after
processing after 
processing
 
static configuration should be
added through
ResourceLoaderGetConfigVars
instead can be used to get the
real title after the basic
globals have been set but
before ordinary actions take
place 
replace
 
div flags Integer display
flags(NO_ACTION_LINK,
NO_EXTRA_USER_LINKS)
'LogException'returning false
will NOT prevent logging a
wrapping ErrorException
instead of letting the login
form give the generic error
message that the account does
not exist For when the account
has been renamed or deleted or
an array to pass a message key
and parameters create2
Corresponds to logging
log_action database field and
which is displayed in the UI
similar to $comment this hook
should only be used to add
variables that depend on the
current page 
request
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be but other
information should still be
present in the ParserOutput
object to manipulate or
replace but no entry for that
model exists in
$wgContentHandlers if desired
whether it is OK to use
$contentModel on $title
Handler functions that modify
$ok should generally return
false to prevent further hooks
from further modifying $ok
inclusive false for true for
descending in case the handler
function wants to provide a
converted Content object Note
that $result getContentModel()
must return $toModel.
'CustomEditor'$rcid is used in
generating this variable which
contains information about the
new 
revision
 
presenting them properly to
the user as errors is done by
the caller return true use
this to change the list i e 
rollback
 
Allows to change the fields on
the form that will be
generated 
rss
 
or there are no hooks to run
 
This code would result in
ircNotify being run twice when
an article is 
saved
 
external SearchableNamespaces
 
set to $title object and
return false for a match 
SearchGetNearMatch
 
set to $title object and
return false for a match 
SearchGetNearMatchBefore
 
the value to return A Title
object or null 
SearchGetNearMatchComplete
 
the value to return A Title
object or null for latest 
SearchIndexFields
 
it s the revision text itself
In either if gzip is 
set
 
and how to run hooks for an
and one after Each event has a
preferably in CamelCase For
ArticleDelete hook A clump of
code and data that should be
run when an event happens This
can be either a function and a
chunk of or an object and a
method hook function The
function part of a third party
developers and local
administrators to define code
that will be run at certain
points in the mainline and to
modify the data run by that
mainline code Hooks can keep
mainline code 
simple
 
this hook is for auditing only
RecentChangesLinked and
Watchlist RecentChangesLinked
and Watchlist e g Watchlist
removed from all revisions and
log entries to which it was
applied This gives extensions
a chance to take it off their
books as the deletion has
already been partly carried
out by this point or something
similar the user will be
unable to create the tag set
and then return false from the
hook function Ensure you
consume the
ChangeTagAfterDelete hook to
carry out custom deletion
actions as context called by
AbstractContent::getParserOutput
May be used to override the
normal model specific
rendering of page content as
context as context the output
can only depend on parameters
provided to this hook not on
global state indicating
whether full HTML should be
generated If generation of
HTML may be 
skipped
 
null for the local wiki Added
should default to null in
handler for backwards
compatibility add a value to
it if you want to add a cookie
that have to vary cache
options can modify prev or
next refreshes the diff cache
allow viewing deleted revs
difference engine object to be
used for diff 
source
 
For QUnit the mediawiki tests
qunit testrunner dependency
will be added to any module it
s the URL of the revision text
in external 
storage
 
Using a hook running strategy
 
This code would result in
ircNotify being run twice when
an article is and once for
brion Hooks can return three
possible true was required
This is the default since
MediaWiki *some 
string
 
null means default in
associative array with keys
and values unescaped Should be
merged with default with a
value of false meaning to
suppress the attribute in
associative array with keys
and values unescaped noclasses
just before the function
returns a value If you return 
true
 
Having all this code related
to the title reversion option
in one place means that it s
easier to read and 
understand
 
presenting them properly to
the user as errors is done by
the caller return true use
this to change the list i e 
undo
 
static configuration should be
added through
ResourceLoaderGetConfigVars
instead can be used to get the
real title after the basic
globals have been set 
up
 
you don t have to do a grep
find to see where the
$wgReverseTitle variable is 
used
 
and how to run hooks for an
and one after Each event has a
preferably in CamelCase For 
UserLogin
 
This code would result in
ircNotify being run twice when
an article is and once for
brion Hooks can return three
possible 
values
 
We ve cleaned up the code here
by removing clumps of 
weird
 
An extension writer
 

Typedef Documentation

namespace being checked & $result

Definition at line 1934 of file hooks.txt.

using myext.tests = array( 'script' => 'extension/myext/tests.js', 'dependencies' => <any module dependency you might have> )

Definition at line 2695 of file hooks.txt.

Function Documentation

for adding new MIME info to the list Use $mimeMagic addExtraTypes (   $stringOfTypes)
the array ( )

Referenced by ReverseArrayIterator::__construct(), ResourceLoaderImage::__construct(), MediaWikiTitleCodec::__construct(), FSFileBackend::__construct(), BatchRowIterator::__construct(), IndexPager::__construct(), ApiMessage::__construct(), ApiRawMessage::__construct(), ResourceLoaderFileModule::__construct(), Message::__construct(), MagicWord::__construct(), MemcachedClient::__construct(), MemcachedClient::_flush_read_buffer(), MemcachedClient::_incrdecr(), MemcachedClient::_load_items(), OutputPage::addHeadItems(), LinkCache::addLinkObj(), ApiErrorFormatter::addMessagesFromStatus(), ApiResult::addMetadataToResultVars(), OutputPage::addModules(), ParserOutput::addModules(), OutputPage::addModuleScripts(), ParserOutput::addModuleScripts(), OutputPage::addModuleStyles(), ParserOutput::addModuleStyles(), OutputPage::addParserOutputMetadata(), MediaWikiTestCase::addTmpFiles(), ApiQueryBase::addWhereRange(), ApiQuerySiteinfo::appendGeneralInfo(), ApiResult::applyTransformations(), ApiErrorFormatter::arrayFromStatus(), ApiQueryWatchlistIntegrationTest::assertArraySubsetsEqual(), LinksDeletionUpdate::batchDeleteByPK(), LocalRepo::checkRedirect(), ProcessCacheLRU::clear(), MapCacheLRU::clear(), ResourceLoaderFileModule::collateFilePathListByOption(), UpdateLogging::copyExactMatch(), ReverseArrayIterator::count(), create_function(), User::createNew(), ReverseArrayIterator::current(), MemcachedClient::disconnect_all(), RecompressTracked::dispatchToReplica(), FSFileBackend::doCopyInternal(), SwiftFileBackend::doCopyInternal(), FSFileBackend::doCreateInternal(), SwiftFileBackend::doCreateInternal(), FSFileBackend::doDeleteInternal(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), WikiPage::doEditContent(), DBFileJournal::doGetChangeEntries(), FSFileBackend::doMoveInternal(), SwiftFileBackend::doMoveInternal(), GenderCache::doQuery(), UserrightsPage::doSaveUserGroups(), FSFileBackend::doStoreInternal(), SwiftFileBackend::doStoreInternal(), FileBackendTest::doTestGetFileContents(), FileBackendTest::doTestGetLocalCopy(), FileBackendTest::doTestGetLocalReference(), TextPassDumper::endElement(), Sanitizer::escapeId(), ApiProtect::execute(), ApiQueryBlocks::execute(), ApiQueryLangLinks::execute(), ApiQueryAllMessages::execute(), ApiQueryIWLinks::execute(), ApiParse::execute(), ApiUserrights::execute(), ApiFeedWatchlist::execute(), ApiQueryUsers::execute(), JSParser::Expression(), ExtensionProcessor::extractMessagesDirs(), WebRequest::extractTitle(), UploadStash::fetchFileMetadata(), TextPassDumper::finalOptionCheck(), LocalRepo::findFiles(), User::findUsersByGroup(), LBFactory::forEachLBCallMethod(), MemcachedClient::forget_dead_hosts(), FeedUtils::formatDiff(), ApiAuthManagerHelper::formatRequests(), JSParser::FunctionDefinition(), MemcachedClient::get(), JSTokenizer::get(), MemcachedClient::get_multi(), MemcachedClient::get_sock(), LegacyLogFormatter::getActionMessage(), MediaWiki\Interwiki\ClassicInterwikiLookup::getAllPrefixesDB(), WebRequest::getArray(), Title::getAuthorsBetween(), OOUIHTMLForm::getButtons(), VFormHTMLForm::getButtons(), HTMLForm::getButtons(), ApiQueryUsers::getCacheMode(), ApiQueryInfo::getCacheMode(), SiteConfiguration::getConfig(), LoadBalancer::getConnection(), ForeignDBFile::getDescriptionText(), File::getDescriptionText(), MediaWikiTestCase::getExternalStoreDatabaseConnections(), FileContentsHasher::getFileContentsHash(), ResourceLoaderModule::getFileDependencies(), Language::getGenderNsText(), MWGrants::getGrantRights(), TablePager::getHiddenFields(), SpecialUpload::getInitialPageText(), HTMLCheckMatrix::getInputHTML(), HTMLAutoCompleteSelectField::getInputHTML(), HTMLFormFieldCloner::getInputHTML(), ResourceLoaderClientHtml::getLoad(), ApiParamInfo::getModuleInfo(), WANObjectCache::getMulti(), WANObjectCache::getMultiWithSetCallback(), Language::getNamespaceAliases(), ParserOutput::getOutputHooks(), FormatMetadata::getPriorityLanguages(), MWNamespace::getRestrictionLevels(), ApiResult::getResultData(), ExternalStoreDB::getSlave(), ConverterRule::getTextInBidtable(), Message::getTitle(), ConvertExtensionToRegistration::handleMessagesDirs(), Language::hebrewNumeral(), RequestContext::importScopedSession(), Message::inContentLanguage(), User::inDnsBlacklist(), JSTokenizer::init(), FileRepo::initZones(), Database::insertSelect(), ExternalStore::insertToDefault(), Title::isNamespaceProtected(), MediaWikiTestCase::isUsingExternalStoreDB(), Block::isWhitelistedFromAutoblocks(), ReverseArrayIterator::key(), LogPager::limitType(), Linker::link(), SpecialVersion::listAuthors(), ChangeTags::listExplicitlyDefinedTags(), ChangeTags::listSoftwareActivatedTags(), ChangeTags::listSoftwareDefinedTags(), MessageCache::load(), MediaWiki\Interwiki\ClassicInterwikiLookup::load(), ApiAuthManagerHelper::loadAuthenticationRequests(), LocalFile::loadFromCache(), User::loadFromCache(), MediaWiki\Auth\AuthenticationRequest::loadFromSubmission(), Title::loadRestrictions(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::makeFailResponse(), LogEntryBase::makeParamBlob(), OutputPage::makeResourceLoaderLink(), ApiMain::markParamsSensitive(), ApiMain::markParamsUsed(), EditPage::matchSpamRegex(), EditPage::matchSummarySpamRegex(), JavaScriptMinifier::minify(), UserArray::newFromIDs(), UserArray::newFromNames(), Revision::newKnownCurrent(), ReverseArrayIterator::next(), SiteStats::numberingroup(), Html::openElement(), JSMinPlus::parseTree(), ApiResult::path(), ResourceLoaderWikiModule::preloadTitleInfo(), SpecialUpload::processVerificationError(), TextPassDumper::readDump(), QueryPage::reallyDoQuery(), LocalisationCache::recache(), ApiFormatXml::recXmlPrint(), ResourceLoader::register(), ApiResult::removeValue(), ReverseArrayIterator::rewind(), ApiQueryPrefixSearch::run(), ApiQueryCategories::run(), ApiQueryWatchlistRaw::run(), ApiQueryBacklinks::run(), MemcachedClient::run_command(), TableCleanup::runTable(), ApiQueryBase::select(), Database::selectRow(), Database::selectSQLText(), DatabaseTestHelper::setExistingTables(), ApiResult::setPreserveKeysList(), ApiResult::setSubelementsList(), Sanitizer::setupAttributeWhitelist(), LogEventsList::showLogExtract(), LogEventsList::showOptions(), OutputPage::showPermissionsErrorPage(), JSParser::Statement(), ApiResult::stripMetadata(), ApiResult::stripMetadataNonRecursive(), UpdateLogging::sync(), DatabaseTestHelper::tableExists(), Database::tableNamesWithIndexClauseOrJOIN(), ChangeTags::tagUsageStatistics(), WANObjectCacheTest::testGetMultiWithSetCallback(), TitleTest::testIsValidMoveOperation(), ExportTest::testPageByTitle(), LocalisationCacheTest::testRecacheFallbacksWithHooks(), SpecialSearchTest::testRewriteQueryWithSuggestion(), MediaWiki\Session\SessionBackendTest::testSave(), ImportTest::testSiteInfoContainsNamespaces(), TitleTest::testWgWhitelistReadRegexp(), LocalFile::unprefixRow(), ApiResult::unsetPreserveKeysList(), ApiResult::unsetSubelementsList(), ChangeTags::updateTags(), ReverseArrayIterator::valid(), ApiResult::validateValue(), wfEntryPointCheck(), and wfInstallerMain().

presenting them properly to the user as errors is done by the caller return true but is called only if expensive checks are enabled Add a permissions error when permissions errors are checked for Return false if the user can t do and populate $result with the reason in the form of array ( messagename  ,
param1  ,
param2  ,
  ... 
)
Returning false makes less sense for events where the action is and will normally be ignored Note that none of the examples made use of create_function ( )

Definition at line 202 of file hooks.txt.

References $wgUser, array(), global, and Hooks::run().

the other converts the title to all uppercase letters in MediaWiki we would handle this as follows ( note:not real  code,
here   
)

Definition at line 35 of file hooks.txt.

References $article, $wgCapitalizeTitle, and global.

if (   $wgReverseTitle)

Definition at line 58 of file hooks.txt.

References $article.

function ldapLogin (   $username,
  $password 
)

Definition at line 194 of file hooks.txt.

We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing options ( say  )
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the query ( )
processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom system ( LDAP  ,
another PHP  program,
whatever   
)

Referenced by MWDocGen::execute().

or there are no hooks to or false if it shouldn t (an error occurred, or one of the hooks handled the action already). Checking the return value matters more for "before" hooks than for "complete" hooks. Hooks this is a necessary inconvenience to make it possible to pass reference values ( that can be  changed)
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage ( ) -> params() ->parseAsBlock()-offset Set to overwrite offset parameter in $wgRequest set to ''to unsetoffset-wrap String Wrap the message in html(usually something like"&lt

Referenced by HTMLSelectOrOtherField::__construct(), HTMLAutoCompleteSelectField::__construct(), MalformedTitleException::__construct(), ErrorPageError::__construct(), Licenses::__construct(), MessageContent::__construct(), MediaTransformError::__construct(), TransformParameterError::__construct(), TransformTooBigImageAreaError::__construct(), Linker::accesskey(), LogPage::actionText(), Action::addHelpLink(), Article::addHelpLink(), MediaHandler::addMeta(), WikitextContent::addSectionHeader(), Skin::addToSidebar(), ParserOutput::addTrackingCategory(), ApiQuerySiteinfo::appendInterwikiMap(), JsonContent::arrayTable(), SpecialVersion::arrayToString(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginLinkAttempt(), Linker::blockLink(), Parser::braceSubstitution(), OutputPage::buildBacklinkSubtitle(), AllMessagesTablePager::buildForm(), ProtectionForm::buildForm(), Xml::buildForm(), ChangesFeed::buildItems(), ChangeTags::buildTagFilterSelector(), SpecialEditWatchlist::buildTools(), MediaWiki\Auth\AuthManager::checkAccountCreatePermissions(), SpecialPage::checkLoginSecurityLevel(), Title::checkSpecialsAndNSPermissions(), CleanupSpam::cleanupArticle(), Language::commaList(), Linker::commentBlock(), WikiPage::commitRollback(), EmailNotification::composeCommonMailtext(), Article::confirmDelete(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), LanguageConverter::convertNamespace(), Installer::createMainpage(), Xml::dateMenu(), CoreParserFunctions::defaultsort(), Article::delete(), MediaWiki\Session\SessionProvider::describe(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::describeCredentials(), MediaWiki\Auth\PasswordAuthenticationRequest::describeCredentials(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::describeCredentials(), MediaWiki\Session\SessionProvider::describeMessage(), UploadBase::detectVirus(), CoreParserFunctions::displaytitle(), Block::doAutoblock(), FileDeleteForm::doDelete(), Article::doDelete(), Skin::doEditSectionLink(), MockDjVuHandler::doTransform(), TransformationalImageHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), WebInstaller::downloadLinkHook(), Linker::emailLink(), WebInstallerPage::endForm(), WebInstallerInstall::endStage(), Installer::envCheckDB(), WebInstallerComplete::execute(), ApiImageRotate::execute(), WebInstallerDBConnect::execute(), WebInstallerExistingWiki::execute(), WebInstallerName::execute(), WebInstallerOptions::execute(), WebInstallerRestart::execute(), WebInstallerWelcome::execute(), WebInstallerInstall::execute(), WebInstallerUpgrade::execute(), ApiEditPage::execute(), SpecialUnlinkAccounts::execute(), ApiQueryAllMessages::execute(), SpecialLinkAccounts::execute(), DumpMessages::execute(), ApiFeedContributions::execute(), CleanupSpam::execute(), ApiFeedWatchlist::execute(), FileDeleteForm::execute(), PasswordReset::execute(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::failResponse(), ApiFeedContributions::feedItemDesc(), MessageBlobStore::fetchMessage(), DeleteEqualMessages::fetchMessageInfo(), Parser::fetchScaryTemplateMaybeFromCache(), ChangesList::flag(), Linker::formatAutocomments(), BlockLogFormatter::formatBlockFlag(), BlockLogFormatter::formatBlockFlags(), FeedUtils::formatDiff(), FeedUtils::formatDiffRow(), LanguageZh_hans::formatDuration(), Language::formatDuration(), WikiPage::formatExpiry(), Linker::formatHiddenCategories(), Linker::formatRevisionSize(), ApiRevisionDelete::formatStatusMessages(), ApiParse::formatSummary(), Language::formatTimePeriod(), ImageListPager::formatValue(), LogEventsList::getActionSelector(), SpecialChangeCredentials::getAuthForm(), ContentHandler::getAutoDeleteReason(), ContentHandler::getAutosummary(), User::getBlockedStatus(), Skin::getCategoryLinks(), WebInstallerOptions::getCCDoneBox(), CategoryMembershipChange::getChangeMessageText(), WebInstaller::getCheckBox(), OracleInstaller::getConnectForm(), PostgresInstaller::getConnectForm(), MysqlInstaller::getConnectForm(), MssqlInstaller::getConnectForm(), SpecialVersion::getCopyrightAndAuthorList(), EditPage::getCopyrightWarning(), Title::getDefaultMessageText(), Interwiki::getDescription(), LogPage::getDescription(), FeedUtils::getDiffLink(), ImageHandler::getDimensionsString(), Title::getEditNotices(), EditPage::getEditToolbar(), ApiBase::getErrorFromStatus(), Status::getErrorMessage(), SpecialUpload::getExistsWarning(), SpecialVersion::getExtensionTypes(), LoginSignupSpecialPage::getFieldDefinitions(), MediaWiki\Auth\CreationReasonAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\UsernameAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\PasswordAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\UserDataAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\RememberMeAuthenticationRequest::getFieldInfo(), WebInstallerPage::getFieldsetStart(), WebInstallerDocument::getFileContents(), UploadBase::getFilenamePrefixBlacklist(), NumericUppercaseCollation::getFirstLetter(), IcuCollation::getFirstLetter(), MediaHandler::getGeneralLongDesc(), MWGrants::getGrantsWikiText(), User::getGroupMember(), User::getGroupName(), User::getGroupPage(), WebInstaller::getHelpBox(), Language::getHumanTimestampInternal(), WikiTextStructure::getIgnoredHeadings(), WebInstaller::getInfoBox(), SpecialUpload::getInitialPageText(), Licenses::getInputHTML(), DatabaseInstaller::getInstallUserBox(), LogFormatter::getIRCActionComment(), LogFormatter::getIRCActionText(), SkinTemplate::getLanguages(), ContentHandler::getLocalizedName(), PNGHandler::getLongDesc(), GIFHandler::getLongDesc(), ImageHandler::getLongDesc(), SvgHandler::getLongDesc(), SpecialVersion::getMediaWikiCredits(), Status::getMessage(), GenerateJqueryMsgData::getMessagesAndTests(), CliInstaller::getMessageText(), Interwiki::getName(), LogPage::getName(), WebInstaller::getPageListItem(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::getPasswordResetData(), EditPage::getPreviewLimitReport(), WebInstaller::getRadioElements(), LogPage::getRcComment(), LogPage::getRcCommentIRC(), DatabaseInstaller::getReadableName(), Block::getRedactedName(), Article::getRedirectHeaderHtml(), MWTimestamp::getRelativeTimestamp(), User::getRightDescription(), MysqlInstaller::getSettingsForm(), MssqlInstaller::getSettingsForm(), ImageHandler::getShortDesc(), SpecialBlock::getSuggestedDurations(), Preferences::getTimeZoneList(), MWTimestamp::getTimezoneMessage(), LogPage::getTitleLink(), CategoryMembershipChange::getUser(), DoubleRedirectJob::getUser(), Parser::getUserSig(), Language::getVariantname(), SpecialVersion::getVersion(), FormatMetadata::getVisibleFields(), DatabaseInstaller::getWebUserBox(), Status::getWikiText(), MWGrants::grantName(), Title::hasSourceText(), CoreTagHooks::html(), CoreTagHooks::indicator(), WikiPage::insertProtectNullRevision(), DifferenceEngine::intermediateEditsMsg(), Parser::interwikiTransclude(), CoreParserFunctions::intFunction(), User::isUsableName(), Block::isWhitelistedFromAutoblocks(), WebInstaller::label(), Xml::languageSelector(), Parser::limitationWarn(), SpecialUpload::loadRequest(), Parser::magicLinkCallback(), MediaWiki\Linker\LinkRenderer::makeBrokenLink(), Skin::makeI18nUrl(), IndexPager::makeLink(), ApiBase::makeMessage(), BaseTemplate::makeSearchInput(), Linker::makeThumbLink2(), AuthManagerSpecialPage::mapSingleFieldInfo(), Parser::maybeMakeExternalImage(), MergeHistory::merge(), Xml::monthSelector(), MovePage::move(), MovePage::moveToInternal(), MWException::msg(), MWExceptionRenderer::msg(), Language::msg(), SearchEngineConfig::namespacesAsText(), Html::namespaceSelectorOptions(), PPFrame_Hash::newChild(), PPFrame_DOM::newChild(), Title::newMainPage(), WikiImporter::notice(), Language::numLink(), JsonContent::objectTable(), WebInstallerOutput::outputFooter(), WebInstallerOutput::outputTitle(), FormatJson::parse(), ConverterRule::parse(), Parser::parse(), SearchEngine::parseNamespacePrefixes(), Language::pipeList(), FileDeleteForm::prepareMessage(), WikiPage::protectDescription(), LogFormatterTest::provideApiParamFormatting(), ApiErrorFormatterTest::provideErrorFormatter(), MediaWiki\Auth\AuthenticationRequestTest::provideLoadFromSubmission(), TextPassDumper::readDump(), AllMessagesTablePager::reallyDoQuery(), LanguageConverter::recursiveConvertRule(), WikitextContent::replaceSection(), SpecialPageTest::requireLoginAnonProvider(), Linker::revComment(), Linker::revDeleteLink(), Linker::revDeleteLinkDisabled(), Linker::revUserLink(), Linker::revUserTools(), DoubleRedirectJob::run(), Language::semicolonList(), User::sendConfirmationMail(), EmailNotification::sendImpersonal(), User::sendMail(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendNewAccountEmail(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendPasswordResetEmail(), User::setEmailWithConfirmation(), FileDeleteForm::setHeaders(), WikiImporter::setTargetRootPage(), Article::showDiffPage(), WebInstallerUpgrade::showDoneMessage(), WebInstaller::showError(), FileDeleteForm::showForm(), WebInstallerExistingWiki::showKeyForm(), WebInstaller::showMessage(), Article::showMissingArticle(), Article::showNamespaceHeader(), Article::showPatrolFooter(), SpecialUpload::showUploadWarning(), SpecialVersion::softwareInformation(), Linker::specialLink(), WebInstaller::startPageWrapper(), WebInstallerInstall::startStage(), UploadStash::stashFile(), Parser::statelessFetchTemplate(), WebInstallerName::submit(), SpecialEmailUser::submit(), WebInstallerOptions::submit(), ChangeTags::tagDescription(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), ApiErrorFormatterTest::testErrorFormatter(), ApiErrorFormatterTest::testErrorFormatterBC(), MessageTest::testExists(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), MediaWiki\Auth\ButtonAuthenticationRequestTest::testGetRequestByName(), MediaWiki\Auth\ButtonAuthenticationRequestTest::testGetUniqueId(), StatusTest::testHasMessage(), SpecialBlankPageTest::testHasWikiMsg(), MessageTest::testInContentLanguage(), MessageTest::testInContentLanguageOverride(), MessageTest::testInLanguage(), MessageTest::testInLanguageThrows(), XmlTest::testLanguageSelector(), LogFormatterTest::testLogParamsTypeMsg(), LogFormatterTest::testLogParamsTypeMsgContent(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), ResourcesTest::testMissingMessages(), MessageTest::testRawParams(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAuthentication(), MessageTest::testToStringKey(), ExtraParserTest::testTrackingCategory(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), MessageTest::testWfMessage(), MessageTest::testWfMessageParams(), Linker::titleAttrib(), Linker::tocList(), File::transformErrorOutput(), BitmapHandler::transformGd(), MediaWikiI18N::translate(), Language::truncate(), Language::truncateHtml(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), PageArchive::undelete(), PageArchive::undeleteRevisions(), StripState::unstripCallback(), Linker::userTalkLink(), Linker::userToolLinks(), Article::view(), Language::viewPrevNext(), Article::viewRedirect(), wfGenerateThumbnail(), wfStreamThumb(), MediaWiki\Session\ImmutableSessionProviderWithCookie::whyNoSession(), and MediaWiki\Session\CookieSessionProvider::whyNoSession().

Variable Documentation

please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a local account incomplete& $abortMsg

Definition at line 242 of file hooks.txt.

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file & $article
Initial value:
{
Hooks::run( 'ArticleShowComplete', array( &$article ) )
the array() calling protocol came about after MediaWiki 1.4rc1.
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function array $article
Definition: hooks.txt:78
static run($event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
Definition: Hooks.php:131

Definition at line 78 of file hooks.txt.

Referenced by ProtectionForm::__construct(), EditPage::__construct(), EditPageTest::assertEdit(), Orphans::checkSeparation(), CategoryViewer::columnList(), ApiParse::execute(), RebuildFileCache::execute(), follows(), ParserCache::get(), ParserCache::getDirty(), ParserCache::getETag(), ParserCache::getKey(), ParserCache::getParserOutputKey(), ListredirectsPage::getRedirectTarget(), if(), MediaWiki::initializeArticle(), Article::newFromWikiPage(), MediaWiki::performRequest(), DoubleRedirectJob::run(), CategoryFinder::run(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), TitleTest::testExists(), and PageArchive::undeleteRevisions().

either a unescaped string or a HtmlArmor object & $attribs

Definition at line 1936 of file hooks.txt.

Referenced by PPNode_Hash_Tree::__toString(), OutputPage::addElement(), HTMLForm::addHiddenField(), MediaWiki\Tidy\Balancer::advance(), ProtectionForm::buildForm(), Xml::buildTable(), Xml::buildTableRow(), Xml::check(), Html::check(), Xml::checkLabel(), UploadBase::checkSvgScriptCallback(), Sanitizer::decodeTagAttributes(), EditPage::displayPreviewArea(), XMPReader::doAttribs(), WebInstaller::docLink(), Skin::doEditSectionLink(), Html::dropDefaults(), Xml::element(), Html::element(), Xml::elementClean(), XmlTypeCheck::elementClose(), XmlTypeCheck::elementOpen(), Xml::expandAttributes(), Xml::fieldset(), CategoryViewer::formatList(), HTMLMultiSelectField::formatOptions(), HTMLRadioField::formatOptions(), SpecialUndelete::formatRevisionRow(), HTMLForm::formatSection(), HTMLComboboxField::getAttributes(), HTMLAutoCompleteSelectField::getAttributes(), OOUIHTMLForm::getButtons(), VFormHTMLForm::getButtons(), HTMLForm::getButtons(), DatabaseInstaller::getCheckBox(), EditPage::getCheckboxes(), MediaTransformOutput::getDescLinkAttribs(), EditPage::getEditButtons(), Parser::getExternalLinkAttribs(), VFormHTMLForm::getFormAttributes(), HTMLForm::getFormAttributes(), HTMLForm::getHiddenFields(), ChangeTagsRevisionItem::getHTML(), ChangeTagsLogItem::getHTML(), CategoryViewer::getHTML(), RevDelRevisionItem::getHTML(), HTMLTextAreaField::getInputHTML(), HTMLTextField::getInputHTML(), HTMLCheckMatrix::getInputHTML(), Licenses::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), HTMLComboboxField::getInputOOUI(), HTMLSelectField::getInputOOUI(), HTMLTextAreaField::getInputOOUI(), HTMLTextField::getInputOOUI(), UploadSourceField::getLabelHtml(), TablePager::getLimitSelect(), IRCColourfulRCFeedFormatter::getLine(), HTMLMultiSelectField::getOneCheckbox(), HTMLCheckMatrix::getOneCheckbox(), DatabaseInstaller::getPasswordBox(), EditPage::getPreviewText(), LogFormatter::getRestrictedElement(), DatabaseInstaller::getTextBox(), HTMLTextField::getType(), Html::hidden(), HistoryPager::historyLine(), Html::htmlHeader(), MediaWiki\Tidy\Balancer::inBodyMode(), MediaWiki\Tidy\Balancer::inCaptionMode(), MediaWiki\Tidy\Balancer::inCellMode(), MediaWiki\Tidy\Balancer::inColumnGroupMode(), MediaWiki\Tidy\Balancer::inHeadMode(), Xml::input(), Html::input(), Xml::inputLabel(), Xml::inputLabelSep(), MediaWiki\Tidy\Balancer::inRowMode(), MediaWiki\Tidy\Balancer::inSelectInTableMode(), MediaWiki\Tidy\Balancer::inSelectMode(), MediaWiki\Tidy\BalanceStack::insertForeignElement(), MediaWiki\Tidy\Balancer::insertForeignToken(), MediaWiki\Tidy\BalanceStack::insertHTMLElement(), MediaWiki\Tidy\Balancer::insertToken(), MediaWiki\Tidy\Balancer::inTableBodyMode(), MediaWiki\Tidy\Balancer::inTableMode(), MediaWiki\Tidy\Balancer::inTableTextMode(), MediaWiki\Tidy\Balancer::inTemplateMode(), MediaWiki\Tidy\Balancer::inTextMode(), Xml::label(), Html::label(), Xml::listDropDown(), MediaWiki\Linker\LinkRenderer::makeBrokenLink(), TestRecentChangesHelper::makeCategorizationRecentChange(), TestRecentChangesHelper::makeDeletedEditRecentChange(), TestRecentChangesHelper::makeEditRecentChange(), DummyLinker::makeExternalLink(), Linker::makeExternalLink(), DummyLinker::makeHeadline(), TestRecentChangesHelper::makeLogRecentChange(), Linker::makeMediaLinkFile(), TestRecentChangesHelper::makeNewBotEditRecentChange(), MediaWiki\Linker\LinkRenderer::makePreloadedLink(), TestRecentChangesHelper::makeRecentChange(), MediaWiki\Linker\LinkRenderer::mergeAttribs(), Revision::newFromArchiveRow(), Xml::openElement(), Html::openElement(), Xml::option(), Licenses::outputOption(), MediaWiki\Tidy\Balancer::parseRawText(), Xml::password(), CoreTagHooks::pre(), LinkerTest::provideLinkBeginHook(), LinkerTest::provideLinkEndHook(), Xml::radio(), Html::radio(), Xml::radioLabel(), Html::rawElement(), LinkHolderArray::replaceInternal(), Sanitizer::safeEncodeTagAttributes(), RecentChange::setAttribs(), ImageGalleryBase::setAttributes(), SpecialImport::showForm(), EditPage::showTextbox(), EditPage::showTextbox1(), Xml::span(), TextPassDumper::startElement(), XMPReader::startElement(), XMPReader::startElementModeInitial(), XMPReader::startElementModeLi(), XMPReader::startElementModeLiLang(), XMPReader::startElementModeSimple(), XMPReader::startElementModeStruct(), LogFormatter::styleRestricedElement(), Xml::submitButton(), MediaWiki\Tidy\Balancer::switchModeAndReprocess(), Xml::tags(), HtmlTest::testDropDefaults(), SideBarTest::testRespectExternallinktarget(), SideBarTest::testRespectWgnofollowlinks(), SideBarTest::testTestAttributesAssertionHelper(), Xml::textarea(), Html::textarea(), TraditionalImageGallery::toHTML(), ThumbnailImage::toHtml(), Linker::tooltipAndAccesskeyAttribs(), Linker::userToolLinks(), Sanitizer::validateAttributes(), Sanitizer::validateTagAttributes(), and Xml::wrapClass().

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped true if there is text before this autocomment $auto
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges $changesList

Definition at line 1442 of file hooks.txt.

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable& $code
inline

Definition at line 802 of file hooks.txt.

Referenced by MediaWiki\Session\MetadataMergeException::__construct(), ApiQueryBacklinks::__construct(), ApiMessage::__construct(), ApiMain::__construct(), ApiRawMessage::__construct(), ZipDirectoryReaderError::__construct(), UsageException::__construct(), ApiErrorFormatter::addError(), Language::addMagicWordsByLang(), ApiErrorFormatter::addWarning(), ApiErrorFormatter_BackCompat::addWarningOrError(), ApiQuerySiteinfo::appendGeneralInfo(), ApiQuerySiteinfo::appendLanguages(), ApiQuerySiteinfo::appendSkins(), EmailConfirmation::attemptConfirm(), EmailInvalidation::attemptInvalidate(), SkinTemplate::buildContentNavigationUrls(), ApiUpload::checkVerification(), Language::classFromCode(), MessageCache::clear(), TemplateParser::compile(), TemplateParser::compileForEval(), UploadBase::convertVerifyErrorToStatus(), ApiMessage::create(), Language::dateTimeObjFormat(), ApiUpload::dieRecoverableError(), ApiBase::dieStatus(), ApiUpload::dieStatusWithCode(), RebuildLocalisationCache::doRebuild(), ImagePage::doRenderLangOpt(), ApiCSPReport::error(), ZipDirectoryReader::error(), PageExists::execute(), ApiUpload::execute(), EmailInvalidation::execute(), DateFormats::execute(), GenerateNormalizerDataAr::execute(), Digit2Html::execute(), EmailConfirmation::execute(), FindDeprecated::execute(), SpecialPageExecutor::executeSpecialPage(), SpecialJavaScriptTest::exportQUnit(), Language::factory(), SpecialNewpages::feedTitle(), QueryPage::feedTitle(), Language::fetchLanguageName(), SpecialMyLanguage::findTitle(), Language::firstChar(), TagHookTest::functionTagCallback(), LCStoreDB::get(), LCStoreCDB::get(), LCStoreStaticArray::get(), MessageCache::getAllMessageKeys(), Languages::getCaseMismatchMagicWords(), ClassCollector::getClasses(), LocalisationCache::getCompiledPluralRules(), Languages::getDuplicateMessages(), Languages::getEmptyMessages(), ApiBase::getErrorFromStatus(), Languages::getFallback(), Language::getFallbackFor(), Language::getFallbacksFor(), Language::getFallbacksIncludingSiteLanguage(), LCStoreCDB::getFileName(), Language::getFileName(), SpecialPageLanguage::getFormFields(), LocalisationCacheBulkLoad::getItem(), LocalisationCache::getItem(), Language::getJsonMessagesFileName(), RequestContext::getLanguage(), WebInstallerLanguage::getLanguageSelector(), WANObjectCache::getLastError(), MessageCache::getLocalCache(), Languages::getMagicWords(), HttpStatus::getMessage(), Language::getMessageFor(), MessageCache::getMessageForLang(), Language::getMessageKeysFor(), Languages::getMessages(), Language::getMessagesFileName(), Language::getMessagesFor(), Languages::getMessagesWithDubiousLinks(), Languages::getMessagesWithMismatchVariables(), Languages::getMessagesWithoutPlural(), Languages::getMessagesWithUnbalanced(), Languages::getMessagesWithWhitespace(), Languages::getMessagesWithWrongChars(), MessageCache::getMsgFromNamespace(), Languages::getNamespaceAliases(), Languages::getNamespaceNames(), Languages::getNonXHTMLMessages(), Languages::getObsoleteMagicWords(), Languages::getObsoleteMessages(), Languages::getObsoleteSpecialPages(), Languages::getOverridingMagicWords(), Language::getParentLanguage(), LocalisationCache::getPluralRules(), LocalisationCache::getPluralRuleTypes(), Languages::getProblematicProjectTalks(), ApiCSPReport::getReport(), SpecialPageAliasTest::getSpecialPageAliases(), Languages::getSpecialPageAliases(), LocalisationCacheBulkLoad::getSubitem(), LocalisationCache::getSubitem(), LocalisationCache::getSubitemList(), TemplateParser::getTemplate(), Message::getTitle(), Languages::getUntranslatedMagicWords(), Languages::getUntranslatedMessages(), Languages::getUntranslatedNamespaces(), Languages::getUntraslatedSpecialPages(), MessageCache::getValidationHash(), Language::getVariantname(), HttpStatus::header(), LocalisationCache::initLanguage(), EditPage::internalAttemptSave(), LocalisationCache::isExpired(), Language::isSupportedLanguage(), Language::isValidBuiltInCode(), Language::isValidCode(), Language::isWellFormedLanguageTag(), CoreParserFunctions::language(), Xml::languageSelector(), MessageCache::load(), Languages::loadFile(), ExtensionLanguages::loadFile(), MessageCache::loadFromDB(), MessageCache::loadFromDBWithLock(), LocalisationCache::loadItem(), Languages::loadMessages(), LocalisationCache::loadPluralFile(), LocalisationCache::loadSubitem(), LocalisationCache::mergeExtensionItem(), Language::newFromCode(), User::newFromConfirmationCode(), SwiftFileBackend::onError(), OutputPage::output(), FormatJson::parse(), XMPReader::parse(), ApiStashEdit::parseAndStash(), LanguageConverter::parseCachedTable(), ApiUpload::performStash(), SpecialUpload::processUpload(), SpecialUpload::processVerificationError(), Preferences::profilePreferences(), LocalisationCache::readSourceFilesAndRegisterDeps(), LocalisationCacheBulkLoad::recache(), LocalisationCache::recache(), MessageCache::replace(), DbTestPreviewer::report(), ApiQueryBacklinks::run(), RequestContext::sanitizeLangCode(), MessageCache::saveToCaches(), MessageCache::saveToLocalCache(), setApiCode(), Language::setCode(), AjaxResponse::setResponseCode(), LoginSignupSpecialPage::setSessionUserForCurrentRequest(), MWHttpRequest::setStatus(), MessageCache::setValidationHash(), ChangesList::showCharacterDifference(), SpecialUploadStash::showUpload(), Language::sprintfDate(), LCStoreStaticArray::startWrite(), LCStoreDB::startWrite(), LCStoreCDB::startWrite(), WebResponse::statusHeader(), MWException::statusHeader(), MWExceptionRenderer::statusHeader(), WebInstallerOptions::submit(), WfBCP47Test::testBCP47(), LanguageTest::testBuiltInCodeValidation(), LanguageTest::testGetParentLanguage(), LanguageTest::testIsSupportedLanguage(), JavaScriptMinifierTest::testJavaScriptMinifierOutput(), LanguageTest::testKnownLanguageTag(), LanguageTest::testMalformedLanguageTag(), CSSMinTest::testMinify(), CSSMinTest::testMinifyWithCSSStringValues(), LocalisationCacheTest::testRecacheFallbacksWithHooks(), UploadBaseTest::testTitleValidation(), LanguageTest::testUnknownLanguageTag(), LanguageTest::testWellFormedLanguageTag(), LocalisationCacheBulkLoad::trimCache(), LocalisationCacheBulkLoad::unload(), LocalisationCache::unload(), and SpecialPageAliasTest::validSpecialPageAliasesProvider().

if the prop value should be in the metadata multi language array can modify can modify indexed by page_id& $colours

Definition at line 1610 of file hooks.txt.

Referenced by LinkHolderArray::doVariants(), and LinkHolderArray::replaceInternal().

this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content $content

Definition at line 1046 of file hooks.txt.

Referenced by InfoAction::addTable(), EditPageTest::assertEdit(), RCCacheEntryFactoryTest::assertQueryLink(), ResourceLoaderModule::buildContent(), Revision::checkContentModel(), XMPReader::checkParseSafety(), CleanupSpam::cleanupArticle(), Installer::createMainpage(), WikiPageTest::createPage(), RevisionStorageTest::createPage(), TestPageProps::createPage(), EditPage::displayPermissionsError(), ApiQueryWatchlistIntegrationTest::doAnonPageEdit(), ApiQueryWatchlistIntegrationTest::doBotPageEdit(), WikiPage::doCreate(), WikiPage::doDeleteArticleReal(), Article::doDeleteUpdates(), WikiPage::doDeleteUpdates(), WikiPage::doEdit(), WikiPage::doEditContent(), DifferenceEngineTest::doEdits(), WikiPage::doEditUpdates(), ApiQueryWatchlistIntegrationTest::doMinorPageEdit(), WikiPage::doModify(), ApiQueryWatchlistIntegrationTest::doPageEdit(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), WikiPage::doPurge(), FileBackendTest::doTestGetFileContents(), FileBackendTest::doTestGetFileHttpUrl(), FileBackendTest::doTestGetFileStat(), FileBackendTest::doTestGetLocalCopy(), FileBackendTest::doTestGetLocalReference(), FileBackendTest::doTestStreamFile(), FileBackendTest::doTestStreamFileRange(), CompareParserCache::execute(), ApiEditPage::execute(), ApiPurge::execute(), MakeTestEdits::execute(), GetTextMaint::execute(), ImportSiteScripts::execute(), EditCLI::execute(), ApiStashEdit::execute(), Parser::extensionSubstitution(), ApiQueryRevisionsBase::extractRevisionInfo(), Parser::extractTagsAndParams(), ApiFeedContributions::feedItemDesc(), Article::fetchContent(), Article::fetchContentObject(), Xml::fieldset(), WikiImporter::finishImportPage(), RefreshLinks::fixLinksFromArticle(), RefreshLinks::fixRedirect(), FormatMetadata::flattenArrayReal(), CoreTagHooks::gallery(), AutoloadGenerator::generatePHPAutoload(), ContentHandler::getAutoDeleteReason(), FindHooks::getBadHooksFromFile(), CategoryMembershipChangeJob::getCategoriesAtRev(), ResourceLoaderWikiModule::getContent(), Article::getContent(), Article::getContentObject(), EditPage::getContentObject(), ContentHandler::getContentText(), EditPage::getCurrentContent(), ContentHandler::getDataForSearchIndex(), Article::getDeletionUpdates(), WikiPage::getDeletionUpdates(), LocalFile::getDescriptionText(), FindHooks::getHooksFromFile(), FindHooks::getHooksFromLocalDoc(), ChangeTagsRevisionItem::getHTML(), ChangeTagsLogItem::getHTML(), RevDelRevisionItem::getHTML(), BaseTemplate::getIndicators(), PNGMetadataExtractor::getMetadata(), MessageCache::getMsgFromNamespace(), EditPage::getOriginalContent(), ContentHandler::getPageViewLanguage(), WikitextStructureTest::getParserOutput(), EditPage::getPreloadedContent(), EditPage::getPreviewText(), RawAction::getRawText(), LogFormatter::getRestrictedElement(), BaseTemplate::getSidebar(), ResourceLoaderFileModule::getTemplates(), Revision::getText(), FileBackendGroup::guessMimeInternal(), DumpRenderer::handleRevision(), FixDefaultJsonContentPages::handleRow(), CoreTagHooks::html(), CheckStorage::importRevision(), CoreTagHooks::indicator(), EditPage::initialiseForm(), WikiPage::insertRedirect(), EditPage::internalAttemptSave(), WikiPage::isCountable(), MovePage::isValidMoveTarget(), Title::isValidMoveTarget(), JobRunner::loadBackoffs(), ResourceLoader::makeModuleResponse(), MessageCacheTest::makePage(), RevisionTest::newTestRevision(), CoreTagHooks::nowiki(), InfoAction::onView(), SpecialUploadStash::outputContents(), XMPReader::parse(), XMPReader::parseExtended(), RebuildTextIndex::populateSearchIndex(), CoreTagHooks::pre(), WikiPage::prepareContentForEdit(), WikiPage::prepareTextForEdit(), PreprocessDump::processRevision(), CompareParsers::processRevision(), FileBackendTest::provider_testConcatenate(), ApiFormatXml::recXmlPrint(), BaseTemplate::renderAfterPortlet(), Parser::replaceTransparentTags(), DoubleRedirectJob::run(), RefreshLinksJob::runForTitle(), ContentHandler::runLegacyHooks(), BenchmarkParse::runParser(), EditPage::runPostMergeFilters(), ParserTestRunner::runTest(), ParserOutput::setIndicator(), EditPage::setPreloadedContent(), ParserOptions::setupFakeRevision(), BaseDumpTest::setUpPrefetch(), TextPassDumperDatabaseTest::setUpStub(), EditPage::showEditForm(), SpecialBookSources::showList(), SpecialUndelete::showRevision(), Parser::statelessFetchTemplate(), LogFormatter::styleRestricedElement(), JobRunner::syncBackoffDeltas(), JavaScriptContentTest::testAddSectionHeader(), TextContentTest::testCopy(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), TextContentTest::testDeletionUpdates(), WikiPageTest::testDoEditContent(), ApiEditPageTest::testEditAppend(), ContentHandlerTest::testGetAutosummary(), RevisionTest::testGetContent(), WikiPageTest::testGetContent(), RevisionTest::testGetContentClone(), CssContentTest::testGetContentHandler(), JavaScriptContentTest::testGetContentHandler(), TextContentTest::testGetContentHandler(), ContentHandlerTest::testGetContentText_NonTextContent_fail(), ContentHandlerTest::testGetContentText_NonTextContent_ignore(), ContentHandlerTest::testGetContentText_NonTextContent_serialize(), ContentHandlerTest::testGetContentText_Null(), ContentHandlerTest::testGetContentText_TextContent(), RevisionTest::testGetContentUncloned(), FileBackendTest::testGetFileContents(), FileBackendTest::testGetFileHttpUrl(), FileBackendTest::testGetFileStat(), HttpErrorTest::testGetHtml(), FileBackendTest::testGetLocalCopy(), FileBackendTest::testGetLocalReference(), CssContentTest::testGetModel(), JavaScriptContentTest::testGetModel(), TextContentTest::testGetModel(), TextContentTest::testGetNativeData(), TextContentTest::testGetParserOutput(), CssContentTest::testGetRedirectTarget(), TextContentTest::testGetRedirectTarget(), JavaScriptContentTest::testGetRedirectTarget(), WikitextContentTest::testGetSecondaryDataUpdates(), TextContentTest::testGetSize(), TextContentTest::testGetTextForSearchIndex(), TextContentTest::testGetTextForSummary(), TextContentTest::testGetWikitextForTransclusion(), TextContentTest::testIsCountable(), TextContentTest::testIsEmpty(), TextContentTest::testIsRedirect(), ContentHandlerTest::testMakeContent(), JsonContentHandlerTest::testMakeEmptyContent(), ContentHandlerSanityTest::testMakeEmptyContent(), WikitextContentHandlerTest::testMakeEmptyContent(), JavaScriptContentHandlerTest::testMakeRedirectContent(), CssContentHandlerTest::testMakeRedirectContent(), WikitextContentHandlerTest::testMakeRedirectContent(), JavaScriptContentTest::testMatchMagicWord(), TextContentTest::testPreloadTransform(), TextContentTest::testPreSaveTransform(), RefreshLinksPartitionTest::testRefreshLinks(), ContentHandlerTest::testRunLegacyHooks(), WikitextContentHandlerTest::testSerializeContent(), FileBackendTest::testStreamFile(), WikitextContentHandlerTest::testUnserializeContent(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), JavaScriptContentTest::testUpdateRedirect(), Xml::textarea(), EditPage::toEditContent(), EditPage::toEditText(), PageArchive::undeleteRevisions(), WikiPage::updateRevisionOn(), PopulateRevisionLength::upgradeRow(), Article::view(), and wfThumbError().

null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify prev or next refreshes the diff cache allow viewing deleted revs & $differenceEngine

Definition at line 1156 of file hooks.txt.

Referenced by ContentHandler::createDifferenceEngine().

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging $e

Definition at line 2102 of file hooks.txt.

Referenced by RedisConnRef::__call(), FakeDatabase::__construct(), DatabaseTestHelper::__construct(), FakeDatabaseMysqlBase::__construct(), CoreVersionChecker::__construct(), ORAResult::__construct(), SVGReader::__construct(), LBFactory::__construct(), ExtensionRegistry::__construct(), LoadBalancer::__construct(), FSFileBackendList::__construct(), MemcachedClient::_flush_read_buffer(), RedisBagOStuff::add(), UploadFromChunks::addChunk(), BackupDumperPageTest::addDBData(), TextPassDumperDatabaseTest::addDBData(), BackupDumperLoggerTest::addDBData(), FetchTextTest::addDBData(), ApiQueryContinue2Test::addDBDataOnce(), ApiQueryContinueTest::addDBDataOnce(), ApiQueryBasicTest::addDBDataOnce(), ResourceLoader::applyFilter(), SVGMetadataExtractorTest::assertMetadata(), ApiQueryTestBase::assertResult(), MediaWiki\Tidy\Balancer::balance(), LoadBalancer::beginMasterChanges(), SqlBagOStuff::cas(), RedisBagOStuff::changeTTL(), SqlBagOStuff::changeTTL(), ApiMain::checkConditionalRequestHeaders(), Sqlite::checkSqlSyntax(), CategoryViewer::clearCategoryState(), LoadBalancer::commitAll(), LBFactory::commitMasterChanges(), LoadBalancer::commitMasterChanges(), Maintenance::commitTransaction(), UploadFromChunks::concatenateChunks(), ConvertibleTimestamp::convert(), SwiftFileBackend::convertSwiftDate(), Installer::createMainpage(), Database::deadlockLoop(), RedisBagOStuff::delete(), SqlBagOStuff::delete(), DatabaseMssql::delete(), Article::delete(), SqlBagOStuff::deleteAll(), DatabaseMssql::deleteJoin(), SqlBagOStuff::deleteObjectsExpiringBefore(), Installer::dirIsExecutable(), profile_point::display(), EditPage::displayViewSourcePage(), JobQueueRedis::doAck(), JobQueueDB::doAck(), BitmapMetadataHandler::doApp13(), Database::doAtomicSection(), JobQueueFederated::doBatchPush(), JobQueueRedis::doBatchPush(), JobQueueDB::doBatchPushInternal(), JobQueueFederated::doDeduplicateRootJob(), JobQueueRedis::doDeduplicateRootJob(), JobQueueFederated::doDelete(), JobQueueRedis::doDelete(), JobQueueDB::doDelete(), RedisBagOStuff::doGet(), JobQueueDB::doGetAbandonedCount(), JobQueueRedis::doGetAbandonedCount(), JobQueueDB::doGetAcquiredCount(), JobQueueRedis::doGetAcquiredCount(), JobQueueAggregatorRedis::doGetAllReadyWikiQueues(), JobQueueRedis::doGetDelayedCount(), JobQueueFederated::doGetSiblingQueueSizes(), JobQueueRedis::doGetSiblingQueueSizes(), JobQueueFederated::doGetSiblingQueuesWithJobs(), JobQueueDB::doGetSize(), JobQueueRedis::doGetSize(), ImportLinkCacheIntegrationTest::doImport(), SpecialImport::doImport(), JobQueueDB::doIsEmpty(), JobQueueFederated::doIsEmpty(), JobQueueFederated::doIsRootJobOldDuplicate(), JobQueueRedis::doIsRootJobOldDuplicate(), DBFileJournal::doLogChangeBatch(), EventRelayerKafka::doNotify(), TestFileOpPerformance::doPerfTest(), JobQueueDB::doPop(), JobQueueFederated::doPop(), JobQueueRedis::doPop(), MediaWiki::doPostOutputShutdown(), AutoCommitUpdate::doUpdate(), DatabaseInstaller::doUpgrade(), WikiPage::doViewUpdates(), JobQueueFederated::doWaitForBackups(), TextPassDumper::dump(), WikiExporter::dumpFrom(), ApiMain::errorMessageFromException(), ApiQueryStashImageInfo::execute(), ApiImport::execute(), ApiUpload::execute(), JSParseHelper::execute(), DeleteArchivedFiles::execute(), InvalidateUserSesssions::execute(), GenerateCommonPassword::execute(), ApiFeedWatchlist::execute(), PPFuzzTester::execute(), ZipDirectoryReader::execute(), DeferredUpdates::execute(), ApiMain::executeActionWithErrorHandling(), JobRunner::executeJob(), Message::extractParam(), Database::factory(), DatabaseOracle::fieldInfoMulti(), TrackBlobs::findOrphanBlobs(), LCStoreDB::finishWrite(), LCStoreCDB::finishWrite(), MediaWiki\Logger\Monolog\LineFormatter::format(), MediaWiki\Logger\Monolog\AvroFormatter::format(), MediaWiki\Logger\LegacyLogger::format(), ResourceLoader::formatException(), ResourceLoader::formatExceptionNoComment(), DeletedContribsPager::formatRow(), ContribsPager::formatRow(), MediaWikiTitleCodec::formatTitle(), RedisLockManager::freeLocksOnServer(), LCStoreCDB::get(), JobQueueRedis::getAllAbandonedJobs(), JobQueueRedis::getAllAcquiredJobs(), JobQueueRedis::getAllDelayedJobs(), MediaWiki\Interwiki\ClassicInterwikiLookup::getAllPrefixesCached(), JobQueueRedis::getAllQueuedJobs(), LocalisationCache::getCompiledPluralRules(), RedisConnectionPool::getConnection(), RedisBagOStuff::getConnection(), JobQueueFederated::getCrossPartitionSum(), UploadForm::getDescriptionSection(), Status::getErrorMessageArray(), MWExceptionRenderer::getHTML(), BmpHandler::getImageSize(), MediaWiki\Interwiki\ClassicInterwikiLookup::getInterwikiCacheEntry(), JobQueueRedis::getJobFromUidInternal(), JobQueueDB::getJobIterator(), LoadBalancer::getLaggedReplicaMode(), RequestContext::getLanguage(), RedisLockManager::getLocksOnServer(), MWExceptionHandler::getLogContext(), MWExceptionHandler::getLogMessage(), JobQueueDB::getMasterDB(), DatabaseMysqlBase::getMasterServerInfo(), MimeAnalyzer::getMediaType(), GIFHandler::getMetadata(), PNGHandler::getMetadata(), TiffHandler::getMetadata(), JpegHandler::getMetadata(), SvgHandler::getMetadata(), DjVuHandler::getMetaTree(), RedisBagOStuff::getMulti(), SqlBagOStuff::getMulti(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::getPassword(), MediaWikiTitleCodec::getPrefixedDBkey(), MWExceptionHandler::getPublicLogMessage(), MediaWiki\Logger\Monolog\KafkaHandler::getRandomPartition(), MWExceptionHandler::getRedactedTrace(), MWExceptionHandler::getRedactedTraceAsString(), JobQueueRedis::getServerQueuesWithJobs(), MWExceptionRenderer::getShowBacktraceError(), JobQueueDB::getSlaveDB(), NewFilesPager::getStartBody(), MWExceptionHandler::getStructuredExceptionData(), MWExceptionRenderer::getText(), TextPassDumper::getText(), LocalFile::getThumbnails(), SpecialRandomInCategory::getTimestampOffset(), ContentHandler::getUndoContent(), ParserFuzzTest::guessVarSize(), ApiMain::handleApiBeforeMainException(), MWExceptionHandler::handleError(), MWExceptionHandler::handleException(), RedisBagOStuff::handleException(), Database::handleSessionLoss(), EditPage::importFormData(), Installer::includeExtensions(), RedisBagOStuff::incr(), SqlBagOStuff::incr(), DatabaseMssql::insert(), DatabaseOracle::insertOneRow(), DBLockManager::isServerUp(), SiteStats::jobs(), MWExceptionHandler::jsonSerializeException(), DatabaseOracle::lastErrno(), DatabaseOracle::lastError(), DatabaseSqlite::lastError(), HTMLRestrictionsField::loadDataFromRequest(), MimeAnalyzer::loadFiles(), ProfilerOutputDb::log(), MWExceptionHandler::logException(), FileOp::logFailure(), ApiMain::logRequest(), FormatMetadata::makeFormattedData(), ResourceLoader::makeModuleResponse(), LoadBalancer::masterRunningReadOnly(), LocalFile::maybeUpgradeRow(), MediaWiki\Session\SessionProvider::mergeMetadata(), JSMinPlus::min(), MWException::msg(), MWExceptionRenderer::msg(), DatabaseMssql::nativeInsertSelect(), FSFileBackendList::next(), MediaWiki\Logger\Monolog\LineFormatter::normalizeException(), MWTimestamp::offsetForUser(), SpecialChangeContentModel::onSubmit(), Database::onTransactionPreCommitOrIdle(), MysqlInstaller::openConnection(), OracleInstaller::openConnection(), SqliteInstaller::openConnection(), MssqlInstaller::openConnection(), PostgresInstaller::openConnectionWithParams(), DatabaseSqlite::openFile(), OracleInstaller::openSYSDBAConnection(), MWExceptionRenderer::output(), OutputPage::output(), XMPReader::parse(), Installer::parse(), AjaxDispatcher::performAction(), ApiUpload::performStash(), JobQueue::pop(), PopulateContentModel::populateRevisionOrArchive(), PreprocessDump::processRevision(), MediaWiki\Logger\LegacyLoggerTest::provideInterpolate(), RecentChangesUpdateJob::purgeExpiredRows(), JobQueueGroup::pushLazyJobs(), ApiQueryContinueTestBase::query(), LoadBalancer::reallyOpenConnection(), QueryPage::recache(), Database::reconnect(), JobQueueDB::recycleAndDeleteStaleJobs(), PoolCounterRedis::release(), PoolCounterRedis::releaseAll(), PostgreSqlLockManager::releaseAllLocks(), MySqlLockManager::releaseAllLocks(), Parser::renderImageGallery(), MWExceptionHandler::report(), MWExceptionRenderer::reportHTML(), MWExceptionRenderer::reportOutageHTML(), ResourceLoader::respond(), FSFileBackendList::rewind(), MWExceptionHandler::rollbackMasterChangesAndLog(), TextPassDumper::rotateDb(), AssembleUploadChunksJob::run(), PublishStashedFileJob::run(), ApiQueryWatchlist::run(), RefreshLinksJob::run(), JobRunner::run(), ApiQueryRecentChanges::run(), MediaWiki::run(), MWExceptionRenderer::runHooks(), LoadBalancer::runMasterPostTrxCallbacks(), Database::runOnTransactionIdleCallbacks(), Database::runOnTransactionPreCommitCallbacks(), ParserTestRunner::runTestsFromFiles(), Database::runTransactionListenerCallbacks(), DeferredUpdates::runUpdate(), MediaWiki\MediaWikiServices::salvage(), ResourceLoaderModule::saveFileDependencies(), DatabaseMssql::selectDB(), DatabaseOracle::selectDB(), SamplingStatsdClient::send(), MediaWiki\Logger\Monolog\KafkaHandler::send(), UserMailer::sendInternal(), RedisBagOStuff::set(), LCStoreCDB::set(), RedisBagOStuff::setMulti(), SqlBagOStuff::setMulti(), ConvertibleTimestamp::setTimestamp(), ConvertibleTimestamp::setTimezone(), JobQueueTest::setUp(), SqliteInstaller::setupDatabase(), PostgresInstaller::setupPLpgSQL(), PostgresInstaller::setupSchema(), MysqlInstaller::setupUser(), PostgresInstaller::setupUser(), MWExceptionRenderer::showBackTrace(), SpecialUploadStash::showUpload(), SpecialUploadStash::showUploads(), Database::sourceFile(), MwSql::sqlDoQuery(), WebInstaller::startSession(), LCStoreCDB::startWrite(), MediaWikiTestCase::stashMwGlobals(), MssqlInstaller::submitSettingsForm(), MysqlInstaller::submitSettingsForm(), ApiMain::substituteResultWithError(), ApiOptionsTest::testAnon(), ApiMainTest::testAssert(), ApiMainTest::testAssertUser(), UserNotLoggedInTest::testConstruction(), ReadOnlyErrorTest::testConstruction(), ErrorPageErrorTest::testConstruction(), ApiEditPageTest::testEditSection(), BadTitleErrorTest::testExceptionSetsStatusCode(), ThrottledErrorTest::testExceptionSetsStatusCode(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), ResourceLoaderTest::testGetLoadScript(), MWExceptionHandlerTest::testGetRedactedTrace(), DatabaseTest::testGetScopedLock(), MWExceptionTest::testisCommandLine(), MWExceptionTest::testIsLogable(), ApiOptionsTest::testNoChanges(), ApiOptionsTest::testNoOptionname(), HtmlCheckMatrixTest::testPlainInstantiation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), ErrorPageErrorTest::testReport(), MWExceptionTest::testRunHooks(), WikitextContentHandlerTest::testSerializeContent(), UploadFromUrlTest::testSetupUrlDownload(), ApiQueryTest::testTitlePartToKey(), WikitextContentHandlerTest::testUnserializeContent(), ApiUploadTest::testUpload(), ApiUploadTest::testUploadChunks(), ApiUploadTest::testUploadMissingParams(), ApiUploadTest::testUploadRequiresToken(), ApiUploadTest::testUploadSameContent(), ApiUploadTest::testUploadSameFileName(), ApiUploadTest::testUploadStash(), ApiUploadTest::testUploadZeroLength(), MWExceptionTest::testUseMessageCache(), MWExceptionTest::testUseOutputPage(), JobQueueRedis::throwRedisException(), BitmapHandler::transformImageMagickExt(), MediaWiki::triggerJobs(), JobQueueFederated::tryJobInsertions(), ResourceLoader::tryRespondFromFileCache(), UploadBase::tryStashFile(), DatabaseMssql::update(), DatabaseOracle::update(), PopulateRevisionSha1::upgradeLegacyArchiveRow(), PopulateRevisionSha1::upgradeRow(), Database::upsert(), MWExceptionRenderer::useOutputPage(), HTMLTitleTextField::validate(), XmlTypeCheck::validateFromInput(), ResourceLoaderModule::validateScriptFile(), PoolCounterRedis::waitForSlotOrNotif(), SpecialEditWatchlist::watchTitles(), wfGenerateThumbnail(), and wfStreamThumb().

in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections & $editor

Definition at line 1230 of file hooks.txt.

Referenced by EnotifNotifyJob::run(), RecentChange::save(), and EditAction::show().

presenting them properly to the user as errors is done by the caller return true use this to change the list & $extTypes

Definition at line 1442 of file hooks.txt.

it s the revision text itself In either if gzip is the revision text is gzipped $flags

Definition at line 2703 of file hooks.txt.

Referenced by GanConverter::__construct(), ZhConverter::__construct(), KkConverter::__construct(), AutoloadGenerator::__construct(), ParserTestTopLevelSuite::__construct(), ProfilerXhprof::__construct(), GenericArrayObject::__construct(), LanguageConverter::__construct(), ApiPageSet::__construct(), LanguageShi::__construct(), LanguageIu::__construct(), LanguageSr::__construct(), MemcachedClient::_load_items(), MemcachedClient::_set(), ApiResult::addContentField(), ApiResult::addContentValue(), ApiResult::addValue(), ApiPageSet::addValues(), ApiErrorFormatter::addWarningOrError(), MWLBFactory::applyDefaultConfig(), MediaWiki\Auth\AuthManager::autoCreateUser(), JobQueue::batchPush(), SpecialBlock::blockLogFlags(), PPFrame_Hash::cachedExpand(), PPFrame_DOM::cachedExpand(), PPTemplateFrame_Hash::cachedExpand(), PPTemplateFrame_DOM::cachedExpand(), Preprocessor::cacheGetTree(), Preprocessor::cacheSetTree(), Parser::callParserFunction(), MediaWiki\Auth\AuthManager::canCreateAccount(), CentralIdLookup::centralIdFromLocalUser(), CentralIdLookup::centralIdFromName(), CheckStorage::check(), WikiPage::checkFlags(), Article::checkFlags(), TrackBlobs::checkIntegrity(), FileRepo::cleanupBatch(), WikiPage::commitRollback(), CompressOld::compressPage(), Revision::compressRevisionText(), FileRepo::concatenate(), WebPHandler::decodeExtendedChunkHeader(), Revision::decompressRevisionText(), StringUtils::delimiterReplace(), StringUtils::delimiterReplaceCallback(), JobQueueFederated::doBatchPush(), JobQueueDB::doBatchPush(), JobQueueRedis::doBatchPush(), JobQueueDB::doBatchPushInternal(), WikiPage::doCreate(), WikiPage::doEdit(), Article::doEdit(), WikiPage::doEditContent(), Article::doEditContent(), CachedBagOStuff::doGet(), MemcachedBagOStuff::doGet(), ReplicatedBagOStuff::doGet(), MultiWriteBagOStuff::doGet(), SqlBagOStuff::doGet(), WikiPage::doModify(), WikiFilePage::doPurge(), WikiPage::doPurge(), Article::doPurge(), FileBackendStore::doStreamFile(), SwiftFileBackend::doStreamFile(), MockBitmapHandler::doTransform(), MockSvgHandler::doTransform(), TransformationalImageHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), SquidPurgeClient::doWrites(), Xhprof::enable(), StorageTypeStats::execute(), DumpRev::execute(), ApiPurge::execute(), ApiCSPReport::execute(), FixBug20757::execute(), Title::exists(), PPFrame_Hash::expand(), PPFrame_DOM::expand(), Parser::extensionSubstitution(), Parser::extractSections(), Revision::fetchFromConds(), Revision::fetchText(), FileRepo::findFile(), RepoGroup::findFiles(), LocalRepo::findFiles(), FileRepo::findFiles(), BlockLogFormatter::formatBlockFlags(), OldChangesList::formatChangeLine(), ContribsPager::formatRow(), File::generateAndSaveThumb(), File::generateBucketsIfNeeded(), ApiCSPReport::generateLogLine(), BagOStuff::get(), ApiWatch::getAllowedParams(), ApiImageRotate::getAllowedParams(), ApiPurge::getAllowedParams(), ApiSetNotificationTimestamp::getAllowedParams(), ApiFeedWatchlist::getAllowedParams(), ApiQueryLogEvents::getAllowedParams(), ApiQuery::getAllowedParams(), ApiPageSet::getAllowedParams(), Title::getArticleID(), ContentHandler::getAutosummary(), Article::getAutosummary(), WikiPage::getAutosummary(), Title::getContentModel(), Title::getEarliestRevTime(), ApiBase::getFinalParams(), Title::getFirstRevision(), ApiCSPReport::getFlags(), DerivativeRequest::getHeader(), WebRequest::getHeader(), ApiQueryGeneratorBase::getHelpFlags(), ApiPurge::getHelpFlags(), ApiBase::getHelpFlags(), ApiHelp::getHelpInternal(), HTMLButtonField::getInputHTML(), LogFormatter::getIRCActionText(), Title::getLatestRevID(), Title::getLength(), ReplicatedBagOStuff::getMulti(), Title::getNextRevisionID(), User::getOptions(), Parser::getPreloadText(), Title::getPreviousRevisionID(), Revision::getRecentChange(), Revision::getRevisionText(), UIDGenerator::getSequentialPerNodeIDs(), HistoryBlobStub::getText(), Revision::getTimestampFromId(), SpecialVersion::getVersion(), BagOStuff::getWithSetCallback(), DBAccessObjectUtils::hasFlags(), User::idForName(), User::idFromName(), PPFrame_Hash::implodeWithFlags(), PPFrame_DOM::implodeWithFlags(), CheckStorage::importRevision(), WikiRevision::importUpload(), FSFileBackendList::initIterator(), Revision::insertOn(), EditPage::internalAttemptSave(), Title::isRedirect(), FixBug20757::isUnbrokenStub(), User::load(), LocalFile::load(), Revision::loadFromConds(), User::loadFromDatabase(), OldLocalFile::loadFromDB(), LocalFile::loadFromDB(), User::loadFromId(), WikiPage::loadLastEdit(), CentralIdLookup::localUserFromCentralId(), ApiCSPReport::logReport(), LocalIdLookup::lookupCentralIds(), LocalIdLookup::lookupUserNames(), WinCacheBagOStuff::merge(), ReplicatedBagOStuff::merge(), SqlBagOStuff::merge(), moveToExternal(), CentralIdLookup::nameFromCentralId(), Revision::newFromConds(), User::newFromConfirmationCode(), Revision::newFromId(), Title::newFromID(), Revision::newFromPageId(), Revision::newFromTitle(), UIDGenerator::newRawUUIDv4(), UIDGenerator::newSequentialPerNodeID(), UIDGenerator::newSequentialPerNodeIDs(), UIDGenerator::newUUIDv4(), SpecialChangeContentModel::onSubmit(), GenerateSitemap::open(), SpecialUploadStash::outputLocallyScaledThumb(), SpecialUploadStash::outputThumbFromStash(), ConverterRule::parse(), ConverterRule::parseFlags(), ShiConverter::parseManualRule(), SrConverter::parseManualRule(), IuConverter::parseManualRule(), KkConverter::parseManualRule(), JobQueueGroup::pop(), MediaWiki::preOutputCommit(), Parser::preprocessToDom(), Preprocessor_Hash::preprocessToObj(), Preprocessor_DOM::preprocessToObj(), Preprocessor_DOM::preprocessToXml(), FileRepo::publish(), LocalFile::publish(), FileRepo::publishBatch(), LocalFile::publishTo(), JobQueue::push(), ChangesList::recentChangesFlags(), ApiResult::removeValue(), Parser::replaceVariables(), resolveStub(), DoubleRedirectJob::run(), MediaWiki\Session\SessionBackend::save(), StreamFile::send404Message(), HTTPFileStreamer::send404Message(), CachedBagOStuff::set(), ReplicatedBagOStuff::set(), MultiWriteBagOStuff::set(), SqlBagOStuff::set(), ApiResult::setContentField(), ApiResult::setContentValue(), ParserDiffTest::setFunctionHook(), Parser::setFunctionHook(), Parser::setFunctionTagHook(), ApiResult::setValue(), FileRepo::store(), FileRepo::storeBatch(), StoreBatchTest::storeit(), StreamFile::stream(), HTTPFileStreamer::stream(), ParserTestTopLevelSuite::suite(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), WikitextContentHandlerTest::testGetAutosummary(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserExists(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserExists(), File::thumbName(), ForeignAPIFile::transform(), File::transform(), File::transformErrorOutput(), JobQueueFederated::tryJobInsertions(), WANObjectCache::unwrap(), LocalFile::upload(), MediaWiki\Auth\AuthManager::userExists(), DummyLinker::userToolLinks(), and Linker::userToolLinks().

this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers if desired whether it is OK to use $contentModel on $title Handler functions that modify $ok should generally return false to prevent further hooks from further modifying $ok inclusive false for true for descending in case the handler function wants to provide a converted Content object Note that $result getContentModel () must return $toModel. 'CustomEditor' $rcid is used in generating this variable which contains information about the new such as the revision s whether the revision was marked as a minor edit or etc which include things like revision author revision RevisionDelete link and more $formattedRevisionTools

Definition at line 1156 of file hooks.txt.

Referenced by DifferenceEngine::showDiffPage().

this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context the output can only depend on parameters provided to this hook not on global state $generateHtml
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves $handler
inline

Definition at line 802 of file hooks.txt.

Referenced by EditPage::__construct(), Revision::__construct(), Revision::checkContentModel(), CleanupSpam::cleanupArticle(), UploadBase::createFromRequest(), MediaWiki\Logger\MonologSpi::createLogger(), FSFileBackend::doCopyInternal(), SwiftFileBackend::doCopyInternal(), FSFileBackend::doCreateInternal(), SwiftFileBackend::doCreateInternal(), FSFileBackend::doDeleteInternal(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), WikiPage::doEditContent(), FSFileBackend::doMoveInternal(), SwiftFileBackend::doMoveInternal(), FSFileBackend::doStoreInternal(), SwiftFileBackend::doStoreInternal(), MovePageForm::doSubmit(), ApiImageRotate::execute(), ApiStashEdit::execute(), TextPassDumper::exportTransform(), ApiQueryRevisionsBase::extractRevisionInfo(), Article::generateReason(), ContentHandler::getAllContentFormats(), WikiPage::getAutosummary(), ResourceLoaderWikiModule::getContent(), WikiRevision::getContent(), Revision::getContentFormat(), Revision::getContentInternal(), EditPage::getCurrentContent(), FileContentHandler::getDataForSearchIndex(), ContentHandler::getForModelID(), MediaHandlerFactory::getHandler(), MediaWiki\Logger\MonologSpi::getHandler(), Parser::getImageParams(), SpecialChangeContentModel::getOptionsForTitle(), EditPage::getOriginalContent(), EditPage::getPreloadedContent(), MWFileProps::getPropsFromPath(), SearchEngine::getSearchIndexFields(), WikiPage::getUndoContent(), EditPage::importFormData(), ContentHandler::makeContent(), Parser::makeImage(), EditPage::mergeChangesIntoContent(), LogFormatter::newFromEntry(), ImagePage::openShowImage(), SpecialUploadStash::parseKey(), PopulateContentModel::populateRevisionOrArchive(), WikiImporter::processRevision(), ResourceLoaderImage::rasterize(), Parser::renderImageGallery(), MediaWikiTestCase::setTemporaryHook(), EditPage::showConflict(), MovePageForm::showForm(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testBatchHandlesNullFormatterResult(), ContentHandlerTest::testDataIndexFields(), MediaWiki\Session\PHPSessionHandlerTest::testDisabled(), MediaWiki\Session\PHPSessionHandlerTest::testEnableFlags(), TextContentHandlerTest::testFieldsForIndex(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testGetAvailablePartitionsException(), ContentHandlerTest::testGetFieldsForSearchIndex(), ContentHandlerTest::testGetForTitle(), MediaWiki\Session\SessionManagerTest::testGetGlobalSession(), WebPHandlerTest::testGetImageSize(), ContentHandlerTest::testGetModelForID(), ContentHandlerTest::testGetPageLanguage(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testHandlesNullFormatterResult(), BitmapScalingTest::testImageArea(), JsonContentHandlerTest::testMakeEmptyContent(), BitmapScalingTest::testNormaliseParams(), BitmapMetadataHandlerTest::testPNGNative(), BitmapMetadataHandlerTest::testPNGXMP(), MediaWiki\Session\SessionBackendTest::testResetIdOfGlobalSession(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testSendException(), MediaWiki\Session\PHPSessionHandlerTest::testSessionHandling(), ContentHandlerTest::testSupportsCategories(), TextContentHandlerTest::testSupportsDirectEditing(), ContentHandlerTest::testSupportsDirectEditing(), MediaWiki\Session\SessionBackendTest::testTakeOverGlobalSession(), BitmapMetadataHandlerTest::testTiffByteOrder(), BitmapScalingTest::testTooBigImage(), BitmapScalingTest::testTooBigMustRenderImage(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testTopicNaming(), MediaWiki\Session\SessionBackendTest::testUnpersistOfGlobalSession(), MediaWiki\Session\PHPSessionHandlerTest::testWrongInstance(), TraditionalImageGallery::toHTML(), UploadBase::verifyFile(), and wfExtractThumbParams().

null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an<a> element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses& $html

Definition at line 1936 of file hooks.txt.

Referenced by ImageGalleryBase::add(), CachedAction::addCachedHTML(), WebInstallerPage::addHTML(), WebInstallerOutput::addHTML(), WebInstallerOutput::addHTMLNoFlush(), MediaWikiTestCase::assertValidHtmlDocument(), MediaWikiTestCase::assertValidHtmlSnippet(), MediaWiki\Linker\LinkRenderer::buildAElement(), SpecialEditTags::buildCheckBoxes(), SpecialRevisionDelete::buildCheckBoxes(), Linker::buildRollbackLink(), HTMLForm::displaySection(), WebInstallerInstall::endStage(), Sanitizer::escapeHtmlAllowEntities(), ApiHelp::execute(), SpecialPageExecutor::executeSpecialPage(), ApiFeedContributions::feedItemDesc(), TextContent::fillParserOutput(), ApiHelp::fixHelpLinks(), OldChangesList::formatChangeLine(), FeedUtils::formatDiffRow(), HTMLMultiSelectField::formatOptions(), HTMLRadioField::formatOptions(), HTMLForm::formatSection(), CategoryViewer::generateLink(), LogEventsList::getActionSelector(), PreferencesForm::getButtons(), SpecialVersion::getCreditsForExtension(), MWDebug::getDebugHTML(), HTMLFormField::getDiv(), Title::getEditNotices(), ApiHelp::getHelp(), WebInstaller::getHelpBox(), HTMLForm::getHiddenFields(), JavaScriptContent::getHtml(), CssContent::getHtml(), QuickTemplate::getHTML(), MWExceptionRenderer::getHTML(), HTMLForm::getHTML(), SpecialPageExecutor::getHTMLFromSpecialPage(), HTMLFormField::getInline(), HTMLRadioField::getInputHTML(), HTMLMultiSelectField::getInputHTML(), HTMLCheckMatrix::getInputHTML(), HTMLFormFieldCloner::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), HTMLFormField::getLabelHtml(), LoginSignupSpecialPage::getPageHtml(), MessageContent::getParserOutput(), SkinTemplate::getPersonalToolsList(), HTMLFormField::getRaw(), Article::getRedirectHeaderHtml(), HTMLCheckMatrix::getTableRow(), HTMLFormField::getTableRow(), ForeignAPIRepo::httpGetCached(), ImageGalleryBase::insert(), Xml::isWellFormedXmlFragment(), DummyLinker::link(), Linker::link(), DummyLinker::linkKnown(), Linker::linkKnown(), Skin::makeFooterIcon(), DummyLinker::makeHeadline(), BaseTemplate::makeLink(), BaseTemplate::makeListItem(), DummyLinker::makeMediaLinkFile(), Linker::makeMediaLinkFile(), DummyLinker::makeMediaLinkObj(), Linker::makeMediaLinkObj(), LogFormatter::makePageLink(), DummyLinker::makeSelfLinkObj(), Linker::makeSelfLinkObj(), QueryPage::outputResults(), Installer::parse(), SpecialJavaScriptTest::plainQUnit(), BalancerTest::provideBalancerTests(), LinkerTest::provideLinkBeginHook(), LinkerTest::provideLinkEndHook(), OldChangesList::recentChangesLine(), LogFormatterTestCase::removeSomeHtml(), Parser::renderImageGallery(), MWExceptionRenderer::reportOutageHTML(), Linker::revDeleteLink(), Linker::revDeleteLinkDisabled(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), WebInstaller::showHelpBox(), SpecialSearch::showHit(), FileDuplicateSearchPage::showList(), WebInstaller::showMessage(), LogEventsList::showOptions(), SpecialTags::showTagList(), Parser::stripOuterParagraph(), EnhancedChangesListTest::testBeginRecentChangesList_html(), EnhancedChangesListTest::testCategorizationLineFormatting(), EnhancedChangesListTest::testCategorizationLineFormattingWithRevision(), SpecialEditWatchlistTest::testClearPage_hasClearButtonForm(), SpecialEditWatchlistTest::testEditRawPage_hasTitlesBox(), EnhancedChangesListTest::testEndRecentChangesList(), SanitizerTest::testEscapeHtmlAllowEntities(), SpecialBooksourcesTest::testExecute(), HttpErrorTest::testGetHtml(), StatusTest::testGetHtml(), HTMLFormTest::testGetHTML_empty(), TextContentTest::testGetParserOutput(), SpecialBlankPageTest::testHasWikiMsg(), HtmlAutoCompleteSelectFieldTest::testOptionalSelectElement(), EnhancedChangesListTest::testRecentChangesLine(), SpecialSearchTest::testRewriteQueryWithSuggestion(), SpecialEditWatchlistTest::testRootPage_displaysExplanationMessage(), SpecialWatchlistTest::testUserWithNoWatchedItems_displaysNoWatchlistMessage(), ImagePage::view(), ParserTestPrinter::wellFormed(), VFormHTMLForm::wrapForm(), OOUIHTMLForm::wrapForm(), HTMLForm::wrapForm(), PreferencesForm::wrapForm(), and SkinTemplate::wrapHTML().

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check $image
inline

Definition at line 802 of file hooks.txt.

Referenced by ApiQueryImageInfo::checkParameterNormalise(), MockBitmapHandler::doClientImage(), MockImageHandler::doFakeTransform(), MockBitmapHandler::doTransform(), MockSvgHandler::doTransform(), MockDjVuHandler::doTransform(), BitmapHandler_ClientOnly::doTransform(), TransformationalImageHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), InitSiteStats::execute(), UploadDumper::fetchUsed(), RepoGroup::findFile(), RepoGroup::findFiles(), GIFHandler::formatMetadata(), PNGHandler::formatMetadata(), ExifBitmapHandler::formatMetadata(), TransformationalImageHandler::getClientScalingThumbnailImage(), DjVuHandler::getDjVuImage(), ResourceLoaderImageModule::getFileHashes(), GIFHandler::getImageArea(), ImageHandler::getImageArea(), ResourceLoaderImageModule::getImages(), ExifBitmapHandler::getImageSize(), DjVuHandler::getImageSize(), PNGHandler::getLongDesc(), GIFHandler::getLongDesc(), DjVuHandler::getMetadata(), DjVuHandler::getMetaTree(), SearchNearMatcher::getNearMatchInternal(), ImageHandler::getScriptedTransform(), ResourceLoaderImageModule::getStyles(), MediaHandler::getTransform(), PNGHandler::isAnimatedImage(), GIFHandler::isAnimatedImage(), WebPHandler::isAnimatedImage(), ResourceLoader::makeModuleResponse(), ApiQueryImageInfo::mergeThumbParams(), JpegHandler::normaliseParams(), BitmapHandler_ClientOnly::normaliseParams(), TransformationalImageHandler::normaliseParams(), ImageHandler::normaliseParams(), BitmapHandler::normaliseParams(), SvgHandler::normaliseParams(), ApiQueryDuplicateFiles::run(), ParserTestRunner::setupUploads(), ResourceLoaderImageTest::testGetExtension(), ResourceLoaderImageTest::testGetImageData(), ResourceLoaderImageTest::testGetPath(), ResourceLoaderImageTest::testMassageSvgPathdata(), BitmapHandler::transformGd(), BitmapHandler::transformImageMagick(), ExifBitmapHandler::transformImageMagick(), BitmapHandler::transformImageMagickExt(), and RandomImageGenerator::writeImageWithApi().

do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values before the output is cached one of or reset my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled $incrBy

Definition at line 2491 of file hooks.txt.

Referenced by User::pingLimiter().

processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom you could $ldapServer

Definition at line 192 of file hooks.txt.

this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers if desired whether it is OK to use $contentModel on $title Handler functions that modify $ok should generally return false to prevent further hooks from further modifying $ok inclusive $limit

Definition at line 1046 of file hooks.txt.

Referenced by ApiResult::addParsedLimit(), Maintenance::adjustMemoryLimit(), ApiQuerySiteinfo::appendGeneralInfo(), LoadBalancer::approveMasterChanges(), Parser::braceSubstitution(), IndexPager::buildQueryInfo(), buildSearchEngine(), ImageListPager::combineResult(), Title::countAuthorsBetween(), PrefixSearch::defaultSearchBackend(), DBFileJournal::doGetChangeEntries(), SpecialRecentChangesLinked::doMainQuery(), Installer::envCheckMemory(), ApiQueryTags::execute(), SpecialExport::execute(), ApiQueryDeletedrevs::execute(), ApiQueryFilearchive::execute(), ApiFeedContributions::execute(), CleanupRemovedModules::execute(), UpdateSpecialPages::execute(), ApiQueryPagePropNames::execute(), ApiQueryLogEvents::execute(), ApiQueryContributions::execute(), ApiQueryAllUsers::execute(), GenerateCommonPassword::execute(), ApiBase::explodeMultiValue(), ApiQueryInfo::extractPageInfo(), IndexPager::extractResultInfo(), HistoryAction::feed(), SpecialNewpages::feed(), HistoryAction::fetchRevisions(), DiffEngine::find_middle_snake(), LocalRepo::findFilesByPrefix(), DiffEngine::findMostProgress(), User::findUsersByGroup(), WikiPage::flattenRestrictions(), Title::getAuthorsBetween(), FileJournal::getChangeEntries(), SwiftFileBackend::getDirListPageInternal(), SwiftFileBackend::getFileListPageInternal(), LocalFile::getHistory(), IndexPager::getLimitLinks(), WebRequest::getLimitOffset(), TablePager::getLimitSelectList(), HashRing::getLiveLocations(), HashRing::getLocations(), Category::getMembers(), DifferenceEngine::getMultiNotice(), SpecialWhatLinksHere::getPrevNext(), Title::getSubpages(), Pingback::getSystemInfo(), PrefixSearch::handleResultFromHook(), ImagePage::imageLinks(), DifferenceEngine::intermediateEditsMsg(), DatabaseMssql::limitResult(), Database::limitResult(), Preprocessor_DOM::memCheck(), Maintenance::memoryLimit(), Language::numLink(), SwiftFileBackend::objectListing(), SpecialRecentChanges::outputChangesList(), PurgeChangedPages::pageableSortedRows(), SwiftFileBackendDirList::pageFromList(), SwiftFileBackendFileList::pageFromList(), DatabasePostgres::pg_array_parse(), User::pingLimiter(), SpecialPage::prefixSearchArray(), SpecialPage::prefixSearchString(), SpecialListFiles::prefixSearchSubpages(), SpecialPageLanguage::prefixSearchSubpages(), SpecialUnblock::prefixSearchSubpages(), SpecialRecentChangesLinked::prefixSearchSubpages(), SpecialChangeContentModel::prefixSearchSubpages(), SpecialPrefixindex::prefixSearchSubpages(), SpecialAllPages::prefixSearchSubpages(), SpecialPage::prefixSearchSubpages(), SpecialEmailUser::prefixSearchSubpages(), SpecialWhatLinksHere::prefixSearchSubpages(), SpecialContributions::prefixSearchSubpages(), UserrightsPage::prefixSearchSubpages(), MovePageForm::prefixSearchSubpages(), SpecialBlock::prefixSearchSubpages(), SpecialUndelete::prefixSearchSubpages(), ImagePage::queryImageLinks(), DeletedContribsPager::reallyDoQuery(), ContribsPager::reallyDoQuery(), AllMessagesTablePager::reallyDoQuery(), ImageListPager::reallyDoQuery(), IndexPager::reallyDoQuery(), MagicWord::replace(), SearchExactMatchRescorer::rescore(), ApiQueryPrefixSearch::run(), ApiQueryExtLinksUsage::run(), ApiQuerySearch::run(), ApiQueryPagesWithProp::run(), ApiQueryCategoryMembers::run(), ApiQueryAllPages::run(), ApiQueryAllImages::run(), ApiQueryAllLinks::run(), ApiQueryRandom::runQuery(), UserNamePrefixSearch::search(), PrefixSearch::search(), PrefixSearch::searchBackend(), SearchEnginePrefixTest::searchProvision(), PrefixSearchTest::searchProvision(), PrefixSearch::searchWithVariants(), IndexPager::setLimit(), SpecialWhatLinksHere::showIndirectLinks(), SearchSuggestionSet::shrink(), PrefixSearch::specialSearch(), SyncFileBackend::syncBackends(), WatchedItemStoreUnitTest::testCountUnreadNotifications_withUnreadLimit_overLimit(), WatchedItemStoreUnitTest::testCountUnreadNotifications_withUnreadLimit_underLimit(), MergeHistoryTest::testIsValidMergeRevisionLimit(), PrefixSearch::titleSearch(), ApiBase::truncateArray(), Article::updateRestrictions(), and Language::viewPrevNext().

usually copyright or history_copyright This message must be in HTML not wikitext& $link

Definition at line 2889 of file hooks.txt.

Referenced by LinksUpdate::__construct(), ImageGalleryBase::add(), OutputPage::addHelpLink(), OutputPage::addReturnTo(), Skin::addToSidebarPlain(), RCCacheEntryFactoryTest::assertQueryLink(), SkinTemplate::buildContentNavigationUrls(), OutputPage::buildCssLinksArray(), ProtectionForm::buildForm(), SpecialEditWatchlist::buildRemoveLine(), Article::confirmDelete(), DifferenceEngine::deletedIdMarker(), MovePageForm::doSubmit(), SpecialApiHelp::execute(), DumpLinks::execute(), SpecialNewpages::filterLinks(), SrConverter::findVariantLink(), ShiConverter::findVariantLink(), IuConverter::findVariantLink(), KuConverter::findVariantLink(), StubUserLang::findVariantLink(), KkConverter::findVariantLink(), LanguageConverter::findVariantLink(), Language::findVariantLink(), Linker::formatAutocomments(), ApiParse::formatCategoryLinks(), DateFormatter::formatDate(), ApiParse::formatLangLinks(), AncientPagesPage::formatResult(), MostcategoriesPage::formatResult(), MostinterwikisPage::formatResult(), MostlinkedPage::formatResult(), DeletedContribsPager::formatRevisionRow(), SpecialProtectedtitles::formatRow(), CategoryPager::formatRow(), ContribsPager::formatRow(), ImageListPager::formatValue(), CategoryViewer::generateLink(), Skin::getCategoryLinks(), CreditsAction::getContributors(), Skin::getCopyright(), SpecialUndelete::getFileComment(), SpecialUndelete::getFileLink(), SpecialUndelete::getFileUser(), LogEventsList::getFilterLinks(), BaseTemplate::getFooterLinks(), OutputPage::getHeadLinksArray(), ApiHelp::getHelpInternal(), EnhancedChangesList::getLineData(), RevDelArchivedFileItem::getLink(), RevDelFileItem::getLink(), ApiParamInfo::getModuleInfo(), SpecialUndelete::getPageLink(), WebInstaller::getPageListItem(), Block::getPermissionsError(), TablePager::getStartBody(), RevDelFileItem::getUserTools(), HistoryPager::historyLine(), ImagePage::imageDupes(), ImagePage::imageLinks(), ImageGalleryBase::insert(), SpecialWhatLinksHere::listItem(), Linker::makeCommentLink(), Linker::makeExternalLink(), DummyLinker::makeHeadline(), Linker::makeHeadline(), Parser::makeKnownLinkHolder(), BaseTemplate::makeListItem(), LogFormatter::makePageLink(), ChangesList::maybeWatchedLink(), ImportStreamSource::newFromInterwiki(), ComposerPackageModifier::newMediaWikiLink(), Language::numLink(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), SpecialSpecialpages::outputPageList(), LanguageConverter::parseCachedTable(), SkinTemplate::prepareQuickTemplate(), SpecialBlock::preText(), Preferences::profilePreferences(), Parser::renderImageGallery(), LinkHolderArray::replaceInternal(), Parser::replaceInternalLinks2(), LinkHolderArray::replaceInterwiki(), Linker::revDeleteLink(), DifferenceEngine::revisionDeleteLink(), HistoryPager::revLink(), Linker::revUserLink(), Linker::revUserTools(), Article::showDeletedRevisionHeader(), DifferenceEngine::showDiffPage(), FileDeleteForm::showForm(), SpecialRevisionDelete::showForm(), SpecialSearch::showHit(), SpecialSearch::showInterwikiHit(), SpecialBlockList::showList(), Article::showPatrolFooter(), SpecialPrefixindex::showPrefixChunk(), SpecialUndelete::showRevision(), MovePageForm::showSubpagesList(), SpecialUpload::showViewDeletedLinks(), OutputPage::styleLink(), Skin::subPageSubtitle(), ApiMain::substituteResultWithError(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), LinkRendererTest::testMergeAttribs(), TraditionalImageGallery::toHTML(), SpecialUndelete::undelete(), and CreditsAction::userLink().

either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables & $linksUpdate

Definition at line 2005 of file hooks.txt.

configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array change it to the message you want to define you are encouraged to submit patches to MediaWiki s core to add new MIME types to mime types $mimeMagic
static

Definition at line 2159 of file hooks.txt.

Referenced by File::checkExtensionCompatibility().

this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers $modeName

Definition at line 1046 of file hooks.txt.

this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist $name
inline

Definition at line 300 of file hooks.txt.

Referenced by DBConnRef::__call(), ParserDiffTest::__call(), RedisConnRef::__call(), StubObject::__call(), LessTestSuite::__construct(), RefreshLinksPartitionTest::__construct(), LinksUpdateTest::__construct(), JobQueueTest::__construct(), WikiPageTest::__construct(), ParserTestFileSuite::__construct(), ApiQueryWatchlistIntegrationTest::__construct(), EnhancedChangesListTest::__construct(), RevisionStorageTest::__construct(), OldChangesListTest::__construct(), SpecialChangeCredentials::__construct(), RCCacheEntryFactoryTest::__construct(), MostrevisionsPage::__construct(), UnusedCategoriesPage::__construct(), LongPagesPage::__construct(), IncludableSpecialPage::__construct(), UnlistedSpecialPage::__construct(), UncategorizedCategoriesPage::__construct(), UnusedimagesPage::__construct(), DeprecatedGlobal::__construct(), WantedPagesPage::__construct(), BrokenRedirectsPage::__construct(), DeadendPagesPage::__construct(), DoubleRedirectsPage::__construct(), FewestrevisionsPage::__construct(), AncientPagesPage::__construct(), LonelyPagesPage::__construct(), XmlSelect::__construct(), ListredirectsPage::__construct(), MostlinkedTemplatesPage::__construct(), ShortPagesPage::__construct(), UncategorizedImagesPage::__construct(), UncategorizedTemplatesPage::__construct(), WithoutInterwikiPage::__construct(), ListDuplicatedFilesPage::__construct(), MIMEsearchPage::__construct(), MostcategoriesPage::__construct(), MostimagesPage::__construct(), MostlinkedCategoriesPage::__construct(), MostinterwikisPage::__construct(), SpecialRecentChanges::__construct(), UncategorizedPagesPage::__construct(), UnusedtemplatesPage::__construct(), WantedCategoriesPage::__construct(), WantedFilesPage::__construct(), MostlinkedPage::__construct(), UnwatchedpagesPage::__construct(), WantedTemplatesPage::__construct(), RandomPage::__construct(), SpecialPagesWithProp::__construct(), SpecialGoToInterwiki::__construct(), MailAddress::__construct(), CommandLineInc::__construct(), UserRightsProxy::__construct(), LinkSearchPage::__construct(), MediaStatisticsPage::__construct(), FileDuplicateSearchPage::__construct(), MediaWiki\Auth\CreatedAccountAuthenticationRequest::__construct(), ApiContinuationManager::__construct(), ResourceLoaderImage::__construct(), SpecialAllPages::__construct(), NamespaceAwareForeignTitleFactory::__construct(), PoolCounterWorkViaCallback::__construct(), SpecialRandomInCategory::__construct(), MemcLockManager::__construct(), DatabaseMysqlBase::__construct(), FileOp::__construct(), LoginSignupSpecialPage::__construct(), RecompressTracked::__construct(), MediaWikiTestCase::__construct(), SpecialRedirectToSpecial::__construct(), SpecialPage::__construct(), RedirectSpecialArticle::__construct(), LinkHolderArray::__destruct(), MaintenanceFixup::__destruct(), Parser::__destruct(), Language::__destruct(), TestingAccessWrapper::__get(), Status::__get(), JSNode::__get(), TestingAccessWrapper::__set(), Status::__set(), JSNode::__set(), ForeignTitle::__toString(), TitleValue::__toString(), MediaWiki\Tidy\BalanceElement::__toString(), PPTemplateFrame_Hash::__toString(), PPCustomFrame_Hash::__toString(), StubObject::_call(), DummyLinker::accesskey(), Linker::accesskey(), EmailNotification::actuallyNotifyOnPageChange(), MagicWordArray::add(), FormOptions::add(), TestFileReader::addArticle(), ParserTestRunner::addArticle(), ApiResult::addContentField(), ApiResult::addContentValue(), ApiContinuationManager::addContinueParam(), ApiContinuationManager::addGeneratorContinueParam(), ApiContinuationManager::addGeneratorNonContinueParam(), OutputPage::addHeadItem(), HTMLForm::addHiddenField(), HTMLForm::addHiddenFields(), ParserOutput::addImage(), FakeAuthTemplate::addInputItem(), OutputPage::addMeta(), MediaHandler::addMeta(), ApiModuleManager::addModule(), ApiModuleManager::addModules(), Maintenance::addOption(), ApiQueryBase::addOption(), TestFileReader::addRequirement(), InfoAction::addRow(), ContentHandler::addSearchField(), DatabaseUpdater::addTable(), ApiResult::addValue(), ApiPageSet::addValues(), OutputPage::addWikiMsg(), OutputPage::addWikiMsgArray(), SVGReader::animateFilterAndLang(), ApiQuerySiteinfo::appendInstalledLibraries(), ApiQuerySiteinfo::appendLanguages(), ApiQuerySiteinfo::appendSkins(), ApiQuerySiteinfo::appendSubscribedHooks(), ImageCleanup::appendTitle(), MediaWiki\Services\ServiceContainer::applyWiring(), UserMailer::arrayToHeaderString(), DumpTestCase::assertDumpEnd(), DumpTestCase::assertNodeEnd(), DumpTestCase::assertNodeStart(), DumpTestCase::assertPageStart(), DumpTestCase::assertTextNode(), DatabaseSqlite::attachDatabase(), Xml::attrib(), SearchEngine::augmentSearchResults(), Parser::braceSubstitution(), SpecialRevisionDelete::buildCheckBoxes(), BatchRowIterator::buildConditions(), MysqlInstaller::buildFullUserName(), ImageCleanup::buildSafeTitle(), CentralIdLookup::centralIdFromName(), CheckStorage::check(), Xml::check(), Html::check(), NamespaceConflictChecker::checkAll(), UserDupes::checkDupes(), DatabaseInstaller::checkExtension(), FindOrphanedFiles::checkFiles(), Xml::checkLabel(), OutputPage::checkLastModified(), NamespaceConflictChecker::checkLinkTable(), NamespaceConflictChecker::checkNamespace(), PreprocessDump::checkOptions(), Title::checkReadPermissions(), Maintenance::checkRequiredExtensions(), Skin::checkTitle(), Hooks::clear(), WebResponse::clearCookie(), User::clearCookie(), LockManagerGroup::config(), FileBackendGroup::config(), FormOptions::consumeValue(), FormOptions::consumeValues(), MediaWiki\Auth\AuthManager::continueAccountCreation(), UploadFromChunks::continueChunks(), Parser::createAssocArgs(), HTMLFormFieldCloner::createFieldsForKey(), User::createNew(), ParserTestRunner::createRepoGroup(), MediaWiki\Services\ServiceContainer::createService(), Installer::createSysop(), SpecialWatchlist::cutoffselector(), MediaWikiMediaTestCase::dataFile(), Sanitizer::decodeEntity(), JobQueueAggregatorRedis::decodeQueueName(), JobQueueRedis::decodeQueueName(), MediaWiki\Services\ServiceContainer::defineService(), FormOptions::delete(), UploadFromUrlTest::deleteFile(), Maintenance::deleteOption(), MediaWiki\Services\ServiceContainer::destroy(), MediaWiki\Services\ServiceContainer::disableService(), MediaWiki\MediaWikiServices::disableStorageBackend(), XMPReader::doAttribs(), Installer::doGenerateKeys(), SpecialRecentChanges::doHeader(), SpecialWatchlist::doHeader(), MysqlUpdater::doPagelinksUpdate(), UserCache::doQuery(), GenderCache::doQuery(), ImagePage::doRenderLangOpt(), DatabaseUpdater::doTable(), XmlTypeCheck::elementClose(), XmlTypeCheck::elementOpen(), TextPassDumper::endElement(), DeprecatedInterfaceFinder::enterNode(), FileRepo::enumFilesInStorage(), Installer::envCheckCache(), Installer::envCheckDB(), UserDupes::examine(), CheckComposerLockUpToDate::execute(), ApiEditPage::execute(), DatabaseLag::execute(), NukePage::execute(), AttachLatest::execute(), ApiQueryContributions::execute(), GenerateNormalizerDataAr::execute(), PopulateCategory::execute(), ConvertExtensionToRegistration::execute(), ParserTestsMaintenance::execute(), ApiQueryUsers::execute(), GetConfiguration::execute(), DeferredUpdates::execute(), LocalFileDeleteBatch::execute(), SpecialPageFactory::executePath(), ParserTestRunner::executeSetupSnippets(), Action::exists(), SpecialPageFactory::exists(), Xml::expandAttributes(), XmlTypeCheck::expandNS(), ExtensionRegistry::exportExtractedData(), QuickTemplate::extend(), Parser::extensionSubstitution(), SpecialRevisionDelete::extractBitParams(), ExtensionProcessor::extractCredits(), ExtensionProcessor::extractHooks(), ExtensionProcessor::extractMessagesDirs(), BatchRowIterator::extractPrimaryKeys(), ExtensionProcessor::extractResourceLoaderModules(), ApiQueryRevisionsBase::extractRevisionInfo(), UserrightsPage::fetchUser(), FormOptions::fetchValuesFromRequest(), Database::fieldNameWithAlias(), TitleCleanup::fileExists(), ImageCleanup::filePath(), CoreParserFunctions::filepath(), GetConfiguration::finalSetup(), RepoGroup::findFiles(), OldChangesList::formatChangeLine(), ApiAuthManagerHelper::formatFields(), SkinTemplate::formatLanguageName(), ApiParse::formatLimitReportData(), SvgHandler::formatMetadata(), MediaHandler::formatMetadataHelper(), LogFormatter::formatParameterValueForApi(), NewFilesPager::formatRow(), TablePager::formatRow(), ApiRsd::formatRsdApiList(), BlockListPager::formatValue(), ImageListPager::formatValue(), ParserFuzzTest::fuzzTest(), LocalSettingsGenerator::generateExtEnableLine(), MultiConfig::get(), GlobalVarConfig::get(), HashConfig::get(), QuickTemplate::get(), LockManagerGroup::get(), FileBackendGroup::get(), SpecialPageFactory::getAliasList(), FormOptions::getAllValues(), PPTemplateFrame_Hash::getArgument(), WebRequest::getArray(), XmlSelect::getAttribute(), ExtensionRegistry::getAttribute(), RecentChange::getAttribute(), XmlTypeCheck::getAttributesArray(), SiteImporter::getAttributeValue(), MagicWordArray::getBaseRegex(), MessageBlobStore::getBlobs(), WebRequest::getBool(), JobQueueGroup::getCachedConfigVar(), Skin::getCachedNotice(), MWNamespace::getCanonicalIndex(), User::getCanonicalName(), ApiQueryAllUsers::getCanonicalUserName(), LinksUpdate::getCategoryInsertions(), ApiQueryUserInfo::getCentralUserInfo(), FormOptions::getChangedValues(), WebRequest::getCheck(), ApiMain::getCheck(), DatabaseInstaller::getCheckBox(), SiteImporter::getChildText(), SvgHandler::getCommonMetaArray(), SiteConfiguration::getConfig(), FauxRequest::getCookie(), FauxResponse::getCookie(), FauxResponse::getCookieData(), MultiHttpClient::getCurlHandle(), ResourceLoaderClientHtml::getData(), Title::getDefaultMessageText(), FileRepo::getDescriptionRenderUrl(), FileRepo::getDescriptionUrl(), Language::getDurationIntervals(), FormatJsonTest::getEncodeTestCases(), Timing::getEntryByName(), MediaWikiPHPUnitTestListener::getErrorName(), AvroValidator::getErrors(), ApiQueryLinks::getExamplesMessages(), ApiQueryAllLinks::getExamplesMessages(), ApiQueryBacklinksprop::getExamplesMessages(), SpecialUpload::getExistsWarning(), FormatMetadata::getExtendedMetadataFromFile(), SpecialVersion::getExternalLibraries(), FakeAuthTemplate::getExtraInputDefinitions(), SpecialPage::getFinalGroupName(), ApiBase::getFinalParamDescription(), WebRequest::getFloat(), MediaWiki\Logger\MonologSpi::getFormatter(), SpecialPageLanguage::getFormFields(), Preferences::getFormObject(), WebRequest::getFuzzyBool(), ApiPageSet::getGenerators(), JobQueueRedis::getGlobalKey(), WebRequest::getGPCVal(), MediaWiki\Logger\MonologSpi::getHandler(), Hooks::getHandlers(), MagicWordArray::getHash(), LocalFileDeleteBatch::getHashes(), FileRepo::getHashPath(), FileRepo::getHashPathForLevel(), WebResponse::getHeader(), DerivativeRequest::getHeader(), WebRequest::getHeader(), MWHttpRequest::getHeaderList(), ApiHelp::getHelpInternal(), ApiQueryAllLinks::getHelpUrls(), ApiQueryBacklinksprop::getHelpUrls(), TablePager::getHiddenFields(), Linker::getImageLinkMTOParams(), Parser::getImageParams(), XhprofData::getInclusiveMetrics(), HTMLSelectField::getInputHTML(), HTMLFormFieldCloner::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), WebRequest::getInt(), WebRequest::getIntArray(), WebRequest::getIntOrNull(), Linker::getInvalidTitleDescription(), WebInstallerLanguage::getLanguageSelector(), Database::getLBInfo(), TablePager::getLimitSelect(), ContentHandler::getLocalizedName(), SpecialPageFactory::getLocalNameFor(), ParserFuzzTest::getMemoryBreakdown(), PNGMetadataExtractor::getMetadata(), TestingAccessWrapper::getMethod(), ResourceLoader::getModule(), ApiParamInfo::getModuleInfo(), WebRequestUpload::getName(), ResourceLoaderImage::getName(), FileRepo::getName(), PPTemplateFrame_Hash::getNamedArgument(), PPTemplateFrame_DOM::getNamedArgument(), ApiQuery::getNamedDB(), FileRepo::getNameFromTitle(), ApiModuleManager::getNames(), Language::getNamespaceAliases(), MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions(), Language::getNamespaceIds(), MediaWikiTitleCodec::getNamespaceName(), ApiModuleManager::getNamesWithClasses(), HTMLFormField::getNearestFieldByName(), Maintenance::getOption(), Preferences::getOptionFromUser(), User::getOptionKinds(), SpecialStatistics::getOtherStats(), SpecialPageFactory::getPage(), Skin::getPageClasses(), WebInstaller::getPageListItem(), SpecialExport::getPagesFromCategory(), FileOp::getParam(), RecentChange::getParam(), ApiBase::getParameterFromSettings(), DatabaseInstaller::getPasswordBox(), MediaWiki\Logger\MonologSpi::getProcessor(), TestingAccessWrapper::getProperty(), OutputPage::getProperty(), ParserOutput::getProperty(), LinksUpdate::getPropertyInsertions(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::getProvider(), MediaWiki\Session\BotPasswordSessionProviderTest::getProvider(), MediaWiki\Session\SessionManager::getProvider(), WebRequest::getRawVal(), SpecialPageFactory::getRegularPages(), RepoGroup::getRepoByName(), SpecialPageFactory::getRestrictedPages(), HistoryPager::getRevisionButton(), OutputPage::getRlClient(), SpecialPage::getSafeTitleFor(), OracleInstaller::getSchemaVars(), LoadBalancer::getServerName(), MediaWiki\Services\ServiceContainer::getService(), WebInstaller::getSession(), ApiAuthManagerHelper::getStandardParams(), TablePager::getStartBody(), ApiDocumentationTest::getSubModulePaths(), HTMLHiddenField::getTableRow(), FileRepo::getTempHashPath(), ResourceLoaderImageTest::getTestImage(), MediaWikiPHPUnitTestListener::getTestName(), FauxRequest::getText(), WebRequest::getText(), DatabaseInstaller::getTextBox(), ForeignAPIRepo::getThumbError(), ForeignAPIRepo::getThumbUrl(), ForeignAPIRepo::getThumbUrlFromCache(), SpecialPage::getTitleFor(), SpecialPageFactory::getTitleForAlias(), LogPage::getTitleLink(), SpecialPage::getTitleValueFor(), ApiTokens::getTokenTypes(), LogEventsList::getTypeSelector(), FormOptions::getUnconsumedValues(), ApiMain::getUpload(), SpecialPageFactory::getUsablePages(), RevDelFileItem::getUserTools(), WebRequest::getVal(), ApiMain::getVal(), FormOptions::getValue(), WebRequest::getValues(), Installer::getVar(), Language::getVariantname(), FileRepo::getVirtualUrl(), SiteConfiguration::getWikiParams(), GlobalVarConfig::getWithPrefix(), UserrightsPage::groupCheckboxes(), ConvertExtensionToRegistration::handleCredits(), ConvertExtensionToRegistration::handleResourceModules(), GlobalVarConfig::has(), MultiConfig::has(), HashConfig::has(), SiteImporter::hasChild(), DatabasePostgres::hasConstraint(), OutputPage::hasHeadItem(), Maintenance::hasOption(), MediaWiki\Services\ServiceContainer::hasService(), Title::hasSourceText(), GlobalVarConfig::hasWithPrefix(), Html::hidden(), User::idFromName(), ImageCleanup::imageExists(), RequestContext::importScopedSession(), WebInstallerExistingWiki::importVariables(), WebRequest::initHeaders(), UploadFromFile::initialize(), UploadFromStash::initialize(), UploadFromUrl::initialize(), UploadBase::initializePathInfo(), Xml::input(), Html::input(), Xml::inputLabel(), Xml::inputLabelSep(), ApiModuleManager::instantiateModule(), LinksUpdate::invalidateProperties(), User::isCreatableName(), ResourceLoader::isFileModule(), User::isIP(), ExtensionRegistry::isLoaded(), ResourceLoader::isModuleRegistered(), DatabaseMysqlBase::isQuotedIdentifier(), DatabaseMssql::isQuotedIdentifier(), Database::isQuotedIdentifier(), Hooks::isRegistered(), MediaWiki\Services\ServiceContainer::isServiceDisabled(), Title::isSpecial(), User::isUsableName(), User::isValidUserName(), DatabaseMysqlBase::isView(), EditPage::isWrongCaseCssJsPage(), ImageCleanup::killRow(), Xml::languageSelector(), LogPager::limitPerformer(), LogPager::limitTitle(), ApiParamInfo::listAllSubmodules(), Xml::listDropDown(), HTMLForm::loadData(), User::loadDefaults(), LanguageConverter::loadDefaultTables(), User::loadFromCache(), Preferences::loadPreferenceValues(), CentralIdLookup::localUserFromCentralId(), Installer::locateExecutable(), ProfilerOutputDb::log(), BotPassword::login(), ApiMain::logRequest(), SkinTemplate::makeArticleUrlDetails(), ConfigFactory::makeConfig(), DatabasePostgres::makeConnectionString(), Skin::makeI18nUrl(), Skin::makeInternalOrExternalUrl(), Skin::makeKnownUrlDetails(), ResourceLoaderClientHtml::makeLoad(), ResourceLoader::makeModuleResponse(), Title::makeName(), Skin::makeNSUrl(), SkinFactory::makeSkin(), Skin::makeSpecialUrl(), Skin::makeSpecialUrlSubpage(), SkinTemplate::makeTalkUrlDetails(), MediaWikiTestCase::makeTestConfigFactoryInstantiator(), LinksUpdateTest::makeTitleAndParserOutput(), Skin::makeUrl(), Skin::makeUrlDetails(), ResourceLoader::makeVersionQuery(), ApiFormatXml::mangleName(), ExtensionRegistry::markLoaded(), MagicWordArray::matchAndRemove(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), MediaWikiTestCase::mergeMwGlobalArrayValue(), ApiQueryImageInfo::mergeThumbParams(), FileRepo::nameForThumb(), PPFrame_Hash::newChild(), PPFrame_DOM::newChild(), MediaWiki\Session\UserInfo::newFromName(), UserRightsProxy::newFromName(), Category::newFromName(), User::newFromName(), ContentHandlerTest::newSearchEngine(), User::newSystemUser(), SpecialSearchTest::newUserWithSearchNS(), Linker::normaliseSpecialPage(), Sanitizer::normalizeEntity(), NamespaceAwareForeignTitleFactory::normalizeNamespaceName(), CoreParserFunctions::numberingroup(), FormOptions::offsetExists(), FormOptions::offsetGet(), FormOptions::offsetSet(), FormOptions::offsetUnset(), SpecialChangeCredentials::onAuthChangeFormFields(), InfoAction::onView(), SpecialVersion::openExtType(), UploadDumper::outputItem(), MediaWikiTestCase::overrideMwServices(), WikiExporter::pageByName(), ImageCleanup::pageExists(), WikiExporter::pagesByName(), CoreParserFunctions::pagesincategory(), CookieJar::parseCookieResponseHeader(), Xml::password(), MediaWiki\Services\ServiceContainer::peekService(), Installer::performInstallation(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::postAuthentication(), SpecialSearch::powerSearch(), SpecialSearch::powerSearchBox(), Title::prefix(), ResourceLoader::preloadModuleInfo(), ApiQueryBlocks::prepareUsername(), ProtectedPagesPager::preprocessResults(), Preprocessor_Hash::preprocessToObj(), Preferences::profilePreferences(), MediaWiki\Auth\AuthManagerTest::provideAuthentication(), MediaWikiServicesTest::provideGetters(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerNormalizeUsername(), Xml::radio(), Html::radio(), Xml::radioLabel(), TestFileReader::read(), ZipDirectoryReader::readCentralDirectory(), SVGReader::readField(), LoadBalancer::reallyOpenConnection(), DatabasePostgres::realTableName(), DatabaseMssql::realTableName(), TransactionProfiler::recordQueryCompletion(), ApiFormatXml::recXmlPrint(), ApiFormatXmlRsd::recXmlPrint(), MediaWiki\Services\ServiceContainer::redefineService(), Hooks::register(), SkinFactory::register(), LockManagerGroup::register(), ConfigFactory::register(), FileBackendGroup::register(), ResourceLoader::register(), BackupDumper::registerFilter(), BackupDumper::registerOutput(), HTMLFormFieldCloner::rekeyValuesArray(), DatabasePostgres::remappedTableName(), ApiResult::removeValue(), BaseTemplate::renderAfterPortlet(), Maintenance::requireExtension(), ParserTestRunner::requireFunctionHook(), ParserTestRunner::requireHook(), ParserTestRunner::requireTransparentHook(), FormOptions::reset(), MediaWiki\Services\ServiceContainer::resetService(), MediaWiki\MediaWikiServices::resetServiceForTesting(), SpecialPageFactory::resolveAlias(), ResourceLoader::respond(), ApiQueryAllLinks::run(), MWException::runHooks(), MWExceptionRenderer::runHooks(), MultiHttpClient::runMulti(), ParserTestRunner::runTest(), ConfigFactory::salvage(), MediaWiki\MediaWikiServices::salvage(), CategoryFinder::scanNextLayer(), EraseArchivedFile::scrubAllVersions(), EraseArchivedFile::scrubVersion(), SearchEngineConfig::searchableNamespaces(), ApiQueryBase::selectNamedDB(), ApiMain::sendCacheHeaders(), QuickTemplate::set(), HashConfig::set(), XmlSelect::setAttribute(), SearchResultSet::setAugmentedData(), ApiResult::setContentField(), ApiResult::setContentValue(), CookieJar::setCookie(), WebResponse::setCookie(), FauxResponse::setCookie(), MWHttpRequest::setCookie(), User::setCookie(), FauxRequest::setCookies(), MediaWiki::setDBProfilingAgent(), User::setExtendedLoginCookie(), FauxRequest::setHeader(), MWHttpRequest::setHeader(), FauxRequest::setHeaders(), OutputPage::setHTMLTitle(), ApiParse::setIndexedTagNames(), Database::setLBInfo(), HTMLForm::setName(), OutputPage::setPageTitle(), Installer::setPassword(), OutputPage::setProperty(), ParserOutput::setProperty(), QuickTemplate::setRef(), CurlHttpRequestTester::setRespHeaders(), PhpHttpRequestTester::setRespHeaders(), MediaWikiTestCase::setService(), WebInstaller::setSession(), HTMLForm::setSubmitName(), HTMLForm::setSubmitTooltip(), LoadBalancer::setTransactionListener(), Database::setTransactionListener(), BagOStuffTest::setUp(), StoreBatchTest::setUp(), JobQueueTest::setUp(), FileBackendTest::setUp(), MysqlInstaller::setupUser(), MssqlInstaller::setupUser(), Revision::setUserIdAndName(), RevisionDeleteUser::setUsernameBitfields(), FormOptions::setValue(), ApiResult::setValue(), WebInstallerPage::setVar(), DatabaseInstaller::setVar(), Installer::setVar(), WebInstaller::setVarsFromRequest(), LBFactory::setWaitForReplicationListener(), ProfilerXhprof::shouldExclude(), OutputPage::showFileDeleteError(), OutputPage::showFileNotFoundError(), SpecialWatchlist::showHideCheck(), EditPage::showTextbox(), OutputPage::showUnexpectedValueError(), DumpTestCase::skipPastNodeEnd(), BaseDump::skipTo(), DumpTestCase::skipToNodeEnd(), SpecialVersion::softwareInformation(), DummyLinker::specialLink(), Linker::specialLink(), PPNode_DOM::splitArg(), UploadBase::splitXmlNamespace(), TextPassDumper::startElement(), ExtensionProcessor::storeToArray(), UploadBase::stripXmlNamespace(), WebInstallerName::submit(), MediaWiki\Session\CookieSessionProvider::suggestLoginUsername(), RevisionDeleteUser::suppressUserName(), DatabaseSqlite::tableName(), DatabaseOracle::tableName(), DatabasePostgres::tableName(), DatabaseMssql::tableName(), Database::tableName(), DatabaseOracle::tableNameInternal(), Database::tableNames(), Database::tableNamesN(), Database::tableNameWithAlias(), CoreParserFunctions::tagObj(), ApiModuleManagerTest::testAddModule(), ApiModuleManagerTest::testAddModules(), ResourceLoaderTest::testAddSource(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), ApiMainTest::testClassNamesInModuleManager(), ApiQueryTest::testClassNamesInModuleManager(), XhprofDataTest::testCompleteMetricsStructure(), SpecialPageFactoryTest::testConflictResolution(), XmlSelectTest::testConstructParameters(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWikiServicesTest::testDefaultServiceInstantiation(), ServiceContainerTest::testDefineService(), ServiceContainerTest::testDefineService_fail_duplicate(), ResourceLoaderFileModuleTest::testDeprecatedModules(), ServiceContainerTest::testDisableService_fail_undefined(), ApiDocumentationTest::testDocumentationExists(), ApiEditPageTest::testEdit(), ApiEditPageTest::testEdit_redirect(), ApiEditPageTest::testEdit_redirectText(), ApiEditPageTest::testEditAppend(), ApiEditPageTest::testEditConflict(), ApiEditPageTest::testEditConflict_bug41990(), ApiEditPageTest::testEditConflict_newSection(), ApiEditPageTest::testEditNewSection(), ApiEditPageTest::testEditSection(), ExtensionRegistryTest::testExportExtractedDataGlobals(), TextContentHandlerTest::testFieldsForIndex(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), GlobalVarConfigTest::testGet(), UserTest::testGetCanonicalName(), ResourceLoaderTest::testGetLoadScript(), ContentHandlerTest::testGetLocalizedName(), SpecialPageFactoryTest::testGetLocalNameFor(), ApiModuleManagerTest::testGetModule(), MediaWikiTitleCodecTest::testGetNamespaceName(), ServiceContainerTest::testGetService(), MediaWikiServicesTest::testGetService(), ServiceContainerTest::testGetService_fail_unknown(), ServiceContainerTest::testGetServiceNames(), SpecialPageTest::testGetTitleFor(), SpecialPageTest::testGetTitleForWithWarning(), ServiceContainerTest::testHasService(), XhprofDataTest::testInclusiveMetricsStructure(), FileContentHandlerTest::testIndexMapping(), CentralIdLookupTest::testLocalUserFromCentralId(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), ExifRotationTest::testMetadata(), ExifRotationTest::testMetadataAutoRotate(), ExifRotationTest::testMetadataAutoRotateUnsupported(), ExifRotationTest::testMetadataNoAutoRotate(), ServiceContainerTest::testPeekService_fail_unknown(), PrefixUniquenessTest::testPrefixes(), TemplateParserTest::testProcessTemplate(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testProviderNormalizeUsername(), MediaWiki\Session\CookieSessionProviderTest::testProvideSessionInfo(), ServiceContainerTest::testRedefineService(), ServiceContainerTest::testRedefineService_disabled(), ServiceContainerTest::testRedefineService_fail_in_use(), ServiceContainerTest::testRedefineService_fail_undefined(), SpecialPageFactoryTest::testResolveAlias(), ExifRotationTest::testRotationRendering(), ExifRotationTest::testRotationRenderingNoAutoRotate(), MWExceptionTest::testRunHooks(), FileBackendTest::testSanitizeOpHeaders(), SearchEngineTest::testSearchIndexFields(), ApiEditPageTest::testSupportsDirectApiEditing_withContentHandlerOverride(), UploadTestHandler::testTitleValidation(), MailAddressTest::testToString(), ApiEditPageTest::testUndoAfterContentModelChange(), DatabaseSqliteTest::testUpgrades(), GlobalWithDBTest::testWfIsBadImage(), Xml::textarea(), Html::textarea(), DummyLinker::titleAttrib(), Linker::titleAttrib(), DummyLinker::tooltip(), Linker::tooltip(), DummyLinker::tooltipAndAccesskeyAttribs(), Linker::tooltipAndAccesskeyAttribs(), MailAddress::toString(), TransactionProfiler::transactionWritingIn(), TransactionProfiler::transactionWritingOut(), Preferences::tryFormSubmit(), MediaWiki::tryNormaliseRedirect(), ParserOutput::unsetProperty(), ApiResult::unsetValue(), RevisionDeleteUser::unsuppressUserName(), RecentChangesUpdateJob::updateActiveUsers(), SectionProfiler: