final public function UcAddressesFieldHandler::getProperty in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 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.
5 calls to UcAddressesFieldHandler::getProperty()
- UcAddressesDateFieldHandler::getOutputFormats in handlers/
uc_addresses.handlers.inc - Implements UcAddressesFieldHandler::getOutputFormats().
- 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.
- UcAddressesTestTextFieldHandler::checkContext in tests/
handlers/ uc_addresses.handlers.inc - Checks if field passes the context.
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];
}