ZMObject
|
+--ZMCountries
public class ZMCountries
extends ZMObject
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| array | Get a list of all countries. |
| ZMCountry | getCountryForId(int id) Get country for the given id. |
| 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.ZMObject | |
|---|---|
| backtrace, create, log, singleton | |
public ZMCountries()
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 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.