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

Provides translation stats data. More...

Public Member Functions

 __construct (ServiceOptions $options, ObjectFactory $objectFactory)
 
 getGraphTypes ()
 
 getGraphData (TranslationStatsGraphOptions $opts, Language $language)
 Fetches and preprocesses graph data that can be fed to graph drawer.
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 

Detailed Description

Provides translation stats data.

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

Definition at line 19 of file TranslationStatsDataProvider.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\Statistics\TranslationStatsDataProvider::__construct ( ServiceOptions $options,
ObjectFactory $objectFactory )

Definition at line 29 of file TranslationStatsDataProvider.php.

Member Function Documentation

◆ getGraphData()

MediaWiki\Extension\Translate\Statistics\TranslationStatsDataProvider::getGraphData ( TranslationStatsGraphOptions $opts,
Language $language )

Fetches and preprocesses graph data that can be fed to graph drawer.

Parameters
TranslationStatsGraphOptions$opts
Language$language
Returns
array ( string => array ) Data indexed by their date labels.

Definition at line 48 of file TranslationStatsDataProvider.php.

◆ getGraphTypes()

MediaWiki\Extension\Translate\Statistics\TranslationStatsDataProvider::getGraphTypes ( )

Definition at line 38 of file TranslationStatsDataProvider.php.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Extension\Translate\Statistics\TranslationStatsDataProvider::CONSTRUCTOR_OPTIONS
Initial value:
= [
'TranslateStatsProviders'
]

Definition at line 20 of file TranslationStatsDataProvider.php.


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