summaryrefslogtreecommitdiff
path: root/src/Bridge.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Bridge.php')
-rw-r--r--src/Bridge.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Bridge.php b/src/Bridge.php
index 6b83230..e46013d 100644
--- a/src/Bridge.php
+++ b/src/Bridge.php
@@ -72,6 +72,17 @@ class Bridge {
return $count == 1;
}
+ public function unregisterMessage($messageId) {
+ throw_if_null($messageId);
+
+ $sql = 'DELETE FROM posts WHERE message_id = ' .
+ $this->db->quote($messageId);
+
+ $coult = $this->db->exec($sql);
+
+ return $count == 1;
+ }
+
protected function get_exactly_one_row($sql) {
$result = $this->db->query($sql);