diff options
author | uckelman <uckelman@nomic.net> | 2010-04-11 20:24:04 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-11 20:24:04 +0000 |
commit | 892aab166e5060e3c28c26953a62bc4632f3709b (patch) | |
tree | 2260d9c5ae5fd00ee08aa1e5bc2d38af81e5f5c3 /src/Bridge.php | |
parent | a4d841f15b9119826007555beedd3d97477ec8a6 (diff) |
Added unregisterMessage().
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6679 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/Bridge.php')
-rw-r--r-- | src/Bridge.php | 11 |
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); |