SpecialPageTranslationDeletePage Class Reference
[Page Translation]

Special page which enables deleting translations of translatable pages. More...

List of all members.

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

Detailed Description

Special page which enables deleting translations of translatable pages.

Definition at line 16 of file SpecialPageTranslationDeletePage.php.


Constructor & Destructor Documentation

SpecialPageTranslationDeletePage::__construct (  ) 

Definition at line 47 of file SpecialPageTranslationDeletePage.php.


Member Function Documentation

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.

Parameters:
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.

Returns:
bool

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().

Here is the call graph for this function:

SpecialPageTranslationDeletePage::doBasicChecks (  )  [protected]

Do the basic checks whether moving is possible and whether the input looks anywhere near sane.

Exceptions:
PermissionsError|ErrorPageError|ReadOnlyError 
Returns:
bool

Definition at line 127 of file SpecialPageTranslationDeletePage.php.

Referenced by execute().

SpecialPageTranslationDeletePage::execute ( par  ) 

Definition at line 51 of file SpecialPageTranslationDeletePage.php.

Here is the call graph for this function:

SpecialPageTranslationDeletePage::getSectionPages (  )  [protected]

Returns all section pages, including those which are currently not active.

Returns:
Array of titles.

Definition at line 421 of file SpecialPageTranslationDeletePage.php.

Referenced by performAction(), and showConfirmation().

Here is the call graph for this function:

SpecialPageTranslationDeletePage::getSubpages (  )  [protected]

Returns all subpages, if the namespace has them enabled.

Returns:
array|TitleArray Empty array or TitleArray.

Definition at line 447 of file SpecialPageTranslationDeletePage.php.

Referenced by performAction(), and showConfirmation().

SpecialPageTranslationDeletePage::getTranslationPages (  )  [protected]

Returns only translation subpages.

Returns:
Array of titles.

Definition at line 431 of file SpecialPageTranslationDeletePage.php.

Referenced by performAction(), and showConfirmation().

Here is the call graph for this function:

SpecialPageTranslationDeletePage::performAction (  )  [protected]

Definition at line 327 of file SpecialPageTranslationDeletePage.php.

Referenced by execute().

Here is the call graph for this function:

SpecialPageTranslationDeletePage::printChangeLine ( title,
enabled = true 
) [protected]
Parameters:
$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().

Here is the call graph for this function:

SpecialPageTranslationDeletePage::showForm (  )  [protected]

The query form.

Definition at line 163 of file SpecialPageTranslationDeletePage.php.

Referenced by execute().

Here is the call graph for this function:

SpecialPageTranslationDeletePage::singleLanguage (  )  [protected]

Member Data Documentation

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().


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:53 2013 for MediaWiki Translate Extension by  doxygen 1.6.3