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

Contains the core logic to validate and move translatable bundles. More...

Public Member Functions

 __construct (MovePageFactory $movePageFactory, JobQueueGroup $jobQueue, LinkBatchFactory $linkBatchFactory, TranslatableBundleFactory $bundleFactory, SubpageListBuilder $subpageBuilder, IConnectionProvider $dbProvider, ObjectCacheFactory $objectCacheFactory, ?int $pageMoveLimit)
 
 getPageMoveCollection (Title $source, ?Title $target, User $user, string $reason, bool $moveSubPages, bool $moveTalkPages, bool $leaveRedirect)
 
 moveAsynchronously (Title $source, Title $target, bool $moveSubPages, User $user, string $moveReason, bool $moveTalkPages, bool $leaveRedirect)
 
 moveSynchronously (Title $source, Title $target, array $pagesToMove, array $pagesToRedirect, User $performer, string $moveReason, ?callable $progressCallback=null)
 
 disablePageMoveLimit ()
 
 enablePageMoveLimit ()
 

Static Public Member Functions

static shouldLeaveRedirect (string $pageType, bool $leaveRedirect)
 

Detailed Description

Contains the core logic to validate and move translatable bundles.

Author
Abijeet Patro @license GPL-2.0-or-later
Since
2021.03

Definition at line 30 of file TranslatableBundleMover.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\PageTranslation\TranslatableBundleMover::__construct ( MovePageFactory $movePageFactory,
JobQueueGroup $jobQueue,
LinkBatchFactory $linkBatchFactory,
TranslatableBundleFactory $bundleFactory,
SubpageListBuilder $subpageBuilder,
IConnectionProvider $dbProvider,
ObjectCacheFactory $objectCacheFactory,
?int $pageMoveLimit )

Definition at line 52 of file TranslatableBundleMover.php.

Member Function Documentation

◆ disablePageMoveLimit()

MediaWiki\Extension\Translate\PageTranslation\TranslatableBundleMover::disablePageMoveLimit ( )

Definition at line 244 of file TranslatableBundleMover.php.

◆ enablePageMoveLimit()

MediaWiki\Extension\Translate\PageTranslation\TranslatableBundleMover::enablePageMoveLimit ( )

Definition at line 248 of file TranslatableBundleMover.php.

◆ getPageMoveCollection()

MediaWiki\Extension\Translate\PageTranslation\TranslatableBundleMover::getPageMoveCollection ( Title $source,
?Title $target,
User $user,
string $reason,
bool $moveSubPages,
bool $moveTalkPages,
bool $leaveRedirect )

Definition at line 72 of file TranslatableBundleMover.php.

◆ moveAsynchronously()

MediaWiki\Extension\Translate\PageTranslation\TranslatableBundleMover::moveAsynchronously ( Title $source,
Title $target,
bool $moveSubPages,
User $user,
string $moveReason,
bool $moveTalkPages,
bool $leaveRedirect )

Definition at line 186 of file TranslatableBundleMover.php.

◆ moveSynchronously()

MediaWiki\Extension\Translate\PageTranslation\TranslatableBundleMover::moveSynchronously ( Title $source,
Title $target,
array $pagesToMove,
array $pagesToRedirect,
User $performer,
string $moveReason,
?callable $progressCallback = null )
Parameters
Title$source
Title$target
string[]$pagesToMove
array<string,bool>$pagesToRedirect
User$performer
string$moveReason
?callable$progressCallback

Definition at line 225 of file TranslatableBundleMover.php.

◆ shouldLeaveRedirect()

static MediaWiki\Extension\Translate\PageTranslation\TranslatableBundleMover::shouldLeaveRedirect ( string $pageType,
bool $leaveRedirect )
static

Definition at line 252 of file TranslatableBundleMover.php.


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