public static function UcAddressesAddress::newAddress in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 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.
4 calls to UcAddressesAddress::newAddress()
- uc_addresses_checkout_pane_address in ./
uc_addresses.ubercart.inc - Callback for an address checkout pane.
- 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_list in ./
uc_addresses.module - Implementation of hook_token_list().
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();
}