You are here

public function UcAddressesSchemaAddress::__set in Ubercart Addresses 7

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

Magic setter.

Passes values to the address object.

Return value

void

Throws

UcAddressesException

File

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

Class

UcAddressesSchemaAddress
The schema address class.

Code

public function __set($property, $value) {
  try {
    if (self::fieldExists($property)) {
      return $this
        ->setField($property, $value);
    }
  } catch (UcAddressesUndefinedFunctionException $e) {

    // Ignore undefined function exceptions.
  }
  $this->{$property} = $value;
}