queryOne("select * from topics where id = ?", array($id)); } function &findAll() { return $this->query("select * from topics"); } function insert($topics) { return $this->doInsert("topics", $topics->get()); } function update($topics) { $id = $this->qstr($topics->getId()); return $this->doUpdate("topics", $topics->get(), "id = $id"); } function &createCollection($recordSet) { $collection = new TopicsCollection($recordSet); return $collection; } }