You are here

public static function UcAddressesSchemaAddress::getDefinedFields in Ubercart Addresses 7

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

Returns defined fields.

Return value

array A list of address field definitions.

Throws

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

5 calls to UcAddressesSchemaAddress::getDefinedFields()
UcAddressesSchemaAddress::compareAddress in class/UcAddressesSchemaAddress.class.php
Checks if the schema address of the given address is equal to the schema address of this.
UcAddressesSchemaAddress::fieldExists in class/UcAddressesSchemaAddress.class.php
Returns TRUE if field is registered through the API.
UcAddressesSchemaAddress::getFieldData in class/UcAddressesSchemaAddress.class.php
Returns "safe" field data.
UcAddressesSchemaAddress::setField in class/UcAddressesSchemaAddress.class.php
Set a field's value.
UcAddressesSchemaAddress::__construct in class/UcAddressesSchemaAddress.class.php
Construct a schema address.

File

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

Class

UcAddressesSchemaAddress
The schema address class.

Code

public static function getDefinedFields() {
  if (!function_exists('uc_addresses_get_address_fields')) {
    throw new UcAddressesUndefinedFunctionException('Function uc_addresses_get_address_fields() does not exists.');
  }
  return uc_addresses_get_address_fields();
}