load->database(); $this->table = 'systembox'; $this->load_table('systembox'); } public function get_number($number) { return $this->find("number = '$number'"); } public function get_data($number,$systemboxclassid) { return $this->find("number = '$number' and systemboxclassid = '$systemboxclassid' and shtime = '0'"); } } //end class