required_fieds = $data; } public function get_data($id = false) { if ($id) { $this->set_id($id); } return $this->select_one('shipping_area_delivery_methods'); } // end get_data public function delete_data($id = false) { if ($id) { $this->set_id($id); } return $this->delete_one('shipping_area_delivery_methods'); } // end delete public function create($data) { return $this->create_one('shipping_area_delivery_methods', $data); } // end create public function update($data, $id = false) { if ($id) { $this->set_id($id); } return $this->update_one('shipping_area_delivery_methods', $data); } // end update public function get_all($shipping_area_id) { $result = $this->db->query("SELECT * FROM shipping_area_delivery_methods WHERE shipping_area_id=".$this->db->real_escape_string($shipping_area_id)); $data = array(); while ($obj = $result->fetch_object()) { $data[$obj->shipping_area_delivery_method_id] = $obj; } return $data; } // end get_all }// end ItemTypeDefinition_Edit /* EOF */