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 19 of file TranslationStatsGraphOptions.php.

Member Function Documentation

◆ bindArray()

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

Definition at line 33 of file TranslationStatsGraphOptions.php.

◆ boundValue()

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

Definition at line 106 of file TranslationStatsGraphOptions.php.

◆ getFormOptions()

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

Definition at line 102 of file TranslationStatsGraphOptions.php.

◆ getGroups()

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

Definition at line 94 of file TranslationStatsGraphOptions.php.

◆ getLanguages()

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

Definition at line 98 of file TranslationStatsGraphOptions.php.

◆ getValue()

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

Definition at line 49 of file TranslationStatsGraphOptions.php.

◆ hasValue()

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

Definition at line 41 of file TranslationStatsGraphOptions.php.

◆ normalize()

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

Definition at line 53 of file TranslationStatsGraphOptions.php.

◆ setValue()

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

Definition at line 45 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 17 of file TranslationStatsGraphOptions.php.


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