load->model('localisation/address_format'); * * @package Opencart\Admin\Model\Localisation */ class AddressFormat extends \Opencart\System\Engine\Model { /** * Get Address Format * * Get the record of the address format record in the database. * * @param int $address_format_id primary key of the address format record * * @return array address format record that has address format ID * * @example * * $this->load->model('localisation/address_format'); * * $address_format_info = $this->model_localisation_address_format->getAddressFormat($address_format_id); */ public function getAddressFormat(int $address_format_id): array { $query = $this->db->query("SELECT DISTINCT * FROM `" . DB_PREFIX . "address_format` WHERE `address_format_id` = '" . (int)$address_format_id . "'"); return $query->row; } }