You are here

abstract class field_timer_formatter_base in Field Timer 7.2

Base class.

Hierarchy

Expanded class hierarchy of field_timer_formatter_base

File

includes/field_timer_base.inc, line 83
Contains base help classes to perform field formatter related actions.

View source
abstract class field_timer_formatter_base implements field_timer_formatter_interface {

  /**
   * Convert field item value to timestamp.
   *
   * @param array $item Field item.
   * @param array $field Field definition.
   * @param mixed $key Key to get timestamp from field item.
   *
   * @return int Timestamp.
   */
  protected abstract function getTimestamp($item, $field, $key = '');

}

Members

Namesort descending Modifiers Type Description Overrides
field_timer_formatter_base::getTimestamp abstract protected function Convert field item value to timestamp. 16
field_timer_formatter_interface::enableFormatter public function Check if it is possible to enable current formatter. 3
field_timer_formatter_interface::getDefaultSettings public function Get default formatter settings. All settings for each field type will be combined into one array. 4
field_timer_formatter_interface::getFieldType public function Get field type. 16
field_timer_formatter_interface::getFormatterDefinition public function Get formatter definition. 4
field_timer_formatter_interface::getFormatterName public function Get formatter name. 4
field_timer_formatter_interface::getSettingsForm public function Get formatter settings form. 4
field_timer_formatter_interface::getSettingsSummary public function Get formatter settings summary. 4
field_timer_formatter_interface::renderItems public function Render field items. 4