Back to Opencart

File catalog\model\localisation\location.php

docs/api/source-catalog.model.localisation.location.html

4.1.0.33.8 KB
Original Source

Namespaces

Classes

| 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