Conditions | 2 |
Paths | 2 |
Total Lines | 28 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function search($params) |
||
41 | { |
||
42 | $query = MailerAccount::find(); |
||
43 | |||
44 | // add conditions that should always apply here |
||
45 | |||
46 | $dataProvider = new ActiveDataProvider([ |
||
47 | 'query' => $query, |
||
48 | ]); |
||
49 | |||
50 | $this->load($params); |
||
51 | |||
52 | if (!$this->validate()) { |
||
53 | // uncomment the following line if you do not want to return any records when validation fails |
||
54 | // $query->where('0=1'); |
||
55 | return $dataProvider; |
||
56 | } |
||
57 | |||
58 | // grid filtering conditions |
||
59 | $query->andFilterWhere([ |
||
60 | 'id' => $this->id, |
||
61 | 'domain_id' => $this->domain_id, |
||
62 | ]); |
||
63 | |||
64 | $query->andFilterWhere(['like', 'email', $this->email]) |
||
65 | ->andFilterWhere(['like', 'password', $this->password]); |
||
66 | |||
67 | return $dataProvider; |
||
68 | } |
||
70 |