Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\Statistics\MessagePrefixStats Class Reference

This class abstracts MessagePrefix statistics calculation and storing. More...

Public Member Functions

 __construct (TitleParser $titleParser)
 
 forAll (string ... $prefixedMessagesKeys)
 Returns statistics for the message keys provided.
 

Detailed Description

This class abstracts MessagePrefix statistics calculation and storing.

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

Definition at line 18 of file MessagePrefixStats.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\Statistics\MessagePrefixStats::__construct ( TitleParser $titleParser)

Definition at line 22 of file MessagePrefixStats.php.

Member Function Documentation

◆ forAll()

MediaWiki\Extension\Translate\Statistics\MessagePrefixStats::forAll ( string ... $prefixedMessagesKeys)

Returns statistics for the message keys provided.

Assumes that the message keys belong to the same namespace.

Parameters
string...$prefixedMessagesKeys
Returns
array

Definition at line 32 of file MessagePrefixStats.php.


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