aboutsummaryrefslogtreecommitdiffstats
path: root/public/catalog/model/localisation/location.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/catalog/model/localisation/location.php')
-rw-r--r--public/catalog/model/localisation/location.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/public/catalog/model/localisation/location.php b/public/catalog/model/localisation/location.php
new file mode 100644
index 0000000..bb27cdb
--- /dev/null
+++ b/public/catalog/model/localisation/location.php
@@ -0,0 +1,8 @@
+<?php
+class ModelLocalisationLocation extends Model {
+ public function getLocation($location_id) {
+ $query = $this->db->query("SELECT location_id, name, address, geocode, telephone, fax, image, open, comment FROM " . DB_PREFIX . "location WHERE location_id = '" . (int)$location_id . "'");
+
+ return $query->row;
+ }
+} \ No newline at end of file