class/auction.php 1 location
|
@@ 366-377 (lines=12) @@
|
363 |
|
* @param object $criteria {@link CriteriaElement} |
364 |
|
* @return bool FALSE if deletion failed |
365 |
|
*/ |
366 |
|
public function deleteAll($criteria = null) |
367 |
|
{ |
368 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('martin_auction'); |
369 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
370 |
|
$sql .= ' ' . $criteria->renderWhere(); |
371 |
|
} |
372 |
|
if (!$result = $this->db->query($sql)) { |
373 |
|
return false; |
374 |
|
} |
375 |
|
|
376 |
|
return true; |
377 |
|
} |
378 |
|
|
379 |
|
/** |
380 |
|
* count hotel cities matching a condition |
class/group.php 1 location
|
@@ 344-355 (lines=12) @@
|
341 |
|
* @param object $criteria {@link CriteriaElement} |
342 |
|
* @return bool FALSE if deletion failed |
343 |
|
*/ |
344 |
|
public function deleteAll($criteria = null) |
345 |
|
{ |
346 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('martin_group'); |
347 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
348 |
|
$sql .= ' ' . $criteria->renderWhere(); |
349 |
|
} |
350 |
|
if (!$result = $this->db->query($sql)) { |
351 |
|
return false; |
352 |
|
} |
353 |
|
|
354 |
|
return true; |
355 |
|
} |
356 |
|
|
357 |
|
/** |
358 |
|
* count hotel cities matching a condition |
class/hotel.php 1 location
|
@@ 551-562 (lines=12) @@
|
548 |
|
* @param object $criteria {@link CriteriaElement} |
549 |
|
* @return bool FALSE if deletion failed |
550 |
|
*/ |
551 |
|
public function deleteAll($criteria = null) |
552 |
|
{ |
553 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('martin_hotel'); |
554 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
555 |
|
$sql .= ' ' . $criteria->renderWhere(); |
556 |
|
} |
557 |
|
if (!$result = $this->db->query($sql)) { |
558 |
|
return false; |
559 |
|
} |
560 |
|
|
561 |
|
return true; |
562 |
|
} |
563 |
|
|
564 |
|
/** |
565 |
|
* count hotel cities matching a condition |
class/hotelcity.php 1 location
|
@@ 290-301 (lines=12) @@
|
287 |
|
* @param object $criteria {@link CriteriaElement} |
288 |
|
* @return bool FALSE if deletion failed |
289 |
|
*/ |
290 |
|
public function deleteAll($criteria = null) |
291 |
|
{ |
292 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('martin_hotel_city'); |
293 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
294 |
|
$sql .= ' ' . $criteria->renderWhere(); |
295 |
|
} |
296 |
|
if (!$result = $this->db->query($sql)) { |
297 |
|
return false; |
298 |
|
} |
299 |
|
|
300 |
|
return true; |
301 |
|
} |
302 |
|
|
303 |
|
/** |
304 |
|
* count hotel cities matching a condition |
class/hotelpromotion.php 1 location
|
@@ 252-263 (lines=12) @@
|
249 |
|
* @param object $criteria {@link CriteriaElement} |
250 |
|
* @return bool FALSE if deletion failed |
251 |
|
*/ |
252 |
|
public function deleteAll($criteria = null) |
253 |
|
{ |
254 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('martin_hotel_promotions'); |
255 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
256 |
|
$sql .= ' ' . $criteria->renderWhere(); |
257 |
|
} |
258 |
|
if (!$result = $this->db->query($sql)) { |
259 |
|
return false; |
260 |
|
} |
261 |
|
|
262 |
|
return true; |
263 |
|
} |
264 |
|
|
265 |
|
/** |
266 |
|
* count hotel cities matching a condition |
class/hotelservice.php 1 location
|
@@ 257-268 (lines=12) @@
|
254 |
|
* @param object $criteria {@link CriteriaElement} |
255 |
|
* @return bool FALSE if deletion failed |
256 |
|
*/ |
257 |
|
public function deleteAll($criteria = null) |
258 |
|
{ |
259 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('martin_hotel_service'); |
260 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
261 |
|
$sql .= ' ' . $criteria->renderWhere(); |
262 |
|
} |
263 |
|
if (!$result = $this->db->query($sql)) { |
264 |
|
return false; |
265 |
|
} |
266 |
|
|
267 |
|
return true; |
268 |
|
} |
269 |
|
|
270 |
|
/** |
271 |
|
* count hotel cities matching a condition |
class/hotelservicetype.php 1 location
|
@@ 210-221 (lines=12) @@
|
207 |
|
* @param object $criteria {@link CriteriaElement} |
208 |
|
* @return bool FALSE if deletion failed |
209 |
|
*/ |
210 |
|
public function deleteAll($criteria = null) |
211 |
|
{ |
212 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('martin_hotel_service_type'); |
213 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
214 |
|
$sql .= ' ' . $criteria->renderWhere(); |
215 |
|
} |
216 |
|
if (!$result = $this->db->query($sql)) { |
217 |
|
return false; |
218 |
|
} |
219 |
|
|
220 |
|
return true; |
221 |
|
} |
222 |
|
|
223 |
|
/** |
224 |
|
* count hotel cities matching a condition |
class/order.php 1 location
|
@@ 452-463 (lines=12) @@
|
449 |
|
* @param object $criteria {@link CriteriaElement} |
450 |
|
* @return bool FALSE if deletion failed |
451 |
|
*/ |
452 |
|
public function deleteAll($criteria = null) |
453 |
|
{ |
454 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('martin_order'); |
455 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
456 |
|
$sql .= ' ' . $criteria->renderWhere(); |
457 |
|
} |
458 |
|
if (!$result = $this->db->query($sql)) { |
459 |
|
return false; |
460 |
|
} |
461 |
|
|
462 |
|
return true; |
463 |
|
} |
464 |
|
|
465 |
|
/** |
466 |
|
* count hotel cities matching a condition |