MediaWiki  1.27.4
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':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
 
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
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
 
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
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
 
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
 
div flags Integer display
flags(NO_ACTION_LINK,
NO_EXTRA_USER_LINKS)
'LogException'returning false
will NOT prevent logging 
$e
 
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'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
 
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 
$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
 
magic word the default is to
use $key to get the and $key
value or $key value text $key
value html to format the value 
$key
 
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
 
the value to return A Title
object or null for latest to
be modified or replaced by the
hook handler or if
authentication is not possible
after cache objects are set
for highlighting & 
$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
externallinks 
$linksUpdate
 
if it s text intended for
display in a monospaced font 
$localize
 
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 existing
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
 
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 
$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
 
this hook is for auditing only
etc 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
 
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 existing
services the preferred way to
define a new service is the
$wgServiceWiringFiles array 
$services
 
the value to return A Title
object or null for latest to
be modified or replaced by the
hook handler or if
authentication is not possible
after cache objects are set
for highlighting or change the
value of $siteNotice and
return false to alter it
$siteNotice
 
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
 
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'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
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
 
this hook is for auditing only
etc 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
 
magic word the default is to
use $key to get the and $key
value or $key value text $key
value html to format the value
$report is an HTML table with
two 
columns
 
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
 
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 existing
services 
However
 
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 
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
 
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
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
 
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
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
 
magic word the default is to
use $key to get the 
label
 
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
 
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
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
 
this hook is for auditing only etc LoginFormValidErrorMessages
 
this hook is for auditing only
etc 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
 
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
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
 
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'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 existing
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
 
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
 
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 
pagelinks
 
if it s text intended for
display in a monospaced font
$report should be output in
English 
ParserLimitReportPrepare
 
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
 
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
 
this hook is for auditing only
etc 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
 
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 
SecondaryDataUpdates
 
the value to return A Title
object or null for latest to
be modified or replaced by the
hook handler 
SecuritySensitiveOperationStatus
 
the value to return A Title
object or null for latest to
be modified or replaced by the
hook handler or if
authentication is not possible 
SelfLinkBegin
 
it s the revision text itself
In either if gzip is 
set
 
the value to return A Title
object or null for latest to
be modified or replaced by the
hook handler or if
authentication is not possible
after cache objects are set 
ShortPagesQuery
 
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
 
this hook is for auditing only WRONG_PASS
 

Typedef Documentation

namespace being checked & $result

Definition at line 1800 of file hooks.txt.

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

Definition at line 2544 of file hooks.txt.

Function Documentation

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

