You are here

public function UCXF_Field::get_value_type in Extra Fields Checkout Pane 7

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

Returns the "readable" value type, as a string.

Return value

string

File

class/UCXF_Field.class.php, line 245
Contains the UCXF_Field class.

Class

UCXF_Field
Base class for a Extra Fields Pane field

Code

public function get_value_type() {
  switch ($this->value_type) {
    case UCXF_Field::UCXF_WIDGET_TYPE_TEXTFIELD:
      return t('Textfield');
    case UCXF_Field::UCXF_WIDGET_TYPE_SELECT:
      return t('Select list');
    case UCXF_Field::UCXF_WIDGET_TYPE_CHECKBOX:
      return t('Checkbox');
    case UCXF_Field::UCXF_WIDGET_TYPE_CONSTANT:
      return t('Constant');
    case UCXF_Field::UCXF_WIDGET_TYPE_PHP:
      return t('PHP string');
    case UCXF_Field::UCXF_WIDGET_TYPE_PHP_SELECT:
      return t('PHP select list');
  }
}