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' ]
 
const INT_BOUNDS
 

Detailed Description

Encapsulates graph options.

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

Definition at line 16 of file TranslationStatsGraphOptions.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 32 of file TranslationStatsGraphOptions.php.

Member Function Documentation

◆ bindArray()

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

Definition at line 46 of file TranslationStatsGraphOptions.php.

◆ boundValue()

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

Definition at line 134 of file TranslationStatsGraphOptions.php.

◆ getFormOptions()

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

Definition at line 130 of file TranslationStatsGraphOptions.php.

◆ getGroups()

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

Definition at line 122 of file TranslationStatsGraphOptions.php.

◆ getLanguages()

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

Definition at line 126 of file TranslationStatsGraphOptions.php.

◆ getValue()

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

Definition at line 62 of file TranslationStatsGraphOptions.php.

◆ hasValue()

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

Definition at line 54 of file TranslationStatsGraphOptions.php.

◆ normalize()

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

Definition at line 66 of file TranslationStatsGraphOptions.php.

◆ setValue()

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

Definition at line 58 of file TranslationStatsGraphOptions.php.

Member Data Documentation

◆ INT_BOUNDS

const MediaWiki\Extension\Translate\Statistics\TranslationStatsGraphOptions::INT_BOUNDS
Initial value:
= [
'days' => [ 'min' => 1, 'max' => 10000 ],
'width' => [ 'min' => 200, 'max' => 1000 ],
'height' => [ 'min' => 200, 'max' => 1000 ],
]

Definition at line 26 of file TranslationStatsGraphOptions.php.

◆ VALID_SCALES

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

Definition at line 19 of file TranslationStatsGraphOptions.php.


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