/**
  * appends filter to egw14 select obj. for raw event retirval
  * 
  * @param Zend_Db_Select $_select
  * @return void
  */
 protected function _appendRecordFilter($_select)
 {
     $_select->where($this->_egwDb->quoteInto($this->_egwDb->quoteIdentifier('cal_reference') . ' = ?', 0));
     parent::_appendRecordFilter($_select);
     if ($this->_config->importStartDate) {
         $importStartDate = new Tinebase_DateTime($this->_config->importStartDate);
         $_select->where($this->_egwDb->quoteIdentifier('records.cal_id') . " IN (SELECT DISTINCT(cal_id) FROM egw_cal_dates WHERE cal_end > {$importStartDate->getTimestamp()})");
     }
 }
Exemple #2
0
 /**
  * constructs a user and group import from egw14
  * 
  * @param Zend_Db_Adapter_Abstract  $_egwDb
  * @param Zend_Config               $_config
  * @param Zend_Log                  $_log
  */
 public function __construct($_egwDb, $_config, $_log)
 {
     parent::__construct($_egwDb, $_config, $_log);
 }