/** * get the summary for the different types of promotioncode has been exchanged by member */ public function actionTotal() { $query = $this->getQuery(); if (empty($query['memberId'])) { throw new BadRequestHttpException('param misssing'); } return CampaignLog::getTypeTotal(new \MongoId($query['memberId'])); }