@@ 647-651 (lines=5) @@ | ||
644 | $whereclause = $this->keyName . ' = ' . $obj->getVar($this->keyName); |
|
645 | } |
|
646 | $sql = 'DELETE FROM ' . $this->table . ' WHERE ' . $whereclause; |
|
647 | if (false !== $force) { |
|
648 | $result = $this->db->queryF($sql); |
|
649 | } else { |
|
650 | $result = $this->db->query($sql); |
|
651 | } |
|
652 | if (!$result) { |
|
653 | return false; |
|
654 | } |
|
@@ 818-822 (lines=5) @@ | ||
815 | xoops_debug($sql); |
|
816 | } |
|
817 | ||
818 | if (false !== $force) { |
|
819 | $result = $this->db->queryF($sql); |
|
820 | } else { |
|
821 | $result = $this->db->query($sql); |
|
822 | } |
|
823 | ||
824 | if (!$result) { |
|
825 | $obj->setErrors($this->db->error()); |
|
@@ 896-900 (lines=5) @@ | ||
893 | if (isset($criteria) && is_subclass_of($criteria, 'CriteriaElement')) { |
|
894 | $sql .= ' ' . $criteria->renderWhere(); |
|
895 | } |
|
896 | if (false !== $force) { |
|
897 | $result = $this->db->queryF($sql); |
|
898 | } else { |
|
899 | $result = $this->db->query($sql); |
|
900 | } |
|
901 | if (!$result) { |
|
902 | return false; |
|
903 | } |