You are here

public function UcAddressesSchemaAddress::__isset in Ubercart Addresses 7

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

Magic method for giving back if property exists or not.

Return value

boolean TRUE if the property exists. FALSE otherwise.

File

class/UcAddressesSchemaAddress.class.php, line 213
Contains the UcAddressesSchemaAddress class.

Class

UcAddressesSchemaAddress
The schema address class.

Code

public function __isset($property) {
  try {
    if (self::fieldExists($property)) {
      return TRUE;
    }
  } catch (UcAddressesUndefinedFunctionException $e) {

    // Ignore undefined function exceptions.
  }

  // Else, fallback to the "real" properties.
  return isset($this->{$property});
}