You are here

public function UcAddressesAddressBook::addressExists in Ubercart Addresses 7

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

Checks if an address exists in the addresses array.

This method doesn't do any database calls. It just checks if an address is already available in the address book. Called in loadAddress().

@access public

Parameters

int $aid: The ID of the address to check existence for.

Return value

boolean TRUE if the address exists. FALSE otherwise.

File

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

Class

UcAddressesAddressBook
The address book class

Code

public function addressExists($aid) {
  if (isset($this->addresses[$aid])) {
    return TRUE;
  }
  return FALSE;
}