Index: trunk/extensions/MetricsReporting/metrics/GenericMetricBase.php |
— | — | @@ -11,9 +11,15 @@ |
12 | 12 | protected $tableName; |
13 | 13 | |
14 | 14 | /** |
| 15 | + * @param $query ApiBase |
| 16 | + * @param $moduleName |
| 17 | + * @param $paramPrefix string |
15 | 18 | * @param $tableName string |
| 19 | + * @return GenericMetricBase |
| 20 | + * |
16 | 21 | */ |
17 | | - function __construct( $tableName ) { |
| 22 | + function __construct( ApiBase $query, $moduleName, $paramPrefix = '', $tableName ) { |
| 23 | + parent::__construct( $query->getMain(), $moduleName, $paramPrefix ); |
18 | 24 | $this->tableName = $tableName; |
19 | 25 | } |
20 | 26 | |
Index: trunk/extensions/MetricsReporting/metrics/EditorsByGeographyMetric.php |
— | — | @@ -7,8 +7,8 @@ |
8 | 8 | /** |
9 | 9 | * @param $tableName string |
10 | 10 | */ |
11 | | - function __construct() { |
12 | | - parent::__construct( 'editorsbygeography' ); |
| 11 | + function __construct( ApiBase $query, $moduleName, $paramPrefix = '', $tableName ) { |
| 12 | + parent::__construct( $query->getMain(), $moduleName, $paramPrefix, 'editorsbygeography' ); |
13 | 13 | } |
14 | 14 | |
15 | 15 | public function getDescription() { |