class uc_extra_fields_pane_handler_field_selection in Extra Fields Checkout Pane 6.2
Same name and namespace in other branches
- 7 views/uc_extra_fields_pane_handler_field_selection.inc \uc_extra_fields_pane_handler_field_selection
Display the label of select fields instead of the saved key.
Hierarchy
- class \uc_extra_fields_pane_handler_field_selection extends \views_handler_field
Expanded class hierarchy of uc_extra_fields_pane_handler_field_selection
1 string reference to 'uc_extra_fields_pane_handler_field_selection'
- uc_extra_fields_pane_views_fetch_field in views/
uc_extra_fields_pane.views.inc - Add uc_extra_fields_pane fields to view table
File
- views/
uc_extra_fields_pane_handler_field_selection.inc, line 10 - Views field handler for Extra Fields Pane selection field types
View source
class uc_extra_fields_pane_handler_field_selection extends views_handler_field {
/**
* Render the field.
*
* @param $values
* The values retrieved from the database.
*/
function render($values) {
$value = $values->{$this->field_alias};
$field = uc_extra_fields_pane_field_load($this->definition['field_id']);
return $field
->output_value($value);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
uc_extra_fields_pane_handler_field_selection:: |
function | Render the field. |