Overrides Special:Movepage to to allow renaming a page translation page and all related translations and derivative pages. More...
Public Member Functions | |
__construct ($old) | |
execute ($par) | |
Partially copies from SpecialMovepage.php, because it cannot be extented in other ways. | |
Protected Member Functions | |
doBasicChecks () | |
Do the basic checks whether moving is possible and whether the input looks anywhere near sane. | |
doNormalMovePage ($par) | |
doOldNormalMovePage () | |
checkToken () | |
Checks token. | |
showErrors (array $errors) | |
Pretty-print the list of errors. | |
showForm () | |
The query form. | |
addInputLabel (&$form, $label, $name, $size=false, $text=false, $attribs=array()) | |
Shortcut for keeping the code at least a bit readable. | |
showConfirmation () | |
The second form, which still allows changing some things. | |
getChangeLine ($base, Title $old, Title $target, $enabled=true) | |
performAction () | |
moveMetadata ($oldGroupId, $newGroupId) | |
checkMoveBlockers () | |
newPageTitle ($base, Title $old, Title $target) | |
Makes old title into a new title by replacing $base part of old title with $target. | |
getSectionPages () | |
Returns all section pages, including those which are currently not active. | |
getTranslationPages () | |
Returns only translation subpages. | |
getSubpages () | |
Returns all subpages, if the namespace has them enabled. | |
Protected Attributes | |
$newText | |
$oldText | |
$newTitle | |
$oldTitle | |
$subaction | |
'check' or 'perform' | |
$reason | |
There must be reason for everything. | |
$moveSubpages | |
Allow skipping non-translation subpages. | |
$page | |
$old | |
Whether MovePageForm extends SpecialPage. | |
$translationPages = null | |
$sectionPages = null |
Overrides Special:Movepage to to allow renaming a page translation page and all related translations and derivative pages.
Definition at line 17 of file SpecialPageTranslationMovePage.php.
SpecialPageTranslationMovePage::__construct | ( | $ | old | ) |
Definition at line 62 of file SpecialPageTranslationMovePage.php.
SpecialPageTranslationMovePage::addInputLabel | ( | &$ | form, | |
$ | label, | |||
$ | name, | |||
$ | size = false , |
|||
$ | text = false , |
|||
$ | attribs = array() | |||
) | [protected] |
Shortcut for keeping the code at least a bit readable.
Adds label and input into $form array.
string[] | $form Array where input element and label is appended. | |
string | $label Label text. | |
string | $name Name attribute. | |
bool|int | $size Size attribute of the input element. Default false. | |
bool|string | $text Text of the value attribute. Default false. | |
array | $attribs Extra attributes. Default empty array. |
Definition at line 285 of file SpecialPageTranslationMovePage.php.
Referenced by showConfirmation(), and showForm().
SpecialPageTranslationMovePage::checkMoveBlockers | ( | ) | [protected] |
Definition at line 528 of file SpecialPageTranslationMovePage.php.
Referenced by execute().
SpecialPageTranslationMovePage::checkToken | ( | ) | [protected] |
Checks token.
Use before real actions happen. Have to use wpEditToken for compatibility for SpecialMovepage.php.
Definition at line 195 of file SpecialPageTranslationMovePage.php.
Referenced by doOldNormalMovePage(), and execute().
SpecialPageTranslationMovePage::doBasicChecks | ( | ) | [protected] |
Do the basic checks whether moving is possible and whether the input looks anywhere near sane.
PermissionsError|ErrorPageError|ReadOnlyError |
Definition at line 146 of file SpecialPageTranslationMovePage.php.
Referenced by execute().
SpecialPageTranslationMovePage::doNormalMovePage | ( | $ | par | ) | [protected] |
Definition at line 170 of file SpecialPageTranslationMovePage.php.
Referenced by execute().
SpecialPageTranslationMovePage::doOldNormalMovePage | ( | ) | [protected] |
Definition at line 175 of file SpecialPageTranslationMovePage.php.
Referenced by execute().
SpecialPageTranslationMovePage::execute | ( | $ | par | ) |
Partially copies from SpecialMovepage.php, because it cannot be extented in other ways.
Definition at line 71 of file SpecialPageTranslationMovePage.php.
SpecialPageTranslationMovePage::getChangeLine | ( | $ | base, | |
Title $ | old, | |||
Title $ | target, | |||
$ | enabled = true | |||
) | [protected] |
string | $base | |
Title | $old | |
Title | $target | |
bool | $enabled |
Definition at line 407 of file SpecialPageTranslationMovePage.php.
Referenced by showConfirmation().
SpecialPageTranslationMovePage::getSectionPages | ( | ) | [protected] |
Returns all section pages, including those which are currently not active.
Definition at line 674 of file SpecialPageTranslationMovePage.php.
Referenced by checkMoveBlockers(), performAction(), and showConfirmation().
SpecialPageTranslationMovePage::getSubpages | ( | ) | [protected] |
Returns all subpages, if the namespace has them enabled.
Definition at line 698 of file SpecialPageTranslationMovePage.php.
Referenced by checkMoveBlockers(), performAction(), and showConfirmation().
SpecialPageTranslationMovePage::getTranslationPages | ( | ) | [protected] |
Returns only translation subpages.
Definition at line 686 of file SpecialPageTranslationMovePage.php.
Referenced by checkMoveBlockers(), performAction(), and showConfirmation().
SpecialPageTranslationMovePage::moveMetadata | ( | $ | oldGroupId, | |
$ | newGroupId | |||
) | [protected] |
Definition at line 489 of file SpecialPageTranslationMovePage.php.
Referenced by performAction().
SpecialPageTranslationMovePage::newPageTitle | ( | $ | base, | |
Title $ | old, | |||
Title $ | target | |||
) | [protected] |
Makes old title into a new title by replacing $base part of old title with $target.
string | $base Title::getPrefixedText() of the base page. | |
Title | $old The title to convert. | |
Title | $target The target title for the base page. |
Definition at line 654 of file SpecialPageTranslationMovePage.php.
Referenced by checkMoveBlockers(), getChangeLine(), and performAction().
SpecialPageTranslationMovePage::performAction | ( | ) | [protected] |
Definition at line 417 of file SpecialPageTranslationMovePage.php.
Referenced by execute().
SpecialPageTranslationMovePage::showConfirmation | ( | ) | [protected] |
The second form, which still allows changing some things.
Lists all the action which would take place.
Definition at line 305 of file SpecialPageTranslationMovePage.php.
Referenced by execute().
SpecialPageTranslationMovePage::showErrors | ( | array $ | errors | ) | [protected] |
Pretty-print the list of errors.
array | $errors Array with message key and parameters |
Definition at line 203 of file SpecialPageTranslationMovePage.php.
Referenced by execute(), and performAction().
SpecialPageTranslationMovePage::showForm | ( | ) | [protected] |
The query form.
Definition at line 225 of file SpecialPageTranslationMovePage.php.
Referenced by execute().
SpecialPageTranslationMovePage::$moveSubpages [protected] |
Allow skipping non-translation subpages.
Definition at line 40 of file SpecialPageTranslationMovePage.php.
SpecialPageTranslationMovePage::$newText [protected] |
Definition at line 19 of file SpecialPageTranslationMovePage.php.
SpecialPageTranslationMovePage::$newTitle [protected] |
Definition at line 24 of file SpecialPageTranslationMovePage.php.
SpecialPageTranslationMovePage::$old [protected] |
Whether MovePageForm extends SpecialPage.
Definition at line 50 of file SpecialPageTranslationMovePage.php.
Referenced by __construct(), checkMoveBlockers(), performAction(), and showConfirmation().
SpecialPageTranslationMovePage::$oldText [protected] |
Definition at line 19 of file SpecialPageTranslationMovePage.php.
SpecialPageTranslationMovePage::$oldTitle [protected] |
Definition at line 24 of file SpecialPageTranslationMovePage.php.
SpecialPageTranslationMovePage::$page [protected] |
Definition at line 45 of file SpecialPageTranslationMovePage.php.
Referenced by execute().
SpecialPageTranslationMovePage::$reason [protected] |
There must be reason for everything.
Definition at line 35 of file SpecialPageTranslationMovePage.php.
SpecialPageTranslationMovePage::$sectionPages = null [protected] |
Definition at line 60 of file SpecialPageTranslationMovePage.php.
Referenced by performAction().
SpecialPageTranslationMovePage::$subaction [protected] |
'check' or 'perform'
Definition at line 30 of file SpecialPageTranslationMovePage.php.
Referenced by execute(), showConfirmation(), and showForm().
SpecialPageTranslationMovePage::$translationPages = null [protected] |
Definition at line 55 of file SpecialPageTranslationMovePage.php.
Referenced by performAction().