ZenMagick 0.9.1


org.zenmagick.service.ZMAddresses

Class ZMAddresses

ZMObject
|
+--ZMAddresses

public class ZMAddresses
extends ZMObject

Addresses.

Author:
mano
Version:
$Id: ZMAddresses.php 957 2008-03-30 21:03:12Z DerManoMann $

Constructor Summary

ZMAddresses()

Create new instance.

Method Summary
ZMAddress

createAddress(mixed address, ZMAddress The)

Create a new address.

void

deleteAddressForId(mixed addressId, int The, boolean true.)

Delte an address.

ZMAddress

getAddressForId(int addressId)

Get the address for the given id.

string

getAddressFormatForId(int addressFormatId)

Get the address format for the given address format id.

array

getAddressesForAccountId(int accountId)

Get all addresses for the given account id.

static void

instance()

Get instance.

ZMAddress

updateAddress(mixed address, ZMAddress account)

Update the given address.

Methods inherited from org.zenmagick.ZMObject
backtrace, create, log, singleton

Constructor Detail

ZMAddresses

public ZMAddresses()

Create new instance. /


Method Detail

createAddress

public ZMAddress createAddress(mixed address, ZMAddress The)

Create a new address.

Parameters:
The - new address.
Returns:
The created address incl. the new address id.

deleteAddressForId

public void deleteAddressForId(mixed addressId, int The, boolean true.)

Delte an address.

Parameters:
The - address id.

getAddressForId

public ZMAddress getAddressForId(int addressId)

Get the address for the given id.

Parameters:
addressId - The address id.
Returns:
The address or null.

getAddressFormatForId

public string getAddressFormatForId(int addressFormatId)

Get the address format for the given address format id.

Parameters:
addressFormatId - The address format id.
Returns:
The address format.

getAddressesForAccountId

public array getAddressesForAccountId(int accountId)

Get all addresses for the given account id.

Parameters:
accountId - The account id.
Returns:
A list of ZMAddress instances.

instance

public static void instance()

Get instance. /


updateAddress

public ZMAddress updateAddress(mixed address, ZMAddress account)

Update the given address.

Parameters:
account - The address.
Returns:
The updated address.

ZenMagick 0.9.1