diff options
| author | uckelman <uckelman@nomic.net> | 2010-04-13 20:29:30 +0000 | 
|---|---|---|
| committer | uckelman <uckelman@nomic.net> | 2010-04-13 20:29:30 +0000 | 
| commit | 227c44ce079de309cf054899c15ec06b075d7940 (patch) | |
| tree | 81caff29a92822efc66d142e71b4f90ad8ffabfe /src/Bridge.php | |
| parent | 1118926f9e87bfe9ec4f78cb560877fc8081cf28 (diff) | |
PHP apparently doesn't support function overloading. Bah!
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6701 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/Bridge.php')
| -rw-r--r-- | src/Bridge.php | 16 | 
1 files changed, 1 insertions, 15 deletions
diff --git a/src/Bridge.php b/src/Bridge.php index 9d59564..8ea229a 100644 --- a/src/Bridge.php +++ b/src/Bridge.php @@ -71,27 +71,13 @@ class Bridge {      return $rows;    } -  public function registerMessage($messageId, $inReplyTo, $references) { -    throw_if_null($messageId); - -    $sql = 'INSERT IGNORE INTO posts ' . -           '(message_id, in_reply_to, refs) ' . -           'VALUES (' . $this->db->quote($messageId) . ', ' -                      . $this->quote($inReplyTo) . ', ' -                      . $this->quote($references) . ')';  - -    $count = $this->db->exec($sql); -    return $count == 1; -  } -    public function registerMessage($postId, $messageId,                                    $inReplyTo, $references) { -    throw_if_null($postId);      throw_if_null($messageId);      $sql = 'INSERT IGNORE INTO posts ' .             '(post_id, message_id, in_reply_to, refs) ' . -           'VALUES (' . $postId . ', ' +           'VALUES (' . ($postId === null ? 'NULL' : $postId) . ', '                        . $this->db->quote($messageId) . ', '                        . $this->quote($inReplyTo) . ', '                        . $this->quote($references) . ')';   | 
