TranslationStatsBase Class Reference
[Statistics]

Provides some hand default implementations for TranslationStatsInterface. More...

Inheritance diagram for TranslationStatsBase:
Inheritance graph
[legend]
Collaboration diagram for TranslationStatsBase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 __construct (FormOptions $opts)
 Constructor.
 indexOf ($row)
 Return the indexes which this result contributes to.
 labels ()
 Return the names of the variables being measured.
 getDateFormat ()
 Return time formatting string.

Static Protected Member Functions

static makeTimeCondition ($field, $start, $end)
static namespacesFromGroups ($groupIds)

Protected Attributes

 $opts

Detailed Description

Provides some hand default implementations for TranslationStatsInterface.

Definition at line 746 of file SpecialTranslationStats.php.


Constructor & Destructor Documentation

TranslationStatsBase::__construct ( FormOptions $  opts  ) 

Constructor.

The implementation can access the graph options, but not define new ones.

Parameters:
FormOptions $opts

Implements TranslationStatsInterface.

Reimplemented in TranslatePerLanguageStats.

Definition at line 752 of file SpecialTranslationStats.php.


Member Function Documentation

TranslationStatsBase::getDateFormat (  ) 

Return time formatting string.

See also:
Language::sprintfDate()
Returns:
string

Implements TranslationStatsInterface.

Definition at line 764 of file SpecialTranslationStats.php.

Referenced by TranslatePerLanguageStats::formatTimestamp().

TranslationStatsBase::indexOf ( row  ) 

Return the indexes which this result contributes to.

Return 'all' if only one variable is measured. Return false if none.

Parameters:
array $row Database Result Row

Implements TranslationStatsInterface.

Reimplemented in TranslatePerLanguageStats, and ReviewPerLanguageStats.

Definition at line 756 of file SpecialTranslationStats.php.

TranslationStatsBase::labels (  ) 

Return the names of the variables being measured.

Return 'all' if only one variable is measured. Must match indexes returned by indexOf() and contain them all.

Returns:
string[]

Implements TranslationStatsInterface.

Reimplemented in TranslatePerLanguageStats, and ReviewPerLanguageStats.

Definition at line 760 of file SpecialTranslationStats.php.

static TranslationStatsBase::makeTimeCondition ( field,
start,
end 
) [static, protected]
static TranslationStatsBase::namespacesFromGroups ( groupIds  )  [static, protected]
Since:
2012-03-05

Definition at line 792 of file SpecialTranslationStats.php.

Referenced by ReviewPerLanguageStats::preQuery(), and TranslatePerLanguageStats::preQuery().

Here is the call graph for this function:


Member Data Documentation

TranslationStatsBase::$opts [protected]

Definition at line 750 of file SpecialTranslationStats.php.


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:56 2013 for MediaWiki Translate Extension by  doxygen 1.6.3