You are here

class field_timer_jquery_countdown_datetime in Field Timer 7.2

Class for field_timer_jquery_countdown formatter and datetime field type.

Hierarchy

Expanded class hierarchy of field_timer_jquery_countdown_datetime

File

includes/field_timer_jquery_countdown.inc, line 559
Help file. Contains help classes to perform field_timer_jquery_countdown formatter related actions.

View source
class field_timer_jquery_countdown_datetime extends field_timer_jquery_countdown_date_field_base {

  /**
   * @inheritdoc
   */
  public function getFieldType() {
    return 'datetime';
  }

  /**
   * @inheritdoc
   */
  protected function getTimestamp($item, $field, $key = 'value') {
    $timezone_db = date_get_timezone_db($field['settings']['tz_handling']);
    $db_format = date_type_format($field['type']);
    $date = new DateObject($item[$key], $timezone_db, $db_format);
    return $date
      ->getTimestamp();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
field_timer_formatter_js_base::$library_loaded protected property
field_timer_jquery_countdown_base::formatterRegions protected function
field_timer_jquery_countdown_base::getFormatterDefinition final public function @inheritdoc Overrides field_timer_formatter_interface::getFormatterDefinition
field_timer_jquery_countdown_base::getFormatterName public function @inheritdoc Overrides field_timer_formatter_interface::getFormatterName
field_timer_jquery_countdown_base::getPluginName public function @inheritdoc Overrides field_timer_formatter_js_base::getPluginName
field_timer_jquery_countdown_datetime::getFieldType public function @inheritdoc Overrides field_timer_formatter_interface::getFieldType
field_timer_jquery_countdown_datetime::getTimestamp protected function @inheritdoc Overrides field_timer_formatter_base::getTimestamp
field_timer_jquery_countdown_date_field_base::formatterDisplays protected function
field_timer_jquery_countdown_date_field_base::generateJSSettings protected function @inheritdoc Overrides field_timer_jquery_countdown_js_base::generateJSSettings
field_timer_jquery_countdown_date_field_base::getDefaultSettings public function @inheritdoc Overrides field_timer_jquery_countdown_base::getDefaultSettings
field_timer_jquery_countdown_date_field_base::getSettingsForm public function @inheritdoc Overrides field_timer_jquery_countdown_base::getSettingsForm
field_timer_jquery_countdown_date_field_base::getSettingsSummary public function @inheritdoc Overrides field_timer_jquery_countdown_base::getSettingsSummary
field_timer_jquery_countdown_date_field_base::loadJSandCSS protected function @inheritdoc Overrides field_timer_jquery_countdown_js_base::loadJSandCSS
field_timer_jquery_countdown_date_field_base::renderItems public function @inheritdoc Overrides field_timer_jquery_countdown_base::renderItems
field_timer_jquery_countdown_js_base::enableFormatter public function @inheritdoc Overrides field_timer_formatter_interface::enableFormatter
field_timer_jquery_countdown_js_base::formatterTypes protected function
field_timer_jquery_countdown_js_base::generateJSSettingsArray protected function
field_timer_jquery_countdown_js_base::loadLibrary protected function @inheritdoc Overrides field_timer_formatter_js_base::loadLibrary