| @@ 304-308 (lines=5) @@ | ||
| 301 | $whereclause = $this->keyName . ' = ' . $id; |
|
| 302 | } |
|
| 303 | $sql = 'DELETE FROM ' . $this->table . ' WHERE ' . $whereclause; |
|
| 304 | if (false !== $force) { |
|
| 305 | $result = $this->db->queryF($sql); |
|
| 306 | } else { |
|
| 307 | $result = $this->db->query($sql); |
|
| 308 | } |
|
| 309 | if (!$result) { |
|
| 310 | return false; |
|
| 311 | } |
|
| @@ 386-390 (lines=5) @@ | ||
| 383 | } |
|
| 384 | $sql .= ' WHERE ' . $whereclause; |
|
| 385 | } |
|
| 386 | if (false !== $force) { |
|
| 387 | $result = $this->db->queryF($sql); |
|
| 388 | } else { |
|
| 389 | $result = $this->db->query($sql); |
|
| 390 | } |
|
| 391 | if (!$result) { |
|
| 392 | return false; |
|
| 393 | } |
|
| @@ 425-429 (lines=5) @@ | ||
| 422 | if (isset($criteria) && is_subclass_of($criteria, 'CriteriaElement')) { |
|
| 423 | $sql .= ' ' . $criteria->renderWhere(); |
|
| 424 | } |
|
| 425 | if (false !== $force) { |
|
| 426 | $result = $this->db->queryF($sql); |
|
| 427 | } else { |
|
| 428 | $result = $this->db->query($sql); |
|
| 429 | } |
|
| 430 | if (!$result) { |
|
| 431 | return false; |
|
| 432 | } |
|
| @@ 451-455 (lines=5) @@ | ||
| 448 | if (isset($criteria) && is_subclass_of($criteria, 'CriteriaElement')) { |
|
| 449 | $sql .= ' ' . $criteria->renderWhere(); |
|
| 450 | } |
|
| 451 | if (false !== $force) { |
|
| 452 | $result = $this->db->queryF($sql); |
|
| 453 | } else { |
|
| 454 | $result = $this->db->query($sql); |
|
| 455 | } |
|
| 456 | if (!$result) { |
|
| 457 | return false; |
|
| 458 | } |
|