You are here

public function UcAddressesAddress::isNew in Ubercart Addresses 7

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

Checks if the address is a temporary unsaved address.

The address is new if it has a negative ID.

@access public

Return value

boolean TRUE if the address is new. FALSE if the address is saved in the database.

File

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

Class

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

Code

public function isNew() {
  return $this
    ->getId() < 1;
}