/** * the constructor * */ private function __construct() { $this->_writeAccessLog = Tinebase_Application::getInstance()->isInstalled('Tinebase') && (Tinebase_Core::get('serverclassname') !== 'ActiveSync_Server_Http' || Tinebase_Application::getInstance()->isInstalled('ActiveSync') && !ActiveSync_Config::getInstance()->get(ActiveSync_Config::DISABLE_ACCESS_LOG)); }
/** * @see 0011456: unable to add new activesync-devices in tine20 */ public function testDefaultNull() { // TODO maybe we need to remove the current config if is set $defaultPolicy = ActiveSync_Config::getInstance()->get(ActiveSync_Config::DEFAULT_POLICY, null); $this->assertTrue(is_null($defaultPolicy), 'config should be null: ' . var_export($defaultPolicy, true)); }
/** * * @return int Syncroton_Command_Sync::FILTER... */ public function getMaxFilterType() { return ActiveSync_Config::getInstance()->get(ActiveSync_Config::MAX_FILTER_TYPE_CALENDAR); }
/** * init registry */ protected function _initializeRegistry() { ActiveSync_Controller::initSyncrotonRegistry(); $applications = is_object(Tinebase_Core::getUser()) ? Tinebase_Core::getUser()->getApplications() : new Tinebase_Record_RecordSet('Tinebase_Model_Application'); if ($applications->find('name', 'Addressbook')) { Syncroton_Registry::setContactsDataClass('Addressbook_Frontend_ActiveSync'); Syncroton_Registry::setGALDataClass('Addressbook_Frontend_ActiveSync'); } if ($applications->find('name', 'Calendar')) { Syncroton_Registry::setCalendarDataClass('Calendar_Frontend_ActiveSync'); } if ($applications->find('name', 'Felamimail')) { Syncroton_Registry::setEmailDataClass('Felamimail_Frontend_ActiveSync'); } if ($applications->find('name', 'Tasks')) { Syncroton_Registry::setTasksDataClass('Tasks_Frontend_ActiveSync'); } Syncroton_Registry::set(Syncroton_Registry::DEFAULT_POLICY, ActiveSync_Config::getInstance()->get(ActiveSync_Config::DEFAULT_POLICY)); }