| @@ 642-646 (lines=5) @@ | ||
| 639 | $whereclause = $this->keyName . ' = ' . $obj->getVar($this->keyName); |
|
| 640 | } |
|
| 641 | $sql = 'DELETE FROM ' . $this->table . ' WHERE ' . $whereclause; |
|
| 642 | if (false !== $force) { |
|
| 643 | $result = $this->db->queryF($sql); |
|
| 644 | } else { |
|
| 645 | $result = $this->db->query($sql); |
|
| 646 | } |
|
| 647 | if (!$result) { |
|
| 648 | return false; |
|
| 649 | } |
|
| @@ 813-817 (lines=5) @@ | ||
| 810 | xoops_debug($sql); |
|
| 811 | } |
|
| 812 | ||
| 813 | if (false != $force) { |
|
| 814 | $result = $this->db->queryF($sql); |
|
| 815 | } else { |
|
| 816 | $result = $this->db->query($sql); |
|
| 817 | } |
|
| 818 | ||
| 819 | if (!$result) { |
|
| 820 | $obj->setErrors($this->db->error()); |
|
| @@ 891-895 (lines=5) @@ | ||
| 888 | if (isset($criteria) && is_subclass_of($criteria, 'CriteriaElement')) { |
|
| 889 | $sql .= ' ' . $criteria->renderWhere(); |
|
| 890 | } |
|
| 891 | if (false != $force) { |
|
| 892 | $result = $this->db->queryF($sql); |
|
| 893 | } else { |
|
| 894 | $result = $this->db->query($sql); |
|
| 895 | } |
|
| 896 | if (!$result) { |
|
| 897 | return false; |
|
| 898 | } |
|