Referenced by 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(), 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(), LanguageConverter::autoConvert(), LocalRepo::checkRedirect(), ProcessCacheLRU::clear(), MapCacheLRU::clear(), ResourceLoaderFileModule::collateFilePathListByOption(), UpdateLogging::copyExactMatch(), User::createNew(), MemcachedClient::disconnect_all(), RecompressTracked::dispatchToSlave(), 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(), LBFactory::forEachLBCallMethod(), MemcachedClient::forget_dead_hosts(), FeedUtils::formatDiff(), ApiAuthManagerHelper::formatRequests(), JSParser::FunctionDefinition(), MemcachedClient::get(), JSTokenizer::get(), MemcachedClient::get_multi(), MemcachedClient::get_sock(), LegacyLogFormatter::getActionMessage(), Interwiki::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(), ApiParamInfo::getModuleInfo(), WANObjectCache::getMulti(), 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(), ExternalStore::insertToDefault(), Title::isNamespaceProtected(), MediaWikiTestCase::isUsingExternalStoreDB(), LogPager::limitType(), Linker::link(), SpecialVersion::listAuthors(), ChangeTags::listExplicitlyDefinedTags(), ChangeTags::listExtensionActivatedTags(), ChangeTags::listExtensionDefinedTags(), Interwiki::load(), MessageCache::load(), ApiAuthManagerHelper::loadAuthenticationRequests(), MediaWiki\Auth\AuthenticationRequest::loadFromSubmission(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::makeFailResponse(), LogEntryBase::makeParamBlob(), OutputPage::makeResourceLoaderLink(), ApiMain::markParamsSensitive(), ApiMain::markParamsUsed(), EditPage::matchSpamRegex(), EditPage::matchSummarySpamRegex(), JavaScriptMinifier::minify(), UserArray::newFromIDs(), UserArray::newFromNames(), SiteStats::numberingroup(), Html::openElement(), ApiBase::parseMsg(), JSMinPlus::parseTree(), ApiResult::path(), SpecialUpload::processVerificationError(), CssContentTest::provideGetRedirectTarget(), TextPassDumper::readDump(), QueryPage::reallyDoQuery(), LocalisationCache::recache(), ApiFormatXml::recXmlPrint(), ResourceLoader::register(), ApiResult::removeValue(), ApiQueryPrefixSearch::run(), ApiQueryWatchlistRaw::run(), ApiQueryCategories::run(), ApiQueryBacklinks::run(), MemcachedClient::run_command(), TableCleanup::runTable(), ApiQueryBase::select(), DatabaseBase::selectRow(), DatabaseBase::selectSQLText(), DatabaseTestHelper::setExistingTables(), ApiResult::setPreserveKeysList(), ApiResult::setSubelementsList(), Sanitizer::setupAttributeWhitelist(), LogEventsList::showLogExtract(), LogEventsList::showOptions(), JSParser::Statement(), ApiResult::stripMetadata(), ApiResult::stripMetadataNonRecursive(), UpdateLogging::sync(), DatabaseTestHelper::tableExists(), ChangeTags::tagUsageStatistics(), TitleTest::testIsValidMoveOperation(), ExportTest::testPageByTitle(), LocalisationCacheTest::testRecacheFallbacksWithHooks(), SpecialSearchTest::testRewriteQueryWithSuggestion(), MediaWiki\Session\SessionBackendTest::testSave(), ImportTest::testSiteInfoContainsNamespaces(), TitleTest::testWgWhitelistReadRegexp(), LocalFile::unprefixRow(), ApiResult::unsetPreserveKeysList(), ApiResult::unsetSubelementsList(), ChangeTags::updateTags(), 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 $article, $wgUser, 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  )
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 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)
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 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(), LBFactory::commitMasterChanges(), 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(), EditPage::displayPreviewArea(), CoreParserFunctions::displaytitle(), EditPage::displayViewSourcePage(), Block::doAutoblock(), FileDeleteForm::doDelete(), Article::doDelete(), Skin::doEditSectionLink(), MockDjVuHandler::doTransform(), TransformationalImageHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), WebInstaller::downloadLinkHook(), EditPage::edit(), Linker::emailLink(), WebInstallerPage::endForm(), WebInstallerInstall::endStage(), Installer::envCheckDB(), WebInstallerComplete::execute(), WebInstallerDBConnect::execute(), WebInstallerExistingWiki::execute(), WebInstallerName::execute(), WebInstallerOptions::execute(), WebInstallerRestart::execute(), WebInstallerWelcome::execute(), WebInstallerInstall::execute(), WebInstallerUpgrade::execute(), SpecialUnlinkAccounts::execute(), ApiEditPage::execute(), SpecialLinkAccounts::execute(), ApiQueryAllMessages::execute(), DumpMessages::execute(), ApiFeedContributions::execute(), CleanupSpam::execute(), ApiImageRotate::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(), Linker::formatTemplates(), Language::formatTimePeriod(), LogEventsList::getActionSelector(), SpecialChangeCredentials::getAuthForm(), ContentHandler::getAutoDeleteReason(), ContentHandler::getAutosummary(), User::getBlockedStatus(), EditPage::getCancelLink(), Skin::getCategoryLinks(), WebInstallerOptions::getCCDoneBox(), CategoryMembershipChange::getChangeMessageText(), WebInstaller::getCheckBox(), EditPage::getCheckboxes(), OracleInstaller::getConnectForm(), PostgresInstaller::getConnectForm(), MysqlInstaller::getConnectForm(), MssqlInstaller::getConnectForm(), EditPage::getContentObject(), SpecialVersion::getCopyrightAndAuthorList(), EditPage::getCopyrightWarning(), Title::getDefaultMessageText(), LogPage::getDescription(), Interwiki::getDescription(), FeedUtils::getDiffLink(), ImageHandler::getDimensionsString(), EditPage::getEditButtons(), 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(), MediaHandler::getGeneralLongDesc(), MWGrants::getGrantsWikiText(), User::getGroupMember(), User::getGroupName(), User::getGroupPage(), WebInstaller::getHelpBox(), Language::getHumanTimestampInternal(), WebInstaller::getInfoBox(), SpecialUpload::getInitialPageText(), Licenses::getInputHTML(), DatabaseInstaller::getInstallUserBox(), LogFormatter::getIRCActionComment(), LogFormatter::getIRCActionText(), SkinTemplate::getLanguages(), EditPage::getLastDelete(), ContentHandler::getLocalizedName(), PNGHandler::getLongDesc(), GIFHandler::getLongDesc(), ImageHandler::getLongDesc(), SvgHandler::getLongDesc(), SpecialVersion::getMediaWikiCredits(), Status::getMessage(), GenerateJqueryMsgData::getMessagesAndTests(), CliInstaller::getMessageText(), LogPage::getName(), Interwiki::getName(), WebInstaller::getPageListItem(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::getPasswordResetData(), EditPage::getPreviewLimitReport(), EditPage::getPreviewText(), WebInstaller::getRadioElements(), LogPage::getRcComment(), LogPage::getRcCommentIRC(), DatabaseInstaller::getReadableName(), Block::getRedactedName(), Article::getRedirectHeaderHtml(), MWTimestamp::getRelativeTimestamp(), User::getRightDescription(), DatabaseSqlite::getServerInfo(), MysqlInstaller::getSettingsForm(), MssqlInstaller::getSettingsForm(), ImageHandler::getShortDesc(), SpecialBlock::getSuggestedDurations(), EditPage::getSummaryPreview(), 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(), Linker::linkAttribs(), SpecialUpload::loadRequest(), BotPassword::login(), Parser::magicLinkCallback(), Skin::makeI18nUrl(), IndexPager::makeLink(), ApiBase::makeMessage(), BaseTemplate::makeSearchInput(), Linker::makeThumbLink2(), AuthManagerSpecialPage::mapSingleFieldInfo(), Parser::maybeMakeExternalImage(), MergeHistory::merge(), Xml::monthSelector(), MovePage::move(), MovePage::moveToInternal(), MWException::msg(), DBConnectionError::msg(), Language::msg(), SearchEngineConfig::namespacesAsText(), Html::namespaceSelectorOptions(), PPFrame_Hash::newChild(), PPFrame_DOM::newChild(), Title::newMainPage(), EditPage::newSectionSummary(), EditPage::noSuchSectionPage(), WikiImporter::notice(), Language::numLink(), JsonContent::objectTable(), WebInstallerOutput::outputFooter(), WebInstallerOutput::outputTitle(), FormatJson::parse(), ConverterRule::parse(), Parser::parse(), Language::pipeList(), FileDeleteForm::prepareMessage(), WikiPage::protectDescription(), LogFormatterTest::provideApiParamFormatting(), ApiErrorFormatterTest::provideErrorFormatter(), MediaWiki\Auth\AuthenticationRequestTest::provideLoadFromSubmission(), TextPassDumper::readDump(), AllMessagesTablePager::reallyDoQuery(), LanguageConverter::recursiveConvertRule(), SearchEngine::replacePrefixes(), 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(), EditPage::setHeaders(), WikiImporter::setTargetRootPage(), EditPage::showConflict(), EditPage::showDiff(), Article::showDiffPage(), WebInstallerUpgrade::showDoneMessage(), EditPage::showEditForm(), EditPage::showEditTools(), WebInstaller::showError(), FileDeleteForm::showForm(), EditPage::showHeader(), EditPage::showHeaderCopyrightWarning(), EditPage::showIntro(), WebInstallerExistingWiki::showKeyForm(), WebInstaller::showMessage(), Article::showMissingArticle(), Article::showNamespaceHeader(), Article::showPatrolFooter(), EditPage::showStandardInputs(), EditPage::showSummaryInput(), EditPage::showTosSummary(), SpecialUpload::showUploadWarning(), SpecialVersion::softwareInformation(), EditPage::spamPageWithContent(), 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::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(), MessageTest::testRawParams(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAuthentication(), MessageTest::testToStringKey(), ExtraParserTest::testTrackingCategory(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testUserForCreation(), MessageTest::testWfMessage(), MessageTest::testWfMessageParams(), Linker::titleAttrib(), Linker::tocList(), File::transformErrorOutput(), BitmapHandler::transformGd(), MediaWikiI18N::translate(), Language::truncate(), Language::truncateHtml(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), PageArchive::undelete(), 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 246 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(), create_function(), ApiParse::execute(), RebuildFileCache::execute(), follows(), ParserCache::get(), ParserCache::getDirty(), ParserCache::getETag(), ParserCache::getKey(), ParserCache::getOptionsKey(), ParserCache::getParserOutputKey(), ListredirectsPage::getRedirectTarget(), if(), MediaWiki::initializeArticle(), Article::newFromWikiPage(), MediaWiki::performRequest(), DoubleRedirectJob::run(), CategoryFinder::run(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), TitleTest::testExists(), and PageArchive::undeleteRevisions().

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

Definition at line 1802 of file hooks.txt.

Referenced by PPNode_Hash_Tree::__toString(), OutputPage::addElement(), HTMLForm::addHiddenField(), 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(), Xml::input(), Html::input(), Xml::inputLabel(), Xml::inputLabelSep(), Xml::label(), Html::label(), Linker::link(), Linker::linkAttribs(), Xml::listDropDown(), TestRecentChangesHelper::makeCategorizationRecentChange(), TestRecentChangesHelper::makeDeletedEditRecentChange(), TestRecentChangesHelper::makeEditRecentChange(), DummyLinker::makeExternalLink(), Linker::makeExternalLink(), DummyLinker::makeHeadline(), TestRecentChangesHelper::makeLogRecentChange(), Linker::makeMediaLinkFile(), TestRecentChangesHelper::makeNewBotEditRecentChange(), TestRecentChangesHelper::makeRecentChange(), Revision::newFromArchiveRow(), Xml::openElement(), Html::openElement(), Xml::option(), Licenses::outputOption(), Xml::password(), CoreTagHooks::pre(), 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(), 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 1310 of file hooks.txt.

Referenced by ChangesList::getArticleLink().

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 766 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(), Language::classFromCode(), MessageCache::clear(), TemplateParser::compile(), TemplateParser::compileForEval(), UploadBase::convertVerifyErrorToStatus(), ApiMessage::create(), Language::dateTimeObjFormat(), ApiBase::dieStatus(), RebuildLocalisationCache::doRebuild(), ImagePage::doRenderLangOpt(), ZipDirectoryReader::error(), PageExists::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(), 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(), LanguageConverter::parseCachedTable(), 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(), 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 1477 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 1008 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(), WikiPage::doCreate(), WikiPage::doDeleteArticleReal(), Article::doDeleteUpdates(), WikiPage::doDeleteUpdates(), WikiPage::doEdit(), WikiPage::doEditContent(), DifferenceEngineTest::doEdits(), WikiPage::doEditUpdates(), WikiPage::doModify(), WikiPage::doPurge(), FileBackendTest::doTestGetFileContents(), FileBackendTest::doTestGetFileHttpUrl(), FileBackendTest::doTestGetFileStat(), FileBackendTest::doTestGetLocalCopy(), FileBackendTest::doTestGetLocalReference(), FileBackendTest::doTestStreamFile(), CompareParserCache::execute(), ApiEditPage::execute(), ApiPurge::execute(), MakeTestEdits::execute(), GetTextMaint::execute(), ImportSiteScripts::execute(), ApiStashEdit::execute(), EditCLI::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(), 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(), 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(), ApiStashEdit::parseAndStash(), 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(), ParserTest::runTest(), ParserOutput::setIndicator(), EditPage::setPreloadedContent(), ParserOptions::setupFakeRevision(), BaseDumpTest::setUpPrefetch(), TextPassDumperDatabaseTest::setUpStub(), EditPage::showEditForm(), SpecialBookSources::showList(), SpecialUndelete::showRevision(), ApiStashEdit::stashEditFromPreview(), Parser::statelessFetchTemplate(), LogFormatter::styleRestricedElement(), JobRunner::syncBackoffDeltas(), JavaScriptContentTest::testAddSectionHeader(), TextContentTest::testCopy(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), TextContentTest::testDeletionUpdates(), WikiPageTest::testDoEditContent(), WikiPageTest::testDoQuickEditContent(), 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(), WikitextContentHandlerTest::testMakeEmptyContent(), CssContentHandlerTest::testMakeRedirectContent(), JavaScriptContentHandlerTest::testMakeRedirectContent(), WikitextContentHandlerTest::testMakeRedirectContent(), JavaScriptContentTest::testMatchMagicWord(), NewParserTest::testParserTest(), 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 1422 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 1936 of file hooks.txt.

Referenced by RedisConnRef::__call(), CoreVersionChecker::__construct(), ORAResult::__construct(), SVGReader::__construct(), ExtensionRegistry::__construct(), MimeMagic::__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(), SqlBagOStuff::cas(), ApiMain::checkConditionalRequestHeaders(), Sqlite::checkSqlSyntax(), CategoryViewer::clearCategoryState(), SwiftFileBackend::convertSwiftDate(), Installer::createMainpage(), DatabaseBase::deadlockLoop(), RedisBagOStuff::delete(), SqlBagOStuff::delete(), DatabaseMssql::delete(), Article::delete(), SqlBagOStuff::deleteAll(), DatabaseMssql::deleteJoin(), SqlBagOStuff::deleteObjectsExpiringBefore(), ApiUpload::dieRecoverableError(), Installer::dirIsExecutable(), profile_point::display(), EditPage::displayViewSourcePage(), JobQueueRedis::doAck(), JobQueueDB::doAck(), BitmapMetadataHandler::doApp13(), DatabaseBase::doAtomicSection(), JobQueueFederated::doBatchPush(), JobQueueRedis::doBatchPush(), JobQueueDB::doBatchPushInternal(), JobQueueFederated::doDeduplicateRootJob(), JobQueueRedis::doDeduplicateRootJob(), FileDeleteForm::doDelete(), 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(), DatabaseInstaller::doUpgrade(), WikiPage::doViewUpdates(), JobQueueFederated::doWaitForBackups(), TextPassDumper::dump(), WikiExporter::dumpFrom(), ApiMain::errorMessageFromException(), ApiQueryStashImageInfo::execute(), ApiImport::execute(), ApiUpload::execute(), JSParseHelper::execute(), GenerateCommonPassword::execute(), ApiFeedWatchlist::execute(), PPFuzzTester::execute(), DeferredUpdates::execute(), ZipDirectoryReader::execute(), ApiMain::executeActionWithErrorHandling(), JobRunner::executeJob(), Message::extractParam(), 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(), RedisLockManager::freeLocksOnServer(), LCStoreCDB::get(), JobQueueRedis::getAllAbandonedJobs(), JobQueueRedis::getAllAcquiredJobs(), JobQueueRedis::getAllDelayedJobs(), Interwiki::getAllPrefixesCached(), JobQueueRedis::getAllQueuedJobs(), ApiUpload::getChunkResult(), LocalisationCache::getCompiledPluralRules(), RedisConnectionPool::getConnection(), RedisBagOStuff::getConnection(), JobQueueFederated::getCrossPartitionSum(), UploadForm::getDescriptionSection(), Status::getErrorMessageArray(), BmpHandler::getImageSize(), Interwiki::getInterwikiCacheEntry(), JobQueueRedis::getJobFromUidInternal(), JobQueueDB::getJobIterator(), LoadBalancer::getLaggedSlaveMode(), RequestContext::getLanguage(), RedisLockManager::getLocksOnServer(), MWExceptionHandler::getLogContext(), MWExceptionHandler::getLogMessage(), JobQueueDB::getMasterDB(), DatabaseMysqlBase::getMasterServerInfo(), MimeMagic::getMediaType(), GIFHandler::getMetadata(), PNGHandler::getMetadata(), TiffHandler::getMetadata(), JpegHandler::getMetadata(), SvgHandler::getMetadata(), DjVuHandler::getMetaTree(), RedisBagOStuff::getMulti(), SqlBagOStuff::getMulti(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::getPassword(), MediaWikiTitleCodec::getPrefixedDBkey(), MediaWiki\Logger\Monolog\KafkaHandler::getRandomPartition(), MWExceptionHandler::getRedactedTrace(), MWExceptionHandler::getRedactedTraceAsString(), JobQueueRedis::getServerQueuesWithJobs(), JobQueueDB::getSlaveDB(), NewFilesPager::getStartBody(), ApiUpload::getStashResult(), MWExceptionHandler::getStructuredExceptionData(), TextPassDumper::getText(), LocalFile::getThumbnails(), SpecialRandomInCategory::getTimestampOffset(), ApiUpload::getWarningsResult(), ApiMain::handleApiBeforeMainException(), MWExceptionHandler::handleError(), MWExceptionHandler::handleException(), RedisBagOStuff::handleException(), ApiUpload::handleStashException(), SqlBagOStuff::handleWriteError(), Installer::includeExtensions(), RedisBagOStuff::incr(), SqlBagOStuff::incr(), DatabaseMssql::insert(), DatabaseOracle::insertOneRow(), DatabaseMssql::insertSelect(), DBLockManager::isServerUp(), SiteStats::jobs(), MWExceptionHandler::jsonSerializeException(), DatabaseOracle::lastErrno(), DatabaseSqlite::lastError(), DatabaseOracle::lastError(), ProfilerOutputDb::log(), MWExceptionHandler::logException(), FileOp::logFailure(), ApiMain::logRequest(), FormatMetadata::makeFormattedData(), ResourceLoader::makeModuleResponse(), LocalFile::maybeUpgradeRow(), MediaWiki\Session\SessionProvider::mergeMetadata(), JSMinPlus::min(), MWException::msg(), FSFileBackendList::next(), MediaWiki\Logger\Monolog\LineFormatter::normalizeException(), MWTimestamp::offsetForUser(), SpecialChangeContentModel::onSubmit(), MysqlInstaller::openConnection(), OracleInstaller::openConnection(), SqliteInstaller::openConnection(), MssqlInstaller::openConnection(), PostgresInstaller::openConnectionWithParams(), DatabaseSqlite::openFile(), OracleInstaller::openSYSDBAConnection(), 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(), JobQueueDB::recycleAndDeleteStaleJobs(), PoolCounterRedis::release(), PoolCounterRedis::releaseAll(), MySqlLockManager::releaseAllLocks(), PostgreSqlLockManager::releaseAllLocks(), Parser::renderImageGallery(), MWExceptionHandler::report(), DBConnectionError::reportHTML(), ResourceLoader::respond(), FSFileBackendList::rewind(), LoadBalancer::rollbackMasterChanges(), MWExceptionHandler::rollbackMasterChangesAndLog(), TextPassDumper::rotateDb(), AssembleUploadChunksJob::run(), PublishStashedFileJob::run(), ApiQueryWatchlist::run(), JobRunner::run(), ApiQueryRecentChanges::run(), MediaWiki::run(), DatabaseBase::runOnTransactionIdleCallbacks(), DatabaseBase::runOnTransactionPreCommitCallbacks(), ParserTest::runTestsFromFiles(), ResourceLoaderModule::saveFileDependencies(), DatabaseMssql::selectDB(), DatabaseOracle::selectDB(), SamplingStatsdClient::send(), MediaWiki\Logger\Monolog\KafkaHandler::send(), UserMailer::sendInternal(), RedisBagOStuff::set(), LCStoreCDB::set(), RedisBagOStuff::setMulti(), SqlBagOStuff::setMulti(), MWTimestamp::setTimestamp(), MWTimestamp::setTimezone(), JobQueueTest::setUp(), SqliteInstaller::setupDatabase(), PostgresInstaller::setupPLpgSQL(), PostgresInstaller::setupSchema(), MysqlInstaller::setupUser(), PostgresInstaller::setupUser(), SpecialUploadStash::showUpload(), SpecialUploadStash::showUploads(), DatabaseBase::sourceFile(), MwSql::sqlDoQuery(), WebInstaller::startSession(), LCStoreCDB::startWrite(), MediaWikiTestCase::stashMwGlobals(), MssqlInstaller::submitSettingsForm(), MysqlInstaller::submitSettingsForm(), ApiMain::substituteResultWithError(), ApiOptionsTest::testAnon(), ApiMainTest::testAssert(), ReadOnlyErrorTest::testConstruction(), UserNotLoggedInTest::testConstruction(), ErrorPageErrorTest::testConstruction(), ApiEditPageTest::testEditSection(), BadTitleErrorTest::testExceptionSetsStatusCode(), ThrottledErrorTest::testExceptionSetsStatusCode(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), ResourceLoaderTest::testGetLoadScript(), MWExceptionHandlerTest::testGetRedactedTrace(), 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(), DatabaseMssql::update(), DatabaseOracle::update(), PopulateRevisionSha1::upgradeLegacyArchiveRow(), PopulateRevisionSha1::upgradeRow(), DatabaseBase::upsert(), HTMLTitleTextField::validate(), XmlTypeCheck::validateFromInput(), ResourceLoaderModule::validateScriptFile(), SqlBagOStuff::waitForSlaves(), 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 1103 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 1310 of file hooks.txt.

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

Definition at line 2552 of file hooks.txt.

Referenced by GanConverter::__construct(), ZhConverter::__construct(), KkConverter::__construct(), AutoloadGenerator::__construct(), GenericArrayObject::__construct(), LanguageConverter::__construct(), ApiPageSet::__construct(), LanguageShi::__construct(), LanguageIu::__construct(), LanguageSr::__construct(), DatabaseBase::__construct(), MemcachedClient::_load_items(), MemcachedClient::_set(), ApiResult::addContentField(), ApiResult::addContentValue(), User::addToDatabase(), ApiResult::addValue(), ApiErrorFormatter::addWarningOrError(), 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(), JobQueueDB::doBatchPush(), JobQueueFederated::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(), MockBitmapHandler::doTransform(), MockSvgHandler::doTransform(), TransformationalImageHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), SquidPurgeClient::doWrites(), StorageTypeStats::execute(), DumpRev::execute(), FixBug20757::execute(), Title::exists(), PPFrame_Hash::expand(), PPFrame_DOM::expand(), Parser::extensionSubstitution(), Parser::extractSections(), Revision::fetchFromConds(), FileRepo::findFile(), RepoGroup::findFiles(), LocalRepo::findFiles(), FileRepo::findFiles(), BlockLogFormatter::formatBlockFlags(), OldChangesList::formatChangeLine(), File::generateAndSaveThumb(), File::generateBucketsIfNeeded(), BagOStuff::get(), ApiPurge::getAllowedParams(), ApiWatch::getAllowedParams(), ApiImageRotate::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(), DerivativeRequest::getHeader(), WebRequest::getHeader(), ApiQueryGeneratorBase::getHelpFlags(), ApiBase::getHelpFlags(), ApiHelp::getHelpInternal(), HTMLButtonField::getInputHTML(), LogFormatter::getIRCActionText(), Title::getLatestRevID(), Title::getLength(), ReplicatedBagOStuff::getMulti(), Title::getNextRevisionID(), User::getOptions(), ParserTest::getParser(), 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(), 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(), LBFactorySimple::newMainLB(), 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(), 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(), CachedBagOStuff::set(), ReplicatedBagOStuff::set(), MultiWriteBagOStuff::set(), SqlBagOStuff::set(), ApiResult::setContentField(), ApiResult::setContentValue(), ApiResult::setElement(), ParserDiffTest::setFunctionHook(), Parser::setFunctionHook(), Parser::setFunctionTagHook(), ApiResult::setValue(), LBFactorySimple::shutdown(), LBFactoryMulti::shutdown(), FileRepo::store(), FileRepo::storeBatch(), StoreBatchTest::storeit(), MediaWikiParserTest::suite(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), WikitextContentHandlerTest::testGetAutosummary(), XhprofTest::testRawData(), 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(), Linker::userToolLinks(), and Skin::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 $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 766 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(), ApiStashEdit::execute(), ApiImageRotate::execute(), TextPassDumper::exportTransform(), ApiQueryRevisionsBase::extractRevisionInfo(), Article::generateReason(), ContentHandler::getAllContentFormats(), WikiPage::getAutosummary(), ResourceLoaderWikiModule::getContent(), WikiRevision::getContent(), Revision::getContentFormat(), Revision::getContentInternal(), EditPage::getCurrentContent(), ContentHandler::getForModelID(), MediaWiki\Logger\MonologSpi::getHandler(), Parser::getImageParams(), SpecialChangeContentModel::getOptionsForTitle(), EditPage::getOriginalContent(), EditPage::getPreloadedContent(), FSFile::getProps(), WikiPage::getUndoContent(), ContentHandler::makeContent(), Parser::makeImage(), EditPage::mergeChangesIntoContent(), LogFormatter::newFromEntry(), ImagePage::openShowImage(), SpecialUploadStash::parseKey(), PopulateContentModel::populateRevisionOrArchive(), WikiImporter::processRevision(), ResourceLoaderImage::rasterize(), Parser::renderImageGallery(), ContentHandler::runLegacyHooks(), NewParserTest::setUp(), EditPage::showConflict(), MovePageForm::showForm(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testBatchHandlesNullFormatterResult(), MediaWiki\Session\PHPSessionHandlerTest::testDisabled(), MediaWiki\Session\PHPSessionHandlerTest::testEnableFlags(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testGetAvailablePartitionsException(), ContentHandlerTest::testGetForTitle(), MediaWiki\Session\SessionManagerTest::testGetGlobalSession(), WebPHandlerTest::testGetImageSize(), ContentHandlerTest::testGetModelForID(), ContentHandlerTest::testGetPageLanguage(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testHandlesNullFormatterResult(), BitmapScalingTest::testImageArea(), 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 1802 of file hooks.txt.

Referenced by ImageGalleryBase::add(), CachedAction::addCachedHTML(), WebInstallerPage::addHTML(), WebInstallerOutput::addHTML(), WebInstallerOutput::addHTMLNoFlush(), MediaWikiTestCase::assertValidHtmlDocument(), MediaWikiTestCase::assertValidHtmlSnippet(), SpecialEditTags::buildCheckBoxes(), SpecialRevisionDelete::buildCheckBoxes(), ChangeTags::buildTagFilterSelector(), 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(), DBConnectionError::getHTML(), QuickTemplate::getHTML(), HTMLForm::getHTML(), OutputPage::getHtmlFromLoaderLinks(), SpecialPageExecutor::getHTMLFromSpecialPage(), HTMLFormField::getInline(), HTMLMultiSelectField::getInputHTML(), HTMLRadioField::getInputHTML(), HTMLCheckMatrix::getInputHTML(), HTMLFormFieldCloner::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), HTMLFormField::getLabelHtml(), LoginSignupSpecialPage::getPageHtml(), MessageContent::getParserOutput(), SkinTemplate::getPersonalToolsList(), HTMLFormField::getRaw(), Article::getRedirectHeaderHtml(), HTMLCheckMatrix::getTableRow(), HTMLFormField::getTableRow(), Html::htmlHeader(), ImageGalleryBase::insert(), Xml::isWellFormedXmlFragment(), DummyLinker::link(), Linker::link(), Skin::link(), DummyLinker::linkKnown(), Linker::linkKnown(), Skin::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(), OldChangesList::recentChangesLine(), LogFormatterTestCase::removeSomeHtml(), Parser::renderImageGallery(), Linker::revDeleteLink(), Linker::revDeleteLinkDisabled(), 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(), 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(), ParserTest::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 766 of file hooks.txt.

Referenced by NewParserTest::addDBDataOnce(), ApiQueryImageInfo::checkParameterNormalise(), MockBitmapHandler::doClientImage(), MockImageHandler::doFakeTransform(), MockBitmapHandler::doTransform(), MockDjVuHandler::doTransform(), MockSvgHandler::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(), GIFHandler::getImageArea(), ImageHandler::getImageArea(), ResourceLoaderImageModule::getImages(), ExifBitmapHandler::getImageSize(), DjVuHandler::getImageSize(), PNGHandler::getLongDesc(), GIFHandler::getLongDesc(), DjVuHandler::getMetadata(), DjVuHandler::getMetaTree(), ResourceLoaderImageModule::getModifiedTime(), 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(), ParserTest::setupDatabase(), 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 2342 of file hooks.txt.

Referenced by User::pingLimiter().

magic word the default is to use $key to get the and $key value or $key value text $key value html to format the value $key

Definition at line 2325 of file hooks.txt.

Referenced by HTMLAutoCompleteSelectField::__construct(), PoolCounterWork::__construct(), WebRequestUpload::__construct(), DumpNamespaceFilter::__construct(), FauxRequest::__construct(), PoolCounterWorkViaCallback::__construct(), RedisBagOStuff::__construct(), MultiHttpClient::__construct(), ResourceLoaderTestModule::__construct(), LinksUpdate::__construct(), LBFactoryMulti::__construct(), ResourceLoaderFileModule::__construct(), UploadStashFile::__construct(), RedisConnectionPool::__destruct(), StatusValue::__toString(), MemcachedClient::_hashfunc(), MemcachedClient::_incrdecr(), MemcachedClient::_set(), MemcLockManager::acquireMutexes(), LogPage::actionText(), MemcachedBagOStuff::add(), ReplicatedBagOStuff::add(), MultiWriteBagOStuff::add(), MemcachedPeclBagOStuff::add(), PathRouter::add(), RedisBagOStuff::add(), MemcachedClient::add(), BagOStuff::add(), CachedAction::addCachedHTML(), SpecialCachedPage::addCachedHTML(), MediaWiki\Session\SessionBackend::addData(), ParserOptions::addExtraKey(), ParserOutput::addJsConfigVars(), OutputPage::addJsConfigVars(), LinkCache::addLinkObj(), ResourceLoader::addSource(), SiteStatsUpdate::adjustPending(), WebRequest::appendQueryValue(), ApiResult::applyTransformations(), ArrayUtils::arrayDiffAssocRecursive(), SiteConfiguration::arrayMerge(), XhprofTest::assertArrayStructure(), RCCacheEntryFactoryTest::assertQueryLink(), DatabaseSqliteTest::assertResultIs(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginLinkAttempt(), SkinTemplate::buildContentActionUrls(), SkinTemplate::buildContentNavigationUrls(), LocalisationCache::buildPreload(), ProtectionForm::buildSelector(), WatchedItemStore::cache(), PPTemplateFrame_Hash::cachedExpand(), PPTemplateFrame_DOM::cachedExpand(), Preprocessor::cacheGetTree(), FileCacheBase::cachePath(), Preprocessor::cacheSetTree(), HTMLFormFieldCloner::cancelSubmit(), MemcachedBagOStuff::cas(), MemcachedPeclBagOStuff::cas(), SqlBagOStuff::cas(), MemcachedClient::cas(), User::changeableByGroup(), ApiStashEdit::checkCache(), FeedUtils::checkPurge(), MemcachedPeclBagOStuff::checkResult(), ApiUpload::checkVerification(), UploadBase::checkWarnings(), LocalRepo::cleanupDeletedBatch(), ProcessCacheLRU::clear(), MapCacheLRU::clear(), LoadMonitorMySQL::clearCaches(), User::clearSharedCache(), RedisConnectionPool::closeExcessIdleConections(), ResourceLoaderFileModule::collateFilePathListByOption(), ArrayUtils::consistentHashSort(), UploadFromChunks::continueChunks(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), GanConverter::convertCategoryKey(), ZhConverter::convertCategoryKey(), FakeConverter::convertCategoryKey(), KkConverter::convertCategoryKey(), LanguageConverter::convertCategoryKey(), Language::convertCategoryKey(), LanguageConverter::convertNamespace(), XCacheBagOStuff::decr(), MemcachedPhpBagOStuff::decr(), APCUBagOStuff::decr(), ReplicatedBagOStuff::decr(), APCBagOStuff::decr(), MultiWriteBagOStuff::decr(), MemcachedPeclBagOStuff::decr(), MemcachedClient::decr(), BagOStuff::decr(), WinCacheBagOStuff::delete(), XCacheBagOStuff::delete(), APCUBagOStuff::delete(), CachedBagOStuff::delete(), MemcachedBagOStuff::delete(), ReplicatedBagOStuff::delete(), HashBagOStuff::delete(), APCBagOStuff::delete(), RedisBagOStuff::delete(), MultiWriteBagOStuff::delete(), MemcachedPeclBagOStuff::delete(), MemcachedClient::delete(), SqlBagOStuff::delete(), WANObjectCache::delete(), LocalRepo::deletedFileHasKey(), WikiDiff3::diff(), FormatMetadata::discardMultipleValues(), HTMLForm::displaySection(), PathRouter::doAdd(), CheckLanguageCLI::doChecks(), JobQueueRedis::doDeduplicateRootJob(), JobQueue::doDeduplicateRootJob(), JobQueueDB::doDeduplicateRootJob(), WikiPage::doDeleteArticleReal(), Parser::doDoubleUnderscore(), WinCacheBagOStuff::doGet(), XCacheBagOStuff::doGet(), APCUBagOStuff::doGet(), CachedBagOStuff::doGet(), MemcachedBagOStuff::doGet(), HashBagOStuff::doGet(), ReplicatedBagOStuff::doGet(), APCBagOStuff::doGet(), RedisBagOStuff::doGet(), MultiWriteBagOStuff::doGet(), SqlBagOStuff::doGet(), JobQueueDB::doGetAbandonedCount(), JobQueueDB::doGetAcquiredCount(), JobQueueAggregatorRedis::doGetAllReadyWikiQueues(), DBFileJournal::doGetChangeEntries(), MySqlLockManager::doGetLocksOnServer(), PostgreSqlLockManager::doGetLocksOnServer(), JobQueueDB::doGetSize(), WANObjectCache::doGetWithSetCallback(), SpecialRecentChanges::doHeader(), SpecialWatchlist::doHeader(), JobQueue::doIsRootJobOldDuplicate(), JobQueueMemory::doPop(), SiteConfiguration::doReplace(), WikiPage::doUpdateRestrictions(), LinkHolderArray::doVariants(), LoadBalancer::doWait(), Installer::envCheckCache(), WebInstallerExistingWiki::execute(), ApiRevisionDelete::execute(), ApiOptions::execute(), AllTrans::execute(), SpecialPreferences::execute(), DumpMessages::execute(), ApiParamInfo::execute(), ListVariants::execute(), DeleteArchivedFiles::execute(), UploadStashCleanup::execute(), ApiStashEdit::execute(), ApiQueryImageInfo::execute(), ApiFeedWatchlist::execute(), ConvertExtensionToRegistration::execute(), ChangesFeed::execute(), DeleteEqualMessages::execute(), PHPUnitMaintClass::execute(), ApiOpenSearchFormatJson::execute(), LoggedUpdateMaintenance::execute(), LocalFileDeleteBatch::execute(), MediaWiki\Session\Session::exists(), Html::expandAttributes(), HashBagOStuff::expire(), ExtensionRegistry::exportExtractedData(), ExtensionProcessor::extractConfig(), ExtensionProcessor::extractInfo(), LogFormatter::extractParameters(), PathRouter::extractTitle(), WebRequest::extractTitle(), UploadStash::fetchFileMetadata(), MessageBlobStore::fetchMessage(), DeleteEqualMessages::fetchMessageInfo(), ArrayBackedMemoizedCallable::fetchResult(), MemoizedCallable::fetchResult(), MessageCache::figureMessage(), ForeignAPIRepo::fileExistsBatch(), FileRepo::fileExistsBatch(), ResourceLoader::filter(), PreferencesForm::filterDataForSubmit(), SpecialNewpages::filterLinks(), ChangesList::flag(), PHPUnitMaintClass::forceFormatServerArgv(), SpecialNewpages::form(), ArrayDiffFormatter::format(), ParserDiffTest::formatArray(), SpecialUndelete::formatFileRow(), ApiParamInfo::formatHelpMessages(), CheckLanguageCLI::formatKey(), ApiAuthManagerHelper::formatMessage(), LogFormatter::formatParametersForApi(), BlockListPager::formatValue(), GetConfiguration::formatVarDump(), RedisLockManager::freeLocksOnServer(), AutoloadGenerator::generateJsonAutoload(), MessageBlobStore::generateMessageBlob(), MediaWiki\Session\SessionManager::generateSessionId(), LCStoreDB::get(), LCStoreCDB::get(), MapCacheLRU::get(), ProcessCacheLRU::get(), LCStoreStaticArray::get(), BagOStuff::get(), WANObjectCache::get(), MediaWiki\Session\Session::get(), MemcachedClient::get(), MessageCache::get(), MemcachedClient::get_multi(), MemcachedClient::get_sock(), DeleteLogFormatter::getActionLinks(), ApiImport::getAllowedImportSources(), DatabaseMysqlBase::getApproximateLagStatus(), PPTemplateFrame_Hash::getArguments(), PPTemplateFrame_DOM::getArguments(), HTMLFormField::getAttributes(), MediaWiki\Auth\AuthManager::getAuthenticationSessionData(), MessageBlobStore::getBlobs(), Skin::getCachedNotice(), CachedAction::getCachedValue(), SpecialCachedPage::getCachedValue(), CacheHelper::getCachedValue(), Interwiki::getCacheValue(), Languages::getCaseMismatchMagicWords(), PhpHttpRequest::getCertOptions(), WANObjectCache::getCheckKeyTime(), Xhprof::getCompleteMetrics(), RedisBagOStuff::getConnection(), DerivativeRequest::getCookie(), FauxRequest::getCookie(), MediaWiki\Session\CookieSessionProvider::getCookie(), WebRequest::getCookie(), Preferences::getDateOptions(), FileRepo::getDeletedHashPath(), PurgeChangedFiles::getDeletedPath(), LogPage::getDescription(), File::getDescriptionText(), DifferenceEngine::getDiffBody(), Languages::getDuplicateMessages(), WikiFilePage::getDuplicates(), Languages::getEmptyMessages(), MediaWiki\Session\SessionManager::getEmptySessionInternal(), FormatMetadata::getExtendedMetadataFromHook(), ParserOutput::getExtensionData(), ExtensionProcessor::getExtractedInfo(), BlockListPager::getFieldNames(), ProtectedPagesPager::getFieldNames(), UploadStash::getFile(), SpecialUndelete::getFileLink(), WebRequest::getFileName(), UploadStash::getFileProps(), WebRequest::getFileTempname(), IcuCollation::getFirstLetterData(), LocalRepo::getHashFromKey(), WebResponse::getHeader(), FauxResponse::getHeader(), Language::getHebrewCalendarMonthName(), Language::getHebrewCalendarMonthNameGen(), Language::getHijriCalendarMonthName(), Xhprof::getInclusiveMetrics(), HTMLAutoCompleteSelectField::getInputHTML(), HTMLFormFieldCloner::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), Language::getIranianCalendarMonthName(), LocalisationCacheBulkLoad::getItem(), LocalisationCache::getItem(), DiffHistoryBlob::getItem(), OutputPage::getKeyHeader(), LoadMonitorMySQL::getLagTimes(), PreferencesForm::getLegend(), ResourceLoaderEditToolbarModule::getLessVars(), TablePager::getLimitSelectList(), MachineReadableRCFeedFormatter::getLine(), RevDelArchivedFileItem::getLink(), ContentHandler::getLocalizedName(), RedisLockManager::getLocksOnServer(), DatabaseMysqlBase::getMasterServerInfo(), RCCacheEntryFactory::getMessage(), Language::getMessage(), Language::getMessageFor(), ImportLogFormatter::getMessageKey(), PatrolLogFormatter::getMessageKey(), DeleteLogFormatter::getMessageKey(), TagLogFormatter::getMessageKey(), MoveLogFormatter::getMessageKey(), ProtectLogFormatter::getMessageKey(), RightsLogFormatter::getMessageKey(), GenerateJqueryMsgData::getMessagesAndTests(), Languages::getMessagesWithDubiousLinks(), Languages::getMessagesWithMismatchVariables(), Languages::getMessagesWithoutPlural(), Languages::getMessagesWithUnbalanced(), Languages::getMessagesWithWhitespace(), Languages::getMessagesWithWrongChars(), UploadStash::getMetadata(), StatusTest::getMockMessage(), StatusTest::getMockMessages(), Language::getMonthAbbreviation(), Language::getMonthName(), Language::getMonthNameGen(), MemcachedPhpBagOStuff::getMulti(), RedisBagOStuff::getMulti(), MemcachedPeclBagOStuff::getMulti(), WANObjectCache::getMulti(), SqlBagOStuff::getMulti(), BagOStuff::getMulti(), LogPage::getName(), PPTemplateFrame_Hash::getNamedArguments(), PPTemplateFrame_DOM::getNamedArguments(), Language::getNamespaces(), HTMLFormField::getNearestFieldByName(), Languages::getNonXHTMLMessages(), PPTemplateFrame_Hash::getNumberedArguments(), PPTemplateFrame_DOM::getNumberedArguments(), Languages::getObsoleteMagicWords(), Languages::getObsoleteSpecialPages(), ApiOptionsTest::getOptionKinds(), User::getOptionKinds(), ParserTest::getOptionValue(), NewParserTest::getOptionValue(), SpecialStatistics::getOtherStats(), Languages::getOverridingMagicWords(), ApiBase::getParameterFromSettings(), UploadLogFormatter::getParametersForApi(), PatrolLogFormatter::getParametersForApi(), MergeLogFormatter::getParametersForApi(), MoveLogFormatter::getParametersForApi(), RightsLogFormatter::getParametersForApi(), ProtectLogFormatter::getParametersForApi(), BlockLogFormatter::getParametersForApi(), DeleteLogFormatter::getParametersForApi(), ParserCache::getParserOutputKey(), BaseTemplate::getPersonalTools(), SkinTemplate::getPersonalToolsList(), MediaWikiTitleCodec::getPrefixedDBkey(), EditPage::getPreviewLimitReport(), IcuCollation::getPrimarySortKey(), Languages::getProblematicProjectTalks(), MediaWiki\Logger\Monolog\KafkaHandler::getRandomPartition(), MessageCache::getReentrantScopedLock(), ExtensionProcessor::getRequirements(), DifferenceEngine::getRevisionHeader(), FixBug20757::getRevTextMap(), User::getRightDescription(), BagOStuff::getScopedLock(), MediaWiki\Session\Session::getSecret(), SiteImporterTest::getSerializedSiteList(), MediaWiki\Session\SessionManager::getSessionById(), DerivativeRequest::getSessionData(), WebRequest::getSessionData(), UploadBase::getSessionStatus(), SiteConfiguration::getSetting(), BaseTemplate::getSidebar(), IcuCollation::getSortKey(), LinkHolderArray::getSubArray(), LocalisationCacheBulkLoad::getSubitem(), LocalisationCache::getSubitem(), LocalisationCache::getSubitemList(), StripState::getSubState(), SqlBagOStuff::getTableByKey(), TemplateParser::getTemplate(), DBQueryError::getTextContent(), ForeignAPIRepo::getThumbUrlFromCache(), MWTimestamp::getTimezoneMessage(), ResourceLoaderWikiModule::getTitleInfo(), MediaWiki\Session\Session::getToken(), BaseTemplate::getToolbox(), User::getTouched(), Languages::getUntranslatedMagicWords(), Languages::getUntraslatedSpecialPages(), WebRequest::getUpload(), WebRequest::getUploadError(), DependencyWrapper::getValueFromCache(), Language::getWeekdayAbbreviation(), Language::getWeekdayName(), BagOStuff::getWithSetCallback(), WANObjectCache::getWithSetCallback(), MemcachedBagOStuff::getWithToken(), MemcachedPeclBagOStuff::getWithToken(), SqlBagOStuff::getWithToken(), Category::getX(), RedisConnectionPool::handleError(), ConvertExtensionToRegistration::handleExtensionMessagesFiles(), ConvertExtensionToRegistration::handleMessagesDirs(), AuthManagerSpecialPage::handleReauthBeforeExecute(), AuthManagerSpecialPage::handleReturnBeforeExecute(), ProcessCacheLRU::has(), MapCacheLRU::has(), MediaWiki\Session\SessionProvider::hashToSessionId(), HashBagOStuff::hasKey(), FauxResponse::header(), LocalRepo::hiddenFileHasKey(), SearchHighlighter::highlightText(), MWCryptHash::hmac(), XCacheBagOStuff::incr(), MemcachedPhpBagOStuff::incr(), APCUBagOStuff::incr(), ReplicatedBagOStuff::incr(), APCBagOStuff::incr(), MultiWriteBagOStuff::incr(), MemcachedPeclBagOStuff::incr(), RedisBagOStuff::incr(), SqlBagOStuff::incr(), BagOStuff::incr(), MemcachedClient::incr(), FileCacheBase::incrMissesRecent(), BagOStuff::incrWithInit(), UploadStash::initFile(), RepoGroup::initialiseRepos(), UploadFromStash::initialize(), MediaWiki\Auth\AuthManagerTest::initializeConfig(), LocalisationCache::initLanguage(), DatabaseMssql::insert(), DatabaseUpdater::insertUpdateRow(), MediaWiki\Logger\LegacyLogger::interpolate(), WebRequest::interpolateTitle(), InfoAction::invalidateCache(), Interwiki::invalidateCache(), LocalFile::invalidateCache(), LocalRepo::invalidateImageRedirect(), MemoizedCallable::invokeArgs(), LocalisationCache::isMergeableKey(), ApiResult::isMetadataKey(), Title::isSemiProtected(), UploadFromStash::isValidKey(), LinkFilter::keepOneWildcard(), Linker::linkAttribs(), SpecialSearch::load(), HTMLFormFieldCloner::loadDataFromRequest(), ChangesFeed::loadFromCache(), LocalFile::loadFromCache(), User::loadFromCache(), MessageCache::loadFromDB(), ResourceLoaderOOUIImageModule::loadFromDefinition(), ExtensionRegistry::loadFromQueue(), Languages::loadGeneralMessages(), LocalisationCache::loadItem(), Languages::loadMessages(), User::loadOptions(), SpecialUndelete::loadRequest(), MediaWiki\Session\SessionManager::loadSessionInfoFromStore(), LocalisationCache::loadSubitem(), Revision::loadText(), CachedBagOStuff::lock(), ReplicatedBagOStuff::lock(), MultiWriteBagOStuff::lock(), BagOStuff::lock(), ProfilerOutputStats::log(), PoolCounterWork::logError(), HTMLFormField::lookupOptionsKeys(), LinkHolderArray::makeHolder(), Licenses::makeHtml(), BagOStuff::makeKeyInternal(), ChangesListSpecialPage::makeLegend(), BaseTemplate::makeLink(), BaseTemplate::makeListItem(), OutputPage::makeResourceLoaderLink(), DatabaseBase::makeSelectOptions(), DatabaseMssql::makeSelectOptions(), DatabaseOracle::makeSelectOptions(), SiteImporter::makeSiteList(), Xhprof::makeSortFunction(), PathRouter::makeWeight(), UserPasswordPolicy::maxOfPolicies(), WinCacheBagOStuff::merge(), MemcachedBagOStuff::merge(), ReplicatedBagOStuff::merge(), StripState::merge(), BagOStuff::merge(), SqlBagOStuff::merge(), StripState::mergeCallback(), MediaWiki\Logger\MonologSpi::mergeConfig(), LocalisationCache::mergeExtensionItem(), LinkHolderArray::mergeForeign(), LocalisationCache::mergeItem(), ApiQueryContinueTestBase::mergeResult(), BagOStuff::mergeViaCas(), BagOStuff::mergeViaLock(), MediaWiki\Auth\AuthManagerTest::message(), MWException::msg(), DBConnectionError::msg(), LogFormatter::msg(), SearchEngineConfig::namespacesAsText(), Title::newFromDBkey(), ObjectFileCache::newFromKey(), Job::newRootJobParams(), Skin::normalizeKey(), MessageCache::normalizeKey(), BufferingStatsdDataFactory::normalizeMetricKey(), WebRequest::normalizeUnicode(), JsonContent::objectRow(), JsonContent::objectTable(), RestbaseVirtualRESTService::onParsoidRequests(), RestbaseVirtualRESTService::onRequests(), VirtualRESTService::onRequests(), ParsoidVirtualRESTService::onRequests(), SwiftVirtualRESTService::onRequests(), SwiftVirtualRESTService::onResponses(), SpecialRecentChanges::optionsPanel(), CheckLanguageCLI::outputText(), Parser::parse(), ApiStashEdit::parseAndStash(), LanguageConverter::parseCachedTable(), SpecialUploadStash::parseKey(), MagicWordArray::parseMatch(), ApiBase::parseMsg(), ParserTest::parseOptions(), NewParserTest::parseOptions(), NamespaceAwareForeignTitleFactory::parseTitleNoNs(), MediaWiki\Session\CookieSessionProvider::persistSession(), MapCacheLRU::ping(), ProcessCacheLRU::ping(), User::pingLimiter(), InterwikiTest::populateCDB(), ApiPageSet::populateGeneratorData(), PopulateContentModel::populateRevisionOrArchive(), SpecialSearch::powerSearchBox(), WANObjectCache::prefixCacheKeys(), ApiQueryImageInfo::processMetaData(), BackupDumper::processOptions(), BufferingStatsdDataFactory::produceStatsdData(), NullStatsdDataFactory::produceStatsdData(), MediaWikiTestCaseTest::provideExistingKeysAndNewValues(), ResourcesTest::provideResourceFiles(), ApiResultTest::provideTransformations(), Xhprof::pruneData(), SearchExactMatchRescorer::pullFront(), User::purge(), ForeignAPIFile::purgeDescriptionPage(), ForeignAPIFile::purgeThumbnails(), JobQueueGroup::queuesHaveJobs(), LocalisationCache::readJSONFile(), AllMessagesTablePager::reallyDoQuery(), LocalisationCache::recache(), EnhancedChangesList::recentChangesBlockGroup(), SearchExactMatchRescorer::redirectTargetsToRedirect(), SpecialUndelete::redirectToRevDel(), WANObjectCache::relayDelete(), WANObjectCache::relayPurge(), MemcLockManager::releaseMutexes(), MediaWiki\Session\Session::remove(), ConvertExtensionToRegistration::removeAbsolutePath(), LogFormatterTestCase::removeApiMetaData(), MediaWiki\Auth\AuthManager::removeAuthenticationSessionData(), UploadStash::removeFile(), UploadStash::removeFileNoAuth(), DateFormatter::replace(), MemcachedClient::replace(), LinkHolderArray::replaceInternal(), LinkHolderArray::replaceInterwiki(), LinkHolderArray::replaceTextCallback(), SearchExactMatchRescorer::rescore(), SearchSuggestionSet::rescore(), WANObjectCache::resetCheckKey(), User::resetOptions(), MediaWiki\Session\Session::resetToken(), ApiQueryAllDeletedRevisions::run(), SquidPurgeClientPool::run(), ApiQueryBacklinksprop::run(), ApiQueryBacklinks::run(), RefreshLinksJob::runForTitle(), FormatMetadata::sanitizeArrayForAPI(), FormatMetadata::sanitizeKeyForAPI(), ApiQueryTestBase::sanitizeResultArray(), ResourceLoaderModule::saveFileDependencies(), User::saveOptions(), ChangesFeed::saveToCache(), LocalFile::saveToCache(), User::saveToCache(), ProfilerXhprof::scopedProfileIn(), EraseArchivedFile::scrubVersion(), WinCacheBagOStuff::set(), XCacheBagOStuff::set(), APCUBagOStuff::set(), ProcessCacheLRU::set(), LCStoreStaticArray::set(), CachedBagOStuff::set(), MemcachedBagOStuff::set(), MapCacheLRU::set(), ReplicatedBagOStuff::set(), HashBagOStuff::set(), APCBagOStuff::set(), LCStoreDB::set(), RedisBagOStuff::set(), LCStoreCDB::set(), MultiWriteBagOStuff::set(), MemcachedPeclBagOStuff::set(), MediaWiki\Session\Session::set(), SqlBagOStuff::set(), WANObjectCache::set(), MemcachedClient::set(), DatabaseUpdater::setAppliedUpdates(), MediaWiki\Auth\AuthManager::setAuthenticationSessionData(), RevDelFileItem::setBits(), WebResponse::setCookie(), FauxRequest::setCookie(), FauxRequest::setCookies(), ParserOutput::setExtensionData(), SpecialSearch::setExtraParam(), FileBackendStore::setFileCache(), ApiParse::setIndexedTagNames(), ParserOutput::setLimitReportData(), RedisBagOStuff::setMulti(), MemcachedPeclBagOStuff::setMulti(), SqlBagOStuff::setMulti(), BagOStuff::setMulti(), MediaWikiTestCase::setMwGlobals(), MediaWiki\Session\Session::setSecret(), DerivativeRequest::setSessionData(), WebRequest::setSessionData(), UploadBase::setSessionStatus(), SpecialWatchlist::setTopText(), SpecialNewpages::setup(), ResourceLoaderTestCase::setUp(), ChangesListSpecialPage::setup(), MediaWikiTestCaseTest::setUpBeforeClass(), ParserOptions::setupFakeRevision(), WebRequest::setVal(), DifferenceEngine::showDiffPage(), EditPage::showEditForm(), SpecialUndelete::showFile(), SpecialUndelete::showFileConfirmationForm(), SpecialImport::showForm(), Article::showMissingArticle(), Article::showPatrolFooter(), SpecialUploadStash::showUpload(), PathRouter::sortByWeight(), DummyLinker::specialLink(), Linker::specialLink(), Xhprof::splitKey(), Licenses::stackItem(), ApiStashEdit::stashEditFromPreview(), UploadStash::stashFile(), ArrayBackedMemoizedCallable::storeResult(), MemoizedCallable::storeResult(), DependencyWrapper::storeToCache(), MediaWikiTestCase::tearDown(), MediaWikiTestCaseTest::tearDownAfterClass(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), BagOStuffTest::testAdd(), MediaWiki\Auth\AuthManagerTest::testAllowsPropertyChange(), LogFormatterTest::testApiParamFormatting(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), WANObjectCacheTest::testCheckKeyInitHoldoff(), MediaWiki\Session\BotPasswordSessionProviderTest::testCheckSessionInfo(), XhprofTest::testCompleteMetricsStructure(), MessageTest::testConstructor(), MediaWiki\Session\SessionManagerTest::testConstructor(), MessageTest::testConstructorLanguage(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), XhprofTest::testCriticalPath(), MediaWiki\Session\SessionTest::testDataAccess(), WANObjectCacheTest::testDelete(), StatusTest::testErrorWithMessage(), HashBagOStuffTest::testEvictionGet(), HashBagOStuffTest::testEvictionSet(), ExtensionRegistryTest::testExportExtractedDataGlobals(), ExtensionProcessorTest::testExtractExtensionMessagesFiles(), ExtensionProcessorTest::testExtractMessagesDirs(), ExtensionProcessorTest::testExtractResourceLoaderModules(), StatusTest::testFatalWithMessage(), ReplicatedBagOStuffTest::testGet(), BagOStuffTest::testGet(), ReplicatedBagOStuffTest::testGetAbsent(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequestsRequired(), StatusTest::testGetErrorMessage(), StatusTest::testGetErrorMessageArray(), HttpErrorTest::testGetHtml(), WANObjectCacheTest::testGetNotExists(), ApiWatchTest::testGetRollbackToken(), BagOStuffTest::testGetScopedLock(), WANObjectCacheTest::testGetWithSetCallback(), BagOStuffTest::testGetWithSetCallback(), WANObjectCacheTest::testGetWithSeveralCheckKeys(), MWCryptHashTest::testHmac(), XhprofTest::testInclusiveMetricsStructure(), BagOStuffTest::testIncr(), BagOStuffTest::testIncrWithInit(), MWExceptionTest::testJsonserializeexceptionKeys(), MessageTest::testKeys(), MediaWiki\Session\SessionManagerTest::testLoadSessionInfoFromStore(), WANObjectCacheTest::testLockTSE(), WANObjectCacheTest::testLockTSESlow(), SkinTemplateTest::testMakeListItem(), BagOStuffTest::testMerge(), MessageCacheTest::testNormalizeKey(), MediaWiki\Auth\AuthManagerTest::testNormalizeUsername(), MediaWiki\Auth\AuthManagerTest::testProviderCreation(), XhprofTest::testRawData(), ReplicatedBagOStuffTest::testSet(), WANObjectCacheTest::testSetAndGet(), MultiWriteBagOStuffTest::testSetDelayed(), MultiWriteBagOStuffTest::testSetImmediate(), WANObjectCacheTest::testSetOver(), WANObjectCacheTest::testSetWithLag(), XhprofTest::testSplitKey(), WANObjectCacheTest::testStaleSet(), MultiWriteBagOStuffTest::testSyncMerge(), MessageTest::testToString(), WANObjectCacheTest::testTouchKeys(), MemcachedBagOStuffTest::testValidateKeyEncoding(), MemcachedBagOStuffTest::testValidateKeyEncodingThrowsException(), OutputPageTest::testVaryHeaders(), StatusTest::testWarningWithMessage(), ApiWatchTest::testWatchRollback(), WANObjectCacheTest::testWritePending(), Job::toString(), User::touch(), WANObjectCache::touchCheckKey(), BagOStuff::trackDuplicateKeys(), WikiPage::triggerOpportunisticLinksUpdate(), ResourceLoaderFileModule::tryForKey(), Preferences::tryFormSubmit(), JobQueueFederated::tryJobInsertions(), SpecialRevisionDelete::tryShowFile(), WatchedItemStore::uncacheLinkTarget(), CachedBagOStuff::unlock(), ReplicatedBagOStuff::unlock(), MultiWriteBagOStuff::unlock(), BagOStuff::unlock(), ZipDirectoryReader::unpack(), MediaWiki\Session\CookieSessionProvider::unpersistSession(), WebRequest::unsetVal(), LoggedUpdateMaintenance::updatelogFailedMessage(), MessageBlobStore::updateMessage(), PopulateContentModel::updateRevisionOrArchiveRows(), DatabaseUpdater::updateRowExists(), LoggedUpdateMaintenance::updateSkippedMessage(), UpdateCollation::updateSortKeySizeHistogram(), HTMLFormFieldCloner::validate(), MemcachedBagOStuff::validateKeyEncoding(), ResourceLoaderModule::validateScriptFile(), wfGenerateThumbnail(), and MediaWiki\Session\PHPSessionHandler::write().

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 1008 of file hooks.txt.

Referenced by ApiResult::addParsedLimit(), Maintenance::adjustMemoryLimit(), ApiQuerySiteinfo::appendGeneralInfo(), Parser::braceSubstitution(), IndexPager::buildQueryInfo(), ImageListPager::combineResult(), LBFactory::commitMasterChanges(), 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(), ApiOpenSearch::execute(), ApiQueryInfo::extractPageInfo(), IndexPager::extractResultInfo(), HistoryAction::feed(), SpecialNewpages::feed(), HistoryAction::fetchRevisions(), WikiDiff3::find_middle_snake(), LocalRepo::findFilesByPrefix(), WikiDiff3::findMostProgress(), 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(), ActiveUsersPager::getPageHeader(), SpecialWhatLinksHere::getPrevNext(), Title::getSubpages(), PrefixSearch::handleResultFromHook(), ImagePage::imageLinks(), DifferenceEngine::intermediateEditsMsg(), DatabaseMssql::limitResult(), DatabaseBase::limitResult(), Preprocessor_DOM::memCheck(), Maintenance::memoryLimit(), Language::numLink(), SwiftFileBackend::objectListing(), SpecialRecentChanges::outputChangesList(), PurgeChangedPages::pageableSortedRows(), SwiftFileBackendDirList::pageFromList(), SwiftFileBackendFileList::pageFromList(), User::pingLimiter(), SpecialPage::prefixSearchArray(), SpecialPage::prefixSearchString(), SpecialListFiles::prefixSearchSubpages(), SpecialPageLanguage::prefixSearchSubpages(), SpecialChangeContentModel::prefixSearchSubpages(), SpecialUnblock::prefixSearchSubpages(), SpecialRecentChangesLinked::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(), ApiQueryPagesWithProp::run(), ApiQuerySearch::run(), ApiQueryCategoryMembers::run(), ApiQueryAllPages::run(), ApiQueryAllImages::run(), ApiQueryAllLinks::run(), ApiQueryRandom::runQuery(), UserNamePrefixSearch::search(), PrefixSearch::search(), ApiOpenSearch::search(), PrefixSearch::searchBackend(), PrefixSearchTest::searchProvision(), SearchEnginePrefixTest::searchProvision(), PrefixSearch::searchWithVariants(), IndexPager::setLimit(), ApiResult::setParsedLimit(), 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 2585 of file hooks.txt.

Referenced by LinksUpdate::__construct(), ImageGalleryBase::add(), OutputPage::addHelpLink(), OutputPage::addReturnTo(), Skin::addToSidebarPlain(), RCCacheEntryFactoryTest::assertQueryLink(), SkinTemplate::buildContentNavigationUrls(), OutputPage::buildCssLinks(), 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(), ApiParse::formatCss(), 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(), OutputPage::getHtmlFromLoaderLinks(), 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(), OutputPage::makeResourceLoaderLink(), ChangesList::maybeWatchedLink(), ImportStreamSource::newFromInterwiki(), ComposerPackageModifier::newMediaWikiLink(), Language::numLink(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), SpecialSpecialpages::outputPageList(), LanguageConverter::parseCachedTable(), SkinTemplate::prepareQuickTemplate(), SpecialBlock::preText(), Preferences::profilePreferences(), MediaWikiPageLinkRenderer::renderHtmlLink(), Parser::renderImageGallery(), 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::showSubpages(), SpecialUpload::showViewDeletedLinks(), OutputPage::styleLink(), Skin::subPageSubtitle(), ApiMain::substituteResultWithError(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), TraditionalImageGallery::toHTML(), SpecialUndelete::undelete(), and CreditsAction::userLink().

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 externallinks including delete and has completed for all link tables & $linksUpdate

Definition at line 1802 of file hooks.txt.

Referenced by LinksUpdate::__construct(), and LinksUpdate::doUpdate().

if it s text intended for display in a monospaced font $localize

Definition at line 2331 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 existing 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 2000 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 1008 of file hooks.txt.

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

Definition at line 314 of file hooks.txt.

Referenced by DBConnRef::__call(), ParserDiffTest::__call(), StubObject::__call(), RedisConnRef::__call(), LessTestSuite::__construct(), RefreshLinksPartitionTest::__construct(), LinksUpdateTest::__construct(), JobQueueTest::__construct(), WikiPageTest::__construct(), RCCacheEntryFactoryTest::__construct(), EnhancedChangesListTest::__construct(), RevisionStorageTest::__construct(), OldChangesListTest::__construct(), SpecialChangeCredentials::__construct(), UnusedCategoriesPage::__construct(), MostrevisionsPage::__construct(), LongPagesPage::__construct(), IncludableSpecialPage::__construct(), UnlistedSpecialPage::__construct(), UncategorizedCategoriesPage::__construct(), UnusedimagesPage::__construct(), AncientPagesPage::__construct(), BrokenRedirectsPage::__construct(), DeadendPagesPage::__construct(), DoubleRedirectsPage::__construct(), FewestrevisionsPage::__construct(), DeprecatedGlobal::__construct(), LonelyPagesPage::__construct(), SpecialRecentChanges::__construct(), WantedPagesPage::__construct(), XmlSelect::__construct(), ListredirectsPage::__construct(), MostlinkedTemplatesPage::__construct(), ShortPagesPage::__construct(), UncategorizedImagesPage::__construct(), UncategorizedTemplatesPage::__construct(), ListDuplicatedFilesPage::__construct(), MIMEsearchPage::__construct(), MostcategoriesPage::__construct(), MostimagesPage::__construct(), MostinterwikisPage::__construct(), MostlinkedCategoriesPage::__construct(), UncategorizedPagesPage::__construct(), UnusedtemplatesPage::__construct(), WithoutInterwikiPage::__construct(), MostlinkedPage::__construct(), UnwatchedpagesPage::__construct(), WantedCategoriesPage::__construct(), WantedFilesPage::__construct(), SpecialPagesWithProp::__construct(), RandomPage::__construct(), WantedTemplatesPage::__construct(), SpecialGoToInterwiki::__construct(), CommandLineInc::__construct(), MailAddress::__construct(), UserRightsProxy::__construct(), MediaStatisticsPage::__construct(), FileDuplicateSearchPage::__construct(), ApiContinuationManager::__construct(), MediaWiki\Auth\CreatedAccountAuthenticationRequest::__construct(), LinkSearchPage::__construct(), ResourceLoaderImage::__construct(), SpecialAllPages::__construct(), NamespaceAwareForeignTitleFactory::__construct(), PoolCounterWorkViaCallback::__construct(), SpecialRandomInCategory::__construct(), MemcLockManager::__construct(), FileOp::__construct(), LoginSignupSpecialPage::__construct(), MediaWikiTestCase::__construct(), RecompressTracked::__construct(), SpecialPage::__construct(), SpecialRedirectToSpecial::__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(), PPTemplateFrame_Hash::__toString(), PPCustomFrame_Hash::__toString(), StubObject::_call(), DummyLinker::accesskey(), Linker::accesskey(), EmailNotification::actuallyNotifyOnPageChange(), MagicWordArray::add(), FormOptions::add(), NewParserTest::addArticle(), ParserTest::addArticle(), ApiResult::addContentField(), ApiResult::addContentValue(), ApiContinuationManager::addContinueParam(), ApiContinuationManager::addGeneratorContinueParam(), OutputPage::addHeadItem(), HTMLForm::addHiddenField(), HTMLForm::addHiddenFields(), ParserOutput::addImage(), FakeAuthTemplate::addInputItem(), OutputPage::addMeta(), MediaHandler::addMeta(), ApiModuleManager::addModule(), ApiModuleManager::addModules(), PPDAccum_Hash::addNodeWithText(), Maintenance::addOption(), ApiQueryBase::addOption(), InfoAction::addRow(), DatabaseUpdater::addTable(), ApiResult::addValue(), ApiImageRotate::addValues(), 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(), Parser::braceSubstitution(), SpecialRevisionDelete::buildCheckBoxes(), OutputPage::buildCssLinks(), MysqlInstaller::buildFullUserName(), ImageCleanup::buildSafeTitle(), CentralIdLookup::centralIdFromName(), CheckStorage::check(), Xml::check(), Html::check(), NamespaceConflictChecker::checkAll(), ApiStashEdit::checkCache(), UserDupes::checkDupes(), DatabaseInstaller::checkExtension(), FindOrphanedFiles::checkFiles(), Xml::checkLabel(), OutputPage::checkLastModified(), NamespaceConflictChecker::checkLinkTable(), NamespaceConflictChecker::checkNamespace(), PreprocessDump::checkOptions(), Title::checkReadPermissions(), 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(), 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(), 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(), GenerateNormalizerDataAr::execute(), ConvertExtensionToRegistration::execute(), PopulateCategory::execute(), ApiQueryUsers::execute(), GetConfiguration::execute(), LocalFileDeleteBatch::execute(), SpecialPageFactory::executePath(), Action::exists(), SpecialPageFactory::exists(), Xml::expandAttributes(), XmlTypeCheck::expandNS(), ExtensionRegistry::exportExtractedData(), QuickTemplate::extend(), Parser::extensionSubstitution(), SpecialRevisionDelete::extractBitParams(), ExtensionProcessor::extractCredits(), ExtensionProcessor::extractHooks(), ExtensionProcessor::extractInfo(), ExtensionProcessor::extractMessagesDirs(), ExtensionProcessor::extractResourceLoaderModules(), ApiQueryRevisionsBase::extractRevisionInfo(), UserrightsPage::fetchUser(), FormOptions::fetchValuesFromRequest(), 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(), ParserTest::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(), 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(), Xhprof::getInclusiveMetrics(), HTMLSelectField::getInputHTML(), HTMLFormFieldCloner::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), WebRequest::getInt(), WebRequest::getIntArray(), WebRequest::getIntOrNull(), Linker::getInvalidTitleDescription(), WebInstallerLanguage::getLanguageSelector(), DatabaseBase::getLBInfo(), TablePager::getLimitSelect(), ContentHandler::getLocalizedName(), SpecialPageFactory::getLocalNameFor(), ParserTest::getMemoryBreakdown(), NewParserTest::getMemoryBreakdown(), PNGMetadataExtractor::getMetadata(), TestingAccessWrapper::getMethod(), ResourceLoader::getModule(), ApiParamInfo::getModuleInfo(), BaseTemplate::getMsg(), 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(), MediaWikiPageLinkRenderer::getPageUrl(), 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(), SpecialPageFactory::getRegularPages(), RepoGroup::getRepoByName(), SpecialPageFactory::getRestrictedPages(), HistoryPager::getRevisionButton(), 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(), 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(), 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(), DatabaseBase::isQuotedIdentifier(), Hooks::isRegistered(), Title::isSpecial(), User::isUsableName(), User::isValidUserName(), DatabaseMysqlBase::isView(), EditPage::isWrongCaseCssJsPage(), ImageCleanup::killRow(), Xml::languageSelector(), LogPager::limitPerformer(), LogPager::limitTitle(), 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(), ApiQuery::makeHelpMsgHelper(), Skin::makeI18nUrl(), Skin::makeInternalOrExternalUrl(), Skin::makeKnownUrlDetails(), ResourceLoader::makeModuleResponse(), Title::makeName(), Skin::makeNSUrl(), OutputPage::makeResourceLoaderLink(), SkinFactory::makeSkin(), Skin::makeSpecialUrl(), Skin::makeSpecialUrlSubpage(), SkinTemplate::makeTalkUrlDetails(), LinksUpdateTest::makeTitleAndParserOutput(), Skin::makeUrl(), Skin::makeUrlDetails(), 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(), User::newSystemUser(), SpecialSearchTest::newUserWithSearchNS(), DatabasePostgres::nextSequenceValue(), Linker::normaliseSpecialPage(), Sanitizer::normalizeEntity(), NamespaceAwareForeignTitleFactory::normalizeNamespaceName(), CoreParserFunctions::numberingroup(), FormOptions::offsetExists(), FormOptions::offsetGet(), FormOptions::offsetSet(), FormOptions::offsetUnset(), SpecialChangeCredentials::onAuthChangeFormFields(), InfoAction::onView(), SpecialVersion::openExtType(), UploadDumper::outputItem(), WikiExporter::pageByName(), ImageCleanup::pageExists(), WikiExporter::pagesByName(), CoreParserFunctions::pagesincategory(), CookieJar::parseCookieResponseHeader(), Xml::password(), Installer::performInstallation(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::postAuthentication(), SpecialSearch::powerSearch(), SpecialSearch::powerSearchBox(), Title::prefix(), ResourceLoader::preloadModuleInfo(), ApiQueryContributions::prepareUsername(), ApiQueryBlocks::prepareUsername(), ProtectedPagesPager::preprocessResults(), Preprocessor_Hash::preprocessToObj(), Preferences::profilePreferences(), MediaWiki\Auth\AuthManagerTest::provideAuthentication(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerNormalizeUsername(), NewParserTest::publishTestArticles(), Xml::radio(), Html::radio(), Xml::radioLabel(), ZipDirectoryReader::readCentralDirectory(), SVGReader::readField(), ApiMain::reallyMakeHelpMsg(), DatabaseMssql::realTableName(), TransactionProfiler::recordQueryCompletion(), ApiFormatXml::recXmlPrint(), ApiFormatXmlRsd::recXmlPrint(), MediaWiki\Services\ServiceContainer::redefineService(), Hooks::register(), ConfigFactory::register(), SkinFactory::register(), LockManagerGroup::register(), FileBackendGroup::register(), ResourceLoader::register(), BackupDumper::registerFilter(), BackupDumper::registerOutput(), HTMLFormFieldCloner::rekeyValuesArray(), ApiResult::removeValue(), BaseTemplate::renderAfterPortlet(), MediaWikiPageLinkRenderer::renderWikitextLink(), NewParserTest::requireFunctionHook(), ParserTest::requireFunctionHook(), NewParserTest::requireHook(), ParserTest::requireHook(), NewParserTest::requireTransparentHook(), ParserTest::requireTransparentHook(), FormOptions::reset(), SpecialPageFactory::resolveAlias(), ResourceLoader::respond(), ApiQueryAllLinks::run(), MWException::runHooks(), MultiHttpClient::runMulti(), User::saveToCache(), CategoryFinder::scanNextLayer(), EraseArchivedFile::scrubAllVersions(), EraseArchivedFile::scrubVersion(), SearchEngineConfig::searchableNamespaces(), ApiQueryBase::selectNamedDB(), ApiMain::sendCacheHeaders(), QuickTemplate::set(), HashConfig::set(), XmlSelect::setAttribute(), ApiResult::setContentField(), ApiResult::setContentValue(), CookieJar::setCookie(), WebResponse::setCookie(), FauxResponse::setCookie(), MWHttpRequest::setCookie(), User::setCookie(), FauxRequest::setCookies(), ApiResult::setElement(), User::setExtendedLoginCookie(), FauxRequest::setHeader(), MWHttpRequest::setHeader(), FauxRequest::setHeaders(), OutputPage::setHTMLTitle(), ApiParse::setIndexedTagNames(), DatabaseBase::setLBInfo(), HTMLForm::setName(), OutputPage::setPageTitle(), Installer::setPassword(), OutputPage::setProperty(), ParserOutput::setProperty(), QuickTemplate::setRef(), CurlHttpRequestTester::setRespHeaders(), PhpHttpRequestTester::setRespHeaders(), WebInstaller::setSession(), HTMLForm::setSubmitName(), HTMLForm::setSubmitTooltip(), WANObjectCacheTest::setUp(), BagOStuffTest::setUp(), StoreBatchTest::setUp(), PreprocessorTest::setUp(), JobQueueTest::setUp(), FileBackendTest::setUp(), NewParserTest::setupGlobals(), MysqlInstaller::setupUser(), MssqlInstaller::setupUser(), RevisionDeleteUser::setUsernameBitfields(), FormOptions::setValue(), ApiResult::setValue(), WebInstallerPage::setVar(), DatabaseInstaller::setVar(), Installer::setVar(), WebInstaller::setVarsFromRequest(), 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(), DatabaseMssql::tableName(), DatabaseBase::tableName(), DatabaseOracle::tableNameInternal(), CoreParserFunctions::tagObj(), ApiModuleManagerTest::testAddModule(), ApiModuleManagerTest::testAddModules(), ResourceLoaderTest::testAddSource(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), ApiMainTest::testClassNamesInModuleManager(), ApiQueryTest::testClassNamesInModuleManager(), XhprofTest::testCompleteMetricsStructure(), SpecialPageFactoryTest::testConflictResolution(), XmlSelectTest::testConstructParameters(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWikiServicesTest::testDefaultServiceInstantiation(), ServiceContainerTest::testDefineService(), ServiceContainerTest::testDefineService_fail_duplicate(), 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(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), NewParserTest::testFuzzTests(), 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(), XhprofTest::testInclusiveMetricsStructure(), CentralIdLookupTest::testLocalUserFromCentralId(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), ExifRotationTest::testMetadata(), ExifRotationTest::testMetadataAutoRotate(), ExifRotationTest::testMetadataAutoRotateUnsupported(), ExifRotationTest::testMetadataNoAutoRotate(), PrefixUniquenessTest::testPrefixes(), TemplateParserTest::testProcessTemplate(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testProviderNormalizeUsername(), MediaWiki\Session\CookieSessionProviderTest::testProvideSessionInfo(), ServiceContainerTest::testRedefineService(), ServiceContainerTest::testRedefineService_fail_in_use(), ServiceContainerTest::testRedefineService_fail_undefined(), ResourceLoaderTest::testRegisteredValidModulesAreAccessible(), SpecialPageFactoryTest::testResolveAlias(), ExifRotationTest::testRotationRendering(), ExifRotationTest::testRotationRenderingNoAutoRotate(), MWExceptionTest::testRunHooks(), FileBackendTest::testSanitizeOpHeaders(), ApiEditPageTest::testSupportsDirectApiEditing_withContentHandlerOverride(), UploadTestHandler::testTitleValidation(), MailAddressTest::testToString(), 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::updateEntry(), UserOptions::USAGER(), MediaWiki\Auth\AuthManagerAuthPlugin::userExists(), SpecialEmailUser::userForm(), SearchEngineConfig::userNamespaces(), XmlTypeCheck::validate(), FormOptions::validateBounds(), FormOptions::validateIntBounds(), FormOptions::validateName(), ImageHandler::validateParam(), JpegHandler::validateParam(), BitmapHandler::validateParam(), DjVuHandler::validateParam(), SvgHandler::validateParam(), wfOutputHandler(), SpecialWhatLinksHere::whatlinkshereForm(), and OutputPage::wrapWikiMsg().

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

Definition at line 1477 of file hooks.txt.

Referenced by Skin::getNewtalks().

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 & $options

Definition at line 1008 of file hooks.txt.

Referenced by SquidPurgeClientPool::__construct(), MappedIterator::__construct(), ResourceLoaderWikiModule::__construct(), RandomImageGenerator::__construct(), ResourceLoaderTestModule::__construct(), ParserTest::__construct(), Block::__construct(), ResourceLoaderImageModule::__construct(), RecompressTracked::__construct(), XmlTypeCheck::__construct(), ZipDirectoryReader::__construct(), MediaWiki\Session\SessionManager::__construct(), ResourceLoaderFileModule::__construct(), MWHttpRequest::__construct(), UploadForm::__construct(), PathRouter::add(), OutputPage::addReturnTo(), PathRouter::addStrict(), OutputPage::addStyle(), User::addToDatabase(), RedisConnectionPool::applyDefaultConfig(), DatabasePostgres::buildConcat(), OutputPage::buildCssLinksArray(), IndexPager::buildQueryInfo(), NamespaceConflictChecker::checkAll(), ApiStashEdit::checkCache(), NamespaceConflictChecker::checkLinkTable(), NamespaceConflictChecker::checkNamespace(), NamespaceConflictChecker::checkPrefix(), WebResponse::clearCookie(), LBFactory::commitMasterChanges(), Title::countAuthorsBetween(), WatchedItemStore::countWatchersMultiple(), SpecialWatchlist::cutoffselector(), Block::defaultRetroactiveAutoblock(), LocalRepo::deletedFileHasKey(), PathRouter::doAdd(), SiteStatsInit::doAllAndCommit(), WikiPage::doEditUpdates(), Article::doEditUpdates(), UserCache::doQuery(), MockOggHandler::doTransform(), Skin::editUrlOptions(), FormatJson::encode(), Sanitizer::escapeId(), Sanitizer::escapeIdReferenceList(), DatabaseMysqlBase::estimateRowCount(), DatabaseMssql::estimateRowCount(), DatabaseBase::estimateRowCount(), GenerateRandomImages::execute(), SpecialApiHelp::execute(), ApiExpandTemplates::execute(), DeletedContributionsPage::execute(), SpecialExpandTemplates::execute(), CommandLineInc::execute(), UpdateCollation::execute(), NamespaceConflictChecker::execute(), RefreshImageMetadata::execute(), PPFuzzTest::execute(), PhpHttpRequest::execute(), ResourceLoaderFileModule::extractBasePaths(), ResourceLoaderImageModule::extractLocalBasePath(), MWHttpRequest::factory(), MWHttpRequestTester::factory(), Parser::fetchFile(), Parser::fetchFileAndTitle(), Parser::fetchFileNoRegister(), QueryPage::fetchFromCache(), Revision::fetchFromConds(), ResourceLoader::filter(), HTMLMultiSelectField::filterDataForSubmit(), RepoGroup::findFile(), FileRepo::findFile(), RepoGroup::findFileFromKey(), FileRepo::findFileFromKey(), FileRepo::findFiles(), DatabaseSqlite::fixIgnore(), HTMLFormField::flattenOptions(), HTMLMultiSelectField::formatOptions(), HTMLRadioField::formatOptions(), DummyLinker::generateRollback(), Skin::generateRollback(), Linker::generateRollback(), NamespaceConflictChecker::getAlternateTitle(), MediaWiki\Auth\AuthManager::getAuthenticationRequests(), Title::getAuthorsBetween(), CategoryMembershipChangeJob::getCategoriesAtRev(), InstallerOverrides::getCliInstaller(), DBLockManager::getConnection(), WikiPage::getContributors(), DBAccessObjectUtils::getDBOptions(), ResourceLoaderFileModule::getDefinitionSummary(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), SpecialPageLanguage::getFormFields(), ApiHelp::getHelpInternal(), ResourceLoaderImageModule::getImages(), HTMLRadioField::getInputOOUI(), OutputPage::getKeyHeader(), DatabaseMysqlBase::getLagFromPtHeartbeat(), SpecialProtectedtitles::getLevelMenu(), SpecialProtectedpages::getLevelMenu(), Title::getLinksFrom(), Title::getLinksTo(), Category::getMembers(), MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions(), SpecialEditWatchlist::getNormalForm(), Preferences::getOptionFromUser(), ApiOptionsTest::getOptionKinds(), User::getOptionKinds(), User::getOptions(), SpecialChangeContentModel::getOptionsForTitle(), HTMLFormField::getOptionsOOUI(), AbstractContent::getParserOutput(), BotPassword::getPassword(), ShortPagesPage::getQueryInfo(), NewPagesPager::getQueryInfo(), NewFilesPager::getQueryInfo(), UsersPager::getQueryInfo(), ContribsPager::getQueryInfo(), LogPager::getQueryInfo(), ImageListPager::getQueryInfoReal(), ResourceLoaderWikiModule::getScript(), BaseTemplate::getSidebar(), ResourceLoaderUserCSSPrefsModule::getStyles(), ResourceLoaderWikiModule::getStyles(), Title::getSubpages(), MysqlInstaller::getTableOptions(), NamespaceConflictChecker::getTargetList(), Title::getTemplateLinksFrom(), Title::getTemplateLinksTo(), ResourceLoaderImageTest::getTestImage(), ImageHistoryList::getThumbForLine(), ResourceLoaderWikiModule::getTitleInfo(), SpecialProtectedpages::getTypeMenu(), OutputPage::getVaryHeader(), MediaWiki\Session\SessionManager::getVaryHeaders(), WatchedItemStore::getWatchedItemsForUser(), DumpRenderer::handleRevision(), LocalRepo::hiddenFileHasKey(), ForeignAPIRepo::httpGet(), User::idForName(), DatabaseSqlite::indexUnique(), PasswordFactory::init(), DatabaseOracle::insert(), DatabaseMssql::insert(), DatabaseSqlite::insert(), DatabaseBase::insert(), Xml::languageSelector(), DummyLinker::link(), Linker::link(), Skin::link(), Linker::linkAttribs(), DummyLinker::linkKnown(), Linker::linkKnown(), Skin::linkKnown(), Linker::linkUrl(), Xml::listDropDown(), PageArchive::listRevisions(), User::loadFromDatabase(), ResourceLoaderImageModule::loadFromDefinition(), Maintenance::loadWithArgv(), LocalIdLookup::lookupCentralIds(), HTMLFormField::lookupOptionsKeys(), LocalIdLookup::lookupUserNames(), DummyLinker::makeCommentLink(), Linker::makeCommentLink(), DatabaseBase::makeGroupByWithHaving(), Parser::makeImage(), DatabaseSqlite::makeInsertOptions(), DatabaseBase::makeInsertOptions(), BaseTemplate::makeLink(), BaseTemplate::makeListItem(), SpecialRecentChanges::makeOptionsLink(), DatabaseBase::makeOrderBy(), ContentHandler::makeParserOptions(), WikiPage::makeParserOptions(), DatabaseSqlite::makeSelectOptions(), DatabaseBase::makeSelectOptions(), DatabaseMssql::makeSelectOptions(), DatabaseOracle::makeSelectOptions(), DatabaseBase::makeUpdateOptions(), DatabaseSqlite::makeUpdateOptionsArray(), DatabaseBase::makeUpdateOptionsArray(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), Xml::monthSelector(), Html::namespaceSelector(), Html::namespaceSelectorOptions(), BotPassword::newFromCentralId(), RecompressTracked::newFromCommandLine(), User::newSystemUser(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), WikiPage::pageData(), WikiPage::pageDataFromId(), Article::pageDataFromId(), WikiPage::pageDataFromTitle(), Article::pageDataFromTitle(), InfoAction::pageInfo(), FormatJson::parse(), OutputPage::parserOptions(), MediaWiki\Session\ImmutableSessionProviderWithCookie::persistSession(), MediaWiki\Session\CookieSessionProvider::persistSession(), MediaWiki::preOutputCommit(), BackupDumper::processOptions(), Preferences::profilePreferences(), FileRepo::publish(), LocalFile::publish(), FileRepo::publishBatch(), LocalFile::publishTo(), ForeignAPIFile::purgeCache(), LocalFile::purgeCache(), ForeignAPIFile::purgeThumbnails(), LocalFile::purgeThumbnails(), BacklinkCache::queryLinks(), FileRepo::quickImport(), ZipDirectoryReader::read(), ImageListPager::reallyDoQuery(), IndexPager::reallyDoQuery(), QueryPage::reallyDoQuery(), UploadFromUrl::reallyFetchFile(), DateFormatter::reformat(), Parser::renderImageGallery(), LinkHolderArray::replaceInterwiki(), Http::request(), TableCleanup::runTable(), ParserTest::runTest(), DatabaseMssql::select(), DatabaseBase::select(), DatabaseBase::selectField(), DatabaseBase::selectFieldValues(), DatabaseBase::selectRow(), DatabaseOracle::selectRow(), DatabaseBase::selectRowCount(), DatabaseMssql::selectSQLText(), DatabaseBase::selectSQLText(), RedisPubSubFeedEngine::send(), UserMailer::send(), UserMailer::sendInternal(), WebResponse::setCookie(), FauxResponse::setCookie(), Maintenance::setParam(), Article::setParserOptions(), ParserTest::setupRecorder(), SpecialWatchlist::showHideCheck(), LoginHelper::showReturnToPage(), RedisConnectionPool::singleton(), Parser::startParse(), SevenZipStream::stream_open(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testGetAvailablePartitionsException(), SkinTemplateTest::testMakeListItem(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), NewParserTest::testParserTest(), TextContentTest::testPreloadTransform(), TextContentTest::testPreSaveTransform(), Parser::testPst(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testSendException(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testTopicNaming(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserExists(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserExists(), GlobalTest::testWfShellWikiCmd(), DummyLinker::titleAttrib(), Linker::titleAttrib(), TraditionalImageGallery::toHTML(), ThumbnailImage::toHtml(), DummyLinker::tooltip(), Linker::tooltip(), Parser::transformMsg(), DatabaseMssql::update(), DatabaseOracle::update(), DatabaseBase::update(), LocalFile::upload(), Language::userDate(), Language::userTime(), and Language::userTimeAndDate().

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
inline

Definition at line 766 of file hooks.txt.

Referenced by StatusValue::__toString(), Article::addHelpLink(), ChangesListSpecialPage::addModules(), SpecialRecentChanges::addModules(), UploadForm::addUploadJS(), SiteConfiguration::arrayMerge(), SkinTemplate::buildContentNavigationUrls(), AllMessagesTablePager::buildForm(), ProtectionForm::buildForm(), SkinTemplate::buildNavUrls(), ImportReporter::close(), ApiFormatBase::closePrinter(), CategoryPage::closeShowCategory(), FormOptions::consumeValues(), SpecialContributions::contributionsSub(), Title::convertByteClassToUnicodeClass(), LanguageLa::convertGrammar(), DatabaseUpdater::doEnableProfiling(), SpecialRecentChanges::doHeader(), SpecialWatchlist::doHeader(), SpecialImport::doImport(), MovePageForm::doSubmit(), Parser::doTableStuff(), Xml::element(), ChangesList::endRecentChangesList(), MediaWiki\Logger\Monolog\LineFormatter::exceptionAsArray(), SpecialNewFiles::execute(), SpecialListFiles::execute(), SpecialApiSandbox::execute(), SpecialJavaScriptTest::execute(), SpecialSpecialpages::execute(), ApiHelp::execute(), SpecialContributions::execute(), SpecialPreferences::execute(), SpecialUserLogout::execute(), SpecialExport::execute(), SpecialListGrants::execute(), MaintenanceFormatInstallDoc::execute(), SpecialListGroupRights::execute(), DeletedContributionsPage::execute(), SpecialUnblock::execute(), SpecialActiveUsers::execute(), SpecialBlockList::execute(), SpecialWhatLinksHere::execute(), SpecialAllMessages::execute(), SpecialPrefixindex::execute(), SpecialVersion::execute(), SpecialExpandTemplates::execute(), SpecialChangeEmail::execute(), SpecialAllPages::execute(), ConvertExtensionToRegistration::execute(), UserrightsPage::execute(), SpecialEditWatchlist::execute(), LinkSearchPage::execute(), FileDuplicateSearchPage::execute(), SpecialSearch::execute(), SpecialEmailUser::execute(), GetConfiguration::execute(), SpecialNewpages::execute(), QueryPage::execute(), SpecialUndelete::execute(), SpecialEditWatchlist::executeViewEditWatchlist(), PPFrame_Hash::expand(), PPFrame_DOM::expand(), Xml::expandAttributes(), SpecialJavaScriptTest::exportQUnit(), SpecialNewpages::form(), FormatMetadata::formatNum(), BrokenRedirectsPage::formatResult(), Skin::getCategories(), Skin::getCategoryLinks(), Skin::getCopyrightIcon(), SpecialVersion::getCreditsForExtension(), Skin::getDefaultModules(), SpecialVersion::getEntryPointInfo(), SpecialVersion::getExtensionCategory(), SpecialVersion::getExtensionCredits(), SpecialVersion::getExternalLibraries(), ProfilerSectionOnly::getFunctionReport(), ProfilerXhprof::getFunctionReport(), ApiHelp::getHelp(), ApiHelp::getHelpInternal(), Status::getHTML(), BaseTemplate::getIndicators(), ResourceLoaderStartUpModule::getModuleRegistrations(), Skin::getNewtalks(), ActiveUsersPager::getPageHeader(), UsersPager::getPageHeader(), SpecialVersion::getParserFunctionHooks(), SpecialVersion::getParserTags(), ResourceLoaderStartUpModule::getScript(), SpecialVersion::getSkinCredits(), DeletedContributionsPage::getSubTitle(), Sanitizer::hackDocType(), LanguageEo::iconv(), Language::iconv(), ImagePage::imageDupes(), ImagePage::imageHistory(), ImagePage::imageLinks(), ProfilerOutputText::log(), LoginSignupSpecialPage::mainLoginForm(), ResourceLoader::makeModuleResponse(), SpecialExpandTemplates::makeOutput(), Parser::markerSkipCallback(), Sanitizer::mergeAttributes(), JavaScriptMinifier::minify(), SpecialPrefixindex::namespacePrefixForm(), SearchMySQL::normalizeText(), SpecialChangeContentModel::onSubmit(), SpecialUnlockdb::onSuccess(), SpecialLockdb::onSuccess(), SpecialChangeContentModel::onSuccess(), SpecialBotPasswords::onSuccess(), SpecialBlock::onSuccess(), HistoryAction::onView(), SpecialVersion::openExtType(), XmlDumpWriter::openPage(), ImagePage::openShowImage(), Maintenance::output(), SpecialListGroupRights::outputNamespaceProtectionInfo(), SkinTemplate::outputPage(), SpecialSpecialpages::outputPageList(), ImageQueryPage::outputResults(), QueryPage::outputResults(), SpecialEditWatchlist::outputSubtitle(), Installer::parse(), Message::parseText(), DiffHistoryBlob::patch(), SpecialJavaScriptTest::plainQUnit(), SpecialBlock::postText(), SkinTemplate::prepareQuickTemplate(), ImagePage::printSharedImageText(), SearchHighlighter::process(), SpecialTags::processCreateTagForm(), SpecialTags::processTagForm(), UserMailer::quotedPrintable(), LanguageConverter::recursiveConvertTopLevel(), ConvertExtensionToRegistration::removeAbsolutePath(), DifferenceEngine::renderNewRevision(), ParserTest::runTest(), ProtectionForm::save(), SpecialSearch::searchOptions(), SpecialSearch::searchProfileTabs(), ApiMain::sendCacheHeaders(), Action::setHeaders(), SpecialPage::setHeaders(), SpecialSearch::setupPage(), SpecialSearch::shortDialog(), DeleteAction::show(), ProtectAction::show(), EditAction::show(), ProtectionForm::show(), SpecialTags::showActivateDeactivateForm(), SpecialAllPages::showChunk(), SpecialTags::showDeleteTagForm(), DifferenceEngine::showDiffPage(), ImagePage::showError(), SpecialUndelete::showFileConfirmationForm(), MovePageForm::showForm(), SpecialEditTags::showForm(), SpecialImport::showForm(), SpecialRevisionDelete::showForm(), SpecialMergeHistory::showHistory(), SpecialUndelete::showHistory(), SpecialWhatLinksHere::showIndirectLinks(), SpecialSearch::showInterwiki(), SpecialSearch::showInterwikiHit(), SpecialBlockList::showList(), SpecialUndelete::showList(), LogEventsList::showLogExtract(), ProtectionForm::showLogExtract(), MovePageForm::showLogFragment(), SpecialSearch::showMatches(), SpecialMergeHistory::showMergeForm(), DifferenceEngine::showMissingRevision(), SpecialPrefixindex::showPrefixChunk(), EmailConfirmation::showRequestForm(), SpecialSearch::showResults(), SpecialUndelete::showRevision(), SpecialUndelete::showSearchForm(), SpecialChangeCredentials::showSubpageList(), MovePageForm::showSubpages(), LoginSignupSpecialPage::showSuccessPage(), SpecialTags::showTagList(), SpecialVersion::softwareInformation(), Skin::subPageSubtitle(), SpecialChangeCredentials::success(), SpecialCreateAccount::successfulAction(), ChangeTags::tagUsageStatistics(), ExtraParserTest::testCleanSigInSig(), ExtensionProcessorTest::testExtractExtensionMessagesFiles(), ExtensionProcessorTest::testExtractMessagesDirs(), ExtensionProcessorTest::testExtractResourceLoaderModules(), ResourceLoaderStartUpModuleTest::testGetModuleRegistrations(), ResourceLoaderWikiModuleTest::testGetPages(), ParserMethodsTest::testGetSections(), ApiRevisionDeleteTest::testHidingRevisions(), OutputPageTest::testMakeResourceLoaderLink(), MediaWiki\Logger\Monolog\LineFormatterTest::testNormalizeExceptionNoTrace(), MediaWiki\Logger\Monolog\LineFormatterTest::testNormalizeExceptionTrace(), NewParserTest::testParserTest(), ExtensionJsonValidationTest::testPassesValidation(), ResourceLoaderStartUpModuleTest::testRegistrationsMinified(), ResourceLoaderStartUpModuleTest::testRegistrationsUnminified(), ExifRotationTest::testRotationRendering(), ExifRotationTest::testRotationRenderingNoAutoRotate(), ApiRevisionDeleteTest::testUnhidingOutput(), DatabaseSqliteTest::testUpgrades(), SpecialUndelete::undelete(), ImagePage::uploadLinksBox(), Sanitizer::validateAttributes(), ImagePage::view(), Article::viewRedirect(), PPFrame_Hash::virtualBracketedImplode(), PPFrame_DOM::virtualBracketedImplode(), PPFrame_Hash::virtualImplode(), PPFrame_DOM::virtualImplode(), wfHtmlValidationHandler(), XmlDumpWriter::writeContributor(), XmlDumpWriter::writeLogItem(), XmlDumpWriter::writeRevision(), and XmlDumpWriter::writeUploads().

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 $output

Definition at line 1008 of file hooks.txt.

Referenced by Maintenance::activateProfiler(), LanguageConverter::autoConvert(), ProtectionForm::buildForm(), WikiExporter::closeStream(), StringUtils::delimiterReplaceCallback(), UploadBase::detectVirus(), Parser::doBlockLevels(), Parser::doQuotes(), LinkHolderArray::doVariants(), SpecialContributions::execute(), SpecialWatchlist::execute(), ApiParse::execute(), SpecialExpandTemplates::execute(), SpecialEditTags::execute(), SpecialRevisionDelete::execute(), SpecialPageExecutor::executeSpecialPage(), Parser::extensionSubstitution(), MediaWiki\Logger\Monolog\LineFormatter::format(), AutoloadGenerator::generatePHPAutoload(), CategoryMembershipChangeJob::getCategoriesAtRev(), CheckSyntax::getGitModifiedFiles(), SpecialPageExecutor::getHTMLFromSpecialPage(), WebInstallerLanguage::getLanguageSelector(), EditPage::getPreviewLimitReport(), MWTimestamp::getTimestamp(), DumpRenderer::handleRevision(), MWCryptHKDF::HKDFExpand(), StringUtils::hungryDelimiterReplace(), Profiler::logData(), Profiler::logDataPageOutputOnly(), MediaWiki::main(), SpecialExpandTemplates::makeOutput(), Maintenance::maybeHelp(), mccGetHelp(), ImagePage::openShowImage(), WikiExporter::openStream(), SpecialWatchlist::outputChangesList(), WikiExporter::outputLogStream(), WikiExporter::outputPageStream(), MediaWiki::performAction(), MediaWiki::performRequest(), ParserTest::quickDiff(), SectionProfiler::remapCallTree(), LinkHolderArray::replaceInternal(), LinkHolderArray::replaceInterwiki(), Parser::replaceTransparentTags(), UserNotLoggedIn::report(), ParserTest::runTest(), SpecialAllPages::showChunk(), UserrightsPage::showLogFragment(), SpecialPrefixindex::showPrefixChunk(), SpecialEditWatchlist::showTitles(), ExifBitmapHandler::swapICCProfile(), WfShellExecTest::testBug67870(), ArrayDiffFormatterTest::testFormat(), WfTimestampTest::testHttpDate(), WfTimestampTest::testNormalTimestamps(), WfTimestampTest::testOldTimestamps(), NewParserTest::testParserTest(), JpegPixelFormatTest::testPixelFormatRendering(), PreprocessorTest::testPreprocessorOutputFiles(), SanitizerTest::testRemoveHTMLtags(), FormatMetadataTest::testResolveMultivalueValue(), ApiResultTest::testTransformations(), WfAssembleUrlTest::testWfAssembleUrl(), WfShorthandToIntegerTest::testWfShorthandToInteger(), TraditionalImageGallery::toHTML(), MediaWiki::tryNormaliseRedirect(), and GenerateJqueryMsgData::writeJavascriptFile().

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

Definition at line 2342 of file hooks.txt.

Referenced by SpecialWatchlist::__construct(), QueryAllSpecialPagesTest::__construct(), ApiQueryQueryPage::__construct(), AllMessagesTablePager::__construct(), ParserTest::addArticle(), MediaWikiTestCase::addCoreDBData(), BackupDumperPageTest::addDBData(), TextPassDumperDatabaseTest::addDBData(), FetchTextTest::addDBData(), SpecialMyLanguageTest::addDBDataOnce(), CategoryMembershipChangeTest::addDBDataOnce(), SpecialLog::addHeader(), ApiQueryPageProps::addPageProps(), FetchTextTest::addRevision(), EditPageTest::assertEdit(), BaseDumpTest::assertPrefetchEquals(), WikiImporter::beforeImportPage(), SkinTemplate::buildPersonalUrls(), UnregisteredLocalFile::cachePageDimensions(), Title::checkCascadingSourcesRestrictions(), Orphans::checkOrphans(), Orphans::checkSeparation(), Orphans::checkWidows(), CleanupSpam::cleanupArticle(), Installer::createMainpage(), WikiPageTest::createPage(), RevisionStorageTest::createPage(), TestPageProps::createPage(), UploadFromUrlTest::deleteFile(), ApiTestCaseUpload::deleteFileByTitle(), FileDeleteForm::doDelete(), WikiPage::doDeleteArticleReal(), DifferenceEngineTest::doEdits(), SpecialExport::doExport(), MysqlUpdater::doPageRandomUpdate(), PurgeList::doPurge(), MysqlUpdater::doSchemaRestructuring(), MovePageForm::doSubmit(), MockDjVuHandler::doTransform(), DjVuHandler::doTransform(), UpdateSearchIndex::doUpdateSearchIndex(), ApiTestCase::editPage(), CategoryMembershipChangeJobTest::editPageText(), CompareParserCache::execute(), ApiSetNotificationTimestamp::execute(), SpecialExport::execute(), ApiPurge::execute(), ApiQueryPageProps::execute(), DeleteDefaultMessages::execute(), MakeTestEdits::execute(), ImportSiteScripts::execute(), UpdateSpecialPages::execute(), DeleteOrphanedRevisions::execute(), Protect::execute(), AttachLatest::execute(), ApiStashEdit::execute(), ApiParse::execute(), EditCLI::execute(), DumpLinks::execute(), RollbackEdits::execute(), DeleteBatch::execute(), DeleteEqualMessages::execute(), WebInstaller::execute(), SpecialPageFactory::executePath(), WikiPage::factory(), ImportSiteScripts::fetchScriptList(), SpecialMyLanguage::findTitle(), WikiImporter::finishImportPage(), RefreshLinks::fixLinksFromArticle(), RefreshLinks::fixRedirect(), Skin::footerLink(), foreach(), DeletedContribsPager::formatRevisionRow(), ContribsPager::formatRow(), CoreParserFunctions::getCachedRevisionObject(), WikiReference::getCanonicalUrl(), SearchSqlite::getCountQuery(), WebInstaller::getDocUrl(), Installer::getDocUrl(), WikiMap::getForeignURL(), SpecialPageLanguage::getFormFields(), WikiReference::getFullUrl(), UnregisteredLocalFile::getHeight(), LocalFile::getHeight(), FindHooks::getHooksFromOnlineDocCategory(), SpecialExport::getLinks(), WikiReference::getLocalUrl(), SearchNearMatcher::getNearMatchInternal(), SpecialPageFactory::getPage(), DjVuHandler::getPageDimensions(), SpecialSpecialpages::getPageGroups(), DjVuHandler::getPageText(), AbstractContent::getRedirectChain(), SearchExactMatchRescorer::getRedirectTarget(), ApiPageSet::getRedirectTargets(), SpecialPageFactory::getRegularPages(), SpecialPageFactory::getRestrictedPages(), DatabaseLogEntry::getTarget(), RCDatabaseLogEntry::getTarget(), File::getThumbnailBucket(), LogEventsList::getTypeSelector(), File::getUnscaledThumb(), WikiReference::getUrl(), SpecialPageFactory::getUsablePages(), UnregisteredLocalFile::getWidth(), LocalFile::getWidth(), WikiRevision::importOldRevision(), MediaWiki::initializeArticle(), ChangesList::insertLog(), MediaWikiTestCase::insertPage(), ChangesList::insertRollback(), LogPager::limitTitle(), WikiMap::makeForeignLink(), User::makeGroupLinkWiki(), Linker::makeImageLink(), DjVuHandler::makeParamString(), Linker::makeThumbLink2(), ImportStreamSource::newFromInterwiki(), WikiPage::newFromRow(), Article::newFromTitle(), Article::newFromWikiPage(), MediaWiki\Site\MediaWikiPageNameNormalizer::normalizePageName(), SpecialChangeContentModel::onSubmit(), XmlDumpWriter::openPage(), ImagePage::openShowImage(), CoreParserFunctions::pagesize(), DumpNotalkFilter::pass(), DumpNamespaceFilter::pass(), MediaWiki::performAction(), BaseDump::prefetch(), SpecialUnblock::processUnblock(), SearchMssql::queryMain(), SearchOracle::queryMain(), SearchSqlite::queryMain(), LocalisationCache::recache(), ImportReporter::reportPage(), DeleteLinksJob::run(), CategoryMembershipChangeJob::run(), RefreshLinksJob::runForTitle(), ApiQueryRandom::runQuery(), ParserCache::save(), ApiRevisionDeleteTest::setUp(), TestPageProps::setUp(), ApiFormatXmlTest::setUpBeforeClass(), SpecialBookSources::showList(), LogEventsList::showLogExtract(), LogEventsList::showOptions(), CoreParserFunctions::special(), Language::specialList(), PrefixSearch::specialSearch(), EditPageTest::testAutoMerge(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), ApiQueryRevisionsTest::testContentComesWithContentModelAndFormat(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), TextContentTest::testDeletionUpdates(), ActionTest::testDisabledAction_factoryReturnsFalse(), WikiPageTest::testDoDeleteArticle(), WikiPageTest::testDoDeleteUpdates(), WikiPageTest::testDoEdit(), WikiPageTest::testDoEditContent(), WikiPageTest::testDoQuickEditContent(), ApiEditPageTest::testEdit_redirect(), ApiEditPageTest::testEdit_redirectText(), ApiEditPageTest::testEditAppend(), ApiEditPageTest::testEditConflict(), ApiEditPageTest::testEditConflict_bug41990(), ApiEditPageTest::testEditConflict_newSection(), UserTest::testEditCount(), ApiEditPageTest::testEditSection(), WikiPageTest::testExists(), TitleTest::testExists(), RevisionStorageTest::testFetchRevision(), ImageListPagerTest::testFormatValuesThrowException(), WikiReferenceTest::testGetCanonicalUrl(), WikiPageTest::testGetContent(), WikiPageTestContentHandlerUseDB::testGetContentHandler(), WikiPageTest::testGetContentHandler(), WikiPageTestContentHandlerUseDB::testGetContentModel(), WikiPageTest::testGetContentModel(), WikiMapTest::testGetForeignURL(), WikiReferenceTest::testGetFullUrl(), RevisionStorageTest::testGetNext(), SpecialPageFactoryTest::testGetPage(), RevisionStorageTest::testGetPage(), MediaWikiSiteTest::testGetPageUrl(), SiteTest::testGetPageUrl(), WikiPageTest::testGetParserOutput(), RevisionStorageTest::testGetPrevious(), WikiPageTest::testGetRedirectTarget(), WikiPageTest::testGetRevision(), WikitextContentTest::testGetSecondaryDataUpdates(), WikiPageTest::testGetText(), WikiReferenceTest::testGetUrl(), WikiPageTest::testHasViewableContent(), ApiRevisionDeleteTest::testHidingRevisions(), ImportLinkCacheIntegrationTest::testImportForImportSource(), TitleTest::testIsAlwaysKnown(), WikiPageTest::testIsCountable(), RevisionStorageTest::testIsCurrent(), WikiPageTest::testIsRedirect(), WikiMapTest::testMakeForeignLink(), RevisionStorageTest::testNewFromArchiveRow(), RevisionStorageTest::testNewNullRevision(), ActionTest::testNull_canNotBeInstantiated(), ApiQueryAllPagesTest::testPrefixNormalizationSearchBug(), QueryAllSpecialPagesTest::testQuerypageSqlQuery(), RefreshLinksPartitionTest::testRefreshLinks(), ApiEditPageTest::testSupportsDirectApiEditing_withContentHandlerOverride(), TemplateCategoriesTest::testTemplateCategories(), ArticleTablesTest::testTemplatelinksUsesContentLanguage(), ApiRevisionDeleteTest::testUnhidingOutput(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), RevisionStorageTest::testUserWasLastToEdit(), ApiWatchTest::testWatchClear(), PageArchive::undeleteRevisions(), SpecialEditWatchlist::unwatchTitles(), Linker::userLink(), DumpMultiWriter::writeOpenPage(), and DumpFilter::writeOpenPage().

function wfGetCustomMagicWordValue $parser
Initial value:
{
$parser->setFunctionHook( 'mag_custom', 'wfGetCustomMagicWordValue' )
magic word & $parser
Definition: hooks.txt:2325

Definition at line 2325 of file hooks.txt.

Referenced by ParserDiffTest::__call(), PhpXmlBugTester::__construct(), CoreParserFunctions::anchorencode(), CoreParserFunctions::bidi(), Parser::callParserFunction(), CoreParserFunctions::cascadingsources(), Parser::clearState(), CoreParserFunctions::defaultsort(), CoreParserFunctions::displaytitle(), JSParseHelper::execute(), FindDeprecated::execute(), Parser::extensionSubstitution(), CoreParserFunctions::filepath(), Parser::firstCallInit(), CoreParserFunctions::formatDate(), CoreParserFunctions::formatnum(), ParserTest::fuzzTest(), CoreTagHooks::gallery(), CoreParserFunctions::gender(), CoreParserFunctions::getCachedRevisionObject(), Linker::getImageLinkMTOParams(), ParserTest::getParser(), NewParserTest::getParser(), Parser::getVariableValue(), CoreParserFunctions::grammar(), ParserMethodsTest::helperParserFunc(), CoreTagHooks::html(), Parser::internalParse(), Parser::internalParseHalfParsed(), CoreParserFunctions::intFunction(), Xml::isWellFormed(), CoreParserFunctions::lc(), CoreParserFunctions::nse(), CoreParserFunctions::pad(), CoreParserFunctions::padleft(), CoreParserFunctions::padright(), CoreParserFunctions::pageid(), CoreParserFunctions::pagesincategory(), CoreParserFunctions::pagesize(), Parser::parse(), MessageCache::parse(), ShiConverter::parserConvert(), IuConverter::parserConvert(), CoreParserFunctions::plural(), WikiPage::prepareContentForEdit(), Parser::preprocess(), CoreParserFunctions::protectionexpiry(), CoreParserFunctions::protectionlevel(), TextPassDumper::readDump(), Parser::recursiveTagParse(), CoreTagHooks::register(), CoreParserFunctions::register(), Parser::renderImageGallery(), CoreParserFunctions::revisionday(), CoreParserFunctions::revisionday2(), CoreParserFunctions::revisionid(), CoreParserFunctions::revisionmonth(), CoreParserFunctions::revisionmonth1(), CoreParserFunctions::revisiontimestamp(), CoreParserFunctions::revisionuser(), CoreParserFunctions::revisionyear(), ParserTest::runTest(), ParserDiffTest::setFunctionHook(), ImageGalleryBase::setParser(), ParserTestParserHook::setup(), ParserOptions::setupFakeRevision(), CoreParserFunctions::special(), CoreParserFunctions::speciale(), TextPassDumper::startElement(), Parser::statelessFetchTemplate(), ParserTestParserHook::staticTagHook(), CoreParserFunctions::tagObj(), TagHookTest::testBadFunctionTagHooks(), TagHookTest::testBadTagHooks(), TagHookTest::testFunctionTagHooks(), NewParserTest::testFuzzTests(), JavaScriptMinifierTest::testJavaScriptMinifierOutput(), NewParserTest::testParserTest(), TagHookTest::testTagHooks(), MessageCache::transform(), CoreParserFunctions::uc(), CoreParserFunctions::urlencode(), ResourceLoaderModule::validateScriptFile(), and ParserTest::wellFormed().

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

Definition at line 2342 of file hooks.txt.

Referenced by SkinTemplate::buildPersonalUrls().

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 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 & $query

Definition at line 1422 of file hooks.txt.

Referenced by ApiQueryPrefixSearch::__construct(), OutputPage::addBacklinkSubtitle(), OutputPage::addReturnTo(), SpecialUserLogin::beforeExecute(), OutputPage::buildBacklinkSubtitle(), SkinTemplate::buildPersonalUrls(), Linker::buildRollbackLink(), SpecialPage::checkLoginSecurityLevel(), PostgresUpdater::describeIndex(), SpecialRedirect::dispatchLog(), SpecialRecentChangesLinked::doMainQuery(), DatabaseMysqlBase::duplicateTableStructure(), ApiQueryExternalLinks::execute(), RedirectSpecialPage::execute(), BatchedQueryRunner::execute(), SpecialRecentChanges::execute(), MwSql::execute(), RandomPage::execute(), SpecialSearch::execute(), LoginSignupSpecialPage::execute(), SpecialPageFactory::executePath(), SpecialJavaScriptTest::exportQUnit(), ForeignAPIRepo::fetchImageQuery(), IEUrlExtension::fixUrlForIE6(), Title::fixUrlQueryArgs(), SpecialUndelete::formatFileRow(), SpecialNewpages::formatRow(), DeleteLogFormatter::getActionLinks(), Title::getCanonicalURL(), SearchMySQL::getCountQuery(), MultiHttpClient::getCurlHandle(), MWDebug::getDebugInfo(), DeletedContribsPager::getDefaultQuery(), ContribsPager::getDefaultQuery(), LogPager::getDefaultQuery(), UsersPager::getDefaultQuery(), MediaTransformOutput::getDescLinkAttribs(), FileRepo::getDescriptionRenderUrl(), SpecialRecentChanges::getFeedQuery(), LogEventsList::getFilterLinks(), ImageListPager::getForm(), Title::getFullURL(), Title::getFullUrlForRedirect(), ApiPageSet::getGenerators(), OutputPage::getHeadLinksArray(), TablePager::getHiddenFields(), Linker::getImageLinkMTOParams(), ForeignAPIRepo::getInfo(), Title::getInternalURL(), IRCColourfulRCFeedFormatter::getLine(), Title::getLinkURL(), Title::getLocalURL(), PatrolLogFormatter::getMessageParameters(), WebInstaller::getPageListItem(), IndexPager::getPagingLinks(), ImageListPager::getPagingQueries(), SearchMySQL::getQuery(), WantedPagesPage::getQueryInfo(), NewFilesPager::getQueryInfo(), WithoutInterwikiPage::getQueryInfo(), UsersPager::getQueryInfo(), Linker::getRevDeleteLink(), LogEventsList::getShowHideLinks(), TablePager::getStartBody(), ResourceLoaderStartUpModule::getStartupModulesUrl(), Linker::getUploadUrl(), ResourceLoaderImage::getUrl(), WebInstaller::getUrl(), EditPage::handleStatus(), HistoryPager::historyLine(), ForeignAPIRepo::httpGetCached(), ImageHistoryList::imageHistoryLine(), ImagePage::imageLinks(), ChangesList::insertDiffHist(), SearchMySQL::limitResult(), DummyLinker::link(), Linker::link(), Skin::link(), DummyLinker::linkKnown(), Linker::linkKnown(), Skin::linkKnown(), Linker::linkUrl(), SpecialWhatLinksHere::listItem(), DummyLinker::makeBrokenImageLinkObj(), Linker::makeBrokenImageLinkObj(), LinkHolderArray::makeHolder(), DummyLinker::makeImageLink(), Linker::makeImageLink(), Parser::makeKnownLinkHolder(), LoginSignupSpecialPage::makeLanguageSelectorLink(), IndexPager::makeLink(), OutputPage::makeResourceLoaderLink(), SpecialWhatLinksHere::makeSelfLink(), DummyLinker::makeSelfLinkObj(), DummyLinker::makeThumbLink2(), Linker::makeThumbLink2(), FileRepo::makeUrl(), LinkSearchPage::mungeQuery(), Language::numLink(), SwiftFileBackend::objectListing(), SpecialChangeEmail::onSuccess(), MediaWiki::performRequest(), ApiQueryBase::prepareUrlQuerySearchString(), WfAssembleUrlTest::provideURLParts(), MWDebug::query(), SearchMySQL::queryFeatures(), SearchMySQL::queryMain(), SearchMySQL::queryNamespaces(), MWDebug::queryTime(), DeletedContribsPager::reallyDoQuery(), ContribsPager::reallyDoQuery(), QueryPage::reallyDoQuery(), EnhancedChangesList::recentChangesBlockLine(), TransactionProfiler::recordQueryCompletion(), SpecialUndelete::redirectToRevDel(), CSSMin::remapOne(), LinkHolderArray::replaceInternal(), SearchEngine::replacePrefixes(), UserNotLoggedIn::report(), DummyLinker::revDeleteLink(), Linker::revDeleteLink(), ApiQueryExtLinksUsage::run(), ApiQuerySearch::run(), SearchMySQL::searchInternal(), SearchPostgres::searchQuery(), RandomPage::selectRandomPageFromDB(), SpecialRandomInCategory::selectRandomPageFromDB(), OutputPage::setFeedAppendQuery(), SkinTemplate::setupTemplateForOutput(), SpecialAllPages::showChunk(), DifferenceEngine::showDiffPage(), SpecialSearch::showHit(), SpecialSearch::showInterwiki(), SpecialSearch::showInterwikiHit(), OutputPage::showPermissionsErrorPage(), SpecialPrefixindex::showPrefixChunk(), Article::showRedirectedFromHeader(), SkinTemplate::tabAction(), WfAppendQueryTest::testAppendQuery(), PrefixUniquenessTest::testPrefixes(), MediaWikiTest::testTryNormaliseRedirect(), ThumbnailImage::toHtml(), TransactionProfiler::transactionWritingOut(), MediaWiki::triggerJobs(), ResourceFileCache::useFileCache(), HTMLFileCache::useFileCache(), and Language::viewPrevNext().

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

Definition at line 969 of file hooks.txt.

Referenced by MediaWiki\Auth\AuthManagerAuthPlugin::allowPasswordChange(), EditPageTest::assertEdit(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginLinkAttempt(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAuthentication(), ApiAuthManagerHelper::blacklistAuthenticationRequests(), User::changeAuthenticationData(), ApiQueryTestBase::check(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), UploadFromUrlTest::doApiRequest(), SwiftFileBackend::doExecuteOpHandlesInternal(), ApiChangeAuthenticationData::execute(), ApiEditPage::execute(), ApiParse::execute(), ApiRemoveAuthenticationData::execute(), ApiAMCreateAccount::execute(), ApiClientLogin::execute(), PasswordReset::execute(), Parser::fetchScaryTemplateMaybeFromCache(), MediaWiki\Auth\AuthManager::fillRequests(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::finishAccountCreation(), ApiAuthManagerHelper::formatRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequestsInternal(), SpecialChangeCredentials::getAuthForm(), LanguageConverter::getDefaultVariant(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::getInstance(), MediaWiki\Auth\ConfirmLinkAuthenticationRequestTest::getLinkRequests(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::getLinkRequests(), LanguageConverter::getPreferredVariant(), MediaWiki\Auth\AuthenticationRequest::getRequestByClass(), MediaWiki\Auth\ButtonAuthenticationRequest::getRequestByName(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getUniqueId(), MediaWiki\Auth\AuthenticationRequest::getUsernameFromRequests(), ForeignAPIRepo::httpGet(), SpecialChangeCredentials::loadAuth(), AuthManagerSpecialPage::loadAuth(), ApiAuthManagerHelper::loadAuthenticationRequests(), MediaWiki\Auth\AuthenticationRequest::loadRequestsFromSubmission(), ApiQueryTestBase::merge(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), AuthManagerSpecialPage::needsSubmitButton(), RestbaseVirtualRESTService::onParsoid1Request(), ParsoidVirtualRESTService::onParsoid1Request(), RestbaseVirtualRESTService::onParsoid3Request(), RestbaseVirtualRESTService::onParsoidRequests(), RestbaseVirtualRESTService::onRequests(), VirtualRESTService::onRequests(), ParsoidVirtualRESTService::onRequests(), SwiftVirtualRESTService::onRequests(), SwiftVirtualRESTService::onResponses(), SpecialUploadStash::outputRemoteScaledThumb(), AuthManagerSpecialPage::performAuthenticationStep(), MediaWiki\Auth\AuthManagerTest::provideAccountCreation(), MediaWiki\Auth\AuthManagerTest::provideAccountLink(), MediaWiki\Auth\AuthManagerTest::provideAuthentication(), MediaWiki\Auth\AuthenticationResponseTest::provideConstructors(), MediaWiki\Auth\AbstractSecondaryAuthenticationProvider::providerRevokeAccessForUser(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerRevokeAccessForUser(), UploadFromUrl::reallyFetchFile(), Http::request(), MultiHttpClient::runMulti(), VirtualRESTServiceClient::runMulti(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::setDomain(), MediaWiki\Auth\AuthManagerAuthPlugin::setPassword(), SpecialChangeCredentials::showSubpageList(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testAbstractPrimaryAuthenticationProvider(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testAbstractSecondaryAuthenticationProvider(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreationEmail(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), MediaWiki\Auth\AuthManagerTest::testAllowsAuthenticationDataChange(), ApiLoginTest::testApiLoginGotCookie(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\AuthManagerTest::testBeginAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt(), MediaWiki\Auth\AuthManagerTest::testChangeAuthenticationData(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testConstruction(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testFailResponse(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequestsRequired(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::testGetFieldInfo2(), MediaWiki\Auth\PasswordAuthenticationRequestTest::testGetFieldInfo2(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::testGetFieldInfo_2(), MediaWiki\Auth\ButtonAuthenticationRequestTest::testGetUniqueId(), MediaWiki\Auth\ConfirmLinkAuthenticationRequestTest::testGetUniqueId(), MediaWiki\Auth\AuthenticationRequestTest::testGetUsernameFromRequests(), MediaWiki\Auth\UserDataAuthenticationRequestTest::testPopulateUser(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationDataEmail(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::testState(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAuthentication(), MediaWikiTest::testTryNormaliseRedirect(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), MediaWiki\Tidy\Html5Depurate::tidy(), MediaWiki::triggerJobs(), and MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset().

error also a ContextSource you ll probably need to make sure the header is varied on $request

Definition at line 2422 of file hooks.txt.

Referenced by ApiContinuationManager::__construct(), AllMessagesTablePager::__construct(), UsersPager::__construct(), ApiMain::__construct(), SkinTemplate::buildContentNavigationUrls(), SkinTemplate::buildNavUrls(), SkinTemplate::buildPersonalUrls(), SpecialPage::checkLoginSecurityLevel(), CategoryPage::closeShowCategory(), UploadBase::createFromRequest(), ApiPageSetTest::createPageSetWithRedirect(), Article::delete(), SpecialRedirect::dispatchFile(), SwiftFileBackend::doCopyInternal(), SwiftFileBackend::doCreateInternal(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), SpecialImport::doImport(), SwiftFileBackend::doMoveInternal(), SwiftFileBackend::doStoreInternal(), SpecialApiHelp::execute(), ApiUpload::execute(), SpecialContributions::execute(), SpecialProtectedpages::execute(), SpecialProtectedtitles::execute(), SpecialExport::execute(), SpecialPreferences::execute(), DeletedContributionsPage::execute(), SpecialBlockList::execute(), SpecialPagesWithProp::execute(), SpecialWatchlist::execute(), SpecialAllMessages::execute(), SpecialPrefixindex::execute(), SpecialTags::execute(), SpecialExpandTemplates::execute(), SpecialAllPages::execute(), SpecialEditTags::execute(), SpecialImport::execute(), MovePageForm::execute(), UserrightsPage::execute(), LinkSearchPage::execute(), SpecialSearch::execute(), SpecialRevisionDelete::execute(), ApiOptionsTest::executeQuery(), SpecialPageExecutor::executeSpecialPage(), SpecialPageTestBase::executeSpecialPage(), HistoryAction::feed(), SpecialWatchlist::fetchOptionsFromRequest(), Action::getActionName(), ApiUpload::getChunkResult(), ActionTest::getContext(), MediaWiki\Session\CookieSessionProvider::getCookie(), MWDebug::getDebugInfo(), User::getEditToken(), User::getEditTokenObject(), MediaWiki\Session\SessionManager::getEmptySession(), MediaWiki\Session\SessionManager::getEmptySessionInternal(), LoginSignupSpecialPage::getFakeTemplate(), MediaWiki\Session\SessionManager::getGlobalSession(), SpecialEditWatchlist::getMode(), ApiModuleManagerTest::getModuleManager(), SpecialPageAction::getName(), Article::getOldIDFromRequest(), SpecialChangeCredentials::getPreservedParams(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::getProvider(), RawAction::getRawText(), RedirectSpecialPage::getRedirectQuery(), DerivativeResourceLoaderContextTest::getResourceLoaderContext(), ResourceLoaderTestCase::getResourceLoaderContext(), SpecialChangeCredentials::getReturnUrl(), ApiOptionsTest::getSampleRequest(), MediaWiki\Session\SessionBackend::getSession(), MediaWiki\Session\SessionManager::getSessionById(), SpecialBlock::getTargetAndType(), ApiTokens::getTokenTypes(), MediaWiki\Session\CookieSessionProvider::getUserInfoFromCookies(), ApiMain::handleCORS(), AuthManagerSpecialPage::handleReauthBeforeExecute(), EditPage::handleStatus(), OutputPage::haveCacheVaryCookies(), ThumbnailRenderJob::hitThumbUrl(), EditPage::importFormData(), MediaWiki::initializeArticle(), UploadFromFile::initializeFromRequest(), UploadFromStash::initializeFromRequest(), UploadFromUrl::initializeFromRequest(), HTMLButtonField::isBadIE(), UploadFromStash::isValidRequest(), UploadFromUrl::isValidRequest(), ApiMain::lacksSameOriginSecurity(), LoginSignupSpecialPage::load(), SpecialSearch::load(), AuthManagerSpecialPage::loadAuth(), ProtectionForm::loadData(), HTMLForm::loadData(), HTMLSubmitField::loadDataFromRequest(), HTMLAutoCompleteSelectField::loadDataFromRequest(), HTMLSelectAndOtherField::loadDataFromRequest(), HTMLSelectOrOtherField::loadDataFromRequest(), HTMLMultiSelectField::loadDataFromRequest(), HTMLCheckField::loadDataFromRequest(), HTMLFormFieldCloner::loadDataFromRequest(), HTMLCheckMatrix::loadDataFromRequest(), HTMLFormField::loadDataFromRequest(), SpecialUpload::loadRequest(), SpecialUndelete::loadRequest(), LoginSignupSpecialPage::loadRequestParameters(), SpecialMergeHistory::loadRequestParams(), Profiler::logData(), ApiBase::logFeatureUsage(), ApiMain::logRequest(), MediaWiki::main(), User::matchEditToken(), User::matchEditTokenNoSuffix(), ApiQueryTestBase::merge(), MWDebugTest::newApiRequest(), LBFactory::newChronologyProtector(), SpecialPageExecutor::newContext(), User::newFromSession(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::newInvalid(), SpecialChangeEmail::onSuccess(), RollbackAction::onView(), MarkpatrolledAction::onView(), RawAction::onView(), HistoryAction::onView(), ImagePage::openShowImage(), MediaWiki::parseTitle(), MediaWiki::performAction(), MediaWiki::performRequest(), MediaWiki\Session\CookieSessionProvider::persistSession(), SpecialSearch::powerSearch(), MediaWiki::preOutputCommit(), SkinTemplate::prepareQuickTemplate(), MWRestrictionsTest::provideCheck(), ApiQueryContinueTestBase::query(), SquidPurgeClient::queuePurge(), ApiQueryRandom::run(), EditPage::safeUnicodeInput(), ProtectionForm::save(), MediaWiki\Session\SessionBackend::save(), SpecialSearch::saveNamespaces(), ApiUpload::selectUploadModule(), User::setCookie(), User::setCookies(), SpecialPageExecutor::setEditTokenFromUser(), SpecialBlock::setParameter(), AuthManagerSpecialPage::setRequest(), ApiMain::setupExternalResponse(), SkinTemplate::setupTemplateForOutput(), Article::showDiffPage(), SpecialExpandTemplates::showHtmlPreview(), OutputPage::showPermissionsErrorPage(), Article::showRedirectedFromHeader(), HTMLSubmitField::skipLoadData(), SpecialEditTags::submit(), WebRequestTest::testAcceptLang(), ApiOptionsTest::testAnon(), MWDebugTest::testAppendDebugInfoToApiResultXmlFormat(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt(), ApiOptionsTest::testChange(), MWRestrictionsTest::testCheck(), ApiMainTest::testCheckConditionalRequestHeaders(), MediaWiki\Session\BotPasswordSessionProviderTest::testCheckSessionInfo(), ApiMainTest::testConditionalRequestHeadersOutput(), MediaWiki\Session\SessionTest::testConstructor(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), PasswordResetTest::testExecute_email(), ActionTest::testGetActionName_whenCanNotUseWikiPage_defaultsToView(), FauxRequestTest::testGetAllHeaders(), MediaWiki\Session\CookieSessionProviderTest::testGetCookie(), MediaWiki\Session\SessionManagerTest::testGetEmptySession(), MediaWiki\Session\SessionManagerTest::testGetGlobalSession(), FauxRequestTest::testGetHeader(), WebRequestTest::testGetIP(), WebRequestTest::testGetIpLackOfRemoteAddrThrowAnException(), MediaWiki\Session\SessionManagerTest::testGetSessionForRequest(), MediaWiki\Session\SessionManagerTest::testGetSessionFromInfo(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testGetSessionIdFromCookie(), FauxRequestTest::testGetSetHeader(), OutputPageTest::testHaveCacheVaryCookies(), ApiMainTest::testLacksSameOriginSecurity(), MediaWiki\Session\SessionManagerTest::testLoadSessionInfoFromStore(), BotPasswordTest::testLogin(), ApiOptionsTest::testMultiSelect(), MediaWiki\Session\BotPasswordSessionProviderTest::testNewSessionInfoForRequest(), ApiOptionsTest::testNoChanges(), ApiOptionsTest::testNoOptionname(), ApiOptionsTest::testNoToken(), ApiOptionsTest::testOptionResetValue(), ApiOptionsTest::testOptionWithValue(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSessionWithHook(), MediaWiki\Session\CookieSessionProviderTest::testProvideSessionInfo(), MediaWiki\Session\BotPasswordSessionProviderTest::testProvideSessionInfo(), ApiOptionsTest::testReset(), MediaWiki\Session\SessionBackendTest::testResetIdOfGlobalSession(), ApiOptionsTest::testResetKinds(), MediaWiki\Session\CookieSessionProviderTest::testSetLoggedOutCookie(), ApiOptionsTest::testSpecialOption(), MediaWiki\Session\CookieSessionProviderTest::testSuggestLoginUsername(), MediaWiki\Session\SessionBackendTest::testTakeOverGlobalSession(), ApiOptionsTest::testUnknownOption(), MediaWiki\Session\SessionBackendTest::testUnpersistOfGlobalSession(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testUnpersistSession(), MediaWiki\Session\CookieSessionProviderTest::testUnpersistSession(), ApiOptionsTest::testUserjsOption(), UploadStashTest::testValidRequestWithInvalidRequests(), UploadStashTest::testValidRequestWithValidRequests(), EditPage::tokenOk(), MediaWiki::tryNormaliseRedirect(), OutputPage::userCanPreview(), CategoryPage::view(), and ImagePage::view().

see documentation in includes Linker php for Linker::makeImageLink or false for current& $res

Definition at line 916 of file hooks.txt.

For QUnit the mediawiki tests qunit testrunner dependency will be added to any module& $ResourceLoader

Definition at line 2545 of file hooks.txt.

this hook is for auditing only $response

Definition at line 766 of file hooks.txt.

Referenced by ApiMain::checkMaxLag(), SpecialUnlinkAccounts::execute(), SpecialLinkAccounts::execute(), SpecialRunJobs::execute(), RunJobs::execute(), SpecialChangeCredentials::execute(), LoginSignupSpecialPage::execute(), SpecialPageExecutor::executeSpecialPage(), ApiMain::handleCORS(), ApiMain::handleException(), SpecialUnlinkAccounts::handleFormSubmit(), SpecialChangeCredentials::handleFormSubmit(), AuthManagerSpecialPage::handleFormSubmit(), RawAction::onView(), OutputPage::output(), MediaWiki\Session\ImmutableSessionProviderWithCookie::persistSession(), MediaWiki\Session\CookieSessionProvider::persistSession(), ResourceLoader::respond(), JobRunner::run(), OutputPage::sendCacheControl(), ApiMain::sendCacheHeaders(), MediaWiki\Session\CookieSessionProvider::setForceHTTPSCookie(), EditPage::setPostEditCookie(), SpecialUndelete::showFile(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), ApiOptionsTest::testChange(), ApiMainTest::testConditionalRequestHeadersOutput(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), ApiOptionsTest::testMultiSelect(), ApiOptionsTest::testOptionResetValue(), ApiOptionsTest::testOptionWithValue(), BatchRowUpdateTest::testReaderBasicIterate(), ApiOptionsTest::testReset(), ApiOptionsTest::testResetChangeOption(), ApiOptionsTest::testResetKinds(), ApiOptionsTest::testSpecialOption(), ApiOptionsTest::testUnknownOption(), ApiOptionsTest::testUserjsOption(), ResourceLoader::tryRespondFromFileCache(), MediaWiki\Session\ImmutableSessionProviderWithCookie::unpersistSession(), MediaWiki\Session\CookieSessionProvider::unpersistSession(), and wfStreamThumb().

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 & $ret

Definition at line 1802 of file hooks.txt.

Referenced by MediaWiki\Auth\ConfirmLinkAuthenticationRequest::__set_state(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::__set_state(), MediaWiki\Auth\ButtonAuthenticationRequest::__set_state(), MediaWiki\Auth\AuthenticationRequest::__set_state(), MemcachedClient::_load_items(), ApiQuerySiteinfo::appendExtensions(), ApiResult::applyTransformations(), Parser::argSubstitution(), ArrayUtils::arrayDiffAssocRecursive(), LanguageConverter::autoConvertToAllVariants(), MediaWiki\Auth\AuthManager::autoCreateUser(), ExternalStoreDB::batchFetchBlobs(), ExternalStoreDB::batchFetchFromURLs(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), Benchmarker::bench(), Parser::braceSubstitution(), LocalSettingsGenerator::buildMemcachedServerList(), SpecialPageFactory::capturePath(), CategoryViewer::columnList(), UploadFromChunks::concatenateChunks(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), LanguageZh::convertForSearchResult(), MediaHandler::convertMetadataVersion(), MagicVariableTest::createProviderUpTo(), MultiWriteBagOStuff::deleteObjectsExpiringBefore(), DatabaseOracle::doCommit(), CachedBagOStuff::doGet(), DatabaseMysql::doQuery(), DatabaseMysqli::doQuery(), DatabaseInstaller::doUpgrade(), MultiWriteBagOStuff::doWrite(), Installer::envCheckShellLocale(), ApiTag::execute(), ApiManageTags::execute(), ApiQueryAuthManagerInfo::execute(), FindHooks::execute(), SpecialEmailUser::execute(), PPFrame_Hash::expand(), PPFrame_DOM::expand(), Html::expandAttributes(), ApiRevisionDelete::extractStatusInfo(), MssqlBlob::fetch(), ExternalStoreDB::fetchBlob(), ExternalStoreDB::fetchFromURL(), ORAResult::fetchObject(), ORAResult::fetchRow(), ForeignAPIRepo::findBySha1(), ApiAuthManagerHelper::formatAuthenticationResponse(), ApiAuthManagerHelper::formatFields(), ApiParamInfo::formatHelpMessages(), RightsLogFormatter::formatParametersForApi(), ProtectLogFormatter::formatParametersForApi(), BlockLogFormatter::formatParametersForApi(), DeleteLogFormatter::formatParametersForApi(), ApiAuthManagerHelper::formatRequests(), SpecialPagesWithProp::formatResult(), DeletedContribsPager::formatRevisionRow(), DeletedContribsPager::formatRow(), ContribsPager::formatRow(), ApiRevisionDelete::formatStatusMessages(), GetConfiguration::formatVarDump(), CoreParserFunctions::gender(), Preferences::generateSkinOptions(), ApiFormatPhp::getAllowedParams(), ApiResetPassword::getAllowedParams(), ApiAMCreateAccount::getAllowedParams(), ApiFormatJson::getAllowedParams(), ApiFeedRecentChanges::getAllowedParams(), ApiQueryExtLinksUsage::getAllowedParams(), ApiFeedContributions::getAllowedParams(), ApiQueryAllRevisions::getAllowedParams(), ApiFeedWatchlist::getAllowedParams(), ApiQueryCategoryMembers::getAllowedParams(), ApiFormatBase::getAllowedParams(), ApiQueryAllImages::getAllowedParams(), ApiQueryBacklinksprop::getAllowedParams(), ApiQueryRevisions::getAllowedParams(), ApiQueryAllDeletedRevisions::getAllowedParams(), ApiQueryLogEvents::getAllowedParams(), RevDelArchivedFileItem::getApiData(), RevDelLogItem::getApiData(), RevDelRevisionItem::getApiData(), RevDelFileItem::getApiData(), HTMLFormField::getAttributes(), ApiQueryUserInfo::getCentralUserInfo(), RevisionDeleter::getChanges(), Preferences::getDateOptions(), HTMLFormFieldCloner::getDefault(), UserOptions::getDefaultOptionsNames(), MediaWiki\Session\TestUtils::getDummySessionBackend(), ApiResetPassword::getExamplesMessages(), ApiBase::getExamplesMessages(), MediaWiki\Auth\PasswordAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\UserDataAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::getFieldInfo(), Benchmarker::getFormattedResults(), ApiHelp::getHelpInternal(), MWDebug::getHTMLDebugLog(), Preferences::getImageSizes(), FileRepo::getInfo(), HTMLAutoCompleteSelectField::getInputHTML(), MediaWiki\Auth\PasswordAuthenticationRequestTest::getInstance(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::getInstance(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::getInstance(), TablePager::getLimitSelectList(), Title::getLinkURL(), SpecialVersion::getMediaWikiCredits(), ApiParamInfo::getModuleInfo(), User::getPasswordFactory(), ApiAuthManagerHelper::getPreservedRequest(), ApiResult::getResultData(), DatabaseTest::getSharedTableName(), ApiAuthManagerHelper::getStandardParams(), TablePager::getStartBody(), Preferences::getThumbSizes(), ParserOutput::getTimes(), User::getToken(), LanguageConverter::getURLVariant(), LanguageConverter::getUserVariant(), ApiMain::getVal(), Parser::getVariableValue(), SpecialVersion::getWgHooks(), SiteConfiguration::getWikiParams(), MWGrants::grantNames(), UserrightsPage::groupCheckboxes(), LBFactory::hasMasterChanges(), LBFactory::hasOrMadeRecentMasterChanges(), OutputPage::headElement(), Html::htmlHeader(), DatabaseMssql::insert(), DatabaseSqlite::insert(), DatabaseMssql::insertSelect(), User::isLocallyBlockedProxy(), LBFactory::laggedSlaveUsed(), Linker::link(), Linker::linkAttribs(), Linker::linkUrl(), HTMLFormFieldCloner::loadDataFromRequest(), Revision::loadFromConds(), HTMLFormField::lookupOptionsKeys(), Linker::makeHeadline(), Parser::makeImage(), Linker::makeMediaLinkFile(), Linker::makeSelfLinkObj(), LanguageConverter::markNoConversion(), UserPasswordPolicy::maxOfPolicies(), SiteConfiguration::mergeParams(), Html::namespaceSelector(), MediaWiki\Auth\AuthenticationResponse::newAbstain(), MediaWiki\Auth\AuthenticationResponse::newFail(), MediaWiki\Auth\AuthenticationResponse::newPass(), MediaWiki\Auth\AuthenticationResponse::newRedirect(), MediaWiki\Auth\AuthenticationResponse::newRestart(), MediaWiki\Auth\AuthenticationResponse::newUI(), Linker::normaliseSpecialPage(), Sanitizer::normalizeCharReferencesCallback(), Parser::normalizeLinkUrl(), MediaWiki\Site\MediaWikiPageNameNormalizer::normalizePageName(), Linker::normalizeSubpageLink(), File::normalizeTitle(), MediaWiki\Auth\AuthManager::normalizeUsername(), CoreParserFunctions::nse(), DatabaseMssql::numRows(), LanguageConverter::parseCachedTable(), ForeignAPIFile::parseMetadata(), MediaWiki::parseTitle(), User::passwordChangeInputAttribs(), ApiResult::path(), MWRestrictionsTest::provideCheck(), ApiDocumentationTest::provideDocumentationExists(), HtmlTest::provideElementsWithAttributesHavingDefaultValues(), LocalIdLookupTest::provideIsAttachedShared(), MediaWiki\Auth\AuthManager::providerArrayFromSpecs(), DatabaseBase::query(), XmlTypeCheck::readNext(), EnhancedChangesList::recentChangesLine(), KkConverter::regsConverter(), ApiResult::removeValue(), DatabaseSqlite::replace(), CategoryFinder::run(), MemcachedClient::run_command(), DatabaseUpdater::runUpdates(), DatabaseMssql::select(), UserMailer::sendInternal(), Cookie::serializeToHttpRequest(), WebRequest::setVal(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreationLogging(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), ApiLoginTest::testApiLoginBadPass(), ApiLoginTest::testApiLoginGoodPass(), MWRestrictionsTest::testArray(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateFailOnLogin(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), MediaWiki\Auth\AuthenticationRequestTest::testBasics(), MediaWiki\Auth\AuthManagerTest::testBeginAccountCreation(), MediaWiki\Auth\AuthManagerTest::testBeginAccountLink(), MediaWiki\Auth\AuthManagerTest::testBeginAuthentication(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testBeginSecondaryAuthentication(), ApiLoginTest::testBotPassword(), ParserMethodsTest::testCallParserFunction(), ApiMainTest::testCheckConditionalRequestHeaders(), MediaWiki\Auth\CreatedAccountAuthenticationRequestTest::testConstructor(), MediaWiki\Auth\AuthenticationResponseTest::testConstructors(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWiki\Auth\AuthManagerTest::testContinueAccountLink(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), ApiFormatPhpTest::testCrossDomainMangling(), ApiResultTest::testDeprecatedContinuation(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testFailResponse(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testForAccountCreation(), NewParserTest::testFuzzTests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequestsRequired(), MWRestrictionsTest::testJson(), MediaWiki\Auth\AuthenticationRequestTestCase::testLoadFromSubmission(), MediaWiki\Auth\AuthenticationRequestTest::testLoadFromSubmission(), WANObjectCacheTest::testLockTSE(), WANObjectCacheTest::testLockTSESlow(), MediaWiki\Session\SessionTest::testMethods(), MWRestrictionsTest::testNewDefault(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::testNewInvalid(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testRangeBlock(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAccountCreation(), MediaWikiTest::testTryNormaliseRedirect(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testUserForCreation(), ExifBitmapHandler::transformImageMagick(), SrConverter::translate(), KkConverter::translate(), Language::truncate_skip(), Language::truncateHtml(), DelayedParserTest::unleash(), SqlBagOStuff::unserialize(), WebRequest::unsetVal(), ApiResult::unsetValue(), StripState::unstripCallback(), DatabaseMssql::update(), WikiPage::updateIfNewerOn(), and UserOptions::USAGER().

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

Definition at line 246 of file hooks.txt.

Referenced by ExternalStoreMedium::batchFetchFromURLs(), ExternalStore::batchFetchFromURLs(), PPTemplateFrame_Hash::cachedExpand(), PPTemplateFrame_DOM::cachedExpand(), MediaWikiTestCase::checkHasGzip(), MediaWiki\Tidy\RaggettExternal::cleanWrapped(), MediaWiki\Tidy\RaggettInternalHHVM::cleanWrapped(), MediaWiki\Tidy\RaggettInternalPHP::cleanWrapped(), HTMLForm::displaySection(), DjVuHandler::doTransform(), ApiUndelete::execute(), ApiEmailUser::execute(), ApiPatrol::execute(), ApiExpandTemplates::execute(), ApiUnblock::execute(), ApiBlock::execute(), ApiRollback::execute(), NamespaceConflictChecker::execute(), ResourceLoaderContext::expandModuleNames(), ArrayDiffFormatter::format(), ApiQueryBacklinks::getAllowedParams(), Interwiki::getAllPrefixesDB(), CheckSyntax::getGitModifiedFiles(), FindHooks::getHooksFromOnlineDocCategory(), TransformationalImageHandler::getMagickVersion(), UnusedimagesPage::getQueryInfo(), LinkSearchPage::getQueryInfo(), ApiQueryUserInfo::getRateLimits(), SiteConfiguration::getSetting(), WikiPage::insertRedirect(), MediaHandler::logErrorForExternalProcess(), ApiMove::moveSubpages(), Title::moveSubpages(), RecentChange::parseToRCType(), ApiQueryImageInfo::processMetaData(), WfExpandUrlTest::provideExpandableUrls(), SvgHandler::rasterize(), Maintenance::readlineEmulation(), DoubleRedirectsPage::reallyGetQueryInfo(), ApiFormatXml::recXmlPrint(), MediaHandler::removeBadFile(), DjVuImage::retrieveMetaData(), JpegHandler::rotate(), BitmapHandler::rotate(), Hooks::run(), EmailConfirmation::showRequestForm(), ExifBitmapHandler::swapICCProfile(), MediaWiki\Session\SessionTest::testMethods(), JpegPixelFormatTest::testPixelFormatRendering(), BitmapHandler::transformCustom(), BitmapHandler::transformImageMagick(), MediaWiki\Tidy\RaggettBase::validate(), RandomImageGenerator::writeImageWithApi(), and RandomImageGenerator::writeImageWithCommandLine().

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

Definition at line 1588 of file hooks.txt.

Referenced by RevisionStorageTest::assertRevEquals(), DummyLinker::buildRollbackLink(), Linker::buildRollbackLink(), CleanupSpam::cleanupArticle(), HistoryPager::curLink(), DifferenceEngine::deletedLink(), HistoryPager::diffButtons(), SpecialUndelete::diffHeader(), PopulateRevisionLength::doDBUpdates(), PoolWorkArticleView::doWork(), ApiSetNotificationTimestamp::execute(), ApiPatrol::execute(), ApiExpandTemplates::execute(), CheckBadRedirects::execute(), ApiQueryDeletedrevs::execute(), GetTextMaint::execute(), ApiParse::execute(), ImportTextFiles::execute(), HistoryAction::feedItem(), SpecialRecentChanges::filterByCategories(), FeedUtils::formatDiffRow(), DeletedContribsPager::formatRevisionRow(), SpecialMergeHistory::formatRevisionRow(), SpecialUndelete::formatRevisionRow(), DeletedContribsPager::formatRow(), SpecialNewpages::formatRow(), ContribsPager::formatRow(), DummyLinker::generateRollback(), Skin::generateRollback(), Linker::generateRollback(), RevDelRevisionItem::getApiData(), ContentHandler::getAutoDeleteReason(), CoreParserFunctions::getCachedRevisionObject(), WikiPage::getContentModel(), EditPage::getCurrentContent(), Title::getEarliestRevTime(), User::getNewMessageLinks(), SpecialUndelete::getPageLink(), RawAction::getRawText(), Parser::getRevisionObject(), DummyLinker::getRollbackEditCount(), Linker::getRollbackEditCount(), ApiQueryRevisions::getRollbackToken(), BackupReader::handleLogItem(), DumpRenderer::handleRevision(), DumpIterator::handleRevision(), BackupReader::handleRevision(), FixDefaultJsonContentPages::handleRow(), HistoryPager::historyLine(), ChangesList::insertRollback(), MovePage::isValidMoveTarget(), Title::isValidMoveTarget(), DifferenceEngine::loadRevisionData(), RevisionStorageTest::makeRevision(), Revision::newFromConds(), RevisionTest::newTestRevision(), CoreParserFunctions::pagesize(), MediaWiki::parseTitle(), RebuildTextIndex::populateSearchIndex(), BaseDump::prefetch(), PreprocessDump::processRevision(), CompareParsers::processRevision(), SearchDump::processRevision(), LocalFile::recordUpload2(), WikiPage::replaceSectionAtRev(), WikiPage::replaceSectionContent(), Diff::reverse(), CoreParserFunctions::revisionday(), CoreParserFunctions::revisionday2(), DifferenceEngine::revisionDeleteLink(), CoreParserFunctions::revisionid(), CoreParserFunctions::revisionmonth(), CoreParserFunctions::revisionmonth1(), CoreParserFunctions::revisiontimestamp(), CoreParserFunctions::revisionuser(), CoreParserFunctions::revisionyear(), HistoryPager::revLink(), DummyLinker::revUserLink(), Linker::revUserLink(), DummyLinker::revUserTools(), Linker::revUserTools(), ApiQueryDeletedRevisions::run(), ApiQueryAllRevisions::run(), ApiQueryAllDeletedRevisions::run(), ApiQueryRevisions::run(), Article::showDiffPage(), SpecialBookSources::showList(), SpecialUndelete::showRevision(), Parser::statelessFetchTemplate(), RevDelRevisionList::suggestTarget(), RevisionStorageTest::testConstructFromRow(), RevisionTest::testConstructWithContent(), RevisionTest::testConstructWithText(), RevisionTest::testGetContent(), RevisionStorageTest::testGetContent(), RevisionStorageTest::testGetContent_failure(), RevisionTest::testGetContentClone(), RevisionTest::testGetContentFormat(), RevisionStorageTest::testGetContentFormat(), RevisionTest::testGetContentHandler(), RevisionTest::testGetContentModel(), RevisionStorageTest::testGetContentModel(), RevisionTest::testGetContentUncloned(), RevisionStorageTest::testGetPage(), WikiPageTest::testGetRevision(), RevisionTest::testGetSha1(), RevisionTest::testGetSize(), RevisionStorageTest::testGetText(), RevisionTest::testGetText(), ApiRevisionDeleteTest::testHidingRevisions(), RevisionStorageTest::testNewFromArchiveRow(), RevisionStorageTest::testNewFromId(), RevisionStorageTest::testNewFromRow(), RevisionStorageTest::testNewNullRevision(), Maintenance::updateSearchIndexForPage(), ChangeTags::updateTagsWithChecks(), PopulateRevisionSha1::upgradeLegacyArchiveRow(), PopulateRevisionLength::upgradeRow(), PopulateRevisionSha1::upgradeRow(), DumpFilter::writeLogItem(), DumpMultiWriter::writeRevision(), DumpFilter::writeRevision(), and ExportProgressFilter::writeRevision().

this hook is for auditing only etc 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
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

Definition at line 2342 of file hooks.txt.

Referenced by WikiPage::replaceSectionAtRev().

the value to return A Title object or null for latest to be modified or replaced by the hook handler or if authentication is not possible after cache objects are set for highlighting or change the value of $siteNotice and return false to alter it& $siteNotice

Definition at line 2585 of file hooks.txt.

Referenced by Skin::getSiteNotice().

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

Definition at line 1008 of file hooks.txt.

Referenced by WikiImporter::__construct(), StatusValue::__toString(), FileBackendMultiWrite::accessibilityCheck(), PoolCounterRedis::acquireForAnyone(), PoolCounterRedis::acquireForMe(), UploadFromChunks::addChunk(), SwiftFileBackend::addMissingMetadata(), DumpTestCase::addRevision(), FetchTextTest::addRevision(), MediaWiki\Auth\AuthManager::allowsAuthenticationDataChange(), FileBackendTest::assertBackendPathsConsistent(), EditPageTest::assertEdit(), FileBackendTest::assertGoodStatus(), FileOpBatch::attempt(), FileOp::attempt(), EditPage::attemptSave(), MediaWiki\Auth\AuthManager::autoCreateUser(), DatabaseBase::begin(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::beginSecondaryAccountCreation(), MediaWiki\Auth\AuthManager::canCreateAccount(), MssqlInstaller::canCreateAccounts(), MysqlInstaller::canCreateAccounts(), PostgresInstaller::canCreateObjectsForWebUser(), ChangeTags::canDeleteTag(), User::changeAuthenticationData(), MWRestrictions::check(), MediaWiki\Auth\AuthManager::checkAccountCreatePermissions(), SpecialBlock::checkExecutePermissions(), SpecialPasswordReset::checkExecutePermissions(), PasswordPolicyChecks::checkMaximalPasswordLength(), PasswordPolicyChecks::checkMinimalPasswordLength(), PasswordPolicyChecks::checkMinimumPasswordLengthToLogin(), PasswordPolicyChecks::checkPasswordCannotMatchBlacklist(), PasswordPolicyChecks::checkPasswordCannotMatchUsername(), User::checkPasswordValidity(), MovePage::checkPermissions(), SpecialCreateAccount::checkPermissions(), MergeHistory::checkPermissions(), UserPasswordPolicy::checkPolicies(), PasswordPolicyChecks::checkPopularPasswordBlacklist(), FileRepo::cleanDir(), LocalFileRestoreBatch::cleanup(), FileRepo::cleanupBatch(), LocalRepo::cleanupDeletedBatch(), FSLockManager::closeLockHandles(), WikiPage::commitRollback(), FileBackendStore::concatenate(), FileRepo::concatenate(), UploadFromChunks::concatenateChunks(), FileBackendMultiWrite::consistencyCheck(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), ApiResult::convertStatusToArray(), CopyFileBackend::copyFileBatch(), FileBackendStore::copyInternal(), SwiftFileBackend::createContainer(), DatabaseInstaller::createExtensionTables(), FileBackendStore::createInternal(), Installer::createMainpage(), Installer::createSysop(), OracleInstaller::createTables(), SqliteInstaller::createTables(), PostgresInstaller::createTables(), MssqlInstaller::createTables(), LocalFile::delete(), FileRepo::deleteBatch(), SwiftFileBackend::deleteContainer(), ApiTestCaseUpload::deleteFileByTitle(), FileBackendStore::deleteInternal(), LocalFile::deleteOld(), ChangeTags::deleteTagEverywhere(), CopyFileBackend::delFileBatch(), FileBackendStore::describeInternal(), ApiBase::dieStatus(), AuthManagerSpecialPage::displayForm(), CopyFileOp::doAttempt(), MoveFileOp::doAttempt(), Block::doAutoblock(), FileBackendStore::doClean(), FSFileBackend::doCleanInternal(), SwiftFileBackend::doCleanInternal(), FileBackendStore::doConcatenate(), MemoryFileBackend::doCopyInternal(), FSFileBackend::doCopyInternal(), SwiftFileBackend::doCopyInternal(), WikiPage::doCreate(), MemoryFileBackend::doCreateInternal(), FSFileBackend::doCreateInternal(), SwiftFileBackend::doCreateInternal(), LocalFileMoveBatch::doDBUpdates(), FileDeleteForm::doDelete(), Article::doDelete(), WikiPage::doDeleteArticle(), WikiPage::doDeleteArticleReal(), MemoryFileBackend::doDeleteInternal(), FSFileBackend::doDeleteInternal(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), SwiftFileBackend::doDirectoryExists(), FileBackendMultiWrite::doDirectoryOp(), WikiPage::doEditContent(), Installer::doEnvironmentChecks(), FSFileBackend::doExecuteOpHandlesInternal(), MemcLockManager::doFreeLocksOnServer(), Installer::doGenerateKeys(), MemcLockManager::doGetLocksOnServer(), MySqlLockManager::doGetLocksOnServer(), PostgreSqlLockManager::doGetLocksOnServer(), FSLockManager::doLock(), QuorumLockManager::doLockByType(), LockManager::doLockByType(), QuorumLockManager::doLockingRequestBucket(), DBFileJournal::doLogChangeBatch(), WikiPage::doModify(), FileBackendStore::doMoveInternal(), FSFileBackend::doMoveInternal(), SwiftFileBackend::doMoveInternal(), UploadStashCleanup::doOperations(), FileBackendMultiWrite::doOperationsInternal(), FileBackendStore::doOperationsInternal(), TestFileOpPerformance::doPerfTest(), CreateFileOp::doPrecheck(), StoreFileOp::doPrecheck(), CopyFileOp::doPrecheck(), MoveFileOp::doPrecheck(), DeleteFileOp::doPrecheck(), DescribeFileOp::doPrecheck(), RevDelFileList::doPreCommitUpdates(), FileBackendStore::doPrepare(), FSFileBackend::doPrepareInternal(), SwiftFileBackend::doPrepareInternal(), FileBackendStore::doPublish(), FSFileBackend::doPublishInternal(), SwiftFileBackend::doPublishInternal(), DBFileJournal::doPurgeOldLogs(), FileBackendMultiWrite::doQuickOperationsInternal(), FileBackendStore::doQuickOperationsInternal(), FileBackendStore::doSecure(), FSFileBackend::doSecureInternal(), SwiftFileBackend::doSecureInternal(), FSLockManager::doSingleLock(), FSLockManager::doSingleUnlock(), MemoryFileBackend::doStoreInternal(), FSFileBackend::doStoreInternal(), SwiftFileBackend::doStoreInternal(), MemoryFileBackend::doStreamFile(), FileBackendStore::doStreamFile(), SwiftFileBackend::doStreamFile(), MovePageForm::doSubmit(), FileBackendTest::doTestConcatenate(), FileBackendTest::doTestCopy(), FileBackendTest::doTestCreate(), FileBackendTest::doTestDelete(), FileBackendTest::doTestDescribe(), FileBackendTest::doTestDoOperations(), FileBackendTest::doTestDoOperationsFailing(), FileBackendTest::doTestDoOperationsPipeline(), FileBackendTest::doTestDoQuickOperations(), FileBackendTest::doTestGetDirectoryList(), FileBackendTest::doTestGetFileContents(), FileBackendTest::doTestGetFileHttpUrl(), FileBackendTest::doTestGetFileList(), FileBackendTest::doTestGetFileStat(), FileBackendTest::doTestGetLocalCopy(), FileBackendTest::doTestGetLocalReference(), FileBackendTest::doTestLockCalls(), FileBackendTest::doTestMove(), FileBackendTest::doTestPrepareAndClean(), FileBackendTest::doTestRecursiveClean(), FileBackendTest::doTestStore(), FileBackendTest::doTestStreamFile(), SvgHandler::doTransform(), FSLockManager::doUnlock(), QuorumLockManager::doUnlockByType(), LockManager::doUnlockByType(), QuorumLockManager::doUnlockingRequestBucket(), WatchAction::doUnwatch(), WatchAction::doWatch(), EditPage::edit(), UserrightsPage::editUserGroupsForm(), DatabaseInstaller::enableLB(), WebInstallerInstall::endStage(), CliInstaller::endStage(), Installer::envCheckDB(), PoolCounterWorkViaCallback::error(), PoolWorkArticleView::error(), WebInstallerExistingWiki::execute(), WebInstallerWelcome::execute(), WebInstallerDBConnect::execute(), WebInstallerDBSettings::execute(), ApiManageTags::execute(), ApiProtect::execute(), ApiMergeHistory::execute(), ApiMove::execute(), ApiRevisionDelete::execute(), ApiChangeAuthenticationData::execute(), ApiUpload::execute(), ApiEditPage::execute(), SpecialUnlinkAccounts::execute(), SpecialLinkAccounts::execute(), ApiUnblock::execute(), ApiFileRevert::execute(), ApiDelete::execute(), ApiBlock::execute(), ChangePassword::execute(), MigrateFileRepoLayout::execute(), Protect::execute(), ApiStashEdit::execute(), ApiRemoveAuthenticationData::execute(), EditCLI::execute(), ImportTextFiles::execute(), ApiImageRotate::execute(), ApiResetPassword::execute(), MoveBatch::execute(), CreateAndPromote::execute(), RebuildLocalisationCache::execute(), ApiLogin::execute(), FileDeleteForm::execute(), SpecialChangeCredentials::execute(), CommandLineInstaller::execute(), ApiQueryUsers::execute(), PoolCounterWork::execute(), PasswordReset::execute(), ZipDirectoryReader::execute(), LoginSignupSpecialPage::execute(), LocalFileRestoreBatch::execute(), LocalFileMoveBatch::execute(), JobRunner::executeJob(), ApiRevisionDelete::extractStatusInfo(), SpecialEditTags::failure(), SpecialRevisionDelete::failure(), Parser::fetchScaryTemplateMaybeFromCache(), MemcLockManager::freeLocksOnServer(), RedisLockManager::freeLocksOnServer(), File::generateAndSaveThumb(), DifferenceEngine::generateTextDiffBody(), DatabaseBase::getCacheSetOptions(), ApiUpload::getChunkResult(), PostgresInstaller::getConnection(), DatabaseInstaller::getConnection(), SwiftFileBackend::getDirListPageInternal(), MysqlInstaller::getEngines(), ApiBase::getErrorFromStatus(), SwiftFileBackend::getFileListPageInternal(), PostgresInstaller::getInstallUserPermissions(), RedisLockManager::getLocksOnServer(), MemcLockManager::getLocksOnServer(), DBLockManager::getLocksOnServer(), DatabaseMysqlBase::getMysqlStatus(), PostgresInstaller::getPgConnection(), ApiUserrights::getUrUser(), WebInstallerExistingWiki::handleExistingUpgrade(), ThumbnailRenderJob::hitThumbUrl(), ForeignAPIRepo::httpGet(), WikiRevision::importUpload(), WebInstallerExistingWiki::importVariables(), FileRepo::initZones(), EditPage::internalAttemptSave(), PasswordReset::isAllowed(), MovePage::isValidFileMove(), MergeHistory::isValidMerge(), MovePage::isValidMove(), RecompressTracked::killSlaveProcs(), MessageCache::loadFromDBWithLock(), LocalFile::lock(), LockManager::lockByType(), SpecialUserLogin::logAuthResult(), SpecialCreateAccount::logAuthResult(), PoolCounterWork::logError(), BotPassword::login(), DatabaseMysqlBase::masterPosWait(), SpecialBlock::maybeAlterFormDefaults(), MergeHistory::merge(), MovePage::move(), LocalFile::move(), FileBackendStore::moveInternal(), Title::moveTo(), DatabaseInstaller::needsUpgrade(), FileRepo::newFatal(), FileRepo::newGood(), SwiftFileBackend::objectListing(), SwiftFileBackend::onError(), SpecialChangeContentModel::onSubmit(), SpecialExpandTemplates::onSubmitInput(), MysqlInstaller::openConnection(), OracleInstaller::openConnection(), SqliteInstaller::openConnection(), MssqlInstaller::openConnection(), PostgresInstaller::openConnectionToAnyDB(), PostgresInstaller::openConnectionWithParams(), PostgresInstaller::openPgConnection(), OracleInstaller::openSYSDBAConnection(), SpecialUploadStash::outputRemoteScaledThumb(), AuthManagerSpecialPage::performAuthenticationStep(), Installer::performInstallation(), ApiUpload::performUpload(), UploadBase::performUpload(), DatabaseInstaller::populateInterwikiTable(), Installer::populateSiteStats(), FileOp::precheck(), FileOp::precheckDestExistence(), MysqlInstaller::preUpgrade(), MssqlInstaller::preUpgrade(), SpecialTags::processCreateTagForm(), SpecialBlock::processForm(), ApiTag::processIndividual(), CapsCleanup::processRow(), SquidPurgeClient::processStatusLine(), SpecialTags::processTagForm(), SpecialUnblock::processUnblock(), SpecialUpload::processUpload(), MWRestrictionsTest::provideCheck(), StatusTest::provideGetMessage(), StatusTest::provideGetWikiTextAndHtml(), FSLockManager::pruneKeyLockFiles(), FileRepo::publish(), FileRepo::publishBatch(), LocalFile::publishTo(), FileRepo::quickCleanDir(), FileRepo::quickImportBatch(), FileRepo::quickPurgeBatch(), ZipDirectoryReaderTest::readZipAssertError(), ZipDirectoryReaderTest::readZipAssertSuccess(), UploadFromUrl::reallyFetchFile(), LocalFile::recordUpload2(), MediaWiki\Session\Session\BotPasswordSessionProvider::refreshSessionInfo(), PoolCounterRedis::release(), MySqlLockManager::releaseAllLocks(), PostgreSqlLockManager::releaseAllLocks(), Http::request(), LocalFile::restore(), FileBackendMultiWrite::resyncFiles(), ThumbnailRenderJob::run(), AssembleUploadChunksJob::run(), EmaillingJob::run(), PublishStashedFileJob::run(), MigrateFileRepoLayout::runBatch(), EditPage::runPostMergeFilters(), ProtectionForm::save(), EraseArchivedFile::scrubVersion(), ApiAuthManagerHelper::securitySensitiveOperation(), MediaWiki\Auth\AuthManager::securitySensitiveOperationStatus(), UserMailer::send(), UserMailer::sendInternal(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendNewAccountEmail(), SwiftFileBackend::setContainerAccess(), DatabaseUpdater::setFileAccess(), MediaWiki\Auth\AuthManagerAuthPlugin::setPassword(), User::setPasswordInternal(), WikiImporter::setTargetRootPage(), MigrateFileRepoLayoutTest::setUp(), SqliteInstaller::setupDatabase(), OracleInstaller::setupDatabase(), MysqlInstaller::setupDatabase(), PostgresInstaller::setupDatabase(), MssqlInstaller::setupDatabase(), PostgresInstaller::setupPLpgSQL(), PostgresInstaller::setupSchema(), DatabaseInstaller::setupSchemaVars(), SqliteInstaller::setupSearchIndex(), OracleInstaller::setupUser(), MysqlInstaller::setupUser(), MssqlInstaller::setupUser(), PostgresInstaller::setupUser(), RevDelList::setVisibility(), WebInstaller::showStatusBox(), ForkController::start(), DatabaseInstaller::stepApplySourceFile(), FileRepo::store(), FileRepo::storeBatch(), FileBackendStore::storeInternal(), FileBackendStore::streamFile(), WebInstallerName::submit(), SpecialEmailUser::submit(), SpecialEditTags::submit(), SpecialRevisionDelete::submit(), PostgresInstaller::submitConnectForm(), OracleInstaller::submitConnectForm(), MysqlInstaller::submitConnectForm(), MssqlInstaller::submitConnectForm(), EmailConfirmation::submitSend(), PostgresInstaller::submitSettingsForm(), MysqlInstaller::submitSettingsForm(), SyncFileBackend::syncBackends(), SyncFileBackend::syncFileBatch(), MediaWikiTestCase::tearDown(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreationEmail(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testCheckAccountCreatePermissions(), ApiMainTest::testCheckConditionalRequestHeaders(), MergeHistoryTest::testCheckPermissions(), UserPasswordPolicyTest::testCheckUserPassword(), StatusTest::testCleanParams(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), ApiResultTest::testDeprecatedFunctions(), ApiErrorFormatterTest::testErrorFormatter(), ApiErrorFormatterTest::testErrorFormatterBC(), StatusTest::testErrorWithMessage(), PasswordResetTest::testExecute_email(), StatusTest::testFatalWithMessage(), StatusTest::testGetErrorMessage(), StatusTest::testGetErrorMessageArray(), StatusTest::testGetErrorsByType(), StatusTest::testGetStatusArrayWithNonObjectMessages(), StatusTest::testGetValue(), StatusTest::testHasMessage(), StatusTest::testIsGood(), StatusTest::testIsOk(), MergeHistoryTest::testIsValidMerge(), MergeHistoryTest::testIsValidMergeRevisionLimit(), MovePageTest::testIsValidMove(), BotPasswordTest::testLogin(), StatusTest::testNewFatalWithMessage(), StatusTest::testNewFatalWithString(), StatusTest::testNewGood(), StatusTest::testOkAndErrors(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationDataEmail(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testRangeBlock(), StatusTest::testReplaceMessage(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), StatusTest::testSetResult(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testTestUserForCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestUserForCreation(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), StatusTest::testWakeUpSanitizesCallback(), StatusTest::testWarningWithMessage(), MediaWiki\Tidy\Html5Depurate::tidy(), MediaWiki::triggerJobs(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), AuthManagerSpecialPage::trySubmit(), SpecialUndelete::undelete(), PageArchive::undeleteRevisions(), LockManager::unlockByType(), ChangeTagsLogList::updateChangeTagsOnAll(), ChangeTagsRevisionList::updateChangeTagsOnAll(), RefreshFileHeaders::updateFileHeaders(), LocalFile::upload(), OldLocalFile::uploadOld(), SpecialBlock::validateTarget(), SpecialBlock::validateTargetField(), UploadBase::verifyFile(), UploadBase::verifyPartialFile(), PoolCounterRedis::waitForSlotOrNotif(), ApiWatch::watchTitle(), wfGenerateThumbnail(), wfStreamThumb(), wfThumbError(), and wfThumbErrorText().

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException $suppressed

Definition at line 1936 of file hooks.txt.

Referenced by MWExceptionHandler::logError(), and DifferenceEngine::showDiffPage().

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 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 $tag

Definition at line 969 of file hooks.txt.

Referenced by SqlBagOStuff::__construct(), ChangeTags::activateTagWithChecks(), ApiResult::addArrayType(), ApiResult::addArrayTypeRecursive(), ParserOutput::addHeadItem(), ApiResult::addIndexedTagName(), ApiResult::addIndexedTagNameRecursive(), ApiErrorFormatter::addMessagesFromStatus(), ApiErrorFormatter::addWarningOrError(), ApiErrorFormatter_BackCompat::addWarningOrError(), SpecialEditTags::buildCheckBoxes(), ChangeTags::canActivateTag(), ChangeTags::canCreateTag(), ChangeTags::canDeactivateTag(), ChangeTags::canDeleteTag(), ChangeTags::createTagWithChecks(), ChangeTags::deactivateTagWithChecks(), ChangeTags::defineTag(), ChangeTags::deleteTagEverywhere(), ChangeTags::deleteTagWithChecks(), UploadBase::detectScript(), XMPReader::doAttribs(), WikiImporter::doImport(), SpecialTags::doTagRow(), XMPReader::endElementModeLi(), XMPReader::endElementModeQDesc(), XMPReader::endElementModeSimple(), XMPReader::endElementNested(), ApiQueryTags::execute(), ApiParse::formatHeadItems(), SvgHandler::formatMetadata(), MediaHandler::formatMetadataHelper(), ChangeTags::formatSummaryRow(), IPTC::getCharset(), SvgHandler::getCommonMetaArray(), RedisBagOStuff::getConnection(), OutputPage::getHeadLinksArray(), ApiHelp::getHelpInternal(), ApiParamInfo::getModuleInfo(), ParserTest::getParser(), SiteConfiguration::getSetting(), WikiImporter::handleContributor(), WikiImporter::handleLogItem(), WikiImporter::handlePage(), WikiImporter::handleRevision(), WikiImporter::handleSiteInfo(), WikiImporter::handleUpload(), Html::htmlHeader(), ManualLogEntry::insert(), Language::isKnownLanguageTag(), HTMLCheckMatrix::isTagForcedOff(), HTMLCheckMatrix::isTagForcedOn(), ChangeTags::logTagManagementAction(), Exif::makeFilteredData(), FormatMetadata::makeFormattedData(), IPTC::parse(), SpecialTags::processCreateTagForm(), SpecialTags::processTagForm(), SVGReader::read(), Parser::replaceTransparentTags(), Linker::revDeleteLink(), IEContentAnalyzer::sampleData(), XMPReader::saveValue(), OutputPage::setETag(), Parser::setFunctionTagHook(), Parser::setHook(), ApiResult::setIndexedTagName(), ApiResult::setIndexedTagName_internal(), ApiResult::setIndexedTagName_recursive(), ApiResult::setIndexedTagNameRecursive(), Parser::setTransparentTagHook(), SpecialTags::showActivateDeactivateForm(), ChangesList::showCharacterDifference(), SpecialTags::showDeleteTagForm(), SpecialTags::showTagList(), XMPReader::startElement(), XMPReader::startElementModeInitial(), XMPReader::startElementModeSimple(), XMPReader::startElementModeStruct(), ChangeTags::tagDescription(), TagHookTest::testBadFunctionTagHooks(), TagHookTest::testBadTagHooks(), ApiDocumentationTest::testDocumentationExists(), TagHookTest::testFunctionTagHooks(), TagHookTest::testTagHooks(), Language::truncate_endBracket(), Language::truncateHtml(), ChangeTags::undefineTag(), ChangeTags::updateTags(), Exif::validate(), ApiHelp::wrap(), and Xml::wrapClass().

this hook is for auditing only etc 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 $time

Definition at line 1616 of file hooks.txt.

Referenced by OldLocalFile::__construct(), MediaWikiPHPUnitTestListener::addError(), MediaWikiPHPUnitTestListener::addFailure(), MediaWikiPHPUnitTestListener::addIncompleteTest(), MediaWikiPHPUnitTestListener::addSkippedTest(), ApiFormatBase::closePrinter(), LBFactory::commitMasterChanges(), JobQueueAggregatorRedis::doGetAllReadyWikiQueues(), DBFileJournal::doGetPositionAtTime(), FileBackendTest::doTestGetFileStat(), PoolWorkArticleView::doWork(), MediaWikiPHPUnitTestListener::endTest(), BenchmarkHooks::execute(), SyncFileBackend::execute(), Parser::fetchFileAndTitle(), RepoGroup::findFile(), FileRepo::findFile(), FileRepo::findFileFromKey(), MediaWiki\Logger\LegacyLogger::formatAsWfDebugLog(), MIMEsearchPage::formatResult(), FileDuplicateSearchPage::formatResult(), NewFilesPager::formatRow(), SpecialNewpages::formatRow(), DifferenceEngine::generateTextDiffBody(), WANObjectCache::getCheckKeyTime(), ProtectionForm::getExpiry(), SpecialUndelete::getFileLink(), User::getFirstEditTimestamp(), DatabaseMysqlBase::getLagFromPtHeartbeat(), SpecialUndelete::getPageLink(), FileJournal::getPositionAtTime(), SectionProfiler::getTime(), UIDGenerator::getTimeAndDelay(), UIDGenerator::getTimestampedID128(), UIDGenerator::getTimestampedID88(), UIDGenerator::intervalsSinceGregorianBinary(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::isTimestampValid(), SpecialUndelete::loadRequest(), LogEventsList::logLine(), ApiMain::logRequest(), DummyLinker::makeBrokenImageLinkObj(), Linker::makeBrokenImageLinkObj(), FormatMetadata::makeFormattedData(), Parser::makeImage(), DummyLinker::makeImageLink(), Linker::makeImageLink(), DummyLinker::makeMediaLinkObj(), Linker::makeMediaLinkObj(), DummyLinker::makeThumbLink2(), Linker::makeThumbLink2(), UIDGenerator::millisecondsSinceEpochBinary(), ForeignAPIRepo::newFile(), FileRepo::newFile(), OldLocalFile::newFromTitle(), User::newTouchedTimestamp(), IPTC::parse(), Preferences::profilePreferences(), ZipDirectoryReader::readCentralDirectory(), EmailConfirmation::showRequestForm(), SpecialUndelete::showRevision(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSession(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampNotForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_notWatchedPageForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedLatestRevisionForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedNotLatestRevisionForced(), IPTC::timeHelper(), and Language::translateBlockExpiry().

do that in ParserLimitReportFormat instead use this to modify the parameters of the image $title

Definition at line 916 of file hooks.txt.

Referenced by WikiFilePage::__construct(), HTMLFileCache::__construct(), WikiPage::__construct(), LinksUpdate::__construct(), LogPage::actionText(), ImageGalleryBase::add(), OutputPage::addAcceptLanguage(), ParserTest::addArticle(), OutputPage::addCategoryLinks(), TextPassDumperDatabaseTest::addDBData(), FetchTextTest::addDBData(), SpecialMyLanguageTest::addDBDataOnce(), CategoryMembershipChangeTest::addDBDataOnce(), ParserOutput::addInterwikiLink(), LinkCache::addLink(), BackupDumperLoggerTest::addLogEntry(), LinkBatch::addResultToCache(), OutputPage::addReturnTo(), ParserOutput::addTemplate(), ApiQueryBase::addTitleInfo(), Skin::addToSidebarPlain(), ParserOutput::addTrackingCategory(), User::addWatch(), OutputPage::addWikiText(), OutputPage::addWikiTextTidy(), OutputPage::addWikiTextTitleTidy(), OutputPage::addWikiTextWithTitle(), ApiQuerySiteinfo::appendNamespaceAliases(), ApiQuerySiteinfo::appendNamespaces(), ApiQuerySiteinfo::appendRightsInfo(), EditPageTest::assertEdit(), BackupDumperLoggerTest::assertLogItem(), SpecialMyLanguageTest::assertTitle(), RCCacheEntryFactoryTest::assertTitleLink(), EmailConfirmation::attemptConfirm(), CoreParserFunctions::basepagename(), CoreParserFunctions::basepagenamee(), SpecialUserLogin::beforeExecute(), WikiImporter::beforeImportPage(), Parser::braceSubstitution(), SkinTemplate::buildContentNavigationUrls(), ChangesFeed::buildItems(), SkinTemplate::buildPersonalUrls(), SpecialEditWatchlist::buildRemoveLine(), Linker::buildRollbackLink(), ChangeTags::buildTagFilterSelector(), ChangeTags::canCreateTag(), SpecialPageFactory::capturePath(), CoreParserFunctions::cascadingsources(), Revision::checkContentModel(), SpecialComparePages::checkExistingTitle(), SpecialPage::checkLoginSecurityLevel(), ApiFileRevert::checkPermissions(), ApiImageRotate::checkPermissions(), RevisionDeleter::checkRevisionExistence(), Orphans::checkSeparation(), SpecialEditWatchlist::checkTitle(), Skin::checkTitle(), UploadBase::checkWarnings(), CleanupSpam::cleanupArticle(), SpecialEditWatchlist::cleanupWatchlist(), LinkCache::clearBadLink(), RepoGroup::clearCache(), HTMLFileCache::clearFileCache(), User::clearNotification(), DummyLinker::commentBlock(), Skin::commentBlock(), Linker::commentBlock(), Article::confirmDelete(), LanguageConverter::convertTitle(), Language::convertTitle(), Revision::countByTitle(), ApiFeedWatchlist::createFeedItem(), NaiveForeignTitleFactory::createForeignTitle(), NamespaceAwareForeignTitleFactory::createForeignTitle(), ApiDelete::delete(), Article::delete(), DifferenceEngine::deletedLink(), ApiDelete::deleteFile(), ApiTestCaseUpload::deleteFileByTitle(), SpecialRedirect::dispatchFile(), CoreParserFunctions::displaytitle(), DifferenceEngineTest::doEdits(), WikiPage::doEditUpdates(), SpecialExport::doExport(), ApiQuery::doExport(), SpecialRecentChangesLinked::doMainQuery(), RecompressTracked::doPage(), JobQueueDB::doPop(), PurgeList::doPurge(), WikiPage::doPurge(), GenderCache::doTitlesArray(), LinksDeletionUpdate::doUpdate(), LinkHolderArray::doVariants(), ApiTestCase::editPage(), PageExists::execute(), Undelete::execute(), ApiWatch::execute(), CompareParserCache::execute(), ApiSetNotificationTimestamp::execute(), CheckBadRedirects::execute(), ApiQueryAllMessages::execute(), ApiQueryLangLinks::execute(), ApiPurge::execute(), ApiQueryCategoryInfo::execute(), ApiQueryDeletedrevs::execute(), ApiQueryIWLinks::execute(), MaintenanceFormatInstallDoc::execute(), MakeTestEdits::execute(), ApiQueryFilearchive::execute(), DeleteDefaultMessages::execute(), NukePage::execute(), GetTextMaint::execute(), ImportSiteScripts::execute(), SpecialBlockList::execute(), ApiQueryLogEvents::execute(), SpecialWatchlist::execute(), AttachLatest::execute(), FixDoubleRedirects::execute(), ApiStashEdit::execute(), ChangesListSpecialPage::execute(), ApiParse::execute(), ApiQueryImageInfo::execute(), EditCLI::execute(), PurgeChangedPages::execute(), RollbackEdits::execute(), ImportTextFiles::execute(), RebuildFileCache::execute(), DeleteBatch::execute(), ApiImageRotate::execute(), NukeNS::execute(), SpecialExpandTemplates::execute(), RandomPage::execute(), BenchmarkParse::execute(), ConvertLinks::execute(), UpdateCollation::execute(), DeleteEqualMessages::execute(), FileDuplicateSearchPage::execute(), SpecialEmailUser::execute(), LoginSignupSpecialPage::execute(), ApiQueryInfo::execute(), SpecialPageFactory::executePath(), SpecialPageFactory::exists(), ApiQueryInfo::extractPageInfo(), ApiQueryRevisionsBase::extractRevisionInfo(), ApiQueryLogEvents::extractRowInfo(), ApiQueryWatchlist::extractRowInfo(), ApiQueryContributions::extractRowInfo(), ApiQueryRecentChanges::extractRowInfo(), SpecialEditWatchlist::extractTitles(), ApiFeedContributions::feedItem(), HistoryAction::feedItem(), SpecialNewpages::feedItem(), QueryPage::feedResult(), Parser::fetchCurrentRevisionOfTitle(), Parser::fetchFile(), Parser::fetchFileAndTitle(), Parser::fetchFileNoRegister(), Revision::fetchRevision(), Parser::fetchTemplate(), Parser::fetchTemplateAndTitle(), RepoGroup::findFile(), FileRepo::findFile(), LocalRepo::findFiles(), FileRepo::findFiles(), WikiImporter::finishImportPage(), Skin::footerLink(), Linker::formatAutocomments(), DummyLinker::formatComment(), Linker::formatComment(), FeedUtils::formatDiffRow(), ApiParse::formatIWLinks(), ApiParse::formatLangLinks(), ApiParse::formatLinks(), DummyLinker::formatLinksInComment(), Linker::formatLinksInComment(), LogFormatter::formatParameterValue(), LogFormatter::formatParameterValueForApi(), UncategorizedCategoriesPage::formatResult(), PageQueryPage::formatResult(), UnusedCategoriesPage::formatResult(), AncientPagesPage::formatResult(), UnusedtemplatesPage::formatResult(), WantedQueryPage::formatResult(), MostcategoriesPage::formatResult(), ShortPagesPage::formatResult(), MostinterwikisPage::formatResult(), MostlinkedTemplatesPage::formatResult(), MostlinkedPage::formatResult(), SpecialPagesWithProp::formatResult(), LinkSearchPage::formatResult(), SpecialProtectedtitles::formatRow(), CategoryPager::formatRow(), NewFilesPager::formatRow(), SpecialNewpages::formatRow(), ApiParse::formatSummary(), Linker::formatTemplates(), AllMessagesTablePager::formatValue(), ProtectedPagesPager::formatValue(), SearchSuggestionSet::fromStrings(), SearchSuggestion::fromTitle(), SearchSuggestionSet::fromTitles(), CoreParserFunctions::fullpagename(), CoreParserFunctions::fullpagenamee(), ParserTest::fuzzTest(), CoreParserFunctions::gender(), GenerateSitemap::generateLimit(), Article::generateReason(), ProtectLogFormatter::getActionLinks(), BlockLogFormatter::getActionLinks(), LegacyLogFormatter::getActionLinks(), NamespaceConflictChecker::getAlternateTitle(), CoreParserFunctions::getCachedRevisionObject(), Skin::getCategoryLinks(), ResourceLoaderWikiModule::getContent(), WikiPage::getContentModel(), Revision::getContentModel(), RCCacheEntryFactoryTest::getContext(), Skin::getCopyright(), EditPage::getCopyrightWarning(), AllMessagesTablePager::getCustomisedStatuses(), MediaTransformOutput::getDescLinkAttribs(), EditPage::getEditToolbar(), ApiQueryBacklinksprop::getExamplesMessages(), FormatMetadata::getExtendedMetadataFromFile(), Parser::getExternalLinkRel(), ApiFeedRecentChanges::getFeedObject(), WikiFilePage::getForeignCategories(), FormAction::getForm(), PageProps::getGoodIDs(), LinkCache::getGoodLinkID(), User::getGroupPage(), ChangeTagsLogItem::getHTML(), RevDelLogItem::getHTML(), ImagePageTest::getImagePage(), ImagePage404Test::getImagePage(), LinksUpdate::getInterlangInsertions(), DummyLinker::getInternalLinkAttributes(), Linker::getInternalLinkAttributes(), DummyLinker::getInternalLinkAttributesObj(), Linker::getInternalLinkAttributesObj(), DummyLinker::getInterwikiLinkAttributes(), Linker::getInterwikiLinkAttributes(), ApiPageSet::getInterwikiTitlesAsResult(), DummyLinker::getInvalidTitleDescription(), Linker::getInvalidTitleDescription(), JobQueueRedis::getJobFromFields(), JobQueueRedis::getJobFromUidInternal(), OutputPage::getJSVars(), IRCColourfulRCFeedFormatter::getLine(), Linker::getLinkAttributesInternal(), SpecialExport::getLinks(), BlockLogFormatter::getMessageParameters(), WatchedItemStoreUnitTest::getMockTitle(), MessageCache::getMsgFromNamespace(), SearchNearMatcher::getNearMatch(), SearchNearMatcher::getNearMatchInternal(), SpecialEditWatchlist::getNormalForm(), Skin::getPageClasses(), SpecialExport::getPagesFromCategory(), EditPage::getPreloadedContent(), BlockLogFormatter::getPreloadTitles(), ApiQueryInfo::getProtectionInfo(), RandomPage::getRandomTitle(), SpecialRandomInCategory::getRandomTitle(), RawAction::getRawText(), SpecialMyLanguage::getRedirect(), AbstractContent::getRedirectChain(), Article::getRedirectHeaderHtml(), ListredirectsPage::getRedirectTarget(), CssContent::getRedirectTarget(), JavaScriptContent::getRedirectTarget(), SearchExactMatchRescorer::getRedirectTarget(), WikitextContent::getRedirectTarget(), WikitextContent::getRedirectTargetAndText(), ApiPageSet::getRedirectTargets(), Skin::getRelevantUser(), LinksUpdate::getRemovedLinks(), SpecialChangeCredentials::getReturnUrl(), DifferenceEngine::getRevisionHeader(), ApiQueryRevisions::getRollbackToken(), TitleArrayFromResultTest::getRowWithTitle(), User::getTalkPage(), DatabaseLogEntry::getTarget(), RCDatabaseLogEntry::getTarget(), Parser::getTemplateDom(), TestRecentChangesHelper::getTestContext(), Revision::getTimestampFromId(), CLIParser::getTitle(), UploadBase::getTitle(), ResourceLoaderWikiModule::getTitleInfo(), LogEventsList::getTitleInput(), LogPage::getTitleLink(), User::getTokenUrl(), ApiQueryInfo::getUnblockToken(), Interwiki::getURL(), SpecialEditWatchlist::getWatchlist(), SpecialSearch::goResult(), WikiImporter::handlePage(), AuthManagerSpecialPage::handleReauthBeforeExecute(), DumpRenderer::handleRevision(), DumpIterator::handleRevision(), BackupReader::handleRevision(), FixDefaultJsonContentPages::handleRow(), ParserMethodsTest::helperParserFunc(), ApiPageSet::initFromQueryResult(), ApiPageSet::initFromRevIDs(), SearchResult::initFromTitle(), MediaWiki::initializeArticle(), SideBarTest::initMessagesHref(), ImageGalleryBase::insert(), ChangesList::insertLog(), Revision::insertOn(), MediaWikiTestCase::insertPage(), Parser::interwikiTransclude(), LinkCache::isBadLink(), User::isBlockedFrom(), WikitextContent::isCountable(), User::isWatched(), Linker::linkUrl(), Revision::loadFromTimestamp(), Revision::loadFromTitle(), GenerateSitemap::main(), MediaWiki::main(), SkinTemplate::makeArticleUrlDetails(), DummyLinker::makeBrokenImageLinkObj(), Linker::makeBrokenImageLinkObj(), EnhancedChangesList::makeCacheGroupingKey(), ContentHandler::makeContent(), DummyLinker::makeExternalLink(), Linker::makeExternalLink(), SpecialExpandTemplates::makeForm(), User::makeGroupLinkHTML(), User::makeGroupLinkWiki(), ApiBase::makeHelpArrayToString(), Skin::makeI18nUrl(), Parser::makeImage(), Skin::makeKnownUrlDetails(), BaseTemplate::makeLink(), Skin::makeMainPageUrl(), DummyLinker::makeMediaLinkObj(), Linker::makeMediaLinkObj(), Title::makeName(), Skin::makeNSUrl(), SpecialRecentChanges::makeOptionsLink(), MessageCacheTest::makePage(), RightsLogFormatter::makePageLink(), LogFormatter::makePageLink(), Skin::makeSpecialUrl(), Skin::makeSpecialUrlSubpage(), SkinTemplate::makeTalkUrlDetails(), Title::makeTitle(), Title::makeTitleSafe(), Skin::makeUrl(), Skin::makeUrlDetails(), MostlinkedPage::makeWlhLink(), WantedQueryPage::makeWlhLink(), MostlinkedTemplatesPage::makeWlhLink(), TitleCleanup::moveIllegalPage(), TitleCleanup::moveInconsistentPage(), CoreParserFunctions::mwnamespace(), CoreParserFunctions::namespacee(), CoreParserFunctions::namespacenumber(), XmlDumpWriter::namespaces(), ForeignAPIRepo::newFile(), FileRepo::newFile(), LocalRepo::newFromArchiveName(), Title::newFromID(), Category::newFromName(), Category::newFromRow(), HTMLFileCache::newFromTitle(), SearchResult::newFromTitle(), Article::newFromTitle(), Category::newFromTitle(), CdnCacheUpdate::newFromTitles(), RecentChange::newLogEntry(), Title::newMainPage(), WikiPageTest::newPage(), RevisionTest::newTestRevision(), SearchEngine::normalizeNamespaces(), RecentChange::notifyEdit(), RecentChange::notifyLog(), RecentChange::notifyNew(), Article::onArticleCreate(), Article::onArticleDelete(), Article::onArticleEdit(), RestbaseVirtualRESTService::onParsoid1Request(), ParsoidVirtualRESTService::onParsoid1Request(), SpecialRandomInCategory::onSubmit(), SpecialPageLanguage::onSubmit(), XmlDumpWriter::openPage(), ParserOptions::optionsHash(), ApiQuery::outputGeneralPageInfo(), SpecialSpecialpages::outputPageList(), ImageQueryPage::outputResults(), WikiExporter::pageByName(), WikiExporter::pageByTitle(), WikiImporter::pageCallback(), InfoAction::pageCounts(), WikiPage::pageDataFromTitle(), Article::pageDataFromTitle(), CoreParserFunctions::pageid(), InfoAction::pageInfo(), CoreParserFunctions::pagename(), CoreParserFunctions::pagenamee(), CoreParserFunctions::pagesincategory(), CoreParserFunctions::pagesize(), MessageCache::parse(), LanguageConverter::parseCachedTable(), MediaWiki::parseTitle(), NamespaceAwareForeignTitleFactory::parseTitleNoNs(), NamespaceAwareForeignTitleFactory::parseTitleWithNs(), BacklinkJobUtils::partitionBacklinkJob(), MediaWiki::performAction(), MediaWiki::performRequest(), ApiPageSet::populateGeneratorData(), PopulateContentModel::populatePage(), PopulateContentModel::populateRevisionOrArchive(), RebuildTextIndex::populateSearchIndex(), SpecialPage::prefixSearchString(), FileDuplicateSearchPage::prefixSearchSubpages(), Skin::preloadExistence(), WikiPage::prepareContentForEdit(), SkinTemplate::prepareQuickTemplate(), Parser::preprocess(), ApiPageSet::processDbRow(), CompareParsers::processRevision(), TitleCleanup::processRow(), ImageCleanup::processRow(), WatchlistCleanup::processRow(), WikiImporter::processTitle(), ApiPageSet::processTitlesArray(), CoreParserFunctions::protectionexpiry(), CoreParserFunctions::protectionlevel(), PurgeList::purgeNamespace(), LinksUpdate::queueRecursiveJobs(), DoubleRedirectsPage::reallyGetQueryInfo(), SearchExactMatchRescorer::redirectTargetsToRedirect(), User::removeWatch(), MediaWikiPageLinkRenderer::renderHtmlLink(), Parser::renderImageGallery(), MessageCache::replace(), LinkHolderArray::replaceInternal(), ApiImportReporter::reportPage(), ImportReporter::reportPage(), CoreParserFunctions::revisionday(), CoreParserFunctions::revisionday2(), CoreParserFunctions::revisionid(), CoreParserFunctions::revisionmonth(), CoreParserFunctions::revisionmonth1(), ApiComparePages::revisionOrTitleOrId(), CoreParserFunctions::revisiontimestamp(), CoreParserFunctions::revisionuser(), CoreParserFunctions::revisionyear(), SpecialComparePages::revOrTitle(), CoreParserFunctions::rootpagename(), CoreParserFunctions::rootpagenamee(), ApiQueryDeletedRevisions::run(), ApiQueryAllRevisions::run(), ApiQueryPrefixSearch::run(), ApiQueryAllDeletedRevisions::run(), ApiQueryLangBacklinks::run(), ApiQueryImages::run(), ApiQueryIWBacklinks::run(), ApiQueryProtectedTitles::run(), ApiQueryWatchlistRaw::run(), ApiQueryExtLinksUsage::run(), ApiQueryCategories::run(), ApiQueryPagesWithProp::run(), ApiQueryQueryPage::run(), ApiQuerySearch::run(), ApiQueryCategoryMembers::run(), ApiQueryAllPages::run(), ApiQueryLinks::run(), ApiQueryRevisions::run(), ApiQueryAllLinks::run(), ApiQueryRandom::runQuery(), ApiQueryBacklinks::runSecondQuery(), ParserTest::runTest(), RecentChange::save(), PrefixSearch::search(), ApiOpenSearch::search(), ImageGalleryBase::setContextTitle(), EditPage::setContextTitle(), ParserOptions::setRedirectTarget(), SearchSuggestion::setSuggestedTitle(), WikiImporter::setTargetRootPage(), Revision::setTitle(), DifferenceEngineTest::setUp(), MagicVariableTest::setUp(), ParserOptions::setupFakeRevision(), SkinTemplate::setupTemplateForOutput(), ProtectionForm::show(), SpecialSearch::showCreateLink(), EditPage::showCustomIntro(), OutputPage::showErrorPage(), SpecialSearch::showHit(), SpecialSearch::showInterwikiHit(), SpecialBookSources::showList(), SpecialUndelete::showList(), SpecialPageLanguage::showLogFragment(), MovePageForm::showLogFragment(), Article::showMissingArticle(), LogEventsList::showOptions(), SpecialProtectedpages::showOptions(), SpecialProtectedtitles::showOptions(), Article::showPatrolFooter(), SpecialSearch::showResults(), MovePageForm::showSubpages(), LoginSignupSpecialPage::showSuccessPage(), SpecialEditWatchlist::showTitles(), SpecialUpload::showViewDeletedLinks(), BackupReader::skippedNamespace(), CoreParserFunctions::special(), Parser::startExternalParse(), Parser::startParse(), Parser::statelessFetchRevision(), ExtraParserTest::statelessFetchTemplate(), Parser::statelessFetchTemplate(), CoreParserFunctions::subjectpagename(), CoreParserFunctions::subjectpagenamee(), CoreParserFunctions::subjectspace(), CoreParserFunctions::subjectspacee(), WebInstallerName::submit(), CoreParserFunctions::subpagename(), CoreParserFunctions::subpagenamee(), SkinTemplate::tabAction(), CoreParserFunctions::talkpagename(), CoreParserFunctions::talkpagenamee(), CoreParserFunctions::talkspace(), CoreParserFunctions::talkspacee(), WatchedItemUnitTest::testAddWatch(), EditPageTest::testAutoMerge(), NamespaceAwareForeignTitleFactoryTest::testBasic(), NaiveForeignTitleFactoryTest::testBasic(), ParserMethodsTest::testCallParserFunction(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), TestSample::testCheckMainPageTitleIsConsideredLocal(), ExtraParserTest::testCleanSig(), ExtraParserTest::testCleanSigDisabled(), ErrorPageErrorTest::testConstruction(), TitleValueTest::testConstruction(), TitleArrayFromResultTest::testConstructionWithRow(), RevisionTest::testConstructWithContent(), ApiQueryRevisionsTest::testContentComesWithContentModelAndFormat(), TestSample::testCreateBasicListOfTitles(), TitleArrayFromResultTest::testCurrentAfterConstruction(), TextContentTest::testDeletionUpdates(), WikiPageTest::testDoEdit(), WikiPageTest::testDoEditContent(), ApiEditPageTest::testEdit_redirect(), ApiEditPageTest::testEdit_redirectText(), ApiEditPageTest::testEditConflict(), ApiEditPageTest::testEditConflict_bug41990(), ApiEditPageTest::testEditConflict_newSection(), TitleTest::testExists(), EditPageTest::testExtractSectionTitle(), TitleTest::testFixSpecialNameRetainsParameter(), LinkerTest::testFormatComment(), NewParserTest::testFuzzTests(), ContentHandlerTest::testGetAutosummary(), TitleTest::testGetBaseText(), RevisionTest::testGetContent(), RevisionTest::testGetContentFormat(), RevisionTest::testGetContentHandler(), TitleMethodsTest::testGetContentModel(), RevisionTest::testGetContentModel(), ContentHandlerTest::testGetDefaultModelFor(), ContentHandlerTest::testGetForTitle(), TitleTest::testGetFragment(), MediaWikiTitleCodecTest::testGetFullText(), WatchedItemIntegrationTest::testGetNotificationTimestamp_falseOnNotAllowed(), WatchedItemIntegrationTest::testGetNotificationTimestamp_falseOnNotWatched(), TitleMethodsTest::testGetOtherPage(), ContentHandlerTest::testGetPageLanguage(), TitleTest::testGetPageViewLanguage(), TextContentTest::testGetParserOutput(), MediaWikiTitleCodecTest::testGetPrefixedDBkey(), MediaWikiTitleCodecTest::testGetPrefixedText(), ExtraParserTest::testGetPreloadText(), CssContentTest::testGetRedirectTarget(), JavaScriptContentTest::testGetRedirectTarget(), WikiPageTest::testGetRedirectTarget(), TitleTest::testGetRootText(), WikitextContentTest::testGetSecondaryDataUpdates(), ParserMethodsTest::testGetSections(), TitleTest::testGetSubpageText(), TitleValueTest::testGetText(), MediaWikiTitleCodecTest::testGetText(), RevisionTest::testGetText(), SpecialPageTest::testGetTitleFor(), SpecialPageFactoryTest::testGetTitleForAlias(), SpecialPageTest::testGetTitleForWithWarning(), TitleTest::testGetTitleValue(), ImportTest::testHandlePageContainsRedirect(), TitleMethodsTest::testHasContentModel(), TitleMethodsTest::testHasSubjectNamespace(), WikiPageTest::testHasViewableContent(), WikiCategoryPageTest::testHiddenCategory_PropertyNotSet(), TitleMethodsTest::testInNamespace(), ApiResultTest::testInstanceDataMethods(), SpecialPageTest::testInvalidGetTitleFor(), TitleTest::testIsAlwaysKnown(), TitleTest::testIsAlwaysKnownOnInterwiki(), WikiPageTest::testIsCountable(), TitleMethodsTest::testIsCssJsSubpage(), TitleMethodsTest::testIsCssOrJsPage(), TitleMethodsTest::testIsCssSubpage(), TitleMethodsTest::testIsJsSubpage(), WikiPageTest::testIsRedirect(), TitleTest::testIsValidMoveOperation(), WatchedItemUnitTest::testIsWatched(), WatchedItemIntegrationTest::testIsWatched_falseOnNotAllowed(), TitleMethodsTest::testIsWikitextPage(), ExtraParserTest::testLongNumericLinesDontKillTheParser(), ContentHandlerTest::testMakeContent(), JavaScriptContentHandlerTest::testMakeRedirectContent(), CssContentHandlerTest::testMakeRedirectContent(), WikitextContentHandlerTest::testMakeRedirectContent(), TitleTest::testNewFromTitleValue(), LinksUpdateTest::testOnAddingAndRemovingCategory_recentChangesRowIsAdded(), ExportTest::testPageByTitle(), ExtraParserTest::testParse(), NewParserTest::testParserTest(), MediaWikiTitleCodecTest::testParseTitle(), ApiQueryAllPagesTest::testPrefixNormalizationSearchBug(), ExtraParserTest::testPreprocess(), ParserMethodsTest::testPreSaveTransform(), ExtraParserTest::testPreSaveTransform(), CdnCacheUpdateTest::testPurgeMergeWeb(), ParserMethodsTest::testRecursiveParse(), RefreshLinksPartitionTest::testRefreshLinks(), WatchedItemUnitTest::testRemoveWatch(), WatchedItemIntegrationTest::testRemoveWatch_falseOnNotAllowed(), ErrorPageErrorTest::testReport(), SpecialPageTest::testRequireLoginAnon(), WatchedItemUnitTest::testResetNotificationTimestamp(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampNotForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_item(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_noItemForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_notWatchedPageForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedLatestRevisionForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedNotLatestRevisionForced(), MessageTest::testSerialization(), TestSample::testSetUpMainPageTitleForNextTest(), ApiResultTest::testStaticDataMethods(), TemplateCategoriesTest::testTemplateCategories(), ArticleTablesTest::testTemplatelinksUsesContentLanguage(), TestSample::testTitleObjectFromObject(), TestSample::testTitleObjectStringConversion(), ApiQueryTest::testTitlesAreRejectedIfInvalid(), ExtraParserTest::testTrackingCategory(), ExtraParserTest::testTrackingCategorySpecial(), MediaWikiTest::testTryNormaliseRedirect(), ForeignTitleTest::testUnknownNamespaceCheck(), ForeignTitleTest::testUnknownNamespaceError(), ImportTest::testUnknownXMLTags(), WatchedItemIntegrationTest::testUpdateAndResetNotificationTimestamp(), WatchedItemStoreIntegrationTest::testUpdateAndResetNotificationTimestamp(), WatchedItemStoreIntegrationTest::testWatchAndUnWatchItem(), WatchedItemIntegrationTest::testWatchAndUnWatchItem(), GlobalWithDBTest::testWfIsBadImage(), TitleTest::testWgWhitelistReadRegexp(), Linker::tocList(), MediaWikiSite::toDBKey(), ThumbnailImage::toHtml(), MessageCache::transform(), Parser::transformMsg(), SpecialEditWatchlist::unwatchTitles(), MockSearch::update(), SearchMssql::update(), SearchOracle::update(), SearchSqlite::update(), SearchMySQL::update(), LanguageConverter::updateConversionTable(), Maintenance::updateSearchIndexForPage(), SearchMssql::updateTitle(), SearchOracle::updateTitle(), SearchSqlite::updateTitle(), SearchMySQL::updateTitle(), EditPage::updateWatchlist(), CoreParserFunctions::urlFunction(), Revision::userCanBitfield(), OutputPage::userCanPreview(), HTMLTitleTextField::validate(), ApiFileRevert::validateParameters(), ApiBase::validateUser(), CategoryPage::view(), Article::view(), wfGenericError(), wfStreamThumb(), SpecialWhatLinksHere::wlhLink(), SkinTemplate::wrapHTML(), XmlDumpWriter::writeLogItem(), and XmlDumpWriter::writeRevision().

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

Definition at line 2342 of file hooks.txt.

Referenced by PoolCounterRedis::__construct(), Installer::__construct(), RedisLockManager::__destruct(), JobQueueGroup::__destruct(), FormOptions::add(), DeferredUpdates::addCallableUpdate(), OutputPage::addCategoryLinks(), SpecialLog::addHeader(), FakeAuthTemplate::addInputItem(), StripState::addItem(), BackupDumperLoggerTest::addLogEntry(), ApiQueryLogEvents::addLogParams(), BitmapMetadataHandler::addMetadata(), PostgresUpdater::addPgExtIndex(), DeferredUpdates::addUpdate(), SiteStatsUpdate::adjustPending(), ApiQuerySiteinfo::appendExtensions(), ApiQuerySiteinfo::appendUserGroups(), ApiResult::applyTransformations(), ApiErrorFormatter::arrayFromStatus(), ApiErrorFormatter_BackCompat::arrayFromStatus(), XhprofTest::assertArrayStructure(), LogFormatterTest::assertIRCComment(), BackupDumperLoggerTest::assertLogItem(), MediaWikiTestCase::assertType(), SiteTest::assertTypeOrFalse(), MediaWikiTestCase::assertTypeOrValue(), RCCacheEntryFactory::buildCLink(), RCCacheEntryFactory::buildLastLink(), FeedUtils::checkFeedOutput(), UploadBase::checkSvgExternalDTD(), HTMLFileCache::clearFileCache(), CategoryPage::closeShowCategory(), StreamFile::contentTypeFromPath(), WikiPage::convertSelectType(), SearchEngineFactory::create(), SearchEngine::create(), UploadBase::createFromRequest(), CategoryMembershipChange::createRecentChangesEntry(), LayeredParameterizedPassword::crypt(), MediaWikiMediaTestCase::dataFile(), Exif::debug(), LCStoreStaticArray::decode(), JobQueueAggregatorRedis::decodeQueueName(), CategoryViewer::doCategoryQuery(), MemcLockManager::doFreeLocksOnServer(), JobQueueAggregatorRedis::doGetAllReadyWikiQueues(), MemcLockManager::doGetLocksOnServer(), MySqlLockManager::doGetLocksOnServer(), PostgreSqlLockManager::doGetLocksOnServer(), WikiImporter::doImport(), QuorumLockManager::doLock(), FSLockManager::doLock(), QuorumLockManager::doLockByType(), LockManager::doLockByType(), FSLockManager::doSingleLock(), FSLockManager::doSingleUnlock(), QuorumLockManager::doUnlock(), FSLockManager::doUnlock(), QuorumLockManager::doUnlockByType(), LockManager::doUnlockByType(), SearchUpdate::doUpdate(), SiteStatsUpdate::doUpdateContextStats(), DeferredUpdates::doUpdates(), Html::dropDefaults(), CSSMin::encodeImageAsDataURI(), CSSMin::encodeStringAsDataURI(), CheckStorage::error(), WebInstallerDBConnect::execute(), ApiTokens::execute(), WebInstallerUpgrade::execute(), ApiQueryTokens::execute(), SpecialLog::execute(), SpecialProtectedpages::execute(), SpecialProtectedtitles::execute(), ApiQueryBlocks::execute(), Protect::execute(), ApiQueryLogEvents::execute(), UploadStashCleanup::execute(), CopyJobQueue::execute(), ShowJobs::execute(), RunJobs::execute(), ConvertLinks::execute(), UpdateCollation::execute(), ConvertExtensionToRegistration::execute(), PurgeChangedFiles::execute(), CompressOld::execute(), SiteExporter::exportSite(), LogFormatter::extractParameters(), ApiQueryWatchlist::extractRowInfo(), ApiQueryRecentChanges::extractRowInfo(), ScopedLock::factory(), PoolCounter::factory(), ApiTestCaseUpload::fakeUploadChunk(), ApiTestCaseUpload::fakeUploadFile(), HistoryAction::feed(), SpecialNewpages::feed(), FormOptions::fetchValuesFromRequest(), OutputPage::filterModules(), MimeMagic::findMediaType(), JobQueueAggregator::findPendingWikiQueues(), FormatMetadata::flattenArrayContentLang(), FormatMetadata::flattenArrayReal(), FormatMetadata::formatCoords(), LogFormatter::formatParameterValue(), LogFormatter::formatParameterValueForApi(), BlockListPager::formatValue(), MemcLockManager::freeLocksOnServer(), RedisLockManager::freeLocksOnServer(), CategoryViewer::generateLink(), JobQueueGroup::get(), LegacyLogFormatter::getActionLinks(), OutputPage::getAllowedModules(), SpecialBlockList::getBlockListPager(), CachingSiteStore::getCacheKey(), LinksUpdate::getCategoryInsertions(), CategoryMembershipChange::getChangeMessageText(), PPNode_DOM::getChildrenOfType(), JobQueueGroup::getCoalescedQueues(), Skin::getCopyright(), CategoryViewer::getCountMessage(), IEContentAnalyzer::getDataFormat(), ResourceLoaderImage::getDataUri(), Language::getDateFormatString(), SqlBagOStuff::getDB(), ForeignDBRepo::getDBFactory(), Installer::getDBInstaller(), LayeredParameterizedPassword::getDefaultParams(), StatusValue::getErrorsByType(), Status::getErrorsByType(), SpecialVersion::getExtensionCategory(), SpecialVersion::getExtensionCredits(), SpecialVersion::getExtensionTypeName(), LogEventsList::getFilterLinks(), SpecialWhatLinksHere::getFilterPanel(), LogPager::getFilterParams(), MediaHandler::getHandler(), OutputPage::getHeadLinksArray(), ApiHelp::getHelpInternal(), MWException::getHTML(), Parser::getImageParams(), HTMLTextField::getInputHTML(), HTMLTextField::getInputOOUI(), File::getIsSafeFileUncached(), OutputPage::getJSVars(), SpecialProtectedtitles::getLevelMenu(), SpecialProtectedpages::getLevelMenu(), MachineReadableRCFeedFormatter::getLine(), EnhancedChangesList::getLineData(), RedisLockManager::getLocksOnServer(), MemcLockManager::getLocksOnServer(), DBLockManager::getLocksOnServer(), MWExceptionHandler::getLogMessage(), MimeMagic::getMediaType(), LogFormatter::getMessageKey(), BitmapMetadataHandler::getMetadataArray(), IEContentAnalyzer::getMimeTypeForVersion(), ArrayDiffFormatterTest::getMockDiffOp(), TablePager::getNavigationBar(), ApiOpenSearch::getOpenSearchTemplate(), Skin::getPageClasses(), IndexPager::getPagingLinks(), ApiBase::getParameterFromSettings(), SiteStatsUpdate::getPendingDeltas(), PostgresInstaller::getPgConnection(), MWExceptionHandler::getPublicLogMessage(), JobQueueGroup::getQueueSizes(), JobQueueGroup::getQueuesWithJobs(), FileBackend::getScopedFileLocks(), CategoryViewer::getSectionPagingLinks(), Status::getStatusArray(), ZipDirectoryReader::getStructSize(), SpecialBlock::getTargetAndType(), HTMLTextField::getType(), SiteStatsUpdate::getTypeCacheKey(), SpecialProtectedpages::getTypeMenu(), LogEventsList::getTypeSelector(), ForeignAPIFile::getUser(), ArchivedFile::getUser(), LocalFile::getUser(), BitmapMetadataHandler::GIF(), FileBackendGroup::guessMimeInternal(), Parser::incrementIncludeSize(), PasswordFactory::init(), MediaWiki\Auth\AuthManagerTest::initializeConfig(), Message::inLanguage(), Html::input(), Language::internalUserTimeAndDate(), Title::isProtected(), Language::isValidBuiltInCode(), MIMEsearchPage::isValidType(), BitmapMetadataHandler::Jpeg(), SearchSqlite::legalSearchChars(), SearchMySQL::legalSearchChars(), SearchOracle::legalSearchChars(), LogPager::limitAction(), LogPager::limitType(), JobRunner::loadBackoffs(), Title::loadRestrictionsFromRows(), LockManager::lock(), FileBackend::lockFiles(), EnhancedChangesList::makeCacheGroupingKey(), FileBackend::makeContentDisposition(), FormatMetadata::makeFormattedData(), ApiBase::makeHelpMsgParameters(), Parser::makeImage(), IndexPager::makeLink(), ImagePage::makeMetadataTable(), SiteImporter::makeSite(), AuthManagerSpecialPage::mapFieldInfoTypeToFormDescriptorType(), AuthManagerSpecialPage::mapSingleFieldInfo(), StripState::merge(), JavaScriptMinifier::minify(), MovePage::move(), DatabaseUpdater::newForDB(), PasswordFactory::newFromCiphertext(), ObjectFileCache::newFromKey(), PasswordFactory::newFromType(), RecentChange::newLogEntry(), LockManager::normalizePathsByType(), RecentChange::notifyLog(), JobQueueAggregator::notifyQueueEmpty(), JobQueueAggregator::notifyQueueNonEmpty(), SwiftFileBackend::objectListing(), SpecialChangeCredentials::onAuthChangeFormFields(), PostgresInstaller::openPgConnection(), CoreParserFunctions::pagesincategory(), CategoryViewer::pagingLinks(), SpecialUploadStash::parseKey(), RecentChange::parseToRCType(), JSMinPlus::parseTree(), LayeredParameterizedPassword::partialCrypt(), BitmapMetadataHandler::PNG(), JobQueueGroup::pop(), StreamFile::prepareForStream(), ApiTag::processIndividual(), BackupDumper::processOptions(), CoreParserFunctions::protectionexpiry(), CoreParserFunctions::protectionlevel(), HtmlTest::provideHtml5InputTypes(), PurgeChangedFiles::purgeFromLogType(), JobQueueGroup::push(), UserCache::queryNeeded(), JobQueueGroup::queuesHaveJobs(), SVGReader::read(), EnhancedChangesList::recentChangesBlockLine(), OutputPage::reduceAllowedModules(), PasswordFactory::register(), SiteStatsUpdate::removePendingDeltas(), LinkHolderArray::replaceInternal(), Message::replaceParameters(), LinkHolderArray::replaceTextCallback(), ApiQuerySearch::run(), ApiQueryCategoryMembers::run(), ApiQueryBacklinksprop::run(), JobRunner::run(), User::sendConfirmationMail(), ApiResult::setArrayType(), ApiResult::setArrayTypeRecursive(), AjaxResponse::setContentType(), PasswordFactory::setDefaultType(), User::setEmailWithConfirmation(), OutputPage::setFeedAppendQuery(), PasswordTestCase::setUp(), NewParserTest::setUp(), SpecialProtectedpages::showOptions(), LoginHelper::showReturnToPage(), LoginSignupSpecialPage::showReturnToPage(), LoginSignupSpecialPage::showSuccessPage(), FileBackendDBRepoWrapper::streamFile(), WebInstallerDBConnect::submit(), JobRunner::syncBackoffDeltas(), MediaWikiTestCase::teardownTestDB(), MediaWiki\Auth\AuthManagerTest::testCanCreateAccounts(), MediaWiki\Auth\AuthManagerTest::testCanLinkAccounts(), XhprofTest::testCompleteMetricsStructure(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), MediaWikiServicesTest::testGetService(), MediaWikiServicesTest::testGetters(), XhprofTest::testInclusiveMetricsStructure(), ExifRotationTest::testMetadata(), ExifRotationTest::testMetadataAutoRotate(), ExifRotationTest::testMetadataAutoRotateUnsupported(), ExifRotationTest::testMetadataNoAutoRotate(), MWMessagePackTest::testPack(), RecentChangeTest::testParseFromRCType(), RecentChangeTest::testParseToRCType(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testPrimaryAccountLink(), SiteTest::testProtocolRelativePath(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), ExifRotationTest::testRotationRendering(), ExifRotationTest::testRotationRenderingNoAutoRotate(), IEContentAnalyzer::translateMimeType(), LogEventsList::typeAction(), LockManager::unlock(), FileBackend::unlockFiles(), ZipDirectoryReader::unpack(), StripState::unstripType(), FormOptions::validateBounds(), ApiResult::validateValue(), JobQueueGroup::waitForBackups(), wfGenericError(), wfMissingExtensions(), wfMissingVendorError(), and wfPHPVersionError().

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
error also a ContextSource $user

Definition at line 246 of file hooks.txt.

Referenced by UploadFromChunks::__construct(), UploadFromStash::__construct(), ImageListPager::__construct(), DatabaseBase::__construct(), ParserOptions::__construct(), EmailNotification::actuallyNotifyOnPageChange(), MediaWikiTestCase::addCoreDBData(), BlockTest::addDBData(), LocalIdLookupTest::addDBData(), GenderCacheTest::addDBDataOnce(), ApiBlockTest::addDBDataOnce(), NewParserTest::addDBDataOnce(), UserrightsPage::addLogEntry(), EditPageTest::assertEdit(), RCCacheEntryFactoryTest::assertUserLinks(), EmailConfirmation::attemptConfirm(), EmailInvalidation::attemptInvalidate(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::autoCreatedAccount(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginLinkAttempt(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginSecondaryAccountCreation(), MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::beginSecondaryAccountCreation(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::beginSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginSecondaryAuthentication(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::beginSecondaryAuthentication(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::beginSecondaryAuthentication(), SkinTemplate::buildContentNavigationUrls(), ProtectionForm::buildForm(), ChangesListSpecialPage::buildMainQueryConds(), SkinTemplate::buildNavUrls(), WatchedItemStore::cache(), ChangeTags::canActivateTag(), ChangeTags::canAddTagsAccompanyingChange(), SpecialBlock::canBlockEmail(), MediaWiki\Auth\AuthManager::canCreateAccount(), ChangeTags::canCreateTag(), ChangeTags::canDeactivateTag(), ChangeTags::canDeleteTag(), User::canSendEmail(), ChangeTags::canUpdateTags(), UserOptions::CHANGER(), ApiQueryTestBase::check(), Title::checkActionPermissions(), ApiMain::checkAsserts(), Title::checkCascadingSourcesRestrictions(), Title::checkCSSandJSPermissions(), ApiMain::checkExecutePermissions(), CompareParsers::checkOptions(), Title::checkPageRestrictions(), Title::checkPermissionHooks(), SpecialCreateAccount::checkPermissions(), ApiFileRevert::checkPermissions(), ApiImageRotate::checkPermissions(), ApiUpload::checkPermissions(), Title::checkQuickPermissions(), Title::checkReadPermissions(), Title::checkSpecialsAndNSPermissions(), SpecialBlock::checkUnblockSelf(), Title::checkUserBlock(), SpecialEditWatchlist::cleanupWatchlist(), User::clearNotification(), WikiPage::commitRollback(), EmailNotification::compose(), Article::confirmDelete(), ResourceLoaderUserTokensModule::contextUserTokens(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueSecondaryAccountCreation(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::continueSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueSecondaryAuthentication(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::continueSecondaryAuthentication(), SpecialContributions::contributionsSub(), MediaWiki\Session\CookieSessionProvider::cookieDataToExport(), ApiFeedWatchlist::createFeedItem(), User::createNew(), Installer::createSysop(), Preferences::datetimePreferences(), Article::delete(), SpecialUndelete::diffHeader(), SpecialRedirect::dispatchUser(), ApiTestCase::doApiRequest(), ApiTestCase::doApiRequestWithToken(), WikiPage::doCreate(), FileDeleteForm::doDelete(), Article::doDelete(), WikiPage::doDeleteArticle(), Article::doDeleteArticleReal(), WikiPage::doDeleteArticleReal(), WikiPage::doEdit(), Article::doEdit(), WikiPage::doEditContent(), Article::doEditContent(), ApiQuery::doExport(), SpecialWatchlist::doHeader(), SpecialImport::doImport(), ApiTestCase::doLogin(), SpecialRecentChanges::doMainQuery(), SpecialWatchlist::doMainQuery(), WikiPage::doModify(), Article::doRollback(), UserrightsPage::doSaveUserGroups(), MovePageForm::doSubmit(), EditPage::edit(), Preferences::editingPreferences(), User::edits(), UserrightsPage::editUserGroupsForm(), ApiTag::execute(), SpecialListFiles::execute(), ApiClearHasMsg::execute(), ApiProtect::execute(), ApiUndelete::execute(), ApiMove::execute(), ApiImport::execute(), ApiRevisionDelete::execute(), ApiWatch::execute(), ApiQueryMyStashedFiles::execute(), Undelete::execute(), ApiUpload::execute(), SpecialContributions::execute(), ApiQueryTokens::execute(), ApiPatrol::execute(), ApiSetNotificationTimestamp::execute(), ApiEditPage::execute(), ApiLogout::execute(), SpecialUnlinkAccounts::execute(), ApiOptions::execute(), ApiUnblock::execute(), SpecialPreferences::execute(), SpecialUserLogout::execute(), ApiQueryDeletedrevs::execute(), FixUserRegistration::execute(), ApiPurge::execute(), ApiQueryFilearchive::execute(), DeletedContributionsPage::execute(), DeleteDefaultMessages::execute(), MakeTestEdits::execute(), MigrateUserGroup::execute(), ApiDelete::execute(), ApiBlock::execute(), ImportSiteScripts::execute(), InitEditCount::execute(), WrapOldPasswords::execute(), ApiRollback::execute(), ApiQueryLogEvents::execute(), ChangePassword::execute(), Protect::execute(), ResetUserEmail::execute(), SpecialWatchlist::execute(), ApiStashEdit::execute(), ApiQueryImageInfo::execute(), ImportTextFiles::execute(), RollbackEdits::execute(), DeleteBatch::execute(), ResetUserTokens::execute(), ApiUserrights::execute(), MoveBatch::execute(), CreateAndPromote::execute(), ApiLogin::execute(), SpecialEditTags::execute(), SpecialImport::execute(), MovePageForm::execute(), UserrightsPage::execute(), DeleteEqualMessages::execute(), ApiQueryUsers::execute(), SpecialRevisionDelete::execute(), PasswordReset::execute(), SpecialUpload::execute(), QueryPage::execute(), SpecialUndelete::execute(), SpecialPageExecutor::executeSpecialPage(), SpecialPageTestBase::executeSpecialPage(), ApiQueryInfo::extractPageInfo(), ApiQueryRevisionsBase::extractRevisionInfo(), ApiQueryLogEvents::extractRowInfo(), ApiQueryWatchlist::extractRowInfo(), ApiQueryRecentChanges::extractRowInfo(), UserrightsPage::fetchUser(), LocalRepo::findFiles(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::finishAccountCreation(), ProtectLogFormatter::formatExpiry(), SpecialUndelete::formatFileRow(), LogFormatter::formatParameterValue(), LogFormatter::formatParameterValueForApi(), MIMEsearchPage::formatResult(), FileDuplicateSearchPage::formatResult(), DeletedContribsPager::formatRevisionRow(), SpecialMergeHistory::formatRevisionRow(), SpecialUndelete::formatRevisionRow(), SpecialProtectedtitles::formatRow(), NewFilesPager::formatRow(), ActiveUsersPager::formatRow(), UsersPager::formatRow(), ContribsPager::formatRow(), ParserTest::fuzzTest(), CoreParserFunctions::gender(), Preferences::generateSkinOptions(), SpecialLog::getActionButtons(), DeleteLogFormatter::getActionLinks(), RevDelArchivedFileItem::getApiData(), RevDelLogItem::getApiData(), RevDelRevisionItem::getApiData(), RevDelFileItem::getApiData(), MediaWiki\Auth\AuthManager::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequestsInternal(), CreditsAction::getAuthor(), MediaWiki\Session\SessionBackendTest::getBackend(), User::getBlockedStatus(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::getBlockedUser(), ImageHistoryPseudoPager::getBody(), EnhancedChangesListTest::getCategorizationChange(), WikiPage::getComment(), Revision::getComment(), Article::getComment(), WikiPage::getContent(), Revision::getContent(), OldChangesListTest::getContext(), RCCacheEntryFactoryTest::getContext(), CreditsAction::getContributors(), InfoAction::getContributors(), WikiPage::getContributors(), WikiPage::getCreator(), Article::getCreator(), ApiQueryUserInfo::getCurrentUserInfo(), Skin::getDefaultModules(), SpecialRecentChanges::getDefaultOptions(), SpecialWatchlist::getDefaultOptions(), UserDupes::getDupes(), EnhancedChangesListTest::getEditChange(), OldChangesListTest::getEditChange(), User::getEffectiveGroups(), LogEventsList::getExcludeClause(), LogEventsList::getExtraInputs(), LoginSignupSpecialPage::getFakeTemplate(), SpecialUndelete::getFileLink(), RevertAction::getFormFields(), SpecialChangeEmail::getFormFields(), SpecialResetTokens::getFormFields(), SpecialBlock::getFormFields(), Preferences::getFormObject(), User::getGlobalBlock(), UsersPager::getGroups(), OutputPage::getHeadLinksArray(), MWTimestamp::getHumanTimestamp(), Language::getHumanTimestamp(), ImagePage::getImageLimitsFromOption(), ApiQueryImageInfo::getInfo(), User::getInstanceForUpdate(), OutputPage::getJSVars(), IRCColourfulRCFeedFormatter::getLine(), OldChangesListTest::getLogChange(), DifferenceEngine::getMarkPatrolledLinkInfo(), OldChangesListTest::getNewBotEditChange(), User::getNewMessageLinks(), Skin::getNewtalks(), Title::getNotificationTimestamp(), Preferences::getOptionFromUser(), UploadForm::getOptionsSection(), SpecialUndelete::getPageLink(), ResourceLoaderUserGroupsModule::getPages(), ResourceLoaderUserModule::getPages(), Article::getParserOutput(), SpecialEmailUser::getPermissionsError(), Preferences::getPreferences(), NewPagesPager::getQueryInfo(), DeletedContribsPager::getQueryInfo(), ContribsPager::getQueryInfo(), ApiQueryUserInfo::getRateLimits(), ManualLogEntry::getRecentChange(), MWTimestamp::getRelativeTimestamp(), Skin::getRelevantUser(), SpecialPageFactory::getRestrictedPages(), MWNamespace::getRestrictionLevels(), DifferenceEngine::getRevisionHeader(), RollbackEdits::getRollbackTitles(), LogEventsList::getShowHideLinks(), HistoryPager::getStartBody(), DeletedContributionsPage::getSubTitle(), EnhancedChangesListTest::getTestUser(), OldChangesListTest::getTestUser(), RCCacheEntryFactoryTest::getTestUser(), WikiPage::getText(), Revision::getText(), Article::getText(), ImageHistoryList::getThumbForLine(), ApiTestCase::getTokenList(), ApiTokens::getTokenTypes(), FileRepo::getUploadStash(), ApiUserrights::getUrUser(), SpecialPageFactory::getUsablePages(), CategoryMembershipChange::getUser(), DoubleRedirectJob::getUser(), WikiPage::getUser(), Revision::getUser(), Article::getUser(), LogEventsList::getUserInput(), Title::getUserPermissionsErrors(), Title::getUserPermissionsErrorsInternal(), ApiQueryUsers::getUserrightsToken(), Parser::getUserSig(), WikiPage::getUserText(), Revision::getUserText(), Article::getUserText(), ApiQueryInfo::getVisitingWatcherInfo(), ApiQueryInfo::getWatchedInfo(), ApiQueryInfo::getWatcherInfo(), ApiBase::getWatchlistUser(), UserrightsPage::groupCheckboxes(), DumpRenderer::handleRevision(), HistoryPager::historyLine(), ImageHistoryList::imageHistoryLine(), ParserOptions::initialiseFromUser(), ReassignEdits::initialiseUser(), MediaWiki\Auth\AuthManagerAuthPlugin::initUser(), MediaWikiTestCase::insertPage(), Article::insertProtectNullRevision(), WikiPage::insertProtectNullRevision(), UploadFromUrl::isAllowed(), UploadBase::isAllowed(), SpecialUndelete::isAllowed(), User::isEmailConfirmed(), User::isHidden(), User::isLocked(), UploadBase::isThrottled(), LogPager::limitPerformer(), LogPager::limitTitle(), LogPager::limitType(), SpecialSearch::load(), User::loadFromSession(), User::loadFromUserObject(), Preferences::loadPreferenceValues(), SpecialUndelete::loadRequest(), CentralIdLookup::localUserFromCentralId(), BotPassword::login(), MssqlInstaller::loginExists(), User::logout(), LoginSignupSpecialPage::mainLoginForm(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::makeFailResponse(), ChangesListSpecialPage::makeLegend(), OutputPage::makeResourceLoaderLink(), MovePage::move(), MovePage::moveToInternal(), SpecialPageExecutor::newContext(), EnhancedChangesListTest::newEnhancedChangesList(), RecentChange::newForCategorization(), ChangesList::newFromContext(), RCCacheEntryFactory::newFromRecentChange(), User::newFromRow(), User::newFromSession(), ParserOptions::newFromUser(), RecentChange::newLogEntry(), Revision::newNullRevision(), User::newSystemUser(), CategoryMembershipChange::notifyCategorization(), RecentChange::notifyEdit(), RecentChange::notifyLog(), RecentChange::notifyNew(), WikiPage::onArticleDelete(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::onLocalUserCreated(), SpecialResetTokens::onSubmit(), SpecialChangeContentModel::onSubmit(), RevertAction::onSuccess(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::onUserGroupsChanged(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::onUserLoggedIn(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::onUserSaveSettings(), RollbackAction::onView(), MarkpatrolledAction::onView(), DatabaseMysqlBase::open(), DatabaseMssql::open(), DatabaseOracle::open(), MssqlInstaller::openConnection(), PostgresInstaller::openConnectionToAnyDB(), PostgresInstaller::openConnectionWithParams(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), SpecialWatchlist::outputChangesList(), SpecialWatchlist::outputFeedLinks(), InfoAction::pageInfo(), ApiStashEdit::parseAndStash(), MediaWiki::performAction(), MediaWiki::performRequest(), UploadBase::performUpload(), MediaWiki\Session\CookieSessionProvider::persistSession(), User::pingLimiter(), MediaWiki\Auth\UserDataAuthenticationRequest::populateUser(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::postAuthentication(), LoginSignupSpecialPage::postProcessFormDescriptor(), SpecialBlock::postText(), SpecialSearch::powerSearchBox(), SpecialListFiles::prefixSearchSubpages(), SpecialUnblock::prefixSearchSubpages(), SpecialEmailUser::prefixSearchSubpages(), SpecialContributions::prefixSearchSubpages(), UserrightsPage::prefixSearchSubpages(), SpecialBlock::prefixSearchSubpages(), Skin::preloadExistence(), WikiPage::prepareContentForEdit(), Article::prepareContentForEdit(), ApiQueryContributions::prepareQuery(), WikiPage::prepareTextForEdit(), Article::prepareTextForEdit(), ApiQueryContributions::prepareUsername(), ApiQueryBlocks::prepareUsername(), SpecialBlock::processForm(), Preferences::profilePreferences(), MediaWiki\Auth\AuthManagerTest::provideAuthentication(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerRevokeAccessForUser(), Parser::pstPass2(), Title::quickUserCan(), Preferences::rcPreferences(), RebuildRecentchanges::rebuildRecentChangesTablePass4(), PatrolLog::record(), AssembleUploadChunksJob::run(), PublishStashedFileJob::run(), ApiQueryDeletedRevisions::run(), ApiQueryAllDeletedRevisions::run(), ApiQueryWatchlistRaw::run(), ApiQueryWatchlist::run(), ApiQueryRevisions::run(), ApiQueryRecentChanges::run(), RefreshLinksJob::runForTitle(), EditPage::runPostMergeFilters(), ParserTest::runTest(), ApiTokensTest::runTokenTest(), ProtectionForm::save(), SpecialSearch::saveNamespaces(), UserrightsPage::saveUserGroups(), UserNamePrefixSearch::search(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendPasswordResetEmail(), MediaWiki\Session\CookieSessionProvider::sessionDataToExport(), Block::setBlocker(), PreferencesForm::setModifiedUser(), Article::setOldSubtitle(), MediaWiki\Auth\AuthManagerAuthPlugin::setPassword(), MediaWiki\Session\TestBagOStuff::setSession(), MediaWiki\Session\TestBagOStuff::setSessionData(), MediaWiki\Auth\AuthManager::setSessionDataForUser(), LoginSignupSpecialPage::setSessionUserForCurrentRequest(), SpecialWatchlist::setTopText(), TextContentTest::setUp(), CssContentTest::setUp(), ParserTest::setupDatabase(), ParserOptions::setupFakeRevision(), SkinTemplate::setupTemplateForOutput(), MediaWiki\Session\Session::setUser(), Parser::setUser(), EditAction::show(), PurgeAction::show(), SpecialTags::showActivateDeactivateForm(), Article::showDeletedRevisionHeader(), SpecialTags::showDeleteTagForm(), DifferenceEngine::showDiffPage(), Article::showDiffPage(), UserrightsPage::showEditUserGroupsForm(), SpecialUndelete::showFileConfirmationForm(), MovePageForm::showForm(), SpecialImport::showForm(), SpecialExpandTemplates::showHtmlPreview(), EditPage::showIntro(), LogEventsList::showLogExtract(), UserrightsPage::showLogFragment(), Article::showMissingArticle(), LogEventsList::showOptions(), Article::showPatrolFooter(), EmailConfirmation::showRequestForm(), SpecialUndelete::showRevision(), SpecialTags::showTagList(), SpecialUpload::showViewDeletedLinks(), Preferences::skinPreferences(), ApiStashEdit::stashEditFromPreview(), UploadFromChunks::stashFile(), UploadFromStash::stashFile(), UploadBase::stashFile(), WebInstallerName::submit(), SpecialPreferences::submitReset(), MssqlInstaller::submitSettingsForm(), SpecialChangeCredentials::success(), SpecialCreateAccount::successfulAction(), SpecialUserLogin::successfulAction(), MediaWiki\Auth\AbstractPreAuthenticationProviderTest::testAbstractPreAuthenticationProvider(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testAbstractPrimaryAuthenticationProvider(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testAbstractSecondaryAuthenticationProvider(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreationEmail(), MediaWiki\Auth\AuthManagerTest::testAccountCreationLogging(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), WatchedItemUnitTest::testAddWatch(), WatchedItemStoreUnitTest::testAddWatchBatchReturnsTrue_whenGivenEmptyList(), ApiLoginTest::testApiLoginBadPass(), ApiLoginTest::testApiLoginGoodPass(), ApiLoginTest::testApiLoginGotCookie(), ApiMainTest::testAssert(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testBasics(), BotPasswordTest::testBasics(), MediaWiki\Auth\AuthManagerTest::testBeginAccountLink(), MediaWiki\Auth\AuthManagerTest::testBeginAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginSecondaryAuthentication(), ApiLoginTest::testBotPassword(), SpecialPreferencesTest::testBug41337(), MediaWiki\Auth\AuthManagerTest::testCheckAccountCreatePermissions(), CentralIdLookupTest::testCheckAudience(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), MediaWiki\Session\BotPasswordSessionProviderTest::testCheckSessionInfo(), UserPasswordPolicyTest::testCheckUserPassword(), MediaWiki\Session\SessionTest::testClear(), SpecialEditWatchlistTest::testClearPage_hasClearButtonForm(), WatchedItemUnitTest::testConstruction(), MediaWiki\Auth\AuthManagerTest::testContinueAccountLink(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueSecondaryAuthentication(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), WatchedItemStoreUnitTest::testCountUnreadNotifications(), WatchedItemStoreUnitTest::testCountUnreadNotifications_withUnreadLimit_overLimit(), WatchedItemStoreUnitTest::testCountUnreadNotifications_withUnreadLimit_underLimit(), WatchedItemStoreUnitTest::testCountWatchedItems(), BlockTest::testCrappyCrossWikiBlocks(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), WatchedItemIntegrationTest::testDuplicateAllAssociatedEntries(), WatchedItemStoreIntegrationTest::testDuplicateAllAssociatedEntries(), SpecialEditWatchlistTest::testEditRawPage_hasTitlesBox(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAuthentication(), WikiMapTest::testForeignUserLink(), WatchedItemUnitTest::testFromUserTitle(), NewParserTest::testFuzzTests(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testGetNewPasswordExpiry(), WatchedItemIntegrationTest::testGetNotificationTimestamp_falseOnNotAllowed(), WatchedItemIntegrationTest::testGetNotificationTimestamp_falseOnNotWatched(), WatchedItemStoreUnitTest::testGetNotificationTimestampsBatch_allItemsCached(), WatchedItemStoreUnitTest::testGetNotificationTimestampsBatch_cachedItem(), UserPasswordPolicyTest::testGetPoliciesForUser(), ApiTokensTest::testGettingToken(), WatchedItemStoreUnitTest::testGetWatchedItemsForUser(), WatchedItemStoreUnitTest::testGetWatchedItemsForUser_optionsAndEmptyResult(), ApiRevisionDeleteTest::testHidingRevisions(), MWTimestampTest::testHumanTimestamp(), RequestContextTest::testImportScopedSession(), MediaWiki\Session\SessionManagerTest::testInvalidateSessionsForUser(), PasswordResetTest::testIsAllowed(), WatchedItemUnitTest::testIsWatched(), WatchedItemIntegrationTest::testIsWatched_falseOnNotAllowed(), CentralIdLookupTest::testLocalUserFromCentralId(), ApiUploadTest::testLogin(), ApiBlockTest::testMakeNormalBlock(), MediaWiki\Session\UserInfoTest::testNewFromId(), MediaWiki\Session\UserInfoTest::testNewFromName(), MailAddressTest::testNewFromUser(), MediaWiki\Session\UserInfoTest::testNewFromUser(), MediaWiki\Session\BotPasswordSessionProviderTest::testNewSessionInfoForRequest(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testOnLocalUserCreated(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testOnUserGroupsChanged(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testOnUserLoggedIn(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testOnUserSaveSettings(), NewParserTest::testParserTest(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSessionWithHook(), MediaWiki\Auth\UserDataAuthenticationRequestTest::testPopulateUser(), ParserMethodsTest::testPreSaveTransform(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testPrimaryAccountLink(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationDataEmail(), MediaWiki\Session\CookieSessionProviderTest::testProvideSessionInfo(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testRangeBlock(), MWTimestampTest::testRelativeTimestamp(), WatchedItemUnitTest::testRemoveWatch(), WatchedItemIntegrationTest::testRemoveWatch_falseOnNotAllowed(), MediaWiki\Session\SessionBackendTest::testRenew(), SpecialPageTest::testRequireLoginAnon(), SpecialPageTest::testRequireLoginNotAnon(), WatchedItemUnitTest::testResetNotificationTimestamp(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampNotForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_item(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_noItemForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_notWatchedPageForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedLatestRevisionForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedNotLatestRevisionForced(), SpecialEditWatchlistTest::testRootPage_displaysExplanationMessage(), MediaWiki\Session\SessionBackendTest::testSave(), MediaWiki\Auth\AuthManagerTest::testSecuritySensitiveOperationStatus(), MediaWiki\Auth\AuthManagerTest::testSetDefaultUserOptions(), MediaWiki\Session\SessionBackendTest::testSetUser(), TemplateCategoriesTest::testTemplateCategories(), ArticleTablesTest::testTemplatelinksUsesContentLanguage(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testTestUserCanAuthenticate(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testTestUserForCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestUserForCreation(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), ApiRevisionDeleteTest::testUnhidingOutput(), BotPasswordTest::testUnsaved(), WatchedItemIntegrationTest::testUpdateAndResetNotificationTimestamp(), WatchedItemStoreIntegrationTest::testUpdateAndResetNotificationTimestamp(), WatchedItemStoreUnitTest::testUpdateNotificationTimestamp_clearsCachedItems(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::testUserCanAuthenticateInternal(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::testUserForCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testUserForCreation(), GenderCacheTest::testUserObjects(), SpecialWatchlistTest::testUserWithNoWatchedItems_displaysNoWatchlistMessage(), WatchedItemStoreIntegrationTest::testWatchAndUnWatchItem(), WatchedItemIntegrationTest::testWatchAndUnWatchItem(), TitleTest::testWgWhitelistReadRegexp(), Language::translateBlockExpiry(), Preferences::tryFormSubmit(), SpecialRevisionDelete::tryShowFile(), PageArchive::undelete(), PageArchive::undeleteRevisions(), ChangeTagsLogList::updateChangeTagsOnAll(), ChangeTagsRevisionList::updateChangeTagsOnAll(), MediaWiki\Auth\AuthManagerAuthPlugin::updateExternalDB(), MediaWiki\Auth\AuthManagerAuthPlugin::updateExternalDBGroups(), MediaWiki\Auth\AuthManagerAuthPlugin::updateUser(), ResetUserTokens::updateUser(), EditPage::updateWatchlist(), UserOptions::USAGER(), HTMLFileCache::useFileCache(), LogEventsList::userCan(), ChangesList::userCan(), Revision::userCan(), Title::userCan(), LogEventsList::userCanBitfield(), Revision::userCanBitfield(), UserrightsPage::userCanChangeRights(), OutputPage::userCanPreview(), ReassignEdits::userConditions(), MysqlInstaller::userDefinitelyExists(), MssqlInstaller::userExists(), SearchEngineConfig::userNamespaces(), SearchEngine::userNamespaces(), ReassignEdits::userSpecification(), Linker::userToolLinks(), HTMLUserTextField::validate(), UploadBase::verifyPermissions(), UploadBase::verifyTitlePermissions(), Article::view(), Preferences::watchlistPreferences(), wfStreamThumb(), and UserRightsProxy::whoIs().

this hook is for auditing only or null if authentication failed before getting that far $username

Definition at line 766 of file hooks.txt.

Referenced by UsersPager::__construct(), ActiveUsersPager::__construct(), MediaWiki\Auth\AuthManagerAuthPlugin::authenticate(), MediaWiki\Auth\AuthManager::autoCreateUser(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAuthentication(), UsersPager::buildGroupLink(), MediaWiki\Auth\AuthManager::canCreateAccount(), BotPassword::canonicalizeLoginData(), UserOptions::CHANGER(), PasswordPolicyChecks::checkPasswordCannotMatchBlacklist(), PasswordPolicyChecks::checkPasswordCannotMatchUsername(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::checkPasswordValidity(), MediaWiki\Auth\Throttler::clear(), LoginForm::clearLoginThrottle(), SpecialRedirect::dispatchUser(), GenderCache::doLinkBatch(), UserrightsPage::editUserGroupsForm(), ImportSiteScripts::execute(), CleanupSpam::execute(), RollbackEdits::execute(), DeleteBatch::execute(), CreateAndPromote::execute(), PasswordReset::execute(), UserrightsPage::fetchUser(), MediaWiki\Auth\AuthManager::fillRequests(), SpecialNewpages::form(), ProtectedPagesPager::formatValue(), CoreParserFunctions::gender(), MediaWiki\Auth\AuthManagerAuthPlugin::getCanonicalName(), AuthPlugin::getCanonicalName(), SwiftFileBackend::getCredsCacheKey(), GenderCache::getGenderOf(), User::getGroupMember(), BlockLogFormatter::getMessageParameters(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::getNewPasswordExpiry(), NewPagesPager::getQueryInfo(), UserArrayFromResultTest::getRowWithUsername(), CategoryMembershipChange::getUser(), DoubleRedirectJob::getUser(), ResourceLoaderContext::getUserObj(), Parser::getUserSig(), LoginForm::incLoginThrottle(), MediaWiki\Auth\Throttler::increase(), LoginForm::incrementLoginThrottle(), ReassignEdits::initialiseUser(), BotPassword::invalidateAllPasswordsForUser(), MediaWiki\Session\SessionManager::isUserSessionPrevented(), BotPassword::login(), GenderCache::normalizeUsername(), MediaWiki\Auth\AuthManager::normalizeUsername(), SpecialPasswordReset::onSubmit(), SpecialPasswordReset::onSuccess(), SpecialBotPasswords::onSuccess(), MediaWiki\Session\Session\BotPasswordSessionProvider::preventSessionsForUser(), MediaWiki\Session\SessionManager::preventSessionsForUser(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerNormalizeUsername(), MediaWiki\Auth\AbstractSecondaryAuthenticationProvider::providerRevokeAccessForUser(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerRevokeAccessForUser(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerRevokeAccessForUser(), BotPassword::removeAllPasswordsForUser(), MediaWiki\Auth\AuthManager::revokeAccessForUser(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::setPasswordResetFlag(), EditPage::showEditForm(), EditPage::showIntro(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreationLogging(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateFailOnLogin(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), BlockTest::testBlockedUserCanNotCreateAccount(), MediaWiki\Auth\AuthManagerTest::testCanCreateAccount(), BotPasswordTest::testCanonicalizeLoginData(), UserPasswordPolicyTest::testCheckUserPassword(), UserArrayFromResultTest::testConstructionWithRow(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), UserArrayFromResultTest::testCurrentAfterConstruction(), BlockTest::testDeprecatedConstructor(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), UserTest::testIsValidUserName(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::testState(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::testUserCanAuthenticate(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserCanAuthenticate(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserCanAuthenticate(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::testUserCanAuthenticate(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserExists(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserExists(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::testUserExists(), GenderCacheTest::testUserName(), GenderCacheTest::testUserObjects(), ResetUserTokens::updateUser(), MediaWiki\Auth\AuthManager::userCanAuthenticate(), MediaWiki\Auth\AuthManager::userExists(), and MediaWiki\Auth\AuthManagerTest::usernameForCreation().

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

Definition at line 51 of file hooks.txt.

Referenced by follows().

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

Definition at line 51 of file hooks.txt.

error __pad0__

Definition at line 2422 of file hooks.txt.

please add to it if you re going to add events to the MediaWiki code AbortAutoAccount

Definition at line 246 of file hooks.txt.

you don t have to do a grep find to see where the $wgReverseTitle variable is say If the code is well enough it can even be excluded when not used making for some slight savings in memory and load up performance at runtime Admins who want to have all the reversed titles can 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

Definition at line 86 of file hooks.txt.

Referenced by RedisLockManager::getLocksOnServer().

An extension or a local admin

Definition at line 51 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 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' you ll need to handle error etc yourself Alternatively

Definition at line 1103 of file hooks.txt.

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

Definition at line 23 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 false for ascending

Definition at line 1008 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 ATTENTION
inline

Definition at line 766 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 AuthPluginAutoCreate

Definition at line 766 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 AutopromoteCondition

Definition at line 766 of file hooks.txt.

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

Definition at line 2342 of file hooks.txt.

Referenced by wfStreamThumb().

Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function becomes

Definition at line 73 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 BeforeDisplayNoArticleText
inline

Definition at line 766 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 BeforeInitialize
inline

Definition at line 766 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 modifiable BeforeParserFetchFileAndTitle
inline

Definition at line 766 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 modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result BitmapHandlerTransform
inline

Definition at line 766 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 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
inline

Definition at line 766 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 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
inline

Definition at line 766 of file hooks.txt.

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 error messages should be plain text with no special bolding

Definition at line 1568 of file hooks.txt.

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

Definition at line 1802 of file hooks.txt.

Referenced by cell(), CheckLanguageCLI::help(), and Parser::replaceInternalLinks2().

it s the revision text itself In either case

Definition at line 2552 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 ChangeTagCanCreate

Definition at line 969 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 ChangeTagCanDelete

Definition at line 969 of file hooks.txt.

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
string $code PHP ClassCollector::code
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 error messages should be plain text with no special coloring

Definition at line 1568 of file hooks.txt.

magic word the default is to use $key to get the and $key value or $key value text $key value html to format the value $report is an HTML table with two columns
Returning false makes less sense for events where the action is complete
namespace addition is conditional
inline

Definition at line 914 of file hooks.txt.

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

Definition at line 23 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 ContentHandlerDefaultModelFor

Definition at line 1008 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 ContentModelCanBeUsedOn

Definition at line 1008 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 false for true for descending ContributionsLineEnding

Definition at line 1008 of file hooks.txt.

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

Definition at line 2422 of file hooks.txt.

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

Definition at line 34 of file hooks.txt.

array $mLimitReportData Parser limit report ParserOutput::data

Definition at line 6 of file hooks.txt.

Referenced by DummyContentForTesting::__construct(), DummyNonTextContent::__construct(), ReplacementArray::__construct(), QuickTemplate::__construct(), BenchUtf8TitleCheck::__construct(), BackupReader::__construct(), StripState::__construct(), FauxRequest::__construct(), WebRequest::__construct(), MediaWiki\Session\SessionBackend::__construct(), Exif::__construct(), LinkBatch::add(), FakeAuthTemplate::addInputItem(), StripState::addItem(), LinkBatch::constructSet(), JobQueueRedis::doAck(), LinkBatch::doGenderQuery(), BenchUtf8TitleCheck::execute(), ZipDirectoryReader::execute(), QuickTemplate::extend(), ExternalStoreFOO::fetchFromURL(), LCStoreStaticArray::finishWrite(), QuickTemplate::get(), LCStoreStaticArray::get(), WebRequest::getArray(), BaseTemplate::getFooterLinks(), BaseTemplate::getIndicators(), LocalisationCache::getItem(), ApiResult::getResultData(), BaseTemplate::getSidebar(), DummyContentForTesting::getSize(), DummyNonTextContent::getSize(), LinkBatch::getSize(), QuickTemplate::getSkin(), LocalisationCache::getSubitem(), StripState::getSubState(), BaseTemplate::getToolbox(), WebRequest::getVal(), WebRequest::getValues(), QuickTemplate::haveData(), QuickTemplate::html(), LocalisationCache::initLanguage(), LocalisationCache::initShallowFallback(), WebRequest::interpolateTitle(), MessageCache::load(), LocalisationCache::loadItem(), LocalisationCache::loadSubitem(), ReplacementArray::merge(), StripState::merge(), ReplacementArray::mergeArray(), LocalisationCache::recache(), ReplacementArray::removePair(), ReplacementArray::replace(), ApiResult::reset(), MediaWiki\Session\SessionBackend::save(), DummyContentForTesting::serialize(), DummyNonTextContent::serialize(), QuickTemplate::set(), LCStoreStaticArray::set(), ReplacementArray::setArray(), LinkBatch::setArray(), ReplacementArray::setPair(), QuickTemplate::setRef(), WebRequest::setVal(), showUsage(), LCStoreStaticArray::startWrite(), QuickTemplate::text(), LocalisationCacheBulkLoad::trimCache(), LocalisationCache::unload(), WebRequest::unsetVal(), StripState::unstripCallback(), and StripState::unstripType().

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

Definition at line 93 of file hooks.txt.

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

Definition at line 192 of file hooks.txt.

in this case you re responsible for computing and outputting the entire conflict i 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

Definition at line 1244 of file hooks.txt.

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

Definition at line 1244 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 etc

Definition at line 93 of file hooks.txt.

and how to run hooks for an event
Initial value:
==Glossary==
event
Something that happens with the wiki. For example: a user logs in. A wiki
page is saved. A wiki page is deleted. Often there are two events
associated with a single action: one before the code is run to make the
event happen
and how to run hooks for an and one after Each event has a preferably in CamelCase For example
Definition: hooks.txt:6
#define the
table suitable for use with IDatabase::select()
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if that
Definition: deferred.txt:11
We use the convention $dbr for read and $dbw for write to help you keep track of whether the database object is a the world will explode Or to be a subsequent write query which succeeded on the master may fail when replicated to the slave due to a unique key collision Replication on the slave will stop and it may take hours to repair the database and get it back online Setting read_only in my cnf on the slave will avoid this but given the dire we prefer to have as many checks as possible We provide a but the wrapper functions like please read the documentation for except in special pages derived from QueryPage It s a common pitfall for new developers to submit code containing SQL queries which examine huge numbers of rows Remember that COUNT * is(N), counting rows in atable is like counting beans in a bucket.------------------------------------------------------------------------Replication------------------------------------------------------------------------The largest installation of MediaWiki, Wikimedia, uses a large set ofslave MySQL servers replicating writes made to a master MySQL server.Itis important to understand the issues associated with this setup if youwant to write code destined for Wikipedia.It's often the case that the best algorithm to use for a given taskdepends on whether or not replication is in use.Due to our unabashedWikipedia-centrism, we often just use the replication-friendly version, but if you like, you can use wfGetLB() ->getServerCount() > 1 tocheck to see if replication is in use.===Lag===Lag primarily occurs when large write queries are sent to the master.Writes on the master are executed in parallel, but they are executed inserial when they are replicated to the slaves.The master writes thequery to the binlog when the transaction is committed.The slaves pollthe binlog and start executing the query as soon as it appears.They canservice reads while they are performing a write query, but will not readanything more from the binlog and thus will perform no more writes.Thismeans that if the write query runs for a long time, the slaves will lagbehind the master for the time it takes for the write query to complete.Lag can be exacerbated by high read load.MediaWiki's load balancer willstop sending reads to a slave when it is lagged by more than 30 seconds.If the load ratios are set incorrectly, or if there is too much loadgenerally, this may lead to a slave permanently hovering around 30seconds lag.If all slaves are lagged by more than 30 seconds, MediaWiki will stopwriting to the database.All edits and other write operations will berefused, with an error returned to the user.This gives the slaves achance to catch up.Before we had this mechanism, the slaves wouldregularly lag by several minutes, making review of recent editsdifficult.In addition to this, MediaWiki attempts to ensure that the user seesevents occurring on the wiki in chronological order.A few seconds of lagcan be tolerated, as long as the user sees a consistent picture fromsubsequent requests.This is done by saving the master binlog positionin the session, and then at the start of each request, waiting for theslave to catch up to that position before doing any reads from it.Ifthis wait times out, reads are allowed anyway, but the request isconsidered to be in"lagged slave mode".Lagged slave mode can bechecked by calling wfGetLB() ->getLaggedSlaveMode().The onlypractical consequence at present is a warning displayed in the pagefooter.===Lag avoidance===To avoid excessive lag, queries which write large numbers of rows shouldbe split up, generally to write one row at a time.Multi-row INSERT...SELECT queries are the worst offenders should be avoided altogether.Instead do the select first and then the insert.===Working with lag===Despite our best efforts, it's not practical to guarantee a low-lagenvironment.Lag will usually be less than one second, but mayoccasionally be up to 30 seconds.For scalability, it's very importantto keep load on the master low, so simply sending all your queries tothe master is not the answer.So when you have a genuine need forup-to-date data, the following approach is advised:1) Do a quick query to the master for a sequence number or timestamp 2) Run the full query on the slave and check if it matches the data you gotfrom the master 3) If it doesn't, run the full query on the masterTo avoid swamping the master every time the slaves lag, use of thisapproach should be kept to a minimum.In most cases you should just readfrom the slave and let the user deal with the delay.------------------------------------------------------------------------Lock contention------------------------------------------------------------------------Due to the high write rate on Wikipedia(and some other wikis), MediaWiki developers need to be very careful to structure their writesto avoid long-lasting locks.By default, MediaWiki opens a transactionat the first query, and commits it before the output is sent.Locks willbe held from the time when the query is done until the commit.So youcan reduce lock time by doing as much processing as possible before youdo your write queries.Often this approach is not good enough, and it becomes necessary toenclose small groups of queries in their own transaction.Use thefollowing syntax:$dbw=wfGetDB(DB_MASTER
null for the local wiki Added in
Definition: hooks.txt:1422
has been added to your &Future changes to this page and its associated Talk page will be listed there
This code would result in ircNotify being run twice when an article is saved
Definition: hooks.txt:177
Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously just call php someScript php that s in the top level maintenance directory if not default wiki
Definition: maintenance.txt:1
The ContentHandler facility adds support for arbitrary content types on wiki instead of relying on wikitext for everything It was introduced in MediaWiki Each kind of and so on Built in content types are
as see the revision history and logs
Definition: LICENSE.txt:5
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Wikitext formatted, in the key only.
Definition: distributors.txt:9
or there are no hooks to run
Definition: hooks.txt:227
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
Definition: hooks.txt:23
action
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
Definition: hooks.txt:2342

Definition at line 4 of file hooks.txt.

this hook is for auditing only etc instead of letting the login form give the generic error message that the account does not exist For example

Definition at line 6 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 exportArticle

Definition at line 93 of file hooks.txt.

if false
inline

Definition at line 189 of file hooks.txt.

Referenced by ContribsPager::__construct(), ThumbnailImage::__construct(), PPFrame_Hash::__construct(), PPFrame_DOM::__construct(), WatchedItemStore::addWatchBatchForUser(), IPTest::assertFalseCIDR(), SkinTemplate::buildContentNavigationUrls(), ProtectionForm::buildForm(), SkinTemplate::buildPersonalUrls(), SpecialEditWatchlist::buildTools(), Parser::callParserFunction(), Title::checkUserBlock(), Block::chooseBlock(), CopyFileBackend::copyFileBatch(), NaiveForeignTitleFactory::createForeignTitle(), CssContentTest::dataEquals(), JavaScriptContentTest::dataEquals(), TextContentTest::dataEquals(), WikitextContentTest::dataEquals(), JavaScriptContentTest::dataIsCountable(), TextContentTest::dataIsCountable(), TextContentTest::dataIsEmpty(), WikitextContentHandlerTest::dataIsSupportedFormat(), ContentHandlerTest::dataMakeContent(), HtmlTest::dataXmlMimeType(), LocalFile::delete(), RCCacheEntryFactoryTest::deleteChangeProvider(), SiteStatsInit::doAllAndCommit(), CategoryViewer::doCategoryQuery(), JobQueueRedis::doDelete(), WANObjectCache::doGetWithSetCallback(), MockOggHandler::doTransform(), RCCacheEntryFactoryTest::editChangeProvider(), CompareParserCache::execute(), FindMissingFiles::execute(), SpecialContributions::execute(), SpecialLog::execute(), ApiEditPage::execute(), SpecialTags::execute(), PasswordReset::execute(), LogFormatter::extractParameters(), ExternalStoreDB::fetchBlob(), WikitextContent::fillParserOutput(), Parser::formatHeadings(), Linker::formatLinksInComment(), ApiMove::getAllowedParams(), ApiQueryAllDeletedRevisions::getAllowedParams(), CreditsAction::getAuthor(), User::getBlockId(), DatabaseBase::getCacheSetOptions(), User::getCanonicalName(), RedisConnectionPool::getConnection(), RedisBagOStuff::getConnection(), FileBackendStore::getContainerHashLevels(), JobQueueDB::getDB(), SwiftFileBackend::getDirListPageInternal(), OutputPage::getHeadLinksArray(), WebInstaller::getInfoBox(), MachineReadableRCFeedFormatter::getLine(), NewUsersLogFormatter::getMessageParameters(), BackupReader::getNsIndex(), WikitextContent::getRedirectTargetAndText(), MediaHandler::getThumbType(), CategoryMembershipChange::getUser(), WatchedItemStore::getWatchedItemsForUser(), TitleValueTest::goodConstructorProvider(), FileBackendGroup::guessMimeInternal(), ApiMain::handleApiBeforeMainException(), MediaWiki\Session\SessionProvider::hashToSessionId(), HistoryPager::historyLine(), FileCacheBase::incrMissesRecent(), Message::inLanguage(), EditPage::internalAttemptSave(), CoreParserFunctions::intFunction(), User::isBlockedFrom(), ApiMain::lacksSameOriginSecurity(), MediaWiki\Session\SessionManager::loadSessionInfoFromStore(), Linker::makeBrokenImageLinkObj(), MagicWordArray::matchVariableStartToEnd(), moveToExternal(), XmlTypeCheck::newFromString(), UnregisteredLocalFile::newFromTitle(), CoreParserFunctions::ns(), WikiPage::onArticleDelete(), SpecialUploadStash::outputLocallyScaledThumb(), Parser::parse(), SpecialBlock::postText(), LogFormatterTest::provideApiParamFormatting(), GlobalTest::provideArrayToCGI(), ApiMainTest::provideAssert(), WatchedItemUnitTest::provideBooleans(), BlockTest::provideBug29116Data(), BotPasswordTest::provideCanonicalizeLoginData(), JavaScriptMinifierTest::provideCases(), LinkerTest::provideCasesForFormatComment(), WikiCategoryPageTest::provideCategoryContent(), RecentChangeTest::provideCategoryContent(), DatabaseMysqlBaseTest::provideChannelPositions(), CoreVersionCheckerTest::provideCheck(), MWRestrictionsTest::provideCheckIP(), MediaWiki\Session\CookieSessionProviderTest::provideCookieData(), DatabaseMysqlBaseTest::provideDiapers(), HtmlTest::provideElementsWithAttributesHavingDefaultValues(), TitleMethodsTest::provideEquals(), ExtensionRegistryTest::provideExportExtractedDataGlobals(), EditPageTest::provideExtractSectionTitle(), ApiFormatNoneTest::provideGeneralEncoding(), ApiFormatXmlTest::provideGeneralEncoding(), GlobalVarConfigTest::provideGet(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::provideGetAuthenticationRequests(), UserTest::provideGetCanonicalName(), TitleTest::provideGetPageViewLanguage(), WikiMapTest::provideGetWiki(), MWGrantsTest::provideGrantsAreValid(), TitleMethodsTest::provideHasSubjectNamespace(), WikiPageTest::provideHasViewableContent(), TitleMethodsTest::provideInNamespace(), TitleTest::provideIsAlwaysKnown(), PNGHandlerTest::provideIsAnimated(), GIFHandlerTest::provideIsAnimated(), SpecialBooksourcesTest::provideISBNs(), WikiPageTest::provideIsCountable(), TitleMethodsTest::provideIsCssJsSubpage(), TitleMethodsTest::provideIsCssOrJsPage(), TitleMethodsTest::provideIsCssSubpage(), StatusTest::provideIsGood(), RecentChangeTest::provideIsInRCLifespan(), TitleMethodsTest::provideIsJsSubpage(), StatusTest::provideIsOk(), TitleMethodsTest::provideIsWikitextPage(), MediaWiki\Auth\CreationReasonAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\UsernameAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\CreatedAccountAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\ButtonAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\UserDataAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\AuthenticationRequestTest::provideLoadFromSubmission(), CentralIdLookupTest::provideLocalUserFromCentralId(), MessageCacheTest::provideMessagesForFallback(), MessageCacheTest::provideMessagesForFullKeys(), MediaWiki\Session\SessionTest::provideMethods(), MediaWiki\Session\SessionProviderTest::provideNewSessionInfo(), FormatJsonTest::provideParse(), FormatJsonTest::provideParseTryFixing(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::providePersistSession(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), FileBackendTest::provider_testGetContentType(), FileBackendTest::provider_testGetFileStat(), FileBackendTest::provider_testIsStoragePath(), FileTest::providerCanAnimate(), CSSMinTest::provideRemapCases(), MWExceptionTest::provideRunHooks(), MediaWiki\Auth\AuthManagerTest::provideSecuritySensitiveOperationStatus(), StatusTest::provideSetResult(), IPTest::provideSplitHostAndPort(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::provideState(), WebPHandlerTest::provideTestExtractMetaData(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::provideTestForAccountCreation(), WebPHandlerTest::provideTestGetImageSize(), ApiQueryTest::provideTestTitlePartToKey(), UserArrayFromResultTest::provideTestValid(), TitleArrayFromResultTest::provideTestValid(), WfParseUrlTest::provideURLs(), MediaWiki\Auth\AuthManagerTest::provideUserCanAuthenticate(), MediaWiki\Auth\AuthManagerTest::provideUserExists(), LinkFilterTest::provideValidPatterns(), LocalFile::publishTo(), RCCacheEntryFactoryTest::revUserDeleteProvider(), SavepointPostgres::rollback(), JobRunner::run(), RefreshLinksJob::runForTitle(), EditPage::setHeaders(), SpecialLog::show(), ChronologyProtector::shutdown(), LockManagerGroup::singleton(), JobQueueGroup::singleton(), MediaWiki\Logger\Monolog\KafkaHandlerTest::swallowsExceptionsWhenRequested(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), ReplicatedBagOStuffTest::testGetAbsent(), FauxRequestTest::testGetSetHeader(), RecentChangeTest::testHiddenCategoryChange(), RevisionStorageTest::testNewNullRevision(), ParserOutputTest::testProperties(), TitlePermissionTest::testQuickPermissions(), ReplicatedBagOStuffTest::testSet(), WatchedItemStoreIntegrationTest::testWatchAndUnWatchItem(), GlobalTest::testWfPercentTest(), File::transform(), PageArchive::undeleteRevisions(), CoreParserFunctions::urlFunction(), Preferences::validateSignature(), DatabaseMysqlBase::wasReadOnlyError(), Preferences::watchlistPreferences(), and wfStreamThumb().

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

Definition at line 314 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 FetchChangesList

Definition at line 1310 of file hooks.txt.

to their LocalSettings php file

Definition at line 93 of file hooks.txt.

Referenced by RevDelArchivedFileItem::__construct(), LessFileCompilationTest::__construct(), RevDelFileItem::__construct(), BackupReader::__construct(), FileDeleteForm::__construct(), Exif::__construct(), ThumbnailImage::__construct(), TestFileIterator::__construct(), MySQLMasterPos::__construct(), LocalFileDeleteBatch::__construct(), LocalFileRestoreBatch::__construct(), LocalFileMoveBatch::__construct(), LocalFileDeleteBatch::addCurrent(), LocalFileDeleteBatch::addOld(), LocalFileDeleteBatch::addOlds(), RevDelFileItem::canView(), RevDelFileItem::canViewContent(), ApiFileRevert::checkPermissions(), TestFileIterator::checkSection(), LocalFileRestoreBatch::cleanup(), LocalFileRestoreBatch::cleanupFailedBatch(), LocalFileMoveBatch::cleanupSource(), LocalFileMoveBatch::cleanupTarget(), LocalFileDeleteBatch::doDBDeletes(), LocalFileDeleteBatch::doDBInserts(), LocalFileMoveBatch::doDBUpdates(), ApiFileRevert::execute(), FileDeleteForm::execute(), FileDuplicateSearchPage::execute(), MWDocGen::execute(), ZipDirectoryReader::execute(), LocalFileDeleteBatch::execute(), LocalFileRestoreBatch::execute(), LocalFileMoveBatch::execute(), RevDelFileItem::getBits(), RevDelFileItem::getComment(), MediaTransformOutput::getDescLinkAttribs(), ZipDirectoryReader::getFileLength(), LocalFileDeleteBatch::getHashes(), RevDelFileItem::getHTML(), RevDelArchivedFileItem::getLink(), RevDelFileItem::getLink(), MediaTransformOutput::getLocalCopyPath(), LocalFileMoveBatch::getMoveTriplets(), ZipDirectoryReader::getSegment(), RevDelFileItem::getUserTools(), CheckLanguageCLI::help(), RevDelFileItem::isDeleted(), User::isLocallyBlockedProxy(), GenerateSitemap::main(), NewParserTest::parserTestProvider(), DatabaseInstaller::populateInterwikiTable(), FileDeleteForm::prepareMessage(), DumpBackup::processOptions(), GIFMetadataExtractorTest::provideGetMetadata(), MergeMessageFileList::readFile(), LocalFileDeleteBatch::removeNonexistentFiles(), LocalFileRestoreBatch::removeNonexistentFiles(), LocalFileMoveBatch::removeNonexistentFiles(), LocalFileRestoreBatch::removeNonexistentFromCleanup(), RevDelFileItem::setBits(), NewParserTest::setParserTestFile(), showUsage(), MediaTransformOutput::streamFileWithStatus(), LessFileCompilationTest::testLessFileCompilation(), ThumbnailImage::toHtml(), and ApiFileRevert::validateParameters().

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

Definition at line 1310 of file hooks.txt.

Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable or merely the Work and Derivative Works thereof Contribution shall mean any work of including the original version of the Work and any modifications or additions to that Work or Derivative Works that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner For the purposes of this submitted means any form of or written communication sent to the Licensor or its including but not limited to communication on electronic mailing source code control and issue tracking systems that are managed or on behalf the Licensor for the purpose of discussing and improving the but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as Not a Contribution Contributor shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work Grant of Copyright License Subject to the terms and conditions of this each Contributor hereby grants to You a non no royalty irrevocable copyright license to prepare Derivative Works publicly publicly and distribute the Work and such Derivative Works in Source or Object form Grant of Patent License Subject to the terms and conditions of this each Contributor hereby grants to You a non no royalty have offer to and otherwise transfer the where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed Redistribution You may reproduce and distribute copies of the Work or Derivative Works thereof in any with or without and in Source or Object form
For QUnit framework

Definition at line 2545 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 function

Definition at line 1008 of file hooks.txt.

null for the local wiki Added should default to null in handler functions

Definition at line 1422 of file hooks.txt.

null for the local wiki Added should default to null in handler for backwards compatibility GalleryGetModes

Definition at line 1422 of file hooks.txt.

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

Definition at line 1422 of file hooks.txt.

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

Definition at line 1422 of file hooks.txt.

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

Definition at line 1477 of file hooks.txt.

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

Definition at line 1477 of file hooks.txt.

presenting them properly to the user as errors is done by the caller return true getUserPermissionsErrorsExpensive

Definition at line 1574 of file hooks.txt.

presenting them properly to the user as errors is done by the caller return true GitViewers

Definition at line 1588 of file hooks.txt.

gzip

Definition at line 2556 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 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
inline

Definition at line 766 of file hooks.txt.

Referenced by UnregisteredLocalFile::cachePageDimensions(), File::canRender(), ArchivedFile::getHandler(), File::getHandler(), UnregisteredLocalFile::getImageSize(), UnregisteredLocalFile::getMetadata(), File::isMultipage(), File::mustRender(), ArchivedFile::pageCount(), File::pageCount(), SvgTest::setUp(), JpegTest::setUp(), XCFHandlerTest::setUp(), GIFHandlerTest::setUp(), PNGHandlerTest::setUp(), ExifRotationTest::setUp(), WikitextContentHandlerTest::setUp(), DjVuTest::setUp(), ExifBitmapTest::setUp(), TiffTest::setUp(), ExifRotationTest::testBitmapExtractPreRotationDimensions(), ExifBitmapTest::testConvertMetadataLatest(), ExifBitmapTest::testConvertMetadataSoftware(), ExifBitmapTest::testConvertMetadataSoftwareNormal(), ExifBitmapTest::testConvertMetadataToOld(), WikitextContentHandlerTest::testGetAutosummary(), PNGHandlerTest::testGetImageArea(), GIFHandlerTest::testGetImageArea(), XCFHandlerTest::testGetImageSize(), DjVuTest::testGetImageSize(), SvgTest::testGetIndependentMetaArray(), JpegTest::testGetIndependentMetaArray(), GIFHandlerTest::testGetIndependentMetaArray(), PNGHandlerTest::testGetIndependentMetaArray(), XCFHandlerTest::testGetMetadata(), GIFHandlerTest::testGetMetadata(), PNGHandlerTest::testGetMetadata(), DjVuTest::testGetPageDimensions(), DjVuTest::testGetPageText(), ExifBitmapTest::testGoodMetadata(), JpegTest::testInvalidFile(), PNGHandlerTest::testInvalidFile(), GIFHandlerTest::testInvalidFile(), TiffTest::testInvalidFile(), DjVuTest::testInvalidFile(), PNGHandlerTest::testIsAnimanted(), GIFHandlerTest::testIsAnimanted(), ExifBitmapTest::testIsBrokenFile(), ExifBitmapTest::testIsInvalid(), XCFHandlerTest::testIsMetadataValid(), GIFHandlerTest::testIsMetadataValid(), PNGHandlerTest::testIsMetadataValid(), ExifBitmapTest::testIsOldBroken(), ExifBitmapTest::testIsOldGood(), WikitextContentHandlerTest::testIsSupportedFormat(), JpegTest::testJpegMetadataExtraction(), WikitextContentHandlerTest::testMakeEmptyContent(), WikitextContentHandlerTest::testMakeRedirectContent(), WikitextContentHandlerTest::testMerge3(), ExifRotationTest::testMetadata(), DjVuTest::testPageCount(), ExifBitmapTest::testPagedTiffHandledGracefully(), ExifRotationTest::testRotationRendering(), WikitextContentHandlerTest::testSerializeContent(), ExifBitmapTest::testSwappingICCProfile(), TiffTest::testTiffMetadataExtraction(), WikitextContentHandlerTest::testUnserializeContent(), and ForeignAPIFile::transform().

they could be provided by a third party developer or written by the admin him herself
Initial value:
==Writing hooks==
A hook is a chunk of code run at some particular event. It consists of:
* a function with some optional accompanying data
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
Definition: hooks.txt:6
I won t presume to tell you how to I m just describing the methods I chose to use for myself If you do choose to follow these it will probably be easier for you to collaborate with others on the but if you want to contribute without by all means do which work well I also use K &R brace matching style I know that s a religious issue for some
Definition: design.txt:79
We use the convention $dbr for read and $dbw for write to help you keep track of whether the database object is a the world will explode Or to be a subsequent write query which succeeded on the master may fail when replicated to the slave due to a unique key collision Replication on the slave will stop and it may take hours to repair the database and get it back online Setting read_only in my cnf on the slave will avoid this but given the dire we prefer to have as many checks as possible We provide a but the wrapper functions like please read the documentation for except in special pages derived from QueryPage It s a common pitfall for new developers to submit code containing SQL queries which examine huge numbers of rows Remember that COUNT * is(N), counting rows in atable is like counting beans in a bucket.------------------------------------------------------------------------Replication------------------------------------------------------------------------The largest installation of MediaWiki, Wikimedia, uses a large set ofslave MySQL servers replicating writes made to a master MySQL server.Itis important to understand the issues associated with this setup if youwant to write code destined for Wikipedia.It's often the case that the best algorithm to use for a given taskdepends on whether or not replication is in use.Due to our unabashedWikipedia-centrism, we often just use the replication-friendly version, but if you like, you can use wfGetLB() ->getServerCount() > 1 tocheck to see if replication is in use.===Lag===Lag primarily occurs when large write queries are sent to the master.Writes on the master are executed in parallel, but they are executed inserial when they are replicated to the slaves.The master writes thequery to the binlog when the transaction is committed.The slaves pollthe binlog and start executing the query as soon as it appears.They canservice reads while they are performing a write query, but will not readanything more from the binlog and thus will perform no more writes.Thismeans that if the write query runs for a long time, the slaves will lagbehind the master for the time it takes for the write query to complete.Lag can be exacerbated by high read load.MediaWiki's load balancer willstop sending reads to a slave when it is lagged by more than 30 seconds.If the load ratios are set incorrectly, or if there is too much loadgenerally, this may lead to a slave permanently hovering around 30seconds lag.If all slaves are lagged by more than 30 seconds, MediaWiki will stopwriting to the database.All edits and other write operations will berefused, with an error returned to the user.This gives the slaves achance to catch up.Before we had this mechanism, the slaves wouldregularly lag by several minutes, making review of recent editsdifficult.In addition to this, MediaWiki attempts to ensure that the user seesevents occurring on the wiki in chronological order.A few seconds of lagcan be tolerated, as long as the user sees a consistent picture fromsubsequent requests.This is done by saving the master binlog positionin the session, and then at the start of each request, waiting for theslave to catch up to that position before doing any reads from it.Ifthis wait times out, reads are allowed anyway, but the request isconsidered to be in"lagged slave mode".Lagged slave mode can bechecked by calling wfGetLB() ->getLaggedSlaveMode().The onlypractical consequence at present is a warning displayed in the pagefooter.===Lag avoidance===To avoid excessive lag, queries which write large numbers of rows shouldbe split up, generally to write one row at a time.Multi-row INSERT...SELECT queries are the worst offenders should be avoided altogether.Instead do the select first and then the insert.===Working with lag===Despite our best efforts, it's not practical to guarantee a low-lagenvironment.Lag will usually be less than one second, but mayoccasionally be up to 30 seconds.For scalability, it's very importantto keep load on the master low, so simply sending all your queries tothe master is not the answer.So when you have a genuine need forup-to-date data, the following approach is advised:1) Do a quick query to the master for a sequence number or timestamp 2) Run the full query on the slave and check if it matches the data you gotfrom the master 3) If it doesn't, run the full query on the masterTo avoid swamping the master every time the slaves lag, use of thisapproach should be kept to a minimum.In most cases you should just readfrom the slave and let the user deal with the delay.------------------------------------------------------------------------Lock contention------------------------------------------------------------------------Due to the high write rate on Wikipedia(and some other wikis), MediaWiki developers need to be very careful to structure their writesto avoid long-lasting locks.By default, MediaWiki opens a transactionat the first query, and commits it before the output is sent.Locks willbe held from the time when the query is done until the commit.So youcan reduce lock time by doing as much processing as possible before youdo your write queries.Often this approach is not good enough, and it becomes necessary toenclose small groups of queries in their own transaction.Use thefollowing syntax:$dbw=wfGetDB(DB_MASTER
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
database rows
Definition: globals.txt:10
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 hook
Definition: hooks.txt:23
Using a hook running we can avoid having all this option specific stuff in our mainline code Using hooks
Definition: hooks.txt:73
or there are no hooks to run
Definition: hooks.txt:227
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
Definition: hooks.txt:23

Definition at line 131 of file hooks.txt.

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 hook
Initial value:
==Rationale==
Hooks allow us to decouple optionally-run code from code that is run for
everyone. It allows MediaWiki hackers
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if that
Definition: deferred.txt:11
We use the convention $dbr for read and $dbw for write to help you keep track of whether the database object is a the world will explode Or to be a subsequent write query which succeeded on the master may fail when replicated to the slave due to a unique key collision Replication on the slave will stop and it may take hours to repair the database and get it back online Setting read_only in my cnf on the slave will avoid this but given the dire we prefer to have as many checks as possible We provide a but the wrapper functions like please read the documentation for except in special pages derived from QueryPage It s a common pitfall for new developers to submit code containing SQL queries which examine huge numbers of rows Remember that COUNT * is(N), counting rows in atable is like counting beans in a bucket.------------------------------------------------------------------------Replication------------------------------------------------------------------------The largest installation of MediaWiki, Wikimedia, uses a large set ofslave MySQL servers replicating writes made to a master MySQL server.Itis important to understand the issues associated with this setup if youwant to write code destined for Wikipedia.It's often the case that the best algorithm to use for a given taskdepends on whether or not replication is in use.Due to our unabashedWikipedia-centrism, we often just use the replication-friendly version, but if you like, you can use wfGetLB() ->getServerCount() > 1 tocheck to see if replication is in use.===Lag===Lag primarily occurs when large write queries are sent to the master.Writes on the master are executed in parallel, but they are executed inserial when they are replicated to the slaves.The master writes thequery to the binlog when the transaction is committed.The slaves pollthe binlog and start executing the query as soon as it appears.They canservice reads while they are performing a write query, but will not readanything more from the binlog and thus will perform no more writes.Thismeans that if the write query runs for a long time, the slaves will lagbehind the master for the time it takes for the write query to complete.Lag can be exacerbated by high read load.MediaWiki's load balancer willstop sending reads to a slave when it is lagged by more than 30 seconds.If the load ratios are set incorrectly, or if there is too much loadgenerally, this may lead to a slave permanently hovering around 30seconds lag.If all slaves are lagged by more than 30 seconds, MediaWiki will stopwriting to the database.All edits and other write operations will berefused, with an error returned to the user.This gives the slaves achance to catch up.Before we had this mechanism, the slaves wouldregularly lag by several minutes, making review of recent editsdifficult.In addition to this, MediaWiki attempts to ensure that the user seesevents occurring on the wiki in chronological order.A few seconds of lagcan be tolerated, as long as the user sees a consistent picture fromsubsequent requests.This is done by saving the master binlog positionin the session, and then at the start of each request, waiting for theslave to catch up to that position before doing any reads from it.Ifthis wait times out, reads are allowed anyway, but the request isconsidered to be in"lagged slave mode".Lagged slave mode can bechecked by calling wfGetLB() ->getLaggedSlaveMode().The onlypractical consequence at present is a warning displayed in the pagefooter.===Lag avoidance===To avoid excessive lag, queries which write large numbers of rows shouldbe split up, generally to write one row at a time.Multi-row INSERT...SELECT queries are the worst offenders should be avoided altogether.Instead do the select first and then the insert.===Working with lag===Despite our best efforts, it's not practical to guarantee a low-lagenvironment.Lag will usually be less than one second, but mayoccasionally be up to 30 seconds.For scalability, it's very importantto keep load on the master low, so simply sending all your queries tothe master is not the answer.So when you have a genuine need forup-to-date data, the following approach is advised:1) Do a quick query to the master for a sequence number or timestamp 2) Run the full query on the slave and check if it matches the data you gotfrom the master 3) If it doesn't, run the full query on the masterTo avoid swamping the master every time the slaves lag, use of thisapproach should be kept to a minimum.In most cases you should just readfrom the slave and let the user deal with the delay.------------------------------------------------------------------------Lock contention------------------------------------------------------------------------Due to the high write rate on Wikipedia(and some other wikis), MediaWiki developers need to be very careful to structure their writesto avoid long-lasting locks.By default, MediaWiki opens a transactionat the first query, and commits it before the output is sent.Locks willbe held from the time when the query is done until the commit.So youcan reduce lock time by doing as much processing as possible before youdo your write queries.Often this approach is not good enough, and it becomes necessary toenclose small groups of queries in their own transaction.Use thefollowing syntax:$dbw=wfGetDB(DB_MASTER
A helper class for throttling authentication attempts.
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable from
or there are no hooks to run
Definition: hooks.txt:227
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
Definition: hooks.txt:23

Definition at line 23 of file hooks.txt.

Referenced by SpecialStatistics::execute().

they could be provided by a third party developer or written by the admin him or *an object with a method and some optional accompanying data Hooks are registered by adding them to the global $wgHooks array for a given event All the following are valid ways to define hooks
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 existing services However
static

Definition at line 2000 of file hooks.txt.

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 imagelinks

Definition at line 1802 of file hooks.txt.

see documentation in includes Linker php for Linker::makeImageLink or false for current used if you return false ImageOpenShowImageInlineBefore

Definition at line 1616 of file hooks.txt.

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 externallinks including delete and insert

Definition at line 1802 of file hooks.txt.

Referenced by DatabaseSqlite::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

Definition at line 117 of file hooks.txt.

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

Definition at line 1574 of file hooks.txt.

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 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

Definition at line 1928 of file hooks.txt.

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

Definition at line 1244 of file hooks.txt.

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 externallinks including delete and has completed for all link tables whether this was an auto creation LogEventsListGetExtraInputs

Definition at line 1802 of file hooks.txt.

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

Definition at line 2342 of file hooks.txt.

this hook is for auditing only etc LoginFormValidErrorMessages

Definition at line 1950 of file hooks.txt.

this hook is for auditing only etc 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

Definition at line 1950 of file hooks.txt.

logged in & lt
Initial value:
{{int:Accesskey-contributions}}
</td></tr><tr><td>
[[MediaWiki_talk:Accesskey-currentevents|Talk]]
</td><td>
</a >< ahref="/index.php?title=Special:Upload&amp;wpDestFile=Nonexistent"class="new"title="File:Nonexistent"> abc</a ></p >!html parsoid< p >< spanclass="mw-default-size"typeof="mw:Errormw:Image"data-mw='{"errors":[{"key":"missing-image","message":"Thisimagedoesnotexist."}],"caption":"&amp;lt;script&amp;gt;&amp;lt;/script&amp;gt;"}'>< ahref="./File:Nonexistent">< imgresource="./File:Nonexistent"src="./Special:FilePath/Nonexistent"height="220"width="220"/></a ></span >< spantypeof="mw:Errormw:Image"data-mw='{"errors":[{"key":"missing-image","message":"Thisimagedoesnotexist."}],"caption":"&amp;lt;script&amp;gt;&amp;lt;/script&amp;gt;"}'>< ahref="./File:Nonexistent">< imgresource="./File:Nonexistent"src="./Special:FilePath/Nonexistent"height="100"width="100"/></a ></span >< spanclass="mw-default-size"typeof="mw:Errormw:Image"data-mw='{"errors":[{"key":"missing-image","message":"Thisimagedoesnotexist."}],"caption":"&lt;spantypeof=\"mw:Entity\"data-parsoid=\"{&amp;quot;src&amp;quot;:&amp;quot;&amp;amp;lt;&amp;quot;,&amp;quot;srcContent&amp;quot;:&amp;quot;&lt;&amp;quot;,&amp;quot;dsr&amp;quot;:[107,111,null,null]}\"> & amp
Apache License January http
!end!test Link with brackets!wikitext[[[Main Page]]] Foo[[[Main Page]]]!html< p >[[[Main Page]]] Foo[[[Main Page]]]</p >!end!test Link with brackets!wikitext[[[[Main Page]]]]!html< p >[[< a href="/wiki/Main_Page"title="Main Page">Main Page</a >]]</p >!end!test Piped link with brackets!wikitext[[[main page|the main page]]]!html< p >[[[main page|the main page]]]</p >!end!test Piped link with extlink like text!wikitext[[Main Page|[bar]]][[Main Page|This is a[bar]]]!html php< p >< ahref="/wiki/Main_Page"title="MainPage"></a >< ahref="/wiki/Main_Page"title="MainPage"> This is a[bar]</a ></p >!html parsoid< p >< arel="mw:WikiLink"href="./Main_Page"title="MainPage"data-parsoid='{"stx":"piped"}'></a >< arel="mw:WikiLink"href="./Main_Page"title="MainPage"data-parsoid='{"stx":"piped"}'> This is a[bar]</a ></p >!end!test Link with multiple pipes!wikitext[[Main Page|The|Main|Page]]!html< p >< ahref="/wiki/Main_Page"title="MainPage"> The Main Page</a ></p >!end!test Anchor containing a!wikitext[[Main Page#And#Link]]!html php< p >< ahref="/wiki/Main_Page#And.23Link"title="MainPage"> Main Page</p >!html parsoid< p >< arel="mw:WikiLink"href="./Main_Page#And%23Link"title="MainPage"> Main Page!end!test Link to namespaces!html< p >< ahref="/index.php?title=Talk:Parser_testing&amp;action=edit&amp;redlink=1"class="new"title="Talk:Parsertesting(pagedoesnotexist)"> Talk

Definition at line 1935 of file hooks.txt.

configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title MarkPatrolled
static

Definition at line 2000 of file hooks.txt.

those of us who don t want or need it can just leave it out The extensions don t even have to be shipped with MediaWiki

Definition at line 3 of file hooks.txt.

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 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
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' you ll need to handle error messages
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 existing services the preferred way to define a new service is the $wgServiceWiringFiles array change it to the message you want to define MimeMagicGuessFromContent
static

Definition at line 2000 of file hooks.txt.

for adding new MIME types to the list ModifyExportQuery

Definition at line 2093 of file hooks.txt.

and how to run hooks for an and one after Each event has a name

Definition at line 6 of file hooks.txt.

return true to allow those checks to occur

Definition at line 1310 of file hooks.txt.

When an event occurs

Definition at line 150 of file hooks.txt.

within a display generated by the Derivative if and wherever such third party notices normally appear The contents of the NOTICE file are for informational purposes only and do not modify the License You may add Your own attribution notices within Derivative Works that You alongside or as an addendum to the NOTICE text from the provided that such additional attribution notices cannot be construed as modifying the License You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for or distribution of Your or for any such Derivative Works as a provided Your and distribution of the Work otherwise complies with the conditions stated in this License Submission of Contributions Unless You explicitly state otherwise

Definition at line 2552 of file hooks.txt.

page as if applicable</td >< td > ve followed a link to a page that doesn &To create the page

Definition at line 2342 of file hooks.txt.

Referenced by DumpBackup::__construct(), BlockListPager::__construct(), LinksDeletionUpdate::__construct(), UpdateCollation::__construct(), PoolWorkArticleView::__construct(), TextPassDumper::__construct(), Action::__construct(), ThumbnailImage::__construct(), EditPage::__construct(), LinksDeletionUpdate::doUpdate(), PoolWorkArticleView::doWork(), UpdateLogging::execute(), PoolWorkArticleView::fallback(), HistoryAction::fetchRevisions(), LinksDeletionUpdate::getAsJobSpecification(), PoolWorkArticleView::getCachedWork(), CachedAction::getCacheKey(), EditPage::getContentObject(), Action::getContext(), CreditsAction::getContributors(), InfoAction::getContributors(), CreditsAction::getCredits(), EditPage::getCurrentContent(), MediaTransformOutput::getDescLinkAttribs(), FormAction::getForm(), RevertAction::getFormFields(), SearchUpdate::getLatestPage(), User::getNewtalk(), RawAction::getOldId(), EditPage::getPreviewText(), ImportTest::getRedirectXML(), Action::getTitle(), ImportTest::getUnknownTagsXML(), CheckLanguageCLI::help(), EditPage::initialiseForm(), EditPage::internalAttemptSave(), Linker::normalizeSubpageLink(), PurgeAction::onSubmit(), RevertAction::onSubmit(), RevertAction::onSuccess(), RollbackAction::onView(), CreditsAction::onView(), RawAction::onView(), InfoAction::onView(), HistoryAction::onView(), InfoAction::pageInfo(), ApiEditPageTest::provideEditAppend(), Parser::replaceInternalLinks2(), DjVuImage::retrieveMetaData(), EditPage::setPostEditCookie(), SpecialMIMESearchTest::setUp(), UnprotectAction::show(), ViewAction::show(), DeleteAction::show(), ProtectAction::show(), RenderAction::show(), EditPage::showDiff(), EditPage::showEditForm(), MovePageForm::showForm(), EditPage::showHeader(), SpecialMIMESearchTest::testMimeFiltering(), SideBarTest::testTrickyPipe(), wfPHPVersionError(), DumpLatestFilter::writeClosePage(), and DumpLatestFilter::writeOpenPage().

and how to run hooks for an and one after Each event has a preferably in CamelCase For PageContentSave

Definition at line 6 of file hooks.txt.

and how to run hooks for an and one after Each event has a preferably in CamelCase For PageContentSaveComplete

Definition at line 6 of file hooks.txt.

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 pagelinks

Definition at line 1802 of file hooks.txt.

if it s text intended for display in a monospaced font $report should be output in English ParserLimitReportPrepare

Definition at line 2331 of file hooks.txt.

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

Definition at line 2342 of file hooks.txt.

in this case you re responsible for computing and outputting the entire conflict part

Definition at line 1244 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 modifiable after all normalizations have been performed
inline

Definition at line 766 of file hooks.txt.

Referenced by UpdateLogging::execute().

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

Definition at line 2342 of file hooks.txt.

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

Definition at line 2342 of file hooks.txt.

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

Definition at line 1244 of file hooks.txt.

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

Definition at line 1802 of file hooks.txt.

Referenced by Exif::__construct(), and MediaWikiTitleCodec::splitTitleString().

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
static

Definition at line 2000 of file hooks.txt.

this hook is for auditing only etc 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

Definition at line 1950 of file hooks.txt.

Referenced by WebRequestUpload::__construct(), ResourceLoaderContext::__construct(), MediaWiki\Auth\AuthManager::__construct(), WebInstaller::__construct(), MediaWiki\Auth\AuthManager::autoCreateUser(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\AuthManager::canAuthenticateNow(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), WebInstaller::execute(), MediaWiki\Auth\AuthManager::forcePrimaryAuthenticationProviders(), MediaWiki\Auth\AuthManager::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationSessionData(), WebInstaller::getFingerprint(), RedisLockManager::getLocksOnServer(), MediaWiki\Auth\AuthManagerTest::getMockSessionProvider(), RequestContext::getRequest(), DerivativeContext::getRequest(), WebInstaller::getUrl(), MediaWiki\Auth\AuthManagerTest::initializeManager(), WebRequestUpload::isIniSizeOverflow(), WebInstaller::outputCss(), MediaWiki\Auth\AuthManager::removeAuthenticationSessionData(), MediaWiki\Auth\AuthManager::securitySensitiveOperationStatus(), MediaWiki\Auth\AuthManager::setAuthenticationSessionData(), RequestContext::setRequest(), DerivativeContext::setRequest(), MediaWiki\Auth\AuthManager::setSessionDataForUser(), WebInstaller::setupLanguage(), WebInstaller::setVarsFromRequest(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateFailOnLogin(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), MediaWiki\Auth\AuthManagerTest::testBeginAccountCreation(), MediaWiki\Auth\AuthManagerTest::testBeginAccountLink(), MediaWiki\Auth\AuthManagerTest::testBeginAuthentication(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWiki\Auth\AuthManagerTest::testContinueAccountLink(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), MediaWiki\Auth\AuthManagerTest::testForcePrimaryAuthenticationProviders(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), and MediaWiki\Auth\AuthManagerTest::testSecuritySensitiveOperationStatus().

presenting them properly to the user as errors is done by the caller return true use this to change the list i e rollback

Definition at line 1588 of file hooks.txt.

Allows to change the fields on the form that will be generated rss

Definition at line 314 of file hooks.txt.

Referenced by RSSFeed::outFooter(), and RSSFeed::outHeader().

or there are no hooks to run
This code would result in ircNotify being run twice when an article is saved

Definition at line 177 of file hooks.txt.

external SearchableNamespaces

Definition at line 2562 of file hooks.txt.

set to $title object and return false for a match SearchGetNearMatch

Definition at line 2570 of file hooks.txt.

set to $title object and return false for a match SearchGetNearMatchBefore

Definition at line 2575 of file hooks.txt.

the value to return A Title object or null SearchGetNearMatchComplete

Definition at line 2585 of file hooks.txt.

the value to return A Title object or null for latest SecondaryDataUpdates

Definition at line 2585 of file hooks.txt.

the value to return A Title object or null for latest to be modified or replaced by the hook handler SecuritySensitiveOperationStatus

Definition at line 2585 of file hooks.txt.

the value to return A Title object or null for latest to be modified or replaced by the hook handler or if authentication is not possible SelfLinkBegin

Definition at line 2585 of file hooks.txt.

the value to return A Title object or null for latest to be modified or replaced by the hook handler or if authentication is not possible after cache objects are set ShortPagesQuery

Definition at line 2585 of file hooks.txt.

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

Definition at line 23 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 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
Initial value:
=> 'name of hook'
).
$file: File object of file in question
$single: Only extract the current language
#define the
table suitable for use with IDatabase::select()
within a display generated by the Derivative if and wherever such third party notices normally appear The contents of the NOTICE file are for informational purposes only and do not modify the License You may add Your own attribution notices within Derivative Works that You alongside or as an addendum to the NOTICE text from the provided that such additional attribution notices cannot be construed as modifying the License You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for or distribution of Your or for any such Derivative Works as a provided Your and distribution of the Work otherwise complies with the conditions stated in this License Submission of Contributions Unless You explicitly state any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this without any additional terms or conditions Notwithstanding the nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions Trademarks This License does not grant permission to use the trade service or product names of the except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file Disclaimer of Warranty Unless required by applicable law or agreed to in Licensor provides the WITHOUT WARRANTIES OR CONDITIONS OF ANY either express or including
Group all the pieces relevant to the context of a request into one instance.
$context
Definition: load.php:44
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
database rows
Definition: globals.txt:10
null for the local wiki Added in
Definition: hooks.txt:1422
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
Definition: hooks.txt:93
Implements some public methods and some protected utility functions which are required by multiple ch...
Definition: File.php:50

Definition at line 1473 of file hooks.txt.

Referenced by ApiContinuationManager::__construct(), MergeHistory::__construct(), Exif::__construct(), MergeHistory::checkPermissions(), JSTokenizer::getInput(), MergeHistory::getRevisionCount(), JSTokenizer::init(), MergeHistory::isValidMerge(), MergeHistory::merge(), Site::setSource(), and showUsage().

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

Definition at line 2545 of file hooks.txt.

Using a hook running strategy

Definition at line 73 of file hooks.txt.

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

Definition at line 177 of file hooks.txt.

Referenced by HTMLFileCache::__construct(), FileBackend::__construct(), ResourceLoaderFileModule::__construct(), DatabaseSqlite::__toString(), OutputPage::addCategoryLinks(), MediaWiki\Session\SessionManager::changeBackendId(), ApiStashEdit::checkCache(), WebRequest::checkSessionCookie(), MediaWiki\Session\CookieSessionProvider::cookieDataToExport(), ApiFeedWatchlist::createFeedItem(), SpecialWatchlist::cutoffselector(), Language::dateFormat(), Block::defaultRetroactiveAutoblock(), SpecialContributions::execute(), ApiQueryAuthManagerInfo::execute(), ResourceLoaderFileModule::extractBasePaths(), ResourceLoaderImageModule::extractLocalBasePath(), MessageCache::get(), MediaWiki\Session\SessionBackendTest::getBackend(), Block::getByName(), WatchedItemStore::getCacheKey(), WANObjectCache::getCheckKeyTime(), Block::getDatabaseArray(), ApiBase::getFinalDescription(), SpecialPageLanguage::getFormFields(), ApiParamInfo::getModuleInfo(), MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions(), HTMLFormField::getNearestFieldByName(), HTMLFormField::getOptionsOOUI(), Block::getPermissionsError(), MediaWiki\Session\SessionManager::getProviders(), LoginSignupSpecialPage::hasSessionCookie(), StringUtils::isUtf8(), ResourceLoaderImageModule::loadFromDefinition(), Title::loadFromRow(), SpecialBlock::maybeAlterFormDefaults(), ObjectFileCache::newFromKey(), Block::newLoad(), JobQueueRedis::pushBlobs(), MediaWiki\Session\SessionBackend::resetId(), MediaWiki\Session\SessionBackend::save(), WebResponse::setCookie(), FauxResponse::setCookie(), SpecialChangeCredentials::showSubpageList(), FormatJson::stripComments(), MailAddressTest::test__ToString(), ApiLoginTest::testApiLoginGotCookie(), MediaWiki\Session\SessionManagerTest::testBackendRegistration(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), EditPageTest::testCreatePageTrx(), MediaWiki\Session\SessionManagerTest::testLoadSessionInfoFromStore(), DatabaseSqliteTest::testToString(), Job::toString(), BitmapHandler::transformImageMagick(), BitmapHandler::transformImageMagickExt(), ApiResult::validateValue(), and MediaWiki\Logger\Monolog\LegacyHandler::write().

return true

Definition at line 1802 of file hooks.txt.

Referenced by ResourceLoader::__construct(), DatabaseUpdater::addExtensionField(), DatabaseUpdater::addExtensionIndex(), DatabaseUpdater::addExtensionTable(), ChangesListSpecialPage::buildMainQueryConds(), BotPassword::canonicalizeLoginData(), User::changeAuthenticationData(), SpecialPage::checkLoginSecurityLevel(), FileRepo::cleanupBatch(), FileBackendMultiWrite::consistencyCheck(), CopyFileBackend::copyFileBatch(), CssContentTest::dataEquals(), JavaScriptContentTest::dataEquals(), TextContentTest::dataEquals(), WikitextContentTest::dataEquals(), JavaScriptContentTest::dataIsCountable(), TextContentTest::dataIsCountable(), TextContentTest::dataIsEmpty(), WikitextContentHandlerTest::dataIsSupportedFormat(), ContentHandlerTest::dataMakeContent(), HtmlTest::dataXmlMimeType(), SearchEngineConfig::defaultNamespaces(), FileRepo::deleteBatch(), CopyFileBackend::delFileBatch(), UploadStashCleanup::doOperations(), DatabaseUpdater::dropExtensionField(), DatabaseUpdater::dropExtensionIndex(), DatabaseUpdater::dropExtensionTable(), SpecialRunJobs::execute(), ChangePassword::execute(), MigrateFileRepoLayout::execute(), FixDoubleRedirects::execute(), SpecialTags::execute(), CreateAndPromote::execute(), ApiFormatJson::execute(), ApiQueryUsers::execute(), FileOp::fileExists(), CoreParserFunctions::filepath(), FileOp::fileSha1(), ApiEmailUser::getAllowedParams(), ApiUndelete::getAllowedParams(), ApiUserrights::getAllowedParams(), ApiRollback::getAllowedParams(), ApiOptions::getAllowedParams(), ApiQueryQueryPage::getAllowedParams(), ApiBlock::getAllowedParams(), ApiWatch::getAllowedParams(), ApiQueryRandom::getAllowedParams(), ApiRevisionDelete::getAllowedParams(), ApiQueryLinks::getAllowedParams(), ApiImageRotate::getAllowedParams(), ApiMove::getAllowedParams(), ApiQueryAllPages::getAllowedParams(), ApiQueryBlocks::getAllowedParams(), ApiOpenSearch::getAllowedParams(), ApiQuerySearch::getAllowedParams(), ApiQueryUsers::getAllowedParams(), ApiQueryRevisions::getAllowedParams(), ApiStashEdit::getAllowedParams(), ApiQueryDeletedrevs::getAllowedParams(), ApiQueryContributions::getAllowedParams(), ApiQueryRecentChanges::getAllowedParams(), LinksUpdate::getAsJobSpecification(), CreditsAction::getAuthor(), OOUIHTMLForm::getButtons(), ParserCache::getDirty(), MediaWiki\Auth\UserDataAuthenticationRequest::getFieldInfo(), PostgresUpdater::getOldGlobalUpdates(), DatabaseUpdater::getOldGlobalUpdates(), RawAction::getRawText(), ImagePage404Test::getRepoOptions(), UploadForm::getSourceSection(), TitleValueTest::goodConstructorProvider(), AuthManagerSpecialPage::handleReauthBeforeExecute(), FileRepo::initDirectory(), Language::internalUserTimeAndDate(), User::isItemLoaded(), LoginSignupSpecialPage::load(), ApiAuthManagerHelper::loadAuthenticationRequests(), Skin::makeKnownUrlDetails(), DatabaseUpdater::modifyExtensionField(), MediaWiki\Session\UserInfo::newAnonymous(), HTMLCacheUpdateJob::newForBacklinks(), XmlTypeCheck::newFromFilename(), DuplicateJob::newFromJob(), ForeignAPIFile::newFromTitle(), LBFactorySimple::newMainLB(), ComposerVersionNormalizerTest::nonStringProvider(), RollbackAction::onView(), ApiQuery::outputGeneralPageInfo(), ConverterRule::parse(), ConverterRule::parseFlags(), FileDeleteForm::prepareMessage(), SpecialTags::processTagForm(), LogFormatterTest::provideApiParamFormatting(), MWRestrictionsTest::provideArray(), GlobalTest::provideArrayToCGI(), MediaWiki\Auth\AuthManagerTest::provideAuthentication(), WatchedItemUnitTest::provideBooleans(), BotPasswordTest::provideCanonicalizeLoginData(), LinkerTest::provideCasesForFormatComment(), WikiCategoryPageTest::provideCategoryContent(), RecentChangeTest::provideCategoryContent(), DatabaseMysqlBaseTest::provideChannelPositions(), CoreVersionCheckerTest::provideCheck(), ApiMainTest::provideCheckConditionalRequestHeaders(), MWRestrictionsTest::provideCheckIP(), MediaWiki\Session\CookieSessionProviderTest::provideCookieData(), EditPageTest::provideCreatePages(), DatabaseMysqlBaseTest::provideDiapers(), HtmlTest::provideElementsWithAttributesHavingDefaultValues(), TitleMethodsTest::provideEquals(), ApiErrorFormatterTest::provideErrorFormatter(), LanguageTest::provideFormattableTimes(), ApiFormatNoneTest::provideGeneralEncoding(), ApiFormatXmlTest::provideGeneralEncoding(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::provideGetAuthenticationRequests(), MWGrantsTest::provideGrantsAreValid(), TitleMethodsTest::provideHasSubjectNamespace(), WikiPageTest::provideHasViewableContent(), TitleMethodsTest::provideInNamespace(), PasswordResetTest::provideIsAllowed(), TitleTest::provideIsAlwaysKnown(), PNGHandlerTest::provideIsAnimated(), GIFHandlerTest::provideIsAnimated(), SpecialBooksourcesTest::provideISBNs(), MWExceptionTest::provideIsCommandLine(), WikiPageTest::provideIsCountable(), TitleMethodsTest::provideIsCssJsSubpage(), TitleMethodsTest::provideIsCssOrJsPage(), TitleMethodsTest::provideIsCssSubpage(), StatusTest::provideIsGood(), RecentChangeTest::provideIsInRCLifespan(), TitleMethodsTest::provideIsJsSubpage(), ResourceLoaderWikiModuleTest::provideIsKnownEmpty(), StatusTest::provideIsOk(), MergeHistoryTest::provideIsValidMerge(), TitleMethodsTest::provideIsWikitextPage(), MediaWiki\Auth\ButtonAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\UserDataAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\AuthenticationRequestTest::provideLoadFromSubmission(), CentralIdLookupTest::provideLocalUserFromCentralId(), MediaWiki\Session\SessionTest::provideMethods(), MediaWiki\Session\SessionProviderTest::provideNewSessionInfo(), BitmapScalingTest::provideNormaliseParams(), FormatJsonTest::provideParse(), FormatJsonTest::provideParseStripComments(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::providePersistSession(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), FileBackendTest::provider_testGetContentType(), FileBackendTest::provider_testGetFileStat(), FileBackendTest::provider_testIsStoragePath(), FileBackendTest::provider_testPrepareAndClean(), FileTest::providerCanAnimate(), MediaWiki\Auth\AuthManagerTest::provideSecuritySensitiveOperationStatus(), StatusTest::provideSetResult(), MediaWiki\Logger\LegacyLoggerTest::provideShouldEmit(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::provideState(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::provideTestForAccountCreation(), ApiQueryTest::provideTestTitlePartToKey(), UserArrayFromResultTest::provideTestValid(), TitleArrayFromResultTest::provideTestValid(), MWExceptionTest::provideTextUseOutputPage(), ApiResultTest::provideTransformations(), MediaWiki\Auth\AuthManagerTest::provideUserCanAuthenticate(), MediaWiki\Auth\AuthManagerTest::provideUserExists(), FileRepo::publishBatch(), FileRepo::quickPurgeBatch(), UploadFromUrl::reallyFetchFile(), ResourceLoader::registerTestModules(), CSSMin::remap(), DatabaseUpdater::renameExtensionIndex(), MigrateFileRepoLayout::runBatch(), EraseArchivedFile::scrubVersion(), Message::setContext(), ApiMain::setupModule(), SpecialUndelete::showRevision(), FileRepo::storeBatch(), MediaWiki\Logger\Monolog\KafkaHandlerTest::swallowsExceptionsWhenRequested(), SyncFileBackend::syncBackends(), SkinTemplate::tabAction(), ApiQueryContinueTest::test1List(), ApiQueryContinueTest::test2Lists(), ApiQueryContinue2Test::testA(), SiteTest::testAddInterwikiId(), SiteTest::testAddNavigationId(), ApiQueryContinueTest::testGen1Prop(), ApiQueryContinueTest::testGen1Prop1List(), ApiQueryContinueTest::testGen2Prop(), ApiQueryContinueTest::testGen2Prop2List1Meta(), ComposerLockTest::testGetInstalledDependencies(), ComposerJsonTest::testGetRequiredDependencies(), LogFormatterTest::testIrcMsgForLogTypeBlock(), MediaWiki\Session\UserInfoTest::testNewFromId(), MediaWiki\Session\UserInfoTest::testNewFromName(), ApiParseTest::testParseNonexistentPage(), TitlePermissionTest::testQuickPermissions(), ApiQueryContinueTest::testSameGenAndProp(), ApiQueryContinueTest::testSameGenList(), LinksUpdateTest::testUpdate_page_props(), WANObjectCacheTest::testWritePending(), SpecialUploadStash::tryClearStashedUploads(), and MediaWiki\Session\UserInfo::verified().

Having all this code related to the title reversion option in one place means that it s easier to read and understand

Definition at line 116 of file hooks.txt.

presenting them properly to the user as errors is done by the caller return true use this to change the list i e undo

Definition at line 1588 of file hooks.txt.

bool $databaseSetupDone True if the database has been set ParserTest::up
static
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 used
and how to run hooks for an and one after Each event has a preferably in CamelCase For UserLogin

Definition at line 6 of file hooks.txt.

We ve cleaned up the code here by removing clumps of weird

Definition at line 86 of file hooks.txt.

this hook is for auditing only WRONG_PASS

Definition at line 1950 of file hooks.txt.