Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReview Class Reference

Provides methods to get and change the state of a message group. More...

Public Member Functions

 __construct (ILoadBalancer $loadBalancer, HookContainer $hookContainer)
 
 getState (MessageGroup $group, string $code)
 
 changeState (MessageGroup $group, string $code, string $newState, User $user)
 

Protected Attributes

 $hookContainer
 
 $loadBalancer
 

Detailed Description

Provides methods to get and change the state of a message group.

Author
Eugene Wang'ombe
Since
2022.07 @license GPL-2.0-or-later

Definition at line 19 of file MessageGroupReview.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReview::__construct ( ILoadBalancer $loadBalancer,
HookContainer $hookContainer )

Definition at line 26 of file MessageGroupReview.php.

Member Function Documentation

◆ changeState()

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReview::changeState ( MessageGroup $group,
string $code,
string $newState,
User $user )

Definition at line 45 of file MessageGroupReview.php.

◆ getState()

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReview::getState ( MessageGroup $group,
string $code )
Returns
mixed|false — The value from the field, or false if nothing was found

Definition at line 32 of file MessageGroupReview.php.

Member Data Documentation

◆ $hookContainer

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReview::$hookContainer
protected

Definition at line 22 of file MessageGroupReview.php.

◆ $loadBalancer

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupReview::$loadBalancer
protected

Definition at line 24 of file MessageGroupReview.php.


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