_table = 'forum_threadimage'; $this->_pk = ''; parent::__construct(); } public function delete($tid) { return ($tid = dintval($tid)) ? DB::delete('forum_threadimage', "tid='$tid'") : false; } public function delete_by_tid($tids) { return !empty($tids) ? DB::delete($this->_table, DB::field('tid', $tids)) : false; } public function fetch_all_order_by_tid($start = 0, $limit = 0) { return DB::fetch_all('SELECT * FROM %t ORDER BY tid DESC '.DB::limit($start, $limit), array($this->_table), 'tid'); } } ?>