class/baseObjectHandler.php 1 location
|
@@ 240-251 (lines=12) @@
|
237 |
|
* @return bool FALSE if deletion failed |
238 |
|
* @access public |
239 |
|
*/ |
240 |
|
public function deleteAll($criteria = null) |
241 |
|
{ |
242 |
|
$sql = 'DELETE FROM ' . $this->_db->prefix($this->_dbtable); |
243 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
244 |
|
$sql .= ' ' . $criteria->renderWhere(); |
245 |
|
} |
246 |
|
if (!$result = $this->_db->query($sql)) { |
247 |
|
return false; |
248 |
|
} |
249 |
|
|
250 |
|
return true; |
251 |
|
} |
252 |
|
|
253 |
|
/** |
254 |
|
* Assign a value to 1 field for tickets matching a set of conditions |
class/file.php 1 location
|
@@ 677-688 (lines=12) @@
|
674 |
|
* @param object $criteria {@link CriteriaElement} |
675 |
|
* @return bool FALSE if deletion failed |
676 |
|
*/ |
677 |
|
public function deleteAll($criteria = null) |
678 |
|
{ |
679 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('smartpartner_files'); |
680 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
681 |
|
$sql .= ' ' . $criteria->renderWhere(); |
682 |
|
} |
683 |
|
if (!$result = $this->db->query($sql)) { |
684 |
|
return false; |
685 |
|
} |
686 |
|
|
687 |
|
return true; |
688 |
|
} |
689 |
|
|
690 |
|
/** |
691 |
|
* Change a value for files with a certain criteria |
class/partner.php 1 location
|
@@ 1231-1242 (lines=12) @@
|
1228 |
|
* @param CriteriaElement $criteria {@link CriteriaElement} |
1229 |
|
* @return bool FALSE if deletion failed |
1230 |
|
*/ |
1231 |
|
public function deleteAll(CriteriaElement $criteria = null) |
1232 |
|
{ |
1233 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('smartpartner_partner'); |
1234 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
1235 |
|
$sql .= ' ' . $criteria->renderWhere(); |
1236 |
|
} |
1237 |
|
if (!$result = $this->db->query($sql)) { |
1238 |
|
return false; |
1239 |
|
} |
1240 |
|
|
1241 |
|
return true; |
1242 |
|
} |
1243 |
|
|
1244 |
|
/** |
1245 |
|
* Change a value for a Partner with a certain criteria |