private static function UcAddressesSchemaAddress::schemaFieldMustExist in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 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 507 - 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,
)));
}
}