You are here

public static function UcAddressesAddress::newAddress in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 class/UcAddressesAddress.class.php \UcAddressesAddress::newAddress()

Create a new unowned address.

This method will create an empty address without an owner. This is useful when you want to ask an anonymous user for an address (e.g., when registering). However, unonwed addresses can not be saved. In order to save this address, the UcAddressesAddress method setOwner() should be called.

@access public @static

Return value

UcAddressesAddress A new instance of UcAddressesAddress.

5 calls to UcAddressesAddress::newAddress()
FeedsUcAddressesProcessor::getMappingTargets in feeds/FeedsUcAddressesProcessor.inc
Return available mapping targets.
uc_addresses_checkout_pane_address in ./uc_addresses.ubercart.inc
Generic address pane handler.
uc_addresses_order_pane_address in ./uc_addresses.ubercart.inc
Callback for an address order pane.
uc_addresses_process_address_field in ./uc_addresses.module
Element process hook for address fields.
uc_addresses_token_info in ./uc_addresses.tokens.inc
Implements hook_token_info().

File

class/UcAddressesAddress.class.php, line 137
Contains the UcAddressesAddress class.

Class

UcAddressesAddress
The main address class used by uc_addresses (and extension modules).

Code

public static function newAddress() {
  return UcAddressesAddressBook::newAddress();
}