public function actionTask($id)
 {
     $model = DiscoveryTask::findOne($id);
     $searchChange = new Change();
     $changeProvider = $searchChange->searchPending(Yii::$app->request->get(), $id);
     return $this->render('task', ['changeProvider' => $changeProvider, 'model' => $model, 'searchChange' => $searchChange]);
 }
Example #2
0
 public function actionApplyAll($task)
 {
     $task = DiscoveryTask::findOne($task);
     try {
         $task->applyChanges();
     } catch (\Exception $e) {
         return false;
     }
     return true;
 }