/** * Export a CORE session to a persons Google Calendar * */ public function exportAction() { try { $googleTest = new Core_Service_GoogleTest(); $idUrl = $googleTest->createEvent($this->_sessionModel->getAllSessionDataById($this->_getParam('id'))); } catch (Zend_Gdata_App_AuthException $e) { $this->_helper->flashMessenger('Something went wrong saving this session to your personal calendar - please contact the admins of this site'); $log = Zend_Registry::get('log'); $log->emerg($e); $this->_redirectToSession(); } $this->_helper->flashMessenger('Succesfully saved this session to your personal Google calendar'); $this->_redirectToSession(); }
/** * Export a CORE event to a persons Google Calendar * */ public function exportAction() { $googleTest = new Core_Service_GoogleTest(); $idUrl = $googleTest->createEvent($this->_eventModel->getAllEventDataById($this->_getParam('id'))); $this->_helper->flashMessenger('Succesfully saved this event to your personal Google calendar'); return $this->_helper->redirector->gotoRoute(array('controller' => 'event', 'action' => 'show', 'id' => $this->_getParam('id')), 'oneitem'); }