ZenMagick 0.9.6


org.zenmagick.model.account.ZMAddress

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 2089 2009-03-20 04:19:48Z dermanomann $

Fields inherited from org.zenmagick.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.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMAddress

public ZMAddress()

Create new instance. /


Method Detail

getAccountId

public int getAccountId()

Get the account id.

Returns:
The account id.

getAddressFormat

public string getAddressFormat()

Get the address format.

Returns:
The address format id.

getAddressFormatId

public int getAddressFormatId()

Get the address format id.

Returns:
The address format id.

getAddressLine1

public string getAddressLine1()

Get the address line.

Returns:
The address line.

getCity

public string getCity()

Get the city.

Returns:
The city.

getCompanyName

public string getCompanyName()

Get the company name.

Returns:
The company name.

getCountry

public ZMCountry getCountry()

Get the country.

Returns:
The country.

getCountryId

public int getCountryId()

Get the countryId.

Returns:
The countryId or 0.

getFirstName

public string getFirstName()

Get the first name.

Returns:
The first name.

getFormat

public string getFormat()

Get the format.

Returns:
The format.

getFullName

public string getFullName()

Get the full name.

Returns:
The formatted full name.

getGender

public string getGender()

Get the gender.

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

getId

public int getId()

Get the address id.

Returns:
The account id.

getLastName

public string getLastName()

Get the last name.

Returns:
The last name.

getPostcode

public string getPostcode()

Get the postcode.

Returns:
The postcode.

getState

public string getState()

Get the state.

Returns:
The state.

getSuburb

public string getSuburb()

Get the suburb.

Returns:
The suburb.

getZoneId

public int getZoneId()

Get the zone id.

Returns:
The zone id.

isPrimary

public boolean isPrimary()

Check if the address is the primary address.

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

setAccountId

public void setAccountId(int accountId)

Set the account id.

Parameters:
accountId - The account id.

setAddressLine1

public void setAddressLine1(string addressLine)

Set the address line.

Parameters:
addressLine - The address line.

setCity

public void setCity(string city)

Set the city.

Parameters:
city - The city.

setCompanyName

public void setCompanyName(string name)

Set the company name.

Parameters:
name - The company name.

setCountry

public void setCountry(ZMCountry country)

Set the country.

Parameters:
country - The country.

setCountryId

public void setCountryId(int countryId)

Set the country id.

Parameters:
countryId - The country id.

setFirstName

public void setFirstName(mixed name, string firstName)

Set the first name.

Parameters:
firstName - The first name.

setFormat

public void setFormat(string format)

Set the format.

Parameters:
format - The format.

setGender

public void setGender(string gender)

Set the gender.

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

setId

public void setId(int id)

Set the address id.

Parameters:
id - The account id.

setLastName

public void setLastName(string name)

Set the last name.

Parameters:
name - The last name.

setPostcode

public void setPostcode(string postcode)

Set the postcode.

Parameters:
postcode - The postcode.

setPrimary

public void setPrimary(boolean value)

Set the primary address flag.

Parameters:
value - The new status.

setState

public void setState(string state)

Set the state.

Parameters:
state - The state.

setSuburb

public void setSuburb(mixed suburb, string suburbThe)

Set the suburb.

Parameters:
suburbThe - suburb.

setZoneId

public void setZoneId(int zoneId)

Set the zone id.

Parameters:
zoneId - The zone id.

ZenMagick 0.9.6