예제 #1
0
 /**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = Outbox::find();
     $dataProvider = new ActiveDataProvider(['query' => $query]);
     if (!($this->load($params) && $this->validate())) {
         return $dataProvider;
     }
     $query->andFilterWhere(['UpdatedInDB' => $this->UpdatedInDB, 'InsertIntoDB' => $this->InsertIntoDB, 'SendingDateTime' => $this->SendingDateTime, 'SendBefore' => $this->SendBefore, 'SendAfter' => $this->SendAfter, 'Class' => $this->Class, 'ID' => $this->ID, 'RelativeValidity' => $this->RelativeValidity, 'SendingTimeOut' => $this->SendingTimeOut]);
     $query->andFilterWhere(['like', 'Text', $this->Text])->andFilterWhere(['like', 'DestinationNumber', $this->DestinationNumber])->andFilterWhere(['like', 'Coding', $this->Coding])->andFilterWhere(['like', 'UDH', $this->UDH])->andFilterWhere(['like', 'TextDecoded', $this->TextDecoded])->andFilterWhere(['like', 'MultiPart', $this->MultiPart])->andFilterWhere(['like', 'SenderID', $this->SenderID])->andFilterWhere(['like', 'DeliveryReport', $this->DeliveryReport])->andFilterWhere(['like', 'CreatorID', $this->CreatorID]);
     return $dataProvider;
 }