_table = 'common_mailqueue'; $this->_pk = 'qid'; parent::__construct(); } public function fetch_all_by_cid($cids) { if(empty($cids)) { return array(); } return DB::fetch_all('SELECT * FROM %t WHERE '.DB::field('cid', $cids), array($this->_table)); } public function delete_by_cid($cids) { if(empty($cids)) { return false; } return DB::query('DELETE FROM %t WHERE '.DB::field('cid', $cids), array($this->_table)); } } ?>