_table = 'forum_poll'; $this->_pk = 'tid'; parent::__construct(); } public function update_vote($tid, $num = 1) { DB::query('UPDATE %t SET voters=voters+\'%d\' WHERE tid=%d', array($this->_table, $num, $tid), false, true); } public function delete_by_tid($tids) { return DB::delete($this->_table, DB::field('tid', $tids)); } } ?>