Definition at line 34 of file Cities.php.
◆ City()
static City |
( |
|
$city, |
|
|
|
$horizon = false |
|
) |
| |
|
static |
Returns the location from the selected city
- Parameters
-
string | $city | City to get location for |
string | $horizon | Horizon to use : default: effective others are civil, nautic, astronomic |
- Returns
- array
- Exceptions
-
Definition at line 300 of file Cities.php.
302 foreach (self::$cities as $key =>
$value) {
303 if (strtolower($key) === strtolower($city)) {
305 $return[
'horizon'] = $horizon;
309 #require_once 'Zend/Date/Exception.php';
◆ getCityList()
Return a list with all known cities
- Returns
- array
Definition at line 318 of file Cities.php.
320 return array_keys(self::$cities);
◆ $cities
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Date/Cities.php