1 | <?php |
||
31 | trait WhereTrait |
||
32 | { |
||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | */ |
||
36 | public function where( |
||
43 | |||
44 | /** |
||
45 | * {@inheritDoc} |
||
46 | */ |
||
47 | public function whereTpl(/*# string */ $template, $col) |
||
52 | |||
53 | /** |
||
54 | * {@inheritDoc} |
||
55 | */ |
||
56 | public function orWhereTpl(/*# string */ $template, $col) |
||
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | public function whereRaw(/*# string */ $rawString) |
||
70 | |||
71 | /** |
||
72 | * {@inheritDoc} |
||
73 | */ |
||
74 | public function orWhereRaw(/*# string */ $rawString) |
||
79 | |||
80 | /** |
||
81 | * {@inheritDoc} |
||
82 | */ |
||
83 | public function andWhere( |
||
90 | |||
91 | /** |
||
92 | * {@inheritDoc} |
||
93 | */ |
||
94 | public function orWhere( |
||
101 | |||
102 | /** |
||
103 | * {@inheritDoc} |
||
104 | */ |
||
105 | public function whereNot( |
||
112 | |||
113 | /** |
||
114 | * {@inheritDoc} |
||
115 | */ |
||
116 | public function orWhereNot( |
||
123 | |||
124 | /** |
||
125 | * Real where |
||
126 | * |
||
127 | * @param string|string[]|Template $col col or cols |
||
128 | * @param mixed $operator |
||
129 | * @param mixed $value |
||
130 | * @param string $logicAnd 'AND' |
||
131 | * @param string $whereNot 'WHERE NOT' |
||
132 | * @param bool $rawMode |
||
133 | * @param string $clause 'where' or 'having' |
||
134 | * @return $this |
||
135 | * @access protected |
||
136 | */ |
||
137 | protected function realWhere( |
||
160 | |||
161 | /** |
||
162 | * @param array $cols |
||
163 | * @param string $logicAnd |
||
164 | * @param string $whereNot |
||
165 | * @param bool $rawMode |
||
166 | * @access protected |
||
167 | */ |
||
168 | protected function multipleWhere( |
||
184 | |||
185 | /** |
||
186 | * Build WHERE |
||
187 | * |
||
188 | * @param string $clause 'where|having' |
||
189 | * @return array |
||
190 | * @access protected |
||
191 | */ |
||
192 | protected function buildWhere( |
||
212 | |||
213 | /** |
||
214 | * Build 'col = val' part |
||
215 | * |
||
216 | * @param array $cls |
||
217 | * @param array $where |
||
218 | * @param array $settings |
||
219 | * @return string |
||
220 | * @access protected |
||
221 | */ |
||
222 | protected function buildWhereClause(array $cls, array $where, array $settings) |
||
243 | |||
244 | abstract protected function isRaw($str, /*# bool */ $rawMode)/*# : bool */; |
||
254 | } |
||
255 |