first commit
This commit is contained in:
19
catalog/model/localisation/location.php
Normal file
19
catalog/model/localisation/location.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace Opencart\Catalog\Model\Localisation;
|
||||
/**
|
||||
* Class Location
|
||||
*
|
||||
* @package Opencart\Catalog\Model\Localisation
|
||||
*/
|
||||
class Location extends \Opencart\System\Engine\Model {
|
||||
/**
|
||||
* @param int $location_id
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getLocation(int $location_id): array {
|
||||
$query = $this->db->query("SELECT `location_id`, `name`, `address`, `geocode`, `telephone`, `image`, `open`, `comment` FROM `" . DB_PREFIX . "location` WHERE `location_id` = '" . (int)$location_id . "'");
|
||||
|
||||
return $query->row;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user