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

Collection of pages potentially affected by a page move operation. More...

Public Member Functions

 __construct (PageMoveOperation $translatablePage, array $translationPagePairs, array $unitPagesPairs, array $subpagesPairs, array $nonMovableSubpages, array $translatableSubpages)
 
 getTranslatablePage ()
 
 getTranslationPagesPair ()
 
 getUnitPagesPair ()
 
 getSubpagesPair ()
 
 getTranslatableSubpages ()
 
 getTranslationPages ()
 
 getUnitPages ()
 
 getSubpages ()
 
 getListOfPages ()
 
 getListOfPagesToRedirect ()
 
 getNonMovableSubpages ()
 Get list of subpages which cannot be moved for various reasons (e.g.
 

Detailed Description

Collection of pages potentially affected by a page move operation.

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

Definition at line 15 of file PageMoveCollection.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::__construct ( PageMoveOperation $translatablePage,
array $translationPagePairs,
array $unitPagesPairs,
array $subpagesPairs,
array $nonMovableSubpages,
array $translatableSubpages )
Parameters
PageMoveOperation$translatablePage
PageMoveOperation[]$translationPagePairsTranslation pages
PageMoveOperation[]$unitPagesPairsTranslation unit pages
PageMoveOperation[]$subpagesPairsNon-translatable subpages
array<string,Status>$nonMovableSubpages Subpages that are not movable
Title[]$translatableSubpages

Definition at line 38 of file PageMoveCollection.php.

Member Function Documentation

◆ getListOfPages()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getListOfPages ( )
Returns
string[]

Definition at line 100 of file PageMoveCollection.php.

◆ getListOfPagesToRedirect()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getListOfPagesToRedirect ( )
Returns
array<string,bool>

Definition at line 115 of file PageMoveCollection.php.

◆ getNonMovableSubpages()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getNonMovableSubpages ( )

Get list of subpages which cannot be moved for various reasons (e.g.

the target page already exists). Those do not include translatable subpages which cannot be moved because of current limitation.

Definition at line 134 of file PageMoveCollection.php.

◆ getSubpages()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getSubpages ( )
Returns
Title[]

Definition at line 95 of file PageMoveCollection.php.

◆ getSubpagesPair()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getSubpagesPair ( )
Returns
PageMoveOperation[]

Definition at line 75 of file PageMoveCollection.php.

◆ getTranslatablePage()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getTranslatablePage ( )

Definition at line 60 of file PageMoveCollection.php.

◆ getTranslatableSubpages()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getTranslatableSubpages ( )
Returns
Title[]

Definition at line 80 of file PageMoveCollection.php.

◆ getTranslationPages()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getTranslationPages ( )
Returns
Title[]

Definition at line 85 of file PageMoveCollection.php.

◆ getTranslationPagesPair()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getTranslationPagesPair ( )
Returns
PageMoveOperation[]

Definition at line 65 of file PageMoveCollection.php.

◆ getUnitPages()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getUnitPages ( )
Returns
Title[]

Definition at line 90 of file PageMoveCollection.php.

◆ getUnitPagesPair()

MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getUnitPagesPair ( )
Returns
PageMoveOperation[]

Definition at line 70 of file PageMoveCollection.php.


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