/**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = Relasibaselinedenganoutput::find();
     $dataProvider = new ActiveDataProvider(['query' => $query]);
     $this->load($params);
     if (!$this->validate()) {
         // uncomment the following line if you do not want to return any records when validation fails
         // $query->where('0=1');
         return $dataProvider;
     }
     $query->andFilterWhere(['id' => $this->id, 'id_base_line' => $this->id_base_line, 'id_output' => $this->id_output, 'date_created' => $this->date_created, 'date_updated' => $this->date_updated, 'approved' => $this->approved, 'date_approved' => $this->date_approved, 'id_user_created' => $this->id_user_created, 'id_user_updated' => $this->id_user_updated]);
     $query->andFilterWhere(['like', 'nama_tabel', $this->nama_tabel])->andFilterWhere(['like', 'nama_kolom', $this->nama_kolom])->andFilterWhere(['like', 'nama_kegiatan', $this->nama_kegiatan]);
     return $dataProvider;
 }
 /**
  * Finds the Relasibaselinedenganoutput model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return Relasibaselinedenganoutput the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = Relasibaselinedenganoutput::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }