htdocs/kernel/comment.php 1 location
|
@@ 504-515 (lines=12) @@
|
| 501 |
|
* |
| 502 |
|
* @return bool |
| 503 |
|
**/ |
| 504 |
|
public function deleteAll(CriteriaElement $criteria = null) |
| 505 |
|
{ |
| 506 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('xoopscomments'); |
| 507 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 508 |
|
$sql .= ' ' . $criteria->renderWhere(); |
| 509 |
|
} |
| 510 |
|
if (!$result = $this->db->query($sql)) { |
| 511 |
|
return false; |
| 512 |
|
} |
| 513 |
|
|
| 514 |
|
return true; |
| 515 |
|
} |
| 516 |
|
|
| 517 |
|
/** |
| 518 |
|
* Get a list of comments |
htdocs/kernel/group.php 1 location
|
@@ 439-450 (lines=12) @@
|
| 436 |
|
* @param CriteriaElement $criteria {@link CriteriaElement} with conditions to meet |
| 437 |
|
* @return bool |
| 438 |
|
*/ |
| 439 |
|
public function deleteAll(CriteriaElement $criteria = null) |
| 440 |
|
{ |
| 441 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('groups_users_link'); |
| 442 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 443 |
|
$sql .= ' ' . $criteria->renderWhere(); |
| 444 |
|
} |
| 445 |
|
if (!$result = $this->db->query($sql)) { |
| 446 |
|
return false; |
| 447 |
|
} |
| 448 |
|
|
| 449 |
|
return true; |
| 450 |
|
} |
| 451 |
|
|
| 452 |
|
/** |
| 453 |
|
* retrieve groups for a user |
htdocs/kernel/groupperm.php 1 location
|
@@ 288-299 (lines=12) @@
|
| 285 |
|
* |
| 286 |
|
* @return bool TRUE on success |
| 287 |
|
*/ |
| 288 |
|
public function deleteAll(CriteriaElement $criteria = null) |
| 289 |
|
{ |
| 290 |
|
$sql = sprintf('DELETE FROM %s', $this->db->prefix('group_permission')); |
| 291 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 292 |
|
$sql .= ' ' . $criteria->renderWhere(); |
| 293 |
|
} |
| 294 |
|
if (!$result = $this->db->query($sql)) { |
| 295 |
|
return false; |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
return true; |
| 299 |
|
} |
| 300 |
|
|
| 301 |
|
/** |
| 302 |
|
* Delete all module specific permissions assigned for a group |
htdocs/kernel/notification.php 1 location
|
@@ 397-408 (lines=12) @@
|
| 394 |
|
* |
| 395 |
|
* @return bool |
| 396 |
|
**/ |
| 397 |
|
public function deleteAll(CriteriaElement $criteria = null) |
| 398 |
|
{ |
| 399 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('xoopsnotifications'); |
| 400 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 401 |
|
$sql .= ' ' . $criteria->renderWhere(); |
| 402 |
|
} |
| 403 |
|
if (!$result = $this->db->query($sql)) { |
| 404 |
|
return false; |
| 405 |
|
} |
| 406 |
|
|
| 407 |
|
return true; |
| 408 |
|
} |
| 409 |
|
|
| 410 |
|
// TODO: rename this... |
| 411 |
|
// Also, should we have get by module, get by category, etc...?? |