@@ 217-230 (lines=14) @@ | ||
214 | * |
|
215 | * @return string the update query. |
|
216 | */ |
|
217 | private function getUpdateQuery() |
|
218 | { |
|
219 | $result = $this->getUpdateClause(); |
|
220 | ||
221 | if ($where = $this->getWhereClause()) { |
|
222 | $result .= ' ' . $where; |
|
223 | } |
|
224 | ||
225 | if ($limit = $this->getLimitClause()) { |
|
226 | $result .= ' ' . $limit; |
|
227 | } |
|
228 | ||
229 | return $result; |
|
230 | } |
|
231 | ||
232 | /** |
|
233 | * {@inheritdoc} |
|
@@ 257-271 (lines=15) @@ | ||
254 | * |
|
255 | * @return string the delete query. |
|
256 | */ |
|
257 | private function getDeleteQuery() |
|
258 | { |
|
259 | ||
260 | $result = $this->getDeleteClause(); |
|
261 | ||
262 | if ($where = $this->getWhereClause()) { |
|
263 | $result .= ' ' . $where; |
|
264 | } |
|
265 | ||
266 | if ($limit = $this->getLimitClause()) { |
|
267 | $result .= ' ' . $limit; |
|
268 | } |
|
269 | ||
270 | return $result; |
|
271 | } |
|
272 | ||
273 | /** |
|
274 | * {@inheritdoc} |