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

Encapsulates graph options. More...

Public Member Functions

 bindArray (array $inputs)
 
 hasValue (string $key)
 
 setValue (string $key, $value)
 
 getValue (string $key)
 
 normalize (array $validCounts)
 
 getGroups ()
 
 getLanguages ()
 
 getFormOptions ()
 
 boundValue (string $key, int $min, int $max)
 

Public Attributes

const VALID_SCALES = [ 'years', 'months', 'weeks', 'days', 'hours' ]
 

Detailed Description

Encapsulates graph options.

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

Definition at line 14 of file TranslationStatsGraphOptions.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::__construct ( )

Definition at line 20 of file TranslationStatsGraphOptions.php.

Member Function Documentation

◆ bindArray()

MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::bindArray ( array $inputs)

Definition at line 34 of file TranslationStatsGraphOptions.php.

◆ boundValue()

MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::boundValue ( string $key,
int $min,
int $max )

Definition at line 107 of file TranslationStatsGraphOptions.php.

◆ getFormOptions()

MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::getFormOptions ( )

Definition at line 103 of file TranslationStatsGraphOptions.php.

◆ getGroups()

MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::getGroups ( )

Definition at line 95 of file TranslationStatsGraphOptions.php.

◆ getLanguages()

MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::getLanguages ( )

Definition at line 99 of file TranslationStatsGraphOptions.php.

◆ getValue()

MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::getValue ( string $key)

Definition at line 50 of file TranslationStatsGraphOptions.php.

◆ hasValue()

MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::hasValue ( string $key)

Definition at line 42 of file TranslationStatsGraphOptions.php.

◆ normalize()

MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::normalize ( array $validCounts)

Definition at line 54 of file TranslationStatsGraphOptions.php.

◆ setValue()

MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::setValue ( string $key,
$value )

Definition at line 46 of file TranslationStatsGraphOptions.php.

Member Data Documentation

◆ VALID_SCALES

const MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::VALID_SCALES = [ 'years', 'months', 'weeks', 'days', 'hours' ]

Definition at line 18 of file TranslationStatsGraphOptions.php.


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