diff options
author | uckelman <uckelman@nomic.net> | 2010-04-11 20:46:49 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-11 20:46:49 +0000 |
commit | cb0a28a4e77c41e149efddce5c79ff6dd6c4ab63 (patch) | |
tree | 2eed01bc28bb0c34fe418b4298c47ac54ae6102d /src | |
parent | 6af518db11e22b8655e81ac9aa51486246f5d12c (diff) |
Added getLists().
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6683 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src')
-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); |