You are here

final public function UcAddressesFieldHandler::getProperty in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 handlers/UcAddressesFieldHandler.class.php \UcAddressesFieldHandler::getProperty()

Returns a property from the field definition.

If the property doesn't exists an exception will be thrown.

@access public

Return value

mixed In the field definition, properties can be of any type.

Throws

UcAddressesInvalidParameterException When the property does not exists.

6 calls to UcAddressesFieldHandler::getProperty()
UcAddressesDateFieldHandler::getTokenInfo in handlers/uc_addresses.handlers.inc
Overrides UcAddressesFieldHandler::getTokenInfo().
UcAddressesDefaultAddressFieldHandler::getFormField in handlers/uc_addresses.handlers.inc
Implements UcAddressesFieldHandler::getFormField().
UcAddressesDefaultAddressFieldHandler::isFieldEnabled in handlers/uc_addresses.handlers.inc
Implements UcAddressesFieldHandler::isFieldEnabled().
UcAddressesFieldHandler::getFieldTitle in handlers/UcAddressesFieldHandler.class.php
Returns the title to use when displaying a field.
UcAddressesFieldHandler::getTokenInfo in handlers/UcAddressesFieldHandler.class.php
Returns supported tokens.

... See full list

File

handlers/UcAddressesFieldHandler.class.php, line 155
Contains the UcAddressesFieldHandler class.

Class

UcAddressesFieldHandler
Base class for fields used in Ubercart Addresses.

Code

public final function getProperty($name) {
  if (!isset($this->definition[$name])) {
    throw new UcAddressesInvalidParameterException(t('Property %property not found in the field definition for field %field.', array(
      '%property' => $name,
      '%field' => $this->name,
    )));
  }
  return $this->definition[$name];
}