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