20 lines
536 B
PHP
20 lines
536 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|