TYPO3 API  SVNRelease
ControllerContext.php
Go to the documentation of this file.
00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 2009 Jochen Rau <jochen.rau@typoplanet.de>
00006 *  All rights reserved
00007 *
00008 *  This class is a backport of the corresponding class of FLOW3.
00009 *  All credits go to the v5 team.
00010 *
00011 *  This script is part of the TYPO3 project. The TYPO3 project is
00012 *  free software; you can redistribute it and/or modify
00013 *  it under the terms of the GNU General Public License as published by
00014 *  the Free Software Foundation; either version 2 of the License, or
00015 *  (at your option) any later version.
00016 *
00017 *  The GNU General Public License can be found at
00018 *  http://www.gnu.org/copyleft/gpl.html.
00019 *
00020 *  This script is distributed in the hope that it will be useful,
00021 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023 *  GNU General Public License for more details.
00024 *
00025 *  This copyright notice MUST APPEAR in all copies of the script!
00026 ***************************************************************/
00027 
00028 /**
00029  * The controller context contains information from the controller
00030  *
00031  * @package Extbase
00032  * @subpackage MVC\Controller
00033  * @version $Id: ControllerContext.php 2227 2010-04-16 08:33:35Z sebastian $
00034  * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
00035  * @scope prototype
00036  * @api
00037  */
00038 class Tx_Extbase_MVC_Controller_ControllerContext {
00039 
00040     /**
00041      * @var Tx_Extbase_MVC_Request
00042      */
00043     protected $request;
00044 
00045     /**
00046      * @var Tx_Extbase_MVC_Response
00047      */
00048     protected $response;
00049 
00050     /**
00051      * @var Tx_Extbase_MVC_Controller_Arguments
00052      */
00053     protected $arguments;
00054 
00055     /**
00056      * @var Tx_Extbase_Property_MappingResults
00057      */
00058     protected $argumentsMappingResults;
00059 
00060     /**
00061      * @var Tx_Extbase_MVC_Web_Routing_UriBuilder
00062      */
00063     protected $uriBuilder;
00064 
00065     /**
00066      * @var Tx_Extbase_MVC_Controller_FlashMessages
00067      */
00068     protected $flashMessageContainer;
00069 
00070     /**
00071      * Set the request of the controller
00072      *
00073      * @param Tx_Extbase_MVC_Request $request
00074      * @return void
00075      */
00076     public function setRequest(Tx_Extbase_MVC_Request $request) {
00077         $this->request = $request;
00078     }
00079 
00080     /**
00081      * Get the request of the controller
00082      *
00083      * @return Tx_Extbase_MVC_Request
00084      * @api
00085      */
00086     public function getRequest() {
00087         return $this->request;
00088     }
00089 
00090     /**
00091      * Set the response of the controller
00092      *
00093      * @param Tx_Extbase_MVC_Response $request
00094      * @return void
00095      */
00096     public function setResponse(Tx_Extbase_MVC_Response $response) {
00097         $this->response = $response;
00098     }
00099 
00100     /**
00101      * Get the response of the controller
00102      *
00103      * @return Tx_Extbase_MVC_Request
00104      * @api
00105      */
00106     public function getResponse() {
00107         return $this->response;
00108     }
00109 
00110     /**
00111      * Set the arguments of the controller
00112      *
00113      * @param Tx_Extbase_MVC_Controller_Arguments $arguments
00114      * @return void
00115      */
00116     public function setArguments(Tx_Extbase_MVC_Controller_Arguments $arguments) {
00117         $this->arguments = $arguments;
00118     }
00119 
00120     /**
00121      * Get the arguments of the controller
00122      *
00123      * @return Tx_Extbase_MVC_Controller_Arguments
00124      * @api
00125      */
00126     public function getArguments() {
00127         return $this->arguments;
00128     }
00129 
00130     /**
00131      * Set the arguments mapping results of the controller
00132      *
00133      * @param Tx_Extbase_Property_MappingResults $argumentsMappingResults
00134      * @return void
00135      */
00136     public function setArgumentsMappingResults(Tx_Extbase_Property_MappingResults $argumentsMappingResults) {
00137         $this->argumentsMappingResults = $argumentsMappingResults;
00138     }
00139 
00140     /**
00141      * Get the arguments mapping results of the controller
00142      *
00143      * @return Tx_Extbase_Property_MappingResults
00144      * @api
00145      */
00146     public function getArgumentsMappingResults() {
00147         return $this->argumentsMappingResults;
00148     }
00149 
00150     /**
00151      * Tx_Extbase_MVC_Web_Routing_UriBuilder $uriBuilder
00152      * @return void
00153      */
00154     public function setUriBuilder(Tx_Extbase_MVC_Web_Routing_UriBuilder $uriBuilder) {
00155         $this->uriBuilder = $uriBuilder;
00156     }
00157 
00158     /**
00159      * @return Tx_Extbase_MVC_Web_Routing_UriBuilder
00160      * @api
00161      */
00162     public function getUriBuilder() {
00163         return $this->uriBuilder;
00164     }
00165 
00166     /**
00167      * Set the flash messages
00168      *
00169      * @param Tx_Extbase_MVC_Controller_FlashMessages $flashMessages
00170      * @return void
00171      */
00172     public function setFlashMessageContainer(Tx_Extbase_MVC_Controller_FlashMessages $flashMessageContainer) {
00173         $this->flashMessageContainer = $flashMessageContainer;
00174     }
00175 
00176     /**
00177      * Get the flash messages
00178      *
00179      * @return Tx_Extbase_MVC_Controller_FlashMessages
00180      * @deprecated
00181      */
00182     public function getFlashMessages() {
00183         return $this->flashMessageContainer;
00184     }
00185 
00186     /**
00187      * Get the flash messages
00188      *
00189      * @return Tx_Extbase_MVC_Controller_FlashMessages
00190      * @api
00191      */
00192     public function getFlashMessageContainer() {
00193         return $this->flashMessageContainer;
00194     }
00195 }
00196 ?>