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/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...?? |
htdocs/kernel/group.php 1 location
|
@@ 467-478 (lines=12) @@
|
| 464 |
|
* @param CriteriaElement $criteria {@link CriteriaElement} with conditions to meet |
| 465 |
|
* @return bool |
| 466 |
|
*/ |
| 467 |
|
public function deleteAll(CriteriaElement $criteria = null) |
| 468 |
|
{ |
| 469 |
|
$sql = 'DELETE FROM ' . $this->db->prefix('groups_users_link'); |
| 470 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 471 |
|
$sql .= ' ' . $criteria->renderWhere(); |
| 472 |
|
} |
| 473 |
|
if (!$result = $this->db->query($sql)) { |
| 474 |
|
return false; |
| 475 |
|
} |
| 476 |
|
|
| 477 |
|
return true; |
| 478 |
|
} |
| 479 |
|
|
| 480 |
|
/** |
| 481 |
|
* retrieve groups for a user |
htdocs/kernel/groupperm.php 1 location
|
@@ 302-313 (lines=12) @@
|
| 299 |
|
* |
| 300 |
|
* @return bool TRUE on success |
| 301 |
|
*/ |
| 302 |
|
public function deleteAll(CriteriaElement $criteria = null) |
| 303 |
|
{ |
| 304 |
|
$sql = sprintf('DELETE FROM %s', $this->db->prefix('group_permission')); |
| 305 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 306 |
|
$sql .= ' ' . $criteria->renderWhere(); |
| 307 |
|
} |
| 308 |
|
if (!$result = $this->db->query($sql)) { |
| 309 |
|
return false; |
| 310 |
|
} |
| 311 |
|
|
| 312 |
|
return true; |
| 313 |
|
} |
| 314 |
|
|
| 315 |
|
/** |
| 316 |
|
* Delete all module specific permissions assigned for a group |