You are here

private static function UcAddressesSchemaAddress::schemaFieldMustExist in Ubercart Addresses 7

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

Throws an exception if the schema field does not exist.

@access private @static

Parameters

$fieldName: The name of the field whose existence is required.

Return value

void

Throws

UcAddressInvalidFieldException When the schema field does not exists.

File

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

Class

UcAddressesSchemaAddress
The schema address class.

Code

private static function schemaFieldMustExist($fieldName) {
  if (!self::schemaFieldExists($fieldName)) {
    throw new UcAddressesInvalidFieldException(t('Invalid schema field name %name', array(
      '%name' => $fieldName,
    )));
  }
}