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

A special page for marking revisions of pages for translation. More...

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

Public Member Functions

 __construct (LanguageFactory $languageFactory, LinkBatchFactory $linkBatchFactory, JobQueueGroup $jobQueueGroup, PermissionManager $permissionManager, TranslatablePageMarker $translatablePageMarker, TranslatablePageParser $translatablePageParser, MessageGroupMetadata $messageGroupMetadata, TranslatablePageView $translatablePageView, TranslatablePageStateStore $translatablePageStateStore, FormatterFactory $formatterFactory)
 
 doesWrites ()
 
 execute ( $parameters)
 
 listPages ()
 

Static Public Member Functions

static loadPagesFromDB ()
 TODO: Move this function to SyncTranslatableBundleStatusMaintenanceScript once we start using the translatable_bundles table for fetching the translatabale pages.
 
static buildPageArray (IResultWrapper $res)
 TODO: Move this function to SyncTranslatableBundleStatusMaintenanceScript once we start using the translatable_bundles table for fetching the translatabale pages.
 

Protected Member Functions

 getGroupName ()
 
 onActionMark (Title $title, ?int $revision)
 

Detailed Description

A special page for marking revisions of pages for translation.

This page is the main tool for translation administrators in the wiki. It will list all pages in their various states and provides actions that are suitable for given translatable page.

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

Definition at line 62 of file PageTranslationSpecialPage.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage::__construct ( LanguageFactory $languageFactory,
LinkBatchFactory $linkBatchFactory,
JobQueueGroup $jobQueueGroup,
PermissionManager $permissionManager,
TranslatablePageMarker $translatablePageMarker,
TranslatablePageParser $translatablePageParser,
MessageGroupMetadata $messageGroupMetadata,
TranslatablePageView $translatablePageView,
TranslatablePageStateStore $translatablePageStateStore,
FormatterFactory $formatterFactory )

Definition at line 80 of file PageTranslationSpecialPage.php.

Member Function Documentation

◆ buildPageArray()

static MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage::buildPageArray ( IResultWrapper $res)
static

TODO: Move this function to SyncTranslatableBundleStatusMaintenanceScript once we start using the translatable_bundles table for fetching the translatabale pages.

Definition at line 477 of file PageTranslationSpecialPage.php.

◆ doesWrites()

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

Definition at line 105 of file PageTranslationSpecialPage.php.

◆ execute()

MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage::execute ( $parameters)

Definition at line 113 of file PageTranslationSpecialPage.php.

◆ getGroupName()

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

Definition at line 109 of file PageTranslationSpecialPage.php.

◆ listPages()

MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage::listPages ( )

Definition at line 552 of file PageTranslationSpecialPage.php.

◆ loadPagesFromDB()

static MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage::loadPagesFromDB ( )
static

TODO: Move this function to SyncTranslatableBundleStatusMaintenanceScript once we start using the translatable_bundles table for fetching the translatabale pages.

Definition at line 451 of file PageTranslationSpecialPage.php.

◆ onActionMark()

MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage::onActionMark ( Title $title,
?int $revision )
protected

Definition at line 271 of file PageTranslationSpecialPage.php.


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