/** * (non-PHPdoc) * @see Tinebase_Server_Interface::handle() */ public function handle(\Zend\Http\Request $request = null, $body = null) { Tinebase_Session_Abstract::setSessionEnabled('TINE20SETUPSESSID'); if (Tinebase_Session::sessionExists()) { Setup_Core::startSetupSession(); } Setup_Core::initFramework(); if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) { Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' is http request. method: ' . $this->getRequestMethod()); } $server = new Tinebase_Http_Server(); $server->setClass('Setup_Frontend_Http', 'Setup'); $server->setClass('Tinebase_Frontend_Http', 'Tinebase'); // needed for fetching translation in DEVELOPMENT mode if (empty($_REQUEST['method'])) { $_REQUEST['method'] = 'Setup.mainScreen'; } $server->handle($_REQUEST); }
/** * */ public function __construct() { if ($this->_supportsSessions) { Tinebase_Session_Abstract::setSessionEnabled('TINE20SETUPSESSID'); } }
<?php /** * Tine 2.0 * * @package setup tests * @subpackage test root * @license http://www.gnu.org/licenses/agpl.html AGPL3 * @copyright Copyright (c) 2008-2016 Metaways Infosystems GmbH (http://www.metaways.de) * @author Philipp Schüle <*****@*****.**> * */ Tinebase_Session_Abstract::setSessionEnabled('TINE20SETUPSESSID'); Setup_TestServer::getInstance()->initFramework();