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, $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.
 
 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 33 of file MoveTranslatableBundleSpecialPage.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 57 of file MoveTranslatableBundleSpecialPage.php.

Member Function Documentation

◆ checkToken()

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

Checks token to protect against CSRF.

Definition at line 188 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 164 of file MoveTranslatableBundleSpecialPage.php.

◆ doesWrites()

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

Definition at line 72 of file MoveTranslatableBundleSpecialPage.php.

◆ execute()

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

@inheritDoc

Definition at line 81 of file MoveTranslatableBundleSpecialPage.php.

◆ getGroupName()

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

Definition at line 76 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 241 of file MoveTranslatableBundleSpecialPage.php.

◆ showErrors()

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

Pretty-print the list of errors.

Definition at line 193 of file MoveTranslatableBundleSpecialPage.php.

◆ showForm()

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

The query form.

Definition at line 216 of file MoveTranslatableBundleSpecialPage.php.


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