|
static | getDefaultForm ( $title) |
|
static | createPageWithForm ( $title, $formName) |
|
static | setBrokenLinkOld ( $linker, $target, $options, $text, &$attribs, &$ret) |
|
static | setBrokenLink (MediaWiki\Linker\LinkRenderer $linkRenderer, $target, $isKnown, &$text, &$attribs, &$ret) |
|
static | getDefaultFormsForPage ( $title) |
|
static | getDefaultFormForNamespace ( $namespace) |
|
◆ getDefaultFormsForPage()
static PFFormLinker::getDefaultFormsForPage |
( |
|
$title | ) |
|
|
static |
Get the form(s) used to edit this page - either:
- the default form(s) for the page itself, if there are any; or
- the default form(s) for a category that this article belongs to, if there are any; or
- the default form(s) for the article's namespace, if there are any.
- Parameters
-
- Returns
- array
◆ setBrokenLink()
static PFFormLinker::setBrokenLink |
( |
MediaWiki\Linker\LinkRenderer |
$linkRenderer, |
|
|
|
$target, |
|
|
|
$isKnown, |
|
|
& |
$text, |
|
|
& |
$attribs, |
|
|
& |
$ret |
|
) |
| |
|
static |
Called by the HtmlPageLinkRendererEnd hook. The $target argument is listed in the documentation as being of type LinkTarget, but in practice it seems to sometimes be of type Title and sometimes of type TitleValue. So we just leave out a type declaration for that argument in the header.
- Parameters
-
LinkRenderer | $linkRenderer | |
Title | $target | |
bool | $isKnown | |
string | &$text | |
array | &$attribs | |
bool | &$ret | |
- Returns
- true
◆ setBrokenLinkOld()
static PFFormLinker::setBrokenLinkOld |
( |
|
$linker, |
|
|
|
$target, |
|
|
|
$options, |
|
|
|
$text, |
|
|
& |
$attribs, |
|
|
& |
$ret |
|
) |
| |
|
static |
Sets the URL for form-based creation of a nonexistent (broken-linked, AKA red-linked) page, for MW < 1.28 only.
- Parameters
-
Linker | $linker | |
Title | $target | |
array | $options | |
string | $text | |
array | &$attribs | |
bool | &$ret | |
- Returns
- true
The documentation for this class was generated from the following file: