Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
WorkflowStatesMessageGroupLoader Class Reference

Loads WorkflowStatesMessageGroup, and handles the related cache. More...

Inheritance diagram for WorkflowStatesMessageGroupLoader:
MessageGroupLoader

Public Member Functions

 getGroups ()
 Fetches and returns an array of MessageGroups.
 

Static Public Member Functions

static registerLoader (array &$groupLoader, array $deps)
 Hook: TranslateInitGroupLoaders.
 

Detailed Description

Loads WorkflowStatesMessageGroup, and handles the related cache.

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

Definition at line 10 of file WorkflowStatesMessageGroupLoader.php.

Member Function Documentation

◆ getGroups()

WorkflowStatesMessageGroupLoader::getGroups ( )

Fetches and returns an array of MessageGroups.

Returns
MessageGroup[] Array of message groups with group id as the key
Note
Do not return an indexed based array as that would cause MessageGroups to be overwritten.

Implements MessageGroupLoader.

Definition at line 11 of file WorkflowStatesMessageGroupLoader.php.

◆ registerLoader()

static WorkflowStatesMessageGroupLoader::registerLoader ( array & $groupLoader,
array $deps )
static

Hook: TranslateInitGroupLoaders.

Definition at line 22 of file WorkflowStatesMessageGroupLoader.php.


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