Tripal
Public Member Functions | Static Public Attributes | List of all members
local__source_data_widget Class Reference
Inheritance diagram for local__source_data_widget:
Inheritance graph
[legend]
Collaboration diagram for local__source_data_widget:
Collaboration graph
[legend]

Public Member Functions

 form (&$widget, &$form, &$form_state, $langcode, $items, $delta, $element)
 
 validate ($element, $form, &$form_state, $langcode, $delta)
 
- Public Member Functions inherited from TripalFieldWidget
 __construct ($field, $instance=NULL)
 
 validateDefaults ($element, $form, &$form_state, $langcode, $delta)
 
 submit ($form, &$form_state, $entity_type, $entity, $langcode, $delta)
 
 theme ($element)
 

Static Public Attributes

static $default_label = 'Data Source'
 
static $field_types = ['local__source_data']
 
- Static Public Attributes inherited from TripalFieldWidget
static $default_label = 'Tripal Field.'
 
static $field_types = ['no_widget']
 

Additional Inherited Members

- Static Public Member Functions inherited from TripalFieldWidget
static info ()
 

Member Function Documentation

◆ form()

local__source_data_widget::form ( $widget,
$form,
$form_state,
  $langcode,
  $items,
  $delta,
  $element 
)
See also
TripalFieldWidget::form()

Reimplemented from TripalFieldWidget.

◆ validate()

local__source_data_widget::validate (   $element,
  $form,
$form_state,
  $langcode,
  $delta 
)

Performs validation of the widget form.

Use this validate to ensure that form values are entered correctly.

The 'value' key of this field must be set in the $form_state['values'] array anytime data is entered by the user. It may be the case that there are other fields for helping select a value. In the end those helper fields must be used to set the 'value' field.

TROUBLESHOOTING: If your widget doesn't appear to be saving data, check the following:

  • Is $form_state['values'] set to a TRUE value (e.g. a string)?
  • Do you have the keys needed by the storage backend? For example, ChadoFields need chado-[tablename]__[columnname] keys for all chado columns. Look at the storage backend for more documentation.

Reimplemented from TripalFieldWidget.


The documentation for this class was generated from the following file: