ZenMagick 0.9.11


zenmagick.store.shared.model.account\ZMAddress
model\account\ZMAddress.php at line 36

Class ZMAddress

ZMObject
└─ZMAddress

public class ZMAddress
extends ZMObject

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.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct(array properties)

Create new instance.

int

getAccountId()

Get the account id.

string

getAddressFormat()

Get the address format.

int

getAddressFormatId()

Get the address format id.

string

getAddressLine1()

Get the address line.

string

getCity()

Get the city.

string

getCompanyName()

Get the company name.

ZMCountry

getCountry()

Get the country.

int

getCountryId()

Get the countryId.

string

getFirstName()

Get the first name.

string

getFormat()

Get the format.

string

getFullName()

Get the full name.

string

getGender()

Get the gender.

int

getId()

Get the address id.

string

getLastName()

Get the last name.

string

getPostcode()

Get the postcode.

string

getState()

Get the state.

string

getSuburb()

Get the suburb.

int

getZoneId()

Get the zone id.

boolean

isPrimary()

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

Method Detail

model\account\ZMAddress.php at line 58

__construct

public void __construct(array properties)

Create new instance.

Parameters:
properties - Optional properties; default is an empty array;

model\account\ZMAddress.php at line 99

getAccountId

public int getAccountId()

Get the account id.

Returns:
The account id.

model\account\ZMAddress.php at line 239

getAddressFormat

public string getAddressFormat()

Get the address format.

Returns:
The address format id.

model\account\ZMAddress.php at line 230

getAddressFormatId

public int getAddressFormatId()

Get the address format id.

Returns:
The address format id.

model\account\ZMAddress.php at line 134

getAddressLine1

public string getAddressLine1()

Get the address line.

Returns:
The address line.

model\account\ZMAddress.php at line 155

getCity

public string getCity()

Get the city.

Returns:
The city.

model\account\ZMAddress.php at line 127

getCompanyName

public string getCompanyName()

Get the company name.

Returns:
The company name.

model\account\ZMAddress.php at line 176

getCountry

public ZMCountry getCountry()

Get the country.

Returns:
The country.

model\account\ZMAddress.php at line 188

getCountryId

public int getCountryId()

Get the countryId.

Returns:
The countryId or 0.

model\account\ZMAddress.php at line 106

getFirstName

public string getFirstName()

Get the first name.

Returns:
The first name.

model\account\ZMAddress.php at line 202

getFormat

public string getFormat()

Get the format.

Returns:
The format.

model\account\ZMAddress.php at line 216

getFullName

public string getFullName()

Get the full name.

Returns:
The formatted full name.

model\account\ZMAddress.php at line 120

getGender

public string getGender()

Get the gender.

Returns:
The gender ('f' or 'm').

model\account\ZMAddress.php at line 92

getId

public int getId()

Get the address id.

Returns:
The account id.

model\account\ZMAddress.php at line 113

getLastName

public string getLastName()

Get the last name.

Returns:
The last name.

model\account\ZMAddress.php at line 148

getPostcode

public string getPostcode()

Get the postcode.

Returns:
The postcode.

model\account\ZMAddress.php at line 162

getState

public string getState()

Get the state.

Returns:
The state.

model\account\ZMAddress.php at line 141

getSuburb

public string getSuburb()

Get the suburb.

Returns:
The suburb.

model\account\ZMAddress.php at line 169

getZoneId

public int getZoneId()

Get the zone id.

Returns:
The zone id.

model\account\ZMAddress.php at line 195

isPrimary

public boolean isPrimary()

Check if the address is the primary address.

Returns:
true if the address is the primary adddress, false if not.

model\account\ZMAddress.php at line 223

setAccountId

public void setAccountId(int accountId)

Set the account id.

Parameters:
accountId - The account id.

model\account\ZMAddress.php at line 283

setAddressLine1

public void setAddressLine1(string addressLine)

Set the address line.

Parameters:
addressLine - The address line.

model\account\ZMAddress.php at line 304

setCity

public void setCity(string city)

Set the city.

Parameters:
city - The city.

model\account\ZMAddress.php at line 339

setCompanyName

public void setCompanyName(string name)

Set the company name.

Parameters:
name - The company name.

model\account\ZMAddress.php at line 325

setCountry

public void setCountry(ZMCountry country)

Set the country.

Parameters:
country - The country.

model\account\ZMAddress.php at line 332

setCountryId

public void setCountryId(int countryId)

Set the country id.

Parameters:
countryId - The country id.

model\account\ZMAddress.php at line 262

setFirstName

public void setFirstName(mixed name, string firstName)

Set the first name.

Parameters:
firstName - The first name.

model\account\ZMAddress.php at line 209

setFormat

public void setFormat(string format)

Set the format.

Parameters:
format - The format.

model\account\ZMAddress.php at line 276

setGender

public void setGender(string gender)

Set the gender.

Parameters:
gender - The gender ('f' or 'm').

model\account\ZMAddress.php at line 255

setId

public void setId(int id)

Set the address id.

Parameters:
id - The account id.

model\account\ZMAddress.php at line 269

setLastName

public void setLastName(string name)

Set the last name.

Parameters:
name - The last name.

model\account\ZMAddress.php at line 297

setPostcode

public void setPostcode(string postcode)

Set the postcode.

Parameters:
postcode - The postcode.

model\account\ZMAddress.php at line 248

setPrimary

public void setPrimary(boolean value)

Set the primary address flag.

Parameters:
value - The new status.

model\account\ZMAddress.php at line 311

setState

public void setState(string state)

Set the state.

Parameters:
state - The state.

model\account\ZMAddress.php at line 290

setSuburb

public void setSuburb(mixed suburb, string suburbThe)

Set the suburb.

Parameters:
suburbThe - suburb.

model\account\ZMAddress.php at line 318

setZoneId

public void setZoneId(int zoneId)

Set the zone id.

Parameters:
zoneId - The zone id.

ZenMagick 0.9.11