You are here

public function UcAddressesSchemaAddress::getHandler in Ubercart Addresses 6.2

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

Returns a handler instance.

Parameters

string $fieldName: The field name to get a handler for.

string $context: The context where the field is used for.

Return value

UcAddressesFieldHandler An instance of UcAddressesFieldHandler.

Throws

UcAddressesUndefinedFunctionException In case the function uc_addresses_get_address_field_handler() does not exists.

3 calls to UcAddressesSchemaAddress::getHandler()
UcAddressesSchemaAddress::getFieldData in class/UcAddressesSchemaAddress.class.php
Returns "safe" field data.
UcAddressesSchemaAddress::getFieldValue in class/UcAddressesSchemaAddress.class.php
Get a "safe" field value from a single field.
UcAddressesSchemaAddress::__construct in class/UcAddressesSchemaAddress.class.php
Construct a schema address.

File

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

Class

UcAddressesSchemaAddress
The schema address class.

Code

public function getHandler($fieldName, $context = 'default') {
  if (!function_exists('uc_addresses_get_address_field_handler')) {
    throw new UcAddressesUndefinedFunctionException('Function uc_addresses_get_address_field_handler() does not exists.');
  }
  return uc_addresses_get_address_field_handler($this, $fieldName, $context);
}