You are here

public static function UcAddressesSchemaAddress::fieldExists in Ubercart Addresses 6.2

Same name and namespace in other branches
  1. 7 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.

5 calls to UcAddressesSchemaAddress::fieldExists()
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.
UcAddressesSchemaAddress::__set in class/UcAddressesSchemaAddress.class.php
Magic setter.

File

class/UcAddressesSchemaAddress.class.php, line 325
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]);
}