You are here

public function BatEvent::__construct in Booking and Availability Management Tools for Drupal 7

Overrides Entity::__construct

File

modules/bat_event/bat_event.module, line 1074
Manage Events - Events store the EventValue of a Unit over a period of time.

Class

BatEvent
The class used for Event entities.

Code

public function __construct($values = array()) {
  parent::__construct($values, 'bat_event');
  if (isset($this->start_date)) {
    $this->start_date_object = new DateTime($this->start_date);
  }
  if (isset($this->end_date)) {
    $this->end_date_object = new DateTime($this->end_date);
  }
}