Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage Class Reference

Replacement for Special:Movepage to allow renaming a translatable bundle and all pages associated with it. More...

Inheritance diagram for MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage:

Public Member Functions

 __construct (ObjectFactory $objectFactory, PermissionManager $permissionManager, TranslatableBundleMover $bundleMover, TranslatableBundleFactory $bundleFactory, FormatterFactory $formatterFactory, $movePageSpec)
 
 doesWrites ()
 
 execute ( $par)
 @inheritDoc
 
 showForm (TranslatableBundle $bundle)
 The query form.
 

Protected Member Functions

 getGroupName ()
 
 doBasicChecks ()
 Do the basic checks whether moving is possible and whether the input looks anywhere near sane.
 
 authorizeMove ()
 Checks permissions, user blocks and rate limits.
 
 checkToken ()
 Checks token to protect against CSRF.
 
 showErrors (SplObjectStorage $errors)
 Pretty-print the list of errors.
 
 showConfirmation (PageMoveCollection $pageCollection, TranslatableBundle $bundle)
 The second form, which still allows changing some things.
 

Detailed Description

Replacement for Special:Movepage to allow renaming a translatable bundle and all pages associated with it.

Author
Niklas Laxström @license GPL-2.0-or-later

Definition at line 35 of file MoveTranslatableBundleSpecialPage.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage::__construct ( ObjectFactory $objectFactory,
PermissionManager $permissionManager,
TranslatableBundleMover $bundleMover,
TranslatableBundleFactory $bundleFactory,
FormatterFactory $formatterFactory,
$movePageSpec )

Definition at line 52 of file MoveTranslatableBundleSpecialPage.php.

Member Function Documentation

◆ authorizeMove()

MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage::authorizeMove ( )
protected

Checks permissions, user blocks and rate limits.

Definition at line 193 of file MoveTranslatableBundleSpecialPage.php.

◆ checkToken()

MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage::checkToken ( )
protected

Checks token to protect against CSRF.

Definition at line 208 of file MoveTranslatableBundleSpecialPage.php.

◆ doBasicChecks()

MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage::doBasicChecks ( )
protected

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

Exceptions
PermissionsError|ErrorPageError|ReadOnlyError|ThrottledError

Definition at line 172 of file MoveTranslatableBundleSpecialPage.php.

◆ doesWrites()

MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage::doesWrites ( )

Definition at line 69 of file MoveTranslatableBundleSpecialPage.php.

◆ execute()

MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage::execute ( $par)

@inheritDoc

Definition at line 78 of file MoveTranslatableBundleSpecialPage.php.

◆ getGroupName()

MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage::getGroupName ( )
protected

Definition at line 73 of file MoveTranslatableBundleSpecialPage.php.

◆ showConfirmation()

MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage::showConfirmation ( PageMoveCollection $pageCollection,
TranslatableBundle $bundle )
protected

The second form, which still allows changing some things.

Lists all the action which would take place.

Definition at line 261 of file MoveTranslatableBundleSpecialPage.php.

◆ showErrors()

MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage::showErrors ( SplObjectStorage $errors)
protected

Pretty-print the list of errors.

Definition at line 213 of file MoveTranslatableBundleSpecialPage.php.

◆ showForm()

MediaWiki\Extension\Translate\PageTranslation\MoveTranslatableBundleSpecialPage::showForm ( TranslatableBundle $bundle)

The query form.

Definition at line 236 of file MoveTranslatableBundleSpecialPage.php.


The documentation for this class was generated from the following file: