You are here

function date_api_argument_handler::construct in Date 6

Same name and namespace in other branches
  1. 6.2 includes/date_api_argument_handler.inc \date_api_argument_handler::construct()

File

./date_api.views.inc, line 104
Defines date-related Views data and plugins:

Class

date_api_argument_handler
Date API argument handler.

Code

function construct() {
  parent::construct();
  include_once './' . drupal_get_path('module', 'date_api') . '/date_api_sql.inc';
  $this->date_handler = new date_sql_handler();
  $this->date_handler
    ->construct();
  $this->date_handler->granularity = $this->options['granularity'];
  if (isset($this->definition['content_field'])) {
    $this->date_handler->date_type = $this->definition['content_field']['type'];
    $this->content_field = content_fields($this->definition['content_field_name']);
    $this->additional_fields = $this->definition['additional fields'];
  }
}