SpecialPageTranslationMovePage Class Reference
[Page Translation]

Overrides Special:Movepage to to allow renaming a page translation page and all related translations and derivative pages. More...

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

SpecialPageTranslationMovePage::__construct ( old  ) 

Definition at line 62 of file SpecialPageTranslationMovePage.php.


Member Function Documentation

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.

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

Here is the call graph for this function:

SpecialPageTranslationMovePage::checkToken (  )  [protected]

Checks token.

Use before real actions happen. Have to use wpEditToken for compatibility for SpecialMovepage.php.

Returns:
bool

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.

Exceptions:
PermissionsError|ErrorPageError|ReadOnlyError 
Returns:
bool

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

Here is the call graph for this function:

SpecialPageTranslationMovePage::execute ( par  ) 

Partially copies from SpecialMovepage.php, because it cannot be extented in other ways.

Definition at line 71 of file SpecialPageTranslationMovePage.php.

Here is the call graph for this function:

SpecialPageTranslationMovePage::getChangeLine ( base,
Title $  old,
Title $  target,
enabled = true 
) [protected]
Parameters:
string $base
Title $old
Title $target
bool $enabled
Returns:
string

Definition at line 407 of file SpecialPageTranslationMovePage.php.

Referenced by showConfirmation().

Here is the call graph for this function:

SpecialPageTranslationMovePage::getSectionPages (  )  [protected]

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

Returns:
TitleArray.

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.

Returns:
mixed TitleArray, or empty array if this page's namespace doesn't allow subpages

Definition at line 698 of file SpecialPageTranslationMovePage.php.

Referenced by checkMoveBlockers(), performAction(), and showConfirmation().

SpecialPageTranslationMovePage::getTranslationPages (  )  [protected]

Returns only translation subpages.

Returns:
Array of titles.

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

Here is the call graph for this function:

SpecialPageTranslationMovePage::newPageTitle ( base,
Title $  old,
Title $  target 
) [protected]

Makes old title into a new title by replacing $base part of old title with $target.

Parameters:
string $base Title::getPrefixedText() of the base page.
Title $old The title to convert.
Title $target The target title for the base page.
Returns:
Title

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

Here is the call graph for this function:

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

Here is the call graph for this function:

SpecialPageTranslationMovePage::showErrors ( array $  errors  )  [protected]

Pretty-print the list of errors.

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

Here is the call graph for this function:


Member Data Documentation

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


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