ZMObject
└─ZMCountries
public class ZMCountries
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | Create new instance. |
| array | Get a list of all countries. |
| ZMCountry | getCountryForId(int id) Get country for the given id. |
| ZMCountry | getCountryForIsoCode2(string code) Get country for the given ISO code2. |
| ZMCountry | getCountryForName(string name) Get country for the given name. |
| string | getZoneCode(int countryId, int zoneId, string defaultZone) Get the zone code for the given country and zone id. |
| array | getZonesForCountryId(int countryId) Get all zones for the given country id. |
| static void | instance() Get instance. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct()
Create new instance.
public array getCountries()
Get a list of all countries.
ZMCountry objects.public ZMCountry getCountryForId(int id)
Get country for the given id.
null.public ZMCountry getCountryForIsoCode2(string code)
Get country for the given ISO code2.
null.public ZMCountry getCountryForName(string name)
Get country for the given name.
null.public string getZoneCode(int countryId, int zoneId, string defaultZone)
Get the zone code for the given country and zone id.
''.public array getZonesForCountryId(int countryId)
Get all zones for the given country id.
ZMZone objects.public static void instance()
Get instance.
Countries.