Constructor.
public __construct ( Kronolith_Driver $driver, mixed $eventObject = null ) | ||
$driver | Kronolith_Driver | The backend driver that this event is stored in. |
$eventObject | mixed | Backend specific event object that this will represent. |
/** * Constructor. * * @param Kronolith_Driver_Kolab $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_Kolab $driver, $eventObject = null) { static $alarm; /* Set default alarm value. */ if (!isset($alarm) && isset($GLOBALS['prefs'])) { $alarm = $GLOBALS['prefs']->getValue('default_alarm'); } $this->alarm = $alarm; parent::__construct($driver, $eventObject); }
/** * 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) { /* Set default alarm value. */ if (isset($GLOBALS['prefs'])) { $this->alarm = $GLOBALS['prefs']->getValue('default_alarm'); } parent::__construct($driver, $eventObject); if (!empty($this->calendar) && $GLOBALS['calendar_manager']->getEntry(Kronolith::ALL_CALENDARS, $this->calendar) !== false) { $this->_backgroundColor = $GLOBALS['calendar_manager']->getEntry(Kronolith::ALL_CALENDARS, $this->calendar)->background(); $this->_foregroundColor = $GLOBALS['calendar_manager']->getEntry(Kronolith::ALL_CALENDARS, $this->calendar)->foreground(); } }
/** * Constructor. * * @param Kronolith_Driver_Horde $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_Horde $driver, $eventObject = null) { $this->_api = $driver->api; parent::__construct($driver, $eventObject); }