You are here

public function UcAddressesFieldHandler::outputValue in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 handlers/UcAddressesFieldHandler.class.php \UcAddressesFieldHandler::outputValue()

Output a field's value.

@access public

Parameters

mixed $value: The value to output.

string $format: The format in which the value should be outputted. Possible formats are declared by field handlers: getOutputFormats().

Return value

string The field's value safe for output.

See also

getOutputFormats()

3 methods override UcAddressesFieldHandler::outputValue()
UcAddressesDateFieldHandler::outputValue in handlers/uc_addresses.handlers.inc
Overrides UcAddressesFieldHandler::outputValue().
UcAddressesUcCountryFieldHandler::outputValue in handlers/ubercart.handlers.inc
Overrides UcAddressesFieldHandler::outputValue().
UcAddressesUcZoneFieldHandler::outputValue in handlers/ubercart.handlers.inc
Overrides UcAddressesFieldHandler::outputValue().

File

handlers/UcAddressesFieldHandler.class.php, line 380
Contains the UcAddressesFieldHandler class.

Class

UcAddressesFieldHandler
Base class for fields used in Ubercart Addresses.

Code

public function outputValue($value = '', $format = '') {
  if ($value === '') {
    $value = $this->address
      ->getField($this->name);
  }
  return check_plain($value);
}