public function actionList()
 {
     Console::output("Currently waiting exports:");
     /** @var ActiveQuery $exportRequests */
     $requestsQuery = ExportRequest::find()->where(['is_exported' => 0])->orderBy(['created_at' => SORT_ASC]);
     foreach ($requestsQuery->each() as $exportRequest) {
         /** @var ExportRequest $exportRequest */
         Console::output("[#" . $exportRequest->id . ": " . $exportRequest->created_at . "] - " . $exportRequest->data_raw);
     }
 }
 /**
  * Lists all ExportRequest models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => ExportRequest::find()->where(['is_exported' => 1, 'user_id' => Yii::$app->user->id]), 'sort' => ['defaultOrder' => ['exported_at' => SORT_DESC]]]);
     return $this->render('index', ['dataProvider' => $dataProvider, 'columns' => $this->getGridColumns()]);
 }