1: | <?php
2: | namespace Opencart\Catalog\Model\Localisation;
3: | /**
4: | * Class Location
5: | *
6: | * @package Opencart\Catalog\Model\Localisation
7: | */
8: | class Location extends \Opencart\System\Engine\Model {
9: | /**
10: | * Get Location
11: | *
12: | * @param int $location_id
13: | *
14: | * @return array<string, mixed>
15: | */
16: | public function getLocation(int $location_id): array {
17: | $query = $this->db->query("SELECT `location_id`, `name`, `address`, `geocode`, `telephone`, `image`, `open`, `comment` FROM `" . DB_PREFIX . "location` WHERE `location_id` = '" . (int)$location_id . "'");
18: |
19: | return $query->row;
20: | }
21: | }
22: |

OpenCart API API documentation generated by ApiGen dev-master