You are here

public function UcAddressesSchemaAddress::getField in Ubercart Addresses 7

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

Get a field's value.

@access public

Parameters

string $fieldName: The name of the field whose value we want.

Return value

mixed The field value.

Throws

UcAddressInvalidFieldException

4 calls to UcAddressesSchemaAddress::getField()
UcAddressesAddress::getField in class/UcAddressesAddress.class.php
Override of UcAddressesSchemaAddress::getField().
UcAddressesSchemaAddress::getFieldData in class/UcAddressesSchemaAddress.class.php
Returns "safe" field data.
UcAddressesSchemaAddress::getFieldValue in class/UcAddressesSchemaAddress.class.php
Get a "safe" field value from a single field.
UcAddressesSchemaAddress::__get in class/UcAddressesSchemaAddress.class.php
Magic getter.
1 method overrides UcAddressesSchemaAddress::getField()
UcAddressesAddress::getField in class/UcAddressesAddress.class.php
Override of UcAddressesSchemaAddress::getField().

File

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

Class

UcAddressesSchemaAddress
The schema address class.

Code

public function getField($fieldName) {
  self::fieldMustExist($fieldName);
  return $this->schemaAddress->{$fieldName};
}