_table = 'common_secquestion'; $this->_pk = 'id'; parent::__construct(); } public function fetch_all($start = 0, $limit = 0) { return DB::fetch_all('SELECT * FROM %t'.DB::limit($start, $limit), array($this->_table)); } public function delete_by_type($type) { DB::query('DELETE FROM %t WHERE type=%d', array($this->_table, $type)); } } ?>