@@ 67-73 (lines=7) @@ | ||
64 | */ |
|
65 | public function insert(XoopsObject $object, $force = true) |
|
66 | { |
|
67 | if (!(class_exists($this->handler->className) && $object instanceof $this->handler->className)) { |
|
68 | trigger_error( |
|
69 | "Object '" . get_class($object) . "' is not an instance of '" . $this->handler->className . "'", |
|
70 | E_USER_NOTICE |
|
71 | ); |
|
72 | return false; |
|
73 | } |
|
74 | if (!$object->isDirty()) { |
|
75 | trigger_error( |
|
76 | "Data entry is not inserted - the object '" . get_class($object) . "' is not dirty", |
|
@@ 132-138 (lines=7) @@ | ||
129 | */ |
|
130 | public function delete(XoopsObject $object, $force = false) |
|
131 | { |
|
132 | if (!(class_exists($this->handler->className) && $object instanceof $this->handler->className)) { |
|
133 | trigger_error( |
|
134 | "Object '" . get_class($object) . "' is not an instance of '" . $this->handler->className . "'", |
|
135 | E_USER_NOTICE |
|
136 | ); |
|
137 | return false; |
|
138 | } |
|
139 | ||
140 | $qb = $this->handler->db2->createXoopsQueryBuilder(); |
|
141 | $eb = $qb->expr(); |