You are here

public static function UcAddressesSchemaAddress::fieldExists in Ubercart Addresses 7

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

Returns TRUE if field is registered through the API.

@access public @static

Parameters

string $fieldName: The name of the field whose existence we want to check.

Return value

boolean TRUE if addresses have a field with the given name. FALSE otherwise.

8 calls to UcAddressesSchemaAddress::fieldExists()
FeedsUcAddressesProcessor::setTargetElement in feeds/FeedsUcAddressesProcessor.inc
Override setTargetElement to operate on a target item that is an address.
UcAddressesSchemaAddress::fieldMustExist in class/UcAddressesSchemaAddress.class.php
Throws an exception if the field does not exist.
UcAddressesSchemaAddress::setMultipleFields in class/UcAddressesSchemaAddress.class.php
Set multiple fields at once.
UcAddressesSchemaAddress::__get in class/UcAddressesSchemaAddress.class.php
Magic getter.
UcAddressesSchemaAddress::__isset in class/UcAddressesSchemaAddress.class.php
Magic method for giving back if property exists or not.

... See full list

File

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

Class

UcAddressesSchemaAddress
The schema address class.

Code

public static function fieldExists($fieldName) {
  $fields_data = self::getDefinedFields();
  return isset($fields_data[$fieldName]);
}