/** * the constructor */ public function __construct(Zend_Console_Getopt $opts, $args) { $this->_opts = $opts; $this->_args = $args; if (Tinebase_Core::isLogLevel(Zend_Log::INFO)) { Tinebase_Core::getLogger()->info(__METHOD__ . '::' . __LINE__ . ' Init caldav cli helper with params: ' . print_r($args, true)); } $this->_readCalDavUserFile($args['caldavuserfile'], isset($args['line']) ? $args['line'] : 0); if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) { Tinebase_Core::getLogger()->info(__METHOD__ . '::' . __LINE__ . ' User(s): ' . (isset($this->_users['username']) ? $this->_users['username'] : count($this->_users))); } $caldavClientOptions = array('baseUri' => $args['url']); if (isset($this->_users['username'])) { $caldavClientOptions = array_merge($caldavClientOptions, array('userName' => $this->_users['username'], 'password' => $this->_users['password'])); } $this->_caldavClient = new $this->_caldavClientClass($caldavClientOptions, 'MacOSX'); $this->_caldavClient->setVerifyPeer(false); }