You are here

public function UcAddressesSchemaAddress::getFieldData in Ubercart Addresses 7

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

Returns "safe" field data.

@access public

Return value

array Address values that are safe for output.

File

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

Class

UcAddressesSchemaAddress
The schema address class.

Code

public function getFieldData() {
  $values = array();
  $fields_data = self::getDefinedFields();
  foreach ($fields_data as $fieldName => $fielddata) {
    $instance = $this
      ->getHandler($fieldName);
    $values[$fieldName] = $instance
      ->outputValue($this
      ->getField($fieldName));
  }
  return $values;
}