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

Job for updating translation pages when translation or template changes. More...

Inheritance diagram for MediaWiki\Extension\Translate\PageTranslation\RenderTranslationPageJob:
MediaWiki\Extension\Translate\Jobs\GenericTranslateJob

Public Member Functions

 __construct (Title $title, array $params=[])
 
 run ()
 
 setFlags (int $flags)
 
 setSummary (string $summary)
 
 getDeduplicationInfo ()
 @inheritDoc
 
 setUser ( $user)
 

Static Public Member Functions

static newJob (Title $target, ?string $triggerAction=null, ?string $unitTitleText=null)
 
static newNonPrioritizedJob (Title $target, ?string $triggerAction=null, ?string $unitTitleText=null)
 

Public Attributes

const ACTION_DELETE = 'delete'
 
const ACTION_CATEGORIZATION = 'categorization'
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWiki\Extension\Translate\Jobs\GenericTranslateJob
 logDebug (string $msg, array $context=[])
 
 logInfo (string $msg, array $context=[])
 
 logNotice (string $msg, array $context=[])
 
 logWarning (string $msg, array $context=[])
 
 logError (string $msg, array $context=[])
 

Detailed Description

Job for updating translation pages when translation or template changes.

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

Definition at line 28 of file RenderTranslationPageJob.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\PageTranslation\RenderTranslationPageJob::__construct ( Title $title,
array $params = [] )

Definition at line 55 of file RenderTranslationPageJob.php.

Member Function Documentation

◆ getDeduplicationInfo()

MediaWiki\Extension\Translate\PageTranslation\RenderTranslationPageJob::getDeduplicationInfo ( )

@inheritDoc

Definition at line 168 of file RenderTranslationPageJob.php.

◆ newJob()

static MediaWiki\Extension\Translate\PageTranslation\RenderTranslationPageJob::newJob ( Title $target,
?string $triggerAction = null,
?string $unitTitleText = null )
static

Definition at line 32 of file RenderTranslationPageJob.php.

◆ newNonPrioritizedJob()

static MediaWiki\Extension\Translate\PageTranslation\RenderTranslationPageJob::newNonPrioritizedJob ( Title $target,
?string $triggerAction = null,
?string $unitTitleText = null )
static

Definition at line 45 of file RenderTranslationPageJob.php.

◆ run()

MediaWiki\Extension\Translate\PageTranslation\RenderTranslationPageJob::run ( )

Definition at line 60 of file RenderTranslationPageJob.php.

◆ setFlags()

MediaWiki\Extension\Translate\PageTranslation\RenderTranslationPageJob::setFlags ( int $flags)

Definition at line 155 of file RenderTranslationPageJob.php.

◆ setSummary()

MediaWiki\Extension\Translate\PageTranslation\RenderTranslationPageJob::setSummary ( string $summary)

Definition at line 163 of file RenderTranslationPageJob.php.

◆ setUser()

MediaWiki\Extension\Translate\PageTranslation\RenderTranslationPageJob::setUser ( $user)
Parameters
UserIdentity | string$user

Definition at line 180 of file RenderTranslationPageJob.php.

Member Data Documentation

◆ ACTION_CATEGORIZATION

const MediaWiki\Extension\Translate\PageTranslation\RenderTranslationPageJob::ACTION_CATEGORIZATION = 'categorization'

Definition at line 30 of file RenderTranslationPageJob.php.

◆ ACTION_DELETE

const MediaWiki\Extension\Translate\PageTranslation\RenderTranslationPageJob::ACTION_DELETE = 'delete'

Definition at line 29 of file RenderTranslationPageJob.php.


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