You are here

public function UcAddressesAddressBook::addressExists in Ubercart Addresses 6.2

Same name and namespace in other branches
  1. 7 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 419
Contains the UcAddressesAddressBook class.

Class

UcAddressesAddressBook
The address book class

Code

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