1 | <?php |
||
14 | trait Attributes |
||
15 | { |
||
16 | /** |
||
17 | * @var string|string[]|false|null The domain(s). Prefix with "not " to exclude them. |
||
18 | */ |
||
19 | public $domain; |
||
20 | |||
21 | /** |
||
22 | * @var string|string[]|false|null The status(es). Prefix with "not " to exclude them. |
||
23 | */ |
||
24 | public $status; |
||
25 | |||
26 | /** |
||
27 | * Adds an additional WHERE condition to the existing one. |
||
28 | * The new condition and the existing one will be joined using the `AND` operator. |
||
29 | * @param string|array|Expression $condition the new WHERE condition. Please refer to [[where()]] |
||
30 | * on how to specify this parameter. |
||
31 | * @param array $params the parameters (name => value) to be bound to the query. |
||
32 | * @return $this the query object itself |
||
33 | * @see where() |
||
34 | * @see orWhere() |
||
35 | */ |
||
36 | abstract public function andWhere($condition, $params = []); |
||
37 | |||
38 | /** |
||
39 | * @param $value |
||
40 | * @return static |
||
41 | */ |
||
42 | public function domain($value) |
||
47 | |||
48 | /** |
||
49 | * @param $value |
||
50 | * @return static |
||
51 | */ |
||
52 | public function status($value) |
||
57 | |||
58 | /** |
||
59 | * Apply attribute conditions |
||
60 | */ |
||
61 | protected function applyConditions() |
||
71 | } |
||
72 |