public function UcAddressesSchemaAddress::__get in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 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};
}
}