Ejemplo n.º 1
0
 public function actionIndex()
 {
     $params = $this->getQuery();
     if (empty($params['memberId'])) {
         throw new BadRequestHttpException(Yii::t('common', 'parameters_missing'));
     }
     $accountId = $this->getAccountId();
     $params['status'] = Order::ORDER_STATUS_FINISHED;
     return Order::search($params, $accountId);
 }
Ejemplo n.º 2
0
 public function actionIndex()
 {
     $params = $this->getQuery();
     $accountId = $this->getAccountId();
     return Order::search($params, $accountId);
 }