Special page which enables deleting translations of translatable pages. More...
Public Member Functions | |
__construct () | |
execute ($par) | |
Protected Member Functions | |
doBasicChecks () | |
Do the basic checks whether moving is possible and whether the input looks anywhere near sane. | |
checkToken () | |
Checks token. | |
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. | |
printChangeLine ($title, $enabled=true) | |
performAction () | |
clearMetadata () | |
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. | |
singleLanguage () | |
Protected Attributes | |
$text | |
$title | |
$subaction | |
'check' or 'perform' | |
$reason | |
There must be reason for everything. | |
$doSubpages = false | |
Allow skipping non-translation subpages. | |
$page | |
$code | |
Contains the language code if we are working with translation page. | |
$sectionPages | |
$translationPages |
Special page which enables deleting translations of translatable pages.
Definition at line 16 of file SpecialPageTranslationDeletePage.php.
SpecialPageTranslationDeletePage::__construct | ( | ) |
Definition at line 47 of file SpecialPageTranslationDeletePage.php.
SpecialPageTranslationDeletePage::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.
array | $form List of Strings Array where input element and label is appended. | |
string | $label Label text. | |
string | $name Name attribute. | |
int|bool | $size Size attribute of the input element. Default false. | |
string|bool | $text Text of the value attribute. Default false. | |
array | $attribs Extra attributes. Default empty array. |
Definition at line 210 of file SpecialPageTranslationDeletePage.php.
Referenced by showConfirmation(), and showForm().
SpecialPageTranslationDeletePage::checkToken | ( | ) | [protected] |
Checks token.
Use before real actions happen. Have to use wpEditToken for compatibility for SpecialMovepage.php.
Definition at line 156 of file SpecialPageTranslationDeletePage.php.
Referenced by execute().
SpecialPageTranslationDeletePage::clearMetadata | ( | ) | [protected] |
Definition at line 389 of file SpecialPageTranslationDeletePage.php.
Referenced by performAction().
SpecialPageTranslationDeletePage::doBasicChecks | ( | ) | [protected] |
Do the basic checks whether moving is possible and whether the input looks anywhere near sane.
PermissionsError|ErrorPageError|ReadOnlyError |
Definition at line 127 of file SpecialPageTranslationDeletePage.php.
Referenced by execute().
SpecialPageTranslationDeletePage::execute | ( | $ | par | ) |
Definition at line 51 of file SpecialPageTranslationDeletePage.php.
SpecialPageTranslationDeletePage::getSectionPages | ( | ) | [protected] |
Returns all section pages, including those which are currently not active.
Definition at line 421 of file SpecialPageTranslationDeletePage.php.
Referenced by performAction(), and showConfirmation().
SpecialPageTranslationDeletePage::getSubpages | ( | ) | [protected] |
Returns all subpages, if the namespace has them enabled.
Definition at line 447 of file SpecialPageTranslationDeletePage.php.
Referenced by performAction(), and showConfirmation().
SpecialPageTranslationDeletePage::getTranslationPages | ( | ) | [protected] |
Returns only translation subpages.
Definition at line 431 of file SpecialPageTranslationDeletePage.php.
Referenced by performAction(), and showConfirmation().
SpecialPageTranslationDeletePage::performAction | ( | ) | [protected] |
Definition at line 327 of file SpecialPageTranslationDeletePage.php.
Referenced by execute().
SpecialPageTranslationDeletePage::printChangeLine | ( | $ | title, | |
$ | enabled = true | |||
) | [protected] |
$title | Title | |
$enabled | bool |
Definition at line 319 of file SpecialPageTranslationDeletePage.php.
Referenced by showConfirmation().
SpecialPageTranslationDeletePage::showConfirmation | ( | ) | [protected] |
The second form, which still allows changing some things.
Lists all the action which would take place.
Definition at line 223 of file SpecialPageTranslationDeletePage.php.
Referenced by execute().
SpecialPageTranslationDeletePage::showForm | ( | ) | [protected] |
The query form.
Definition at line 163 of file SpecialPageTranslationDeletePage.php.
Referenced by execute().
SpecialPageTranslationDeletePage::singleLanguage | ( | ) | [protected] |
Definition at line 454 of file SpecialPageTranslationDeletePage.php.
Referenced by getSectionPages(), getTranslationPages(), performAction(), and showConfirmation().
SpecialPageTranslationDeletePage::$code [protected] |
Contains the language code if we are working with translation page.
Definition at line 41 of file SpecialPageTranslationDeletePage.php.
Referenced by getSectionPages().
SpecialPageTranslationDeletePage::$doSubpages = false [protected] |
Allow skipping non-translation subpages.
Definition at line 33 of file SpecialPageTranslationDeletePage.php.
SpecialPageTranslationDeletePage::$page [protected] |
Definition at line 38 of file SpecialPageTranslationDeletePage.php.
Referenced by execute().
SpecialPageTranslationDeletePage::$reason [protected] |
There must be reason for everything.
Definition at line 30 of file SpecialPageTranslationDeletePage.php.
SpecialPageTranslationDeletePage::$sectionPages [protected] |
Definition at line 43 of file SpecialPageTranslationDeletePage.php.
Referenced by performAction(), and showConfirmation().
SpecialPageTranslationDeletePage::$subaction [protected] |
'check' or 'perform'
Definition at line 27 of file SpecialPageTranslationDeletePage.php.
Referenced by execute(), showConfirmation(), and showForm().
SpecialPageTranslationDeletePage::$text [protected] |
Definition at line 18 of file SpecialPageTranslationDeletePage.php.
Referenced by addInputLabel().
SpecialPageTranslationDeletePage::$title [protected] |
Definition at line 23 of file SpecialPageTranslationDeletePage.php.
Referenced by execute(), and printChangeLine().
SpecialPageTranslationDeletePage::$translationPages [protected] |
Definition at line 45 of file SpecialPageTranslationDeletePage.php.
Referenced by performAction(), and showConfirmation().