TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Mvc\RequestInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\RequestInterface:
TYPO3\CMS\Extbase\Mvc\Cli\Request TYPO3\CMS\Extbase\Mvc\Request TYPO3\CMS\Extbase\Mvc\Web\Request TYPO3\CMS\Extbase\Mvc\Web\ReferringRequest TYPO3\CMS\Fluid\Core\Widget\WidgetRequest

Public Member Functions

 setDispatched ($flag)
 
 isDispatched ()
 
 getControllerObjectName ()
 
 setArgument ($argumentName, $value)
 
 setArguments (array $arguments)
 
 getArgument ($argumentName)
 
 hasArgument ($argumentName)
 
 getArguments ()
 

Detailed Description

Contract for a request.

Definition at line 22 of file RequestInterface.php.

Member Function Documentation

◆ getArgument()

TYPO3\CMS\Extbase\Mvc\RequestInterface::getArgument (   $argumentName)

Returns the value of the specified argument

Parameters
string$argumentNameName of the argument
Returns
string Value of the argument
Exceptions

Implemented in TYPO3\CMS\Extbase\Mvc\Request, and TYPO3\CMS\Extbase\Mvc\Cli\Request.

◆ getArguments()

TYPO3\CMS\Extbase\Mvc\RequestInterface::getArguments ( )

Returns an array of arguments and their values

Returns
array Array of arguments and their values (which may be arguments and values as well)

Implemented in TYPO3\CMS\Extbase\Mvc\Request, and TYPO3\CMS\Extbase\Mvc\Cli\Request.

◆ getControllerObjectName()

TYPO3\CMS\Extbase\Mvc\RequestInterface::getControllerObjectName ( )

Returns the object name of the controller defined by the package key and controller name

Returns
string The controller's Object Name
Exceptions

Implemented in TYPO3\CMS\Extbase\Mvc\Cli\Request, and TYPO3\CMS\Extbase\Mvc\Request.

◆ hasArgument()

TYPO3\CMS\Extbase\Mvc\RequestInterface::hasArgument (   $argumentName)

Checks if an argument of the given name exists (is set)

Parameters
string$argumentNameName of the argument to check
Returns
bool TRUE if the argument is set, otherwise FALSE

Implemented in TYPO3\CMS\Extbase\Mvc\Request, and TYPO3\CMS\Extbase\Mvc\Cli\Request.

◆ isDispatched()

TYPO3\CMS\Extbase\Mvc\RequestInterface::isDispatched ( )

If this request has been dispatched and addressed by the responsible controller and the response is ready to be sent.

The dispatcher will try to dispatch the request again if it has not been addressed yet.

Returns
bool TRUE if this request has been disptached successfully

Implemented in TYPO3\CMS\Extbase\Mvc\Request, and TYPO3\CMS\Extbase\Mvc\Cli\Request.

◆ setArgument()

TYPO3\CMS\Extbase\Mvc\RequestInterface::setArgument (   $argumentName,
  $value 
)

Sets the value of the specified argument

Parameters
string$argumentNameName of the argument to set
mixed$valueThe new value
Returns
void

Implemented in TYPO3\CMS\Extbase\Mvc\Request, TYPO3\CMS\Extbase\Mvc\Cli\Request, and TYPO3\CMS\Extbase\Mvc\Web\ReferringRequest.

◆ setArguments()

TYPO3\CMS\Extbase\Mvc\RequestInterface::setArguments ( array  $arguments)

Sets the whole arguments array and therefore replaces any arguments which existed before.

Parameters
array$argumentsAn array of argument names and their values
Returns
void

Implemented in TYPO3\CMS\Extbase\Mvc\Request, and TYPO3\CMS\Extbase\Mvc\Cli\Request.

◆ setDispatched()

TYPO3\CMS\Extbase\Mvc\RequestInterface::setDispatched (   $flag)

Sets the dispatched flag

Parameters
bool$flagIf this request has been dispatched
Returns
void

Implemented in TYPO3\CMS\Extbase\Mvc\Request, and TYPO3\CMS\Extbase\Mvc\Cli\Request.