r95454 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95453‎ | r95454 | r95455 >
Date:22:36, 24 August 2011
Author:nimishg
Status:deferred
Tags:
Comment:
adding EditorsByGeography metric
Modified paths:
  • /trunk/extensions/MetricsReporting/metrics/EditorsByGeographyMetric.php (added) (history)

Diff [purge]

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
131 + native

Follow-up revisions

RevisionCommit summaryAuthorDate
r95480Followup r95454...reedy12:24, 25 August 2011

Status & tagging log