*/
public function __construct($driver, $eventObject = null)
{
- static $alarm;
-
- /* Set default alarm value. */
- if (!isset($alarm) && isset($GLOBALS['prefs'])) {
- $alarm = $GLOBALS['prefs']->getValue('default_alarm');
- }
- $this->alarm = $alarm;
-
$this->_calendar = $driver->getCalendar();
// FIXME: Move color definitions anywhere else.
if (!empty($this->_calendar) &&
*/
protected $_calendarType = 'internal';
+ /**
+ * Const'r
+ *
+ * @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($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);
+ }
+
public function fromDriver($event)
{
$this->eventID = $event['uid'];
*/
private $_properties = array();
+ /**
+ * Const'r
+ *
+ * @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($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);
+ }
+
public function fromDriver($SQLEvent)
{
$driver = $this->getDriver();