code: public function readDiscussion($id) {
          $model = $this->readObject($id, 'forum_discussions');
          $model->url = $this->cfg->wwwroot . '/mod/forum/discuss.php?d=' . $id;
          return $model;
      }
docs: Reads a discussion from the store with the given id.
  @param String $id
  @return PhpObj