dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "externalstore: make ExternalStoreDB::getDomainId treat false the same as null"
[lhc/web/wiklou.git]
/
docs
/
hooks.txt
diff --git
a/docs/hooks.txt
b/docs/hooks.txt
index
5f2c129
..
7f8b192
100644
(file)
--- a/
docs/hooks.txt
+++ b/
docs/hooks.txt
@@
-1193,9
+1193,6
@@
a custom editor, e.g. for a special namespace, etc.
$article: Article being edited
$user: User performing the edit
$article: Article being edited
$user: User performing the edit
-'DatabaseOraclePostInit': Called after initialising an Oracle database
-$db: the DatabaseOracle object
-
'DeletedContribsPager::reallyDoQuery': Called before really executing the query
for Special:DeletedContributions
Similar to ContribsPager::reallyDoQuery
'DeletedContribsPager::reallyDoQuery': Called before really executing the query
for Special:DeletedContributions
Similar to ContribsPager::reallyDoQuery
@@
-1612,7
+1609,7
@@
$out: OutputPage object
notifications.
&$title: Title object of page
&$url: string value as output (out parameter, can modify)
notifications.
&$title: Title object of page
&$url: string value as output (out parameter, can modify)
-$query: query options passed to Title::getCanonicalURL()
+$query: query options
as string
passed to Title::getCanonicalURL()
'GetContentModels': Add content models to the list of available models.
&$models: array containing current model list, as strings. Extensions should add to this list.
'GetContentModels': Add content models to the list of available models.
&$models: array containing current model list, as strings. Extensions should add to this list.
@@
-1650,7
+1647,7
@@
$single: Only extract the current language; if false, the prop value should
'GetFullURL': Modify fully-qualified URLs used in redirects/export/offsite data.
&$title: Title object of page
&$url: string value as output (out parameter, can modify)
'GetFullURL': Modify fully-qualified URLs used in redirects/export/offsite data.
&$title: Title object of page
&$url: string value as output (out parameter, can modify)
-$query: query options passed to Title::getFullURL()
+$query: query options
as string
passed to Title::getFullURL()
'GetHumanTimestamp': Pre-emptively override the human-readable timestamp
generated by MWTimestamp::getHumanTimestamp(). Return false in this hook to use
'GetHumanTimestamp': Pre-emptively override the human-readable timestamp
generated by MWTimestamp::getHumanTimestamp(). Return false in this hook to use
@@
-1664,7
+1661,7
@@
$lang: Language that will be used to render the timestamp
'GetInternalURL': Modify fully-qualified URLs used for squid cache purging.
&$title: Title object of page
&$url: string value as output (out parameter, can modify)
'GetInternalURL': Modify fully-qualified URLs used for squid cache purging.
&$title: Title object of page
&$url: string value as output (out parameter, can modify)
-$query: query options passed to Title::getInternalURL()
+$query: query options
as string
passed to Title::getInternalURL()
'GetIP': modify the ip of the current user (called only once).
&$ip: string holding the ip as determined so far
'GetIP': modify the ip of the current user (called only once).
&$ip: string holding the ip as determined so far
@@
-1689,7
+1686,7
@@
be buggy for internal urls on render if you do not re-implement the horrible
hack that Title::getLocalURL uses in your own extension.
&$title: Title object of page
&$url: string value as output (out parameter, can modify)
hack that Title::getLocalURL uses in your own extension.
&$title: Title object of page
&$url: string value as output (out parameter, can modify)
-$query: query options passed to Title::getLocalURL()
+$query: query options
as string
passed to Title::getLocalURL()
'GetLocalURL::Article': Modify local URLs specifically pointing to article paths
without any fancy queries or variants.
'GetLocalURL::Article': Modify local URLs specifically pointing to article paths
without any fancy queries or variants.
@@
-1699,7
+1696,7
@@
without any fancy queries or variants.
'GetLocalURL::Internal': Modify local URLs to internal pages.
&$title: Title object of page
&$url: string value as output (out parameter, can modify)
'GetLocalURL::Internal': Modify local URLs to internal pages.
&$title: Title object of page
&$url: string value as output (out parameter, can modify)
-$query: query options passed to Title::getLocalURL()
+$query: query options
as string
passed to Title::getLocalURL()
'GetLogTypesOnUser': Add log types where the target is a userpage
&$types: Array of log types
'GetLogTypesOnUser': Add log types where the target is a userpage
&$types: Array of log types
@@
-2333,7
+2330,7
@@
namespace.
$index: Integer; the index of the namespace being checked.
&$result: Boolean; whether MediaWiki currently thinks that pages in this
namespace are movable. Hooks may change this value to override the return
$index: Integer; the index of the namespace being checked.
&$result: Boolean; whether MediaWiki currently thinks that pages in this
namespace are movable. Hooks may change this value to override the return
- value of
MWNamespace
::isMovable().
+ value of
NamespaceInfo
::isMovable().
'NewDifferenceEngine': Called when a new DifferenceEngine object is made
$title: the diff page title (nullable)
'NewDifferenceEngine': Called when a new DifferenceEngine object is made
$title: the diff page title (nullable)
@@
-2451,7
+2448,7
@@
$title: Title object
&$pageLang: the page content language. Input can be anything (under control of
hook subscribers), but hooks should return Language objects. Language code
strings are deprecated.
&$pageLang: the page content language. Input can be anything (under control of
hook subscribers), but hooks should return Language objects. Language code
strings are deprecated.
-$userLang: the user language (Language o
r StubUserLang o
bject)
+$userLang: the user language (Language object)
'PageContentSave': Before an article is saved.
$wikiPage: the WikiPage (object) being saved
'PageContentSave': Before an article is saved.
$wikiPage: the WikiPage (object) being saved
@@
-3071,7
+3068,6
@@
$tooltip: The default tooltip. Escape before using.
- text - String for the text
- attribs - Array of attributes
- query - Array of query parameters to add to the URL
- text - String for the text
- attribs - Array of attributes
- query - Array of query parameters to add to the URL
- - options - Array of options for Linker::link
$lang: The language code to use for the link in the wfMessage function
'SkinGetPoweredBy': TODO
$lang: The language code to use for the link in the wfMessage function
'SkinGetPoweredBy': TODO
@@
-3572,7
+3568,10
@@
hook. If your extension absolutely, positively must prevent some files from
being uploaded, use UploadVerifyFile or UploadVerifyUpload.
$upload: (object) An instance of UploadBase, with all info about the upload
$user: (object) An instance of User, the user uploading this file
being uploaded, use UploadVerifyFile or UploadVerifyUpload.
$upload: (object) An instance of UploadBase, with all info about the upload
$user: (object) An instance of User, the user uploading this file
-$props: (array) File properties, as returned by FSFile::getPropsFromPath()
+$props: (array|null) File properties, as returned by
+ MWFileProps::getPropsFromPath(). Note this is not always guaranteed to be set,
+ e.g. in test scenarios. Call MWFileProps::getPropsFromPath() yourself in case
+ you need the information.
&$error: output: If the file stashing should be prevented, set this to the
reason in the form of [ messagename, param1, param2, ... ] or a
MessageSpecifier instance (you might want to use ApiMessage to provide machine
&$error: output: If the file stashing should be prevented, set this to the
reason in the form of [ messagename, param1, param2, ... ] or a
MessageSpecifier instance (you might want to use ApiMessage to provide machine
@@
-3601,7
+3600,10
@@
MIME type (same as UploadVerifyFile) and the information entered by the user
(upload comment, file page contents etc.).
$upload: (object) An instance of UploadBase, with all info about the upload
$user: (object) An instance of User, the user uploading this file
(upload comment, file page contents etc.).
$upload: (object) An instance of UploadBase, with all info about the upload
$user: (object) An instance of User, the user uploading this file
-$props: (array) File properties, as returned by FSFile::getPropsFromPath()
+$props: (array|null) File properties, as returned by
+ MWFileProps::getPropsFromPath(). Note this is not always guaranteed to be set,
+ e.g. in test scenarios. Call MWFileProps::getPropsFromPath() yourself in case
+ you need the information.
$comment: (string) Upload log comment (also used as edit summary)
$pageText: (string) File description page text (only used for new uploads)
&$error: output: If the file upload should be prevented, set this to the reason
$comment: (string) Upload log comment (also used as edit summary)
$pageText: (string) File description page text (only used for new uploads)
&$error: output: If the file upload should be prevented, set this to the reason