Source for file Application.php
Documentation is available at Application.php
declare(encoding = "utf-8");
* This file is part of ForwardFW a web application framework.
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* @author Alexander Opitz <opitz.alexander@primacom.net>
* @copyright 2009-2010 The Authors
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
* @link http://forwardfw.sourceforge.net
* @since File available since Release 0.0.1
require_once 'ForwardFW/Controller/View.php';
require_once 'ForwardFW/Interface/Application.php';
require_once 'ForwardFW/Request.php';
require_once 'ForwardFW/Response.php';
//require_once 'ForwardFW/Exception/Screen.php';
//require_once 'ForwardFW/Exception/Application.php';
* This Controller over one application.
* @author Alexander Opitz <opitz.alexander@primacom.net>
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
* @link http://forwardfw.sourceforge.net
* Configuration name of application
* @var ForwardFW_Response
* screens for this application
* @param string $strName Name of application
* @param ForwardFW_Request $request The request object.
* @param ForwardFW_Response $response The request object.
ForwardFW_Request $request,
ForwardFW_Response $response
'No Screen defined for application: ' . $this->strName
* Run screen and return generated content
$this->screen = $this->getScreen($strProcessScreen);
// @TODO evaluate State of Screen
// Todo Inner Exception Logging
* Returns name of screen to be processed
* @return string name of screen to process
if (!isset ($this->arScreens[$strProcessScreen])) {
return $strProcessScreen;
* Load and return screen $strScreen
* @param string $strScreen name of screen
* @return T3_Controller_Screen
$rIncludeFile = @fopen($strFile, 'r', true);
$ret = include_once $strFile;
return $screenController;
* @return string what to view
$templater->setVar('SCREEN', $this->screen->process());
* Returns the name of the application
* Returns the request object
* @return ForwardFW_Request
* Returns the response object
* @return ForwardFW_Response
* Returns the screen configuration for this application.
* @return array With the config entry
|