__construct() public method

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.
Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
Archivo: Sql.php Proyecto: horde/horde
 /**
  * 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();
     }
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }