/**
  * Default constructor
  */
 public function __construct($plugin)
 {
     $this->rc = $plugin->rc;
     $this->plugin = $plugin;
     if (kolab_storage::$version == '2.0') {
         $this->alarm_absolute = false;
     }
     // tasklist use fully encoded identifiers
     kolab_storage::$encode_ids = true;
     // get configuration for the Bonnie API
     $this->bonnie_api = libkolab::get_bonnie_api();
     $this->_read_lists();
     $this->plugin->register_action('folder-acl', array($this, 'folder_acl'));
 }
Exemplo n.º 2
0
 /**
  * Default constructor
  */
 public function __construct($cal)
 {
     $cal->require_plugin('libkolab');
     // load helper classes *after* libkolab has been loaded (#3248)
     require_once dirname(__FILE__) . '/kolab_calendar.php';
     require_once dirname(__FILE__) . '/kolab_user_calendar.php';
     require_once dirname(__FILE__) . '/kolab_invitation_calendar.php';
     $this->cal = $cal;
     $this->rc = $cal->rc;
     $this->_read_calendars();
     $this->cal->register_action('push-freebusy', array($this, 'push_freebusy'));
     $this->cal->register_action('calendar-acl', array($this, 'calendar_acl'));
     $this->freebusy_trigger = $this->rc->config->get('calendar_freebusy_trigger', false);
     if (kolab_storage::$version == '2.0') {
         $this->alarm_types = array('DISPLAY');
         $this->alarm_absolute = false;
     }
     // get configuration for the Bonnie API
     $this->bonnie_api = libkolab::get_bonnie_api();
     // calendar uses fully encoded identifiers
     kolab_storage::$encode_ids = true;
 }