Collection of pages potentially affected by a page move operation. More...
Public Member Functions | |
__construct (PageMoveOperation $translatablePage, array $translationPagePairs, array $unitPagesPairs, array $subpagesPairs, array $translatableSubpages) | |
getTranslatablePage () | |
getTranslationPagesPair () | |
getUnitPagesPair () | |
getSubpagesPair () | |
getTranslatableSubpages () | |
getTranslationPages () | |
getUnitPages () | |
getSubpages () | |
getListOfPages () | |
getListOfPagesToRedirect () | |
addNonMovableSubpage (Title $page, Status $invalidityReason) | |
Adds provided page to non-movable subpage list, and removes it from other (movable) subpage list. | |
getNonMovableSubpages () | |
Get list of sub-pages which cannot be moved for various reasons (e.g. | |
Collection of pages potentially affected by a page move operation.
Definition at line 15 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::__construct | ( | PageMoveOperation | $translatablePage, |
array | $translationPagePairs, | ||
array | $unitPagesPairs, | ||
array | $subpagesPairs, | ||
array | $translatableSubpages ) |
PageMoveOperation | $translatablePage | |
PageMoveOperation[] | $translationPagePairs | Translation pages |
PageMoveOperation[] | $unitPagesPairs | Translation unit pages |
PageMoveOperation[] | $subpagesPairs | Non translatable sub pages |
Title[] | $translatableSubpages |
Definition at line 37 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::addNonMovableSubpage | ( | Title | $page, |
Status | $invalidityReason ) |
Adds provided page to non-movable subpage list, and removes it from other (movable) subpage list.
Title | $page | The page which cannot be moved. |
Status | $invalidityReason | The error status returned by MovePage. |
Definition at line 136 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getListOfPages | ( | ) |
Definition at line 98 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getListOfPagesToRedirect | ( | ) |
Definition at line 113 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getNonMovableSubpages | ( | ) |
Get list of sub-pages which cannot be moved for various reasons (e.g.
the target page already exists). Those do not include translatable sub-pages which cannot be moved because of current limitation.
Definition at line 147 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getSubpages | ( | ) |
Definition at line 93 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getSubpagesPair | ( | ) |
Definition at line 73 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getTranslatablePage | ( | ) |
Definition at line 58 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getTranslatableSubpages | ( | ) |
Definition at line 78 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getTranslationPages | ( | ) |
Definition at line 83 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getTranslationPagesPair | ( | ) |
Definition at line 63 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getUnitPages | ( | ) |
Definition at line 88 of file PageMoveCollection.php.
MediaWiki\Extension\Translate\PageTranslation\PageMoveCollection::getUnitPagesPair | ( | ) |
Definition at line 68 of file PageMoveCollection.php.