db->query("SELECT * FROM `" . DB_PREFIX . "order_status` WHERE `order_status_id` = '" . (int)$order_status_id . "' AND `language_id` = '" . (int)$this->config->get('config_language_id') . "'"); return $query->row; } /** * @return array */ public function getOrderStatuses(): array { $sql = "SELECT `order_status_id`, `name` FROM `" . DB_PREFIX . "order_status` WHERE `language_id` = '" . (int)$this->config->get('config_language_id') . "' ORDER BY `name`"; $order_status_data = $this->cache->get('order_status.' . md5($sql)); if (!$order_status_data) { $query = $this->db->query($sql); $order_status_data = $query->rows; $this->cache->set('order_status.' . md5($sql), $order_status_data); } return $order_status_data; } }