diff options
Diffstat (limited to 'src/Bridge.php')
-rw-r--r-- | src/Bridge.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Bridge.php b/src/Bridge.php index 3884154..54f9880 100644 --- a/src/Bridge.php +++ b/src/Bridge.php @@ -58,6 +58,19 @@ class Bridge { return $row ? $row['forum_id'] : false; } + public function getLists($forumId) { + throw_if_null($forumId); + + $sql = 'SELECT list_name FROM forums ' . + 'WHERE forum_id = ' . $forumId; + + $result = $this->db->query($sql); + + $rows = $result->fetchAll(PDO::FETCH_COLUMN); + $result->closeCursor(); + return $rows; + } + public function registerMessage($messageId, $inReplyTo, $references) { throw_if_null($messageId); |