first commit

This commit is contained in:
Konstantin
2026-05-30 09:27:58 +03:00
commit de0344d218
2371 changed files with 661486 additions and 0 deletions
@@ -0,0 +1,22 @@
<?php
class ModelLocalisationCountry extends Model {
public function getCountry($country_id) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "country WHERE country_id = '" . (int)$country_id . "' AND status = '1'");
return $query->row;
}
public function getCountries() {
$country_data = $this->cache->get('country.catalog');
if (!$country_data) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "country WHERE status = '1' ORDER BY name ASC");
$country_data = $query->rows;
$this->cache->set('country.catalog', $country_data);
}
return $country_data;
}
}