/**
* Constructor.
*
* @param Kronolith_Driver $driver The backend driver that this event is
* stored in.
* @param mixed $eventObject Backend specific event object
* that this will represent.
*/
public function __construct(Kronolith_Driver $driver, $eventObject = null)
{
$this->calendar = $driver->calendar;
list($this->_backgroundColor, $this->_foregroundColor) = $driver->colors();
if (!is_null($eventObject)) {
$this->fromDriver($eventObject);
}
}