private static function UcAddressesSchemaAddress::fieldMustExist in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 class/UcAddressesSchemaAddress.class.php \UcAddressesSchemaAddress::fieldMustExist()
Throws an exception if the field does not exist.
@access private @static
Parameters
string $fieldName: The name of the field whose existence is required.
Return value
void
Throws
UcAddressInvalidFieldException When the field does not exists.
3 calls to UcAddressesSchemaAddress::fieldMustExist()
- UcAddressesSchemaAddress::getField in class/
UcAddressesSchemaAddress.class.php - Get a field's value.
- UcAddressesSchemaAddress::getFieldValue in class/
UcAddressesSchemaAddress.class.php - Get a "safe" field value from a single field.
- UcAddressesSchemaAddress::setField in class/
UcAddressesSchemaAddress.class.php - Set a field's value.
File
- class/
UcAddressesSchemaAddress.class.php, line 342 - Contains the UcAddressesSchemaAddress class.
Class
- UcAddressesSchemaAddress
- The schema address class.
Code
private static function fieldMustExist($fieldName) {
if (!self::fieldExists($fieldName)) {
throw new UcAddressesInvalidFieldException(t('Invalid field name %name', array(
'%name' => $fieldName,
)));
}
}