Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SMW\MediaWiki\Hooks\SpecialStatsAddExtra Class Reference

Public Member Functions

 __construct (array &$extraStats, $version, Language $userLanguage)
 
 process ()
 

Protected Member Functions

 copyStatistics ()
 
 copyLegacyStatistics ()
 

Protected Attributes

 $extraStats = null
 
 $version = null
 
 $userLanguage
 
 $legacyMessageMapper
 
 $messageMapper
 

Detailed Description

Add extra statistic at the end of Special:Statistics

See also
https://www.mediawiki.org/wiki/Manual:Hooks/SpecialStatsAddExtra

GNU GPL v2+

Since
1.9
Author
mwjames

Constructor & Destructor Documentation

SMW\MediaWiki\Hooks\SpecialStatsAddExtra::__construct ( array &  $extraStats,
  $version,
Language  $userLanguage 
)
Since
1.9
Parameters
array&$extraStats
string$version
Language$userLanguageUser language

Member Function Documentation

SMW\MediaWiki\Hooks\SpecialStatsAddExtra::copyLegacyStatistics ( )
protected

Legacy approach to display statistical items for all MW 1.21- versions

Since
1.9
Returns
true
SMW\MediaWiki\Hooks\SpecialStatsAddExtra::copyStatistics ( )
protected
Since
1.9
Returns
true
SMW\MediaWiki\Hooks\SpecialStatsAddExtra::process ( )
Since
1.9
Returns
true

Member Data Documentation

SMW\MediaWiki\Hooks\SpecialStatsAddExtra::$extraStats = null
protected
SMW\MediaWiki\Hooks\SpecialStatsAddExtra::$legacyMessageMapper
protected
Initial value:
= array(
'PROPUSES' => 'smw-statistics-property-instance',
'ERRORUSES' => 'smw-statistics-error-count-legacy',
'TOTALPROPS' => 'smw-statistics-property-total-legacy',
'OWNPAGE' => 'smw-statistics-property-page',
'DECLPROPS' => 'smw-statistics-property-type',
'DELETECOUNT' => 'smw-statistics-delete-count',
'SUBOBJECTS' => 'smw-statistics-subobject-count-legacy',
'QUERY' => 'smw-statistics-query-inline-legacy',
'CONCEPTS' => 'smw-statistics-concept-count-legacy'
)
SMW\MediaWiki\Hooks\SpecialStatsAddExtra::$messageMapper
protected
Initial value:
= array(
'PROPUSES' => 'smw-statistics-property-instance',
'ERRORUSES' => 'smw-statistics-error-count',
'TOTALPROPS' => 'smw-statistics-property-total',
'USEDPROPS' => 'smw-statistics-property-used',
'OWNPAGE' => 'smw-statistics-property-page',
'DECLPROPS' => 'smw-statistics-property-type',
'DELETECOUNT' => 'smw-statistics-delete-count',
'SUBOBJECTS' => 'smw-statistics-subobject-count',
'QUERY' => 'smw-statistics-query-inline',
'CONCEPTS' => 'smw-statistics-concept-count',
)
SMW\MediaWiki\Hooks\SpecialStatsAddExtra::$userLanguage
protected
SMW\MediaWiki\Hooks\SpecialStatsAddExtra::$version = null
protected

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