You are here

public function UcAddressesAddressBook::reset in Ubercart Addresses 7

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

Reconstructs the address book completely.

This will remove all addresses currently tracked by the address book. All the properties will be set back to the default values.

Calling this method is bad for performance as it will force to reload addresses from the database, so use it with caution.

This method is generally only of use within automated tests.

@access public

Return value

void

File

class/UcAddressesAddressBook.class.php, line 622
Contains the UcAddressesAddressBook class.

Class

UcAddressesAddressBook
The address book class

Code

public function reset() {
  $this->addresses = array();
  $this->defaultAddresses = array();
  $this->defaultsLoaded = FALSE;
  $this->allLoaded = FALSE;
}