public function normaliseQueryParameters($normalise = false) { // TODO: Change fields/table to normalise data set returned // Swap page_views for page_views_v parent::normaliseQueryParameters($normalise); if ($normalise) { $this->queryFields = array('date', 'SUM(views_mobile_normalized)', 'SUM(views_non_mobile_normalized)'); } else { $this->queryFields = array('date', 'SUM(views_mobile_raw)', 'SUM(views_non_mobile_raw)'); } }
/** * @param $query ApiBase * @param $moduleName * @return GenericMetricBase * */ function __construct(ApiBase $query, $moduleName) { parent::__construct($query->getMain(), $moduleName); }