/** * Return name of configured mail application * * @return string */ public static function getMailApplicationName() { if (NULL === self::$_emailApplication) { $applications = Tinebase_Core::getUser()->getApplications(); foreach (array('Felamimail', 'Expressomail') as $emailApplication) { if (self::$_emailApplication = $applications->find('name', $emailApplication)) { break; } } } return self::$_emailApplication->name; }
/** * */ public function testGetInstance() { $instance = Tinebase_EmailUser_Factory::getInstance('Controller_Message'); $this->assertInstanceOf('Tinebase_Controller_Record_Abstract', $instance); }
/** * manual process iMIP component and optionally set status * * @param Calendar_Model_iMIP $_iMIP * @param string $_status */ public function process($_iMIP, $_status = NULL) { // client spoofing protection $iMIP = Tinebase_EmailUser_Factory::getInstance('Controller_Message')->getiMIP($_iMIP->getId()); return $this->_process($_iMIP, $_status); }