You are here

public function UcAddressesSchemaAddress::__get in Ubercart Addresses 7

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

Magic getter.

Returns properties/fields from the address object.

Return value

mixed Property or field values.

File

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

Class

UcAddressesSchemaAddress
The schema address class.

Code

public function __get($property) {
  try {
    if (self::fieldExists($property)) {
      return $this
        ->getField($property);
    }
  } catch (UcAddressesUndefinedFunctionException $e) {

    // Ignore undefined function exceptions.
  }
  if (isset($this->{$property})) {
    return $this->{$property};
  }
}