TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Request Class Reference
Inheritance diagram for Request:
Request RequestInterface ReferringRequest WidgetRequest

Public Member Functions

 injectHashService (\TYPO3\CMS\Extbase\Security\Cryptography\HashService $hashService)
 
 injectConfigurationManager (\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager)
 
 injectEnvironmentService (\TYPO3\CMS\Extbase\Service\EnvironmentService $environmentService)
 
 setMethod ($method)
 
 getMethod ()
 
 setRequestUri ($requestUri)
 
 getRequestUri ()
 
 setBaseUri ($baseUri)
 
 getBaseUri ()
 
 setIsCached ($isCached)
 
 isCached ()
 
 getReferringRequest ()
 
- Public Member Functions inherited from Request
 setDispatched ($flag)
 
 isDispatched ()
 
 getControllerObjectName ()
 
 setControllerObjectName ($controllerObjectName)
 
 setPluginName ($pluginName=null)
 
 getPluginName ()
 
 setControllerExtensionName ($controllerExtensionName)
 
 getControllerExtensionName ()
 
 getControllerExtensionKey ()
 
 setControllerSubpackageKey ($subpackageKey)
 
 getControllerSubpackageKey ()
 
 setControllerName ($controllerName)
 
 getControllerName ()
 
 setControllerActionName ($actionName)
 
 getControllerActionName ()
 
 setArgument ($argumentName, $value)
 
 setControllerVendorName ($vendorName)
 
 getControllerVendorName ()
 
 setArguments (array $arguments)
 
 getArguments ()
 
 getArgument ($argumentName)
 
 hasArgument ($argumentName)
 
 setFormat ($format)
 
 getFormat ()
 
 getOriginalRequest ()
 
 setOriginalRequest (\TYPO3\CMS\Extbase\Mvc\Request $originalRequest)
 
 getOriginalRequestMappingResults ()
 
 setOriginalRequestMappingResults (\TYPO3\CMS\Extbase\Error\Result $originalRequestMappingResults)
 
 getInternalArguments ()
 
 getInternalArgument ($argumentName)
 

Protected Attributes

 $hashService
 
 $format = 'html'
 
 $method = 'GET'
 
 $requestUri
 
 $baseUri
 
 $isCached = false
 
 $configurationManager
 
 $environmentService
 
- Protected Attributes inherited from Request
 $controllerObjectNamePattern = 'Tx_@extension_@subpackage_Controller_@controllerController'
 
 $namespacedControllerObjectNamePattern = '@vendor\@extension\@subpackage\Controller\@controllerController'
 
 $pluginName = ''
 
 $controllerExtensionName = null
 
 $controllerVendorName = null
 
 $controllerSubpackageKey = null
 
 $controllerName = 'Standard'
 
 $controllerActionName = 'index'
 
 $arguments = []
 
 $internalArguments = []
 
 $format = 'txt'
 
 $dispatched = false
 
 $originalRequest = null
 
 $originalRequestMappingResults = null
 

Additional Inherited Members

- Public Attributes inherited from Request
const PATTERN_MATCH_FORMAT = '/^[a-z0-9]{1,5}$/'
 

Detailed Description

Represents a web request.

Definition at line 22 of file extbase/Classes/Mvc/Web/Request.php.

Member Function Documentation

getBaseUri ( )

Returns the base URI

Returns
string Base URI of this web request

Definition at line 153 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$baseUri.

getMethod ( )

Returns the name of the request method

Returns
string Name of the request method

Definition at line 109 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$method.

getReferringRequest ( )

Get a freshly built request object pointing to the Referrer.

Returns
ReferringRequest the referring request, or null if no referrer found

Definition at line 188 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$arguments.

getRequestUri ( )

Returns the request URI

Returns
string URI of this web request

Definition at line 131 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$requestUri.

injectConfigurationManager ( \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface  $configurationManager)
Parameters
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface$configurationManager

Definition at line 75 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$configurationManager.

injectEnvironmentService ( \TYPO3\CMS\Extbase\Service\EnvironmentService  $environmentService)
Parameters
\TYPO3\CMS\Extbase\Service\EnvironmentService$environmentService

Definition at line 83 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$environmentService.

injectHashService ( \TYPO3\CMS\Extbase\Security\Cryptography\HashService  $hashService)
Parameters
\TYPO3\CMS\Extbase\Security\Cryptography\HashService$hashService

Definition at line 67 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$hashService.

isCached ( )

Return whether the current request is a cached request or not.

(v4 only)

Returns
bool the caching status.

Definition at line 178 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$isCached.

Referenced by Request\setIsCached().

setBaseUri (   $baseUri)

Sets the base URI for this request.

Parameters
string$baseUriNew base URI
Returns
void

Definition at line 142 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$baseUri.

setIsCached (   $isCached)

Set if the current request is cached.

Parameters
bool$isCached

Definition at line 167 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$isCached, and Request\isCached().

setMethod (   $method)

Sets the request method

Parameters
string$methodName of the request method
Returns
void
Exceptions
TYPO3 if the request method is not supported

Definition at line 95 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$method.

setRequestUri (   $requestUri)

Sets the request URI

Parameters
string$requestUriURI of this web request
Returns
void

Definition at line 120 of file extbase/Classes/Mvc/Web/Request.php.

References Request\$requestUri.

Member Data Documentation

$baseUri
protected

Definition at line 47 of file extbase/Classes/Mvc/Web/Request.php.

Referenced by Request\getBaseUri(), and Request\setBaseUri().

$configurationManager
protected
$environmentService
protected
$format = 'html'
protected

Definition at line 32 of file extbase/Classes/Mvc/Web/Request.php.

$hashService
protected

Definition at line 27 of file extbase/Classes/Mvc/Web/Request.php.

Referenced by Request\injectHashService().

$isCached = false
protected

Definition at line 52 of file extbase/Classes/Mvc/Web/Request.php.

Referenced by Request\isCached(), and Request\setIsCached().

$method = 'GET'
protected

Definition at line 37 of file extbase/Classes/Mvc/Web/Request.php.

Referenced by Request\getMethod(), and Request\setMethod().

$requestUri
protected