_table = 'forum_threadpartake'; $this->_pk = ''; parent::__construct(); } public function delete($dateline) { return DB::query('DELETE FROM %t WHERE dateline<%d', array($this->_table, $dateline), false, true); } public function fetch($tid, $uid) { return DB::fetch_first('SELECT * FROM %t WHERE tid=%d AND uid=%d', array($this->_table, $tid, $uid)); } } ?>