ZMObject
└─ZMAddress
public class ZMAddress
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | __construct(array properties) Create new instance. |
| int | Get the account id. |
| string | Get the address format. |
| int | Get the address format id. |
| string | Get the address line. |
| string | getCity() Get the city. |
| string | Get the company name. |
| ZMCountry | Get the country. |
| int | Get the countryId. |
| string | Get the first name. |
| string | Get the format. |
| string | Get the full name. |
| string | Get the gender. |
| int | getId() Get the address id. |
| string | Get the last name. |
| string | Get the postcode. |
| string | getState() Get the state. |
| string | Get the suburb. |
| int | Get the zone id. |
| boolean | Check if the address is the primary address. |
| void | setAccountId(int accountId) Set the account id. |
| void | setAddressLine1(string addressLine) Set the address line. |
| void | setCity(string city) Set the city. |
| void | setCompanyName(string name) Set the company name. |
| void | setCountry(ZMCountry country) Set the country. |
| void | setCountryId(int countryId) Set the country id. |
| void | setFirstName(mixed name, string firstName) Set the first name. |
| void | setFormat(string format) Set the format. |
| void | setGender(string gender) Set the gender. |
| void | setId(int id) Set the address id. |
| void | setLastName(string name) Set the last name. |
| void | setPostcode(string postcode) Set the postcode. |
| void | setPrimary(boolean value) Set the primary address flag. |
| void | setState(string state) Set the state. |
| void | setSuburb(mixed suburb, string suburbThe) Set the suburb. |
| void | setZoneId(int zoneId) Set the zone id. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set | |
public void __construct(array properties)
Create new instance.
public int getAccountId()
Get the account id.
public string getAddressFormat()
Get the address format.
public int getAddressFormatId()
Get the address format id.
public string getAddressLine1()
Get the address line.
public string getCity()
Get the city.
public string getCompanyName()
Get the company name.
public ZMCountry getCountry()
Get the country.
public int getCountryId()
Get the countryId.
public string getFirstName()
Get the first name.
public string getFormat()
Get the format.
public string getFullName()
Get the full name.
public string getGender()
Get the gender.
public int getId()
Get the address id.
public string getLastName()
Get the last name.
public string getPostcode()
Get the postcode.
public string getState()
Get the state.
public string getSuburb()
Get the suburb.
public int getZoneId()
Get the zone id.
public boolean isPrimary()
Check if the address is the primary address.
true if the address is the primary adddress, false if not.public void setAccountId(int accountId)
Set the account id.
public void setAddressLine1(string addressLine)
Set the address line.
public void setCity(string city)
Set the city.
public void setCompanyName(string name)
Set the company name.
public void setCountry(ZMCountry country)
Set the country.
public void setCountryId(int countryId)
Set the country id.
public void setFirstName(mixed name, string firstName)
Set the first name.
public void setFormat(string format)
Set the format.
public void setGender(string gender)
Set the gender.
public void setId(int id)
Set the address id.
public void setLastName(string name)
Set the last name.
public void setPostcode(string postcode)
Set the postcode.
public void setPrimary(boolean value)
Set the primary address flag.
public void setState(string state)
Set the state.
public void setSuburb(mixed suburb, string suburbThe)
Set the suburb.
public void setZoneId(int zoneId)
Set the zone id.
A single address.
An address can have either a zoneId or a state; state is the manually entered value and zoneId is the state selected from a dropdown.