Index: trunk/extensions/MetricsReporting/metrics/EditorsByGeographyMetric.php |
— | — | @@ -0,0 +1,29 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Subclass this, pass the table name to the constructor, then just override |
| 6 | + * the getDescription and getExamples functions |
| 7 | + * |
| 8 | + * Then add it to the loader |
| 9 | + */ |
| 10 | +class EditorsByGeographyMetric extends GenericMetricBase { |
| 11 | + |
| 12 | + |
| 13 | + /** |
| 14 | + * @param $tableName string |
| 15 | + */ |
| 16 | + function __construct() { |
| 17 | + parent::__construct("editorsbygeography"); |
| 18 | + } |
| 19 | + |
| 20 | + |
| 21 | + public function getDescription(){ |
| 22 | + return "Number of active unique registered editors by country"; |
| 23 | + } |
| 24 | + |
| 25 | + protected function getExamples(){ |
| 26 | + return ""; |
| 27 | + } |
| 28 | + |
| 29 | + |
| 30 | +} |
\ No newline at end of file |
Property changes on: trunk/extensions/MetricsReporting/metrics/EditorsByGeographyMetric.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 31 | + native |