Request implements RequestInterface
The extbase request.
This is a decorator: The core PSR-7 request is hand over as constructor argument, this class implements ServerRequestInterface, too. Additionally, the extbase request details are attached as 'extbase' attribute to the PSR-7 request and this class implements extbase RequestInterface. This class has no state except the PSR-7 request, all operations are hand down to the PSR-7 request.
Table of Contents
Interfaces
- RequestInterface
- Contract for an extbase request.
Properties
- $request : ServerRequestInterface
Methods
- __construct() : mixed
- getArgument() : mixed
- Returns the value of the specified argument.
- getArguments() : array<string|int, mixed>
- Returns an array of extbase arguments and their values.
- getAttribute() : mixed
- getAttributes() : array<string|int, mixed>
- getBody() : StreamInterface
- getControllerActionName() : string
- Returns the name of the action the controller is supposed to execute.
- getControllerExtensionKey() : string
- Returns the extension key of the specified controller.
- getControllerExtensionName() : string
- Returns the extension name of the specified controller.
- getControllerName() : string
- Returns the controller name supposed to handle this request, if one was set already (if not, the name of the default controller is returned)
- getControllerObjectName() : string
- Returns the object name of the controller defined by the package key and controller name.
- getCookieParams() : array<string|int, mixed>
- getFormat() : string
- Returns the requested representation format, something like "html", "xml", "png", "json" or the like.
- getHeader() : array<string|int, mixed>
- getHeaderLine() : string
- getHeaders() : array<string|int, mixed>
- getMethod() : string
- getParsedBody() : mixed
- getPluginName() : string
- Returns the plugin key.
- getProtocolVersion() : string
- Methods implementing MessageInterface
- getQueryParams() : array<string|int, mixed>
- getRequestTarget() : string
- Methods implementing RequestInterface
- getServerParams() : array<string|int, mixed>
- Methods implementing ServerRequestInterface
- getUploadedFiles() : array<string|int, mixed>
- getUri() : UriInterface
- hasArgument() : bool
- Checks if an argument of the given name exists (is set).
- hasHeader() : bool
- withAddedHeader() : static
- withArgument() : static
- Return an instance with the specified argument set.
- withArguments() : static
- Return an instance with the specified extbase arguments, replacing any arguments which existed before.
- withAttribute() : static
- withBody() : static
- withControllerActionName() : static
- Return an instance with the specified controller action name set.
- withControllerExtensionName() : static
- Return an instance with the specified controller extension name set.
- withControllerName() : static
- Return an instance with the specified controller name set.
- withControllerObjectName() : static
- Return an instance with the specified controller object name set.
- withCookieParams() : static
- withFormat() : static
- Return an instance with the specified derived request attribute.
- withHeader() : static
- withMethod() : static
- withoutAttribute() : ServerRequestInterface : static)
- withoutHeader() : static
- withParsedBody() : static
- withPluginName() : static
- Return an instance with the specified plugin name set.
- withProtocolVersion() : static
- withQueryParams() : static
- withRequestTarget() : static
- withUploadedFiles() : static
- withUri() : static
- getExtbaseAttribute() : ExtbaseRequestParameters
- ExtbaseAttribute attached as attribute 'extbase' to $request carries extbase specific request values. This helper method type hints this attribute.
Properties
$request
protected
ServerRequestInterface
$request
Methods
__construct()
public
final __construct(ServerRequestInterface $request) : mixed
Parameters
- $request : ServerRequestInterface
getArgument()
Returns the value of the specified argument.
public
getArgument(string $argumentName) : mixed
Parameters
- $argumentName : string
getArguments()
Returns an array of extbase arguments and their values.
public
getArguments() : array<string|int, mixed>
Return values
array<string|int, mixed>getAttribute()
public
getAttribute(mixed $name[, mixed $default = null ]) : mixed
Parameters
- $name : mixed
- $default : mixed = null
getAttributes()
public
getAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>getBody()
public
getBody() : StreamInterface
Return values
StreamInterfacegetControllerActionName()
Returns the name of the action the controller is supposed to execute.
public
getControllerActionName() : string
Return values
stringgetControllerExtensionKey()
Returns the extension key of the specified controller.
public
getControllerExtensionKey() : string
Return values
stringgetControllerExtensionName()
Returns the extension name of the specified controller.
public
getControllerExtensionName() : string
Return values
stringgetControllerName()
Returns the controller name supposed to handle this request, if one was set already (if not, the name of the default controller is returned)
public
getControllerName() : string
Return values
stringgetControllerObjectName()
Returns the object name of the controller defined by the package key and controller name.
public
getControllerObjectName() : string
Return values
stringgetCookieParams()
public
getCookieParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getFormat()
Returns the requested representation format, something like "html", "xml", "png", "json" or the like.
public
getFormat() : string
Return values
stringgetHeader()
public
getHeader(mixed $name) : array<string|int, mixed>
Parameters
- $name : mixed
Return values
array<string|int, mixed>getHeaderLine()
public
getHeaderLine(mixed $name) : string
Parameters
- $name : mixed
Return values
stringgetHeaders()
public
getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>getMethod()
public
getMethod() : string
Return values
stringgetParsedBody()
public
getParsedBody() : mixed
getPluginName()
Returns the plugin key.
public
getPluginName() : string
Return values
stringgetProtocolVersion()
Methods implementing MessageInterface
public
getProtocolVersion() : string
Return values
stringgetQueryParams()
public
getQueryParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getRequestTarget()
Methods implementing RequestInterface
public
getRequestTarget() : string
Return values
stringgetServerParams()
Methods implementing ServerRequestInterface
public
getServerParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getUploadedFiles()
public
getUploadedFiles() : array<string|int, mixed>
Return values
array<string|int, mixed>getUri()
public
getUri() : UriInterface
Return values
UriInterfacehasArgument()
Checks if an argument of the given name exists (is set).
public
hasArgument(string $argumentName) : bool
Parameters
- $argumentName : string
Return values
boolhasHeader()
public
hasHeader(mixed $name) : bool
Parameters
- $name : mixed
Return values
boolwithAddedHeader()
public
withAddedHeader(mixed $name, mixed $value) : static
Parameters
- $name : mixed
- $value : mixed
Return values
staticwithArgument()
Return an instance with the specified argument set.
public
withArgument(string $argumentName, mixed $value) : static
Parameters
- $argumentName : string
- $value : mixed
Return values
staticwithArguments()
Return an instance with the specified extbase arguments, replacing any arguments which existed before.
public
withArguments(array<string|int, mixed> $arguments) : static
Parameters
- $arguments : array<string|int, mixed>
Return values
staticwithAttribute()
public
withAttribute(mixed $name, mixed $value) : static
Parameters
- $name : mixed
- $value : mixed
Return values
staticwithBody()
public
withBody(StreamInterface $body) : static
Parameters
- $body : StreamInterface
Return values
staticwithControllerActionName()
Return an instance with the specified controller action name set.
public
withControllerActionName(string $actionName) : static
Parameters
- $actionName : string
Return values
staticwithControllerExtensionName()
Return an instance with the specified controller extension name set.
public
withControllerExtensionName(string $controllerExtensionName) : static
Parameters
- $controllerExtensionName : string
Return values
staticwithControllerName()
Return an instance with the specified controller name set.
public
withControllerName(string $controllerName) : static
Parameters
- $controllerName : string
Return values
staticwithControllerObjectName()
Return an instance with the specified controller object name set.
public
withControllerObjectName(string $controllerObjectName) : static
Parameters
- $controllerObjectName : string
Return values
staticwithCookieParams()
public
withCookieParams(array<string|int, mixed> $cookies) : static
Parameters
- $cookies : array<string|int, mixed>
Return values
staticwithFormat()
Return an instance with the specified derived request attribute.
public
withFormat(string $format) : static
This method allows setting a single derived request attribute as described in getFormat().
Parameters
- $format : string
Return values
staticwithHeader()
public
withHeader(mixed $name, mixed $value) : static
Parameters
- $name : mixed
- $value : mixed
Return values
staticwithMethod()
public
withMethod(mixed $method) : static
Parameters
- $method : mixed
Return values
staticwithoutAttribute()
public
withoutAttribute(mixed $name) : ServerRequestInterface : static)
Parameters
- $name : mixed
Return values
ServerRequestInterface : static)withoutHeader()
public
withoutHeader(mixed $name) : static
Parameters
- $name : mixed
Return values
staticwithParsedBody()
public
withParsedBody(mixed $data) : static
Parameters
- $data : mixed
Return values
staticwithPluginName()
Return an instance with the specified plugin name set.
public
withPluginName(string $pluginName) : static
Parameters
- $pluginName : string
Return values
staticwithProtocolVersion()
public
withProtocolVersion(mixed $version) : static
Parameters
- $version : mixed
Return values
staticwithQueryParams()
public
withQueryParams(array<string|int, mixed> $query) : static
Parameters
- $query : array<string|int, mixed>
Return values
staticwithRequestTarget()
public
withRequestTarget(mixed $requestTarget) : static
Parameters
- $requestTarget : mixed
Return values
staticwithUploadedFiles()
public
withUploadedFiles(array<string|int, mixed> $uploadedFiles) : static
Parameters
- $uploadedFiles : array<string|int, mixed>
Return values
staticwithUri()
public
withUri(UriInterface $uri[, mixed $preserveHost = false ]) : static
Parameters
- $uri : UriInterface
- $preserveHost : mixed = false
Return values
staticgetExtbaseAttribute()
ExtbaseAttribute attached as attribute 'extbase' to $request carries extbase specific request values. This helper method type hints this attribute.
protected
getExtbaseAttribute() : ExtbaseRequestParameters