ZenMagick 0.9.8


org.zenmagick.store.model.account.ZMAddress
\store\model\account\ZMAddress.php at line 37

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
Version:
$Id: ZMAddress.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMAddress()

Create new instance.

Method Summary
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
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\model\account\ZMAddress.php at line 59

ZMAddress

public ZMAddress()

Create new instance.


Method Detail

\store\model\account\ZMAddress.php at line 100

getAccountId

public int getAccountId()

Get the account id.

Returns:
The account id.

\store\model\account\ZMAddress.php at line 240

getAddressFormat

public string getAddressFormat()

Get the address format.

Returns:
The address format id.

\store\model\account\ZMAddress.php at line 231

getAddressFormatId

public int getAddressFormatId()

Get the address format id.

Returns:
The address format id.

\store\model\account\ZMAddress.php at line 135

getAddressLine1

public string getAddressLine1()

Get the address line.

Returns:
The address line.

\store\model\account\ZMAddress.php at line 156

getCity

public string getCity()

Get the city.

Returns:
The city.

\store\model\account\ZMAddress.php at line 128

getCompanyName

public string getCompanyName()

Get the company name.

Returns:
The company name.

\store\model\account\ZMAddress.php at line 177

getCountry

public ZMCountry getCountry()

Get the country.

Returns:
The country.

\store\model\account\ZMAddress.php at line 189

getCountryId

public int getCountryId()

Get the countryId.

Returns:
The countryId or 0.

\store\model\account\ZMAddress.php at line 107

getFirstName

public string getFirstName()

Get the first name.

Returns:
The first name.

\store\model\account\ZMAddress.php at line 203

getFormat

public string getFormat()

Get the format.

Returns:
The format.

\store\model\account\ZMAddress.php at line 217

getFullName

public string getFullName()

Get the full name.

Returns:
The formatted full name.

\store\model\account\ZMAddress.php at line 121

getGender

public string getGender()

Get the gender.

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

\store\model\account\ZMAddress.php at line 93

getId

public int getId()

Get the address id.

Returns:
The account id.

\store\model\account\ZMAddress.php at line 114

getLastName

public string getLastName()

Get the last name.

Returns:
The last name.

\store\model\account\ZMAddress.php at line 149

getPostcode

public string getPostcode()

Get the postcode.

Returns:
The postcode.

\store\model\account\ZMAddress.php at line 163

getState

public string getState()

Get the state.

Returns:
The state.

\store\model\account\ZMAddress.php at line 142

getSuburb

public string getSuburb()

Get the suburb.

Returns:
The suburb.

\store\model\account\ZMAddress.php at line 170

getZoneId

public int getZoneId()

Get the zone id.

Returns:
The zone id.

\store\model\account\ZMAddress.php at line 196

isPrimary

public boolean isPrimary()

Check if the address is the primary address.

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

\store\model\account\ZMAddress.php at line 224

setAccountId

public void setAccountId(int accountId)

Set the account id.

Parameters:
accountId - The account id.

\store\model\account\ZMAddress.php at line 284

setAddressLine1

public void setAddressLine1(string addressLine)

Set the address line.

Parameters:
addressLine - The address line.

\store\model\account\ZMAddress.php at line 305

setCity

public void setCity(string city)

Set the city.

Parameters:
city - The city.

\store\model\account\ZMAddress.php at line 340

setCompanyName

public void setCompanyName(string name)

Set the company name.

Parameters:
name - The company name.

\store\model\account\ZMAddress.php at line 326

setCountry

public void setCountry(ZMCountry country)

Set the country.

Parameters:
country - The country.

\store\model\account\ZMAddress.php at line 333

setCountryId

public void setCountryId(int countryId)

Set the country id.

Parameters:
countryId - The country id.

\store\model\account\ZMAddress.php at line 263

setFirstName

public void setFirstName(mixed name, string firstName)

Set the first name.

Parameters:
firstName - The first name.

\store\model\account\ZMAddress.php at line 210

setFormat

public void setFormat(string format)

Set the format.

Parameters:
format - The format.

\store\model\account\ZMAddress.php at line 277

setGender

public void setGender(string gender)

Set the gender.

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

\store\model\account\ZMAddress.php at line 256

setId

public void setId(int id)

Set the address id.

Parameters:
id - The account id.

\store\model\account\ZMAddress.php at line 270

setLastName

public void setLastName(string name)

Set the last name.

Parameters:
name - The last name.

\store\model\account\ZMAddress.php at line 298

setPostcode

public void setPostcode(string postcode)

Set the postcode.

Parameters:
postcode - The postcode.

\store\model\account\ZMAddress.php at line 249

setPrimary

public void setPrimary(boolean value)

Set the primary address flag.

Parameters:
value - The new status.

\store\model\account\ZMAddress.php at line 312

setState

public void setState(string state)

Set the state.

Parameters:
state - The state.

\store\model\account\ZMAddress.php at line 291

setSuburb

public void setSuburb(mixed suburb, string suburbThe)

Set the suburb.

Parameters:
suburbThe - suburb.

\store\model\account\ZMAddress.php at line 319

setZoneId

public void setZoneId(int zoneId)

Set the zone id.

Parameters:
zoneId - The zone id.

ZenMagick 0.9.8