Files
gutachten_t3/typo3/sysext/extbase/Classes/Mvc/RequestInterface.php
T
2026-10-19 08:18:39 +02:00

89 lines
2.6 KiB
PHP

<?php
namespace TYPO3\CMS\Extbase\Mvc;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* Contract for a request.
*/
interface RequestInterface
{
/**
* Sets the dispatched flag
*
* @param bool $flag If this request has been dispatched
*/
public function setDispatched($flag);
/**
* 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.
*
* @return bool TRUE if this request has been disptached successfully
*/
public function isDispatched();
/**
* Returns the object name of the controller defined by the package key and
* controller name
*
* @return string The controller's Object Name
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\NoSuchControllerException if the controller does not exist
*/
public function getControllerObjectName();
/**
* Sets the value of the specified argument
*
* @param string $argumentName Name of the argument to set
* @param mixed $value The new value
*/
public function setArgument($argumentName, $value);
/**
* Sets the whole arguments array and therefore replaces any arguments
* which existed before.
*
* @param array $arguments An array of argument names and their values
*/
public function setArguments(array $arguments);
/**
* Returns the value of the specified argument
*
* @param string $argumentName Name of the argument
* @return string Value of the argument
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\NoSuchArgumentException if such an argument does not exist
*/
public function getArgument($argumentName);
/**
* Checks if an argument of the given name exists (is set)
*
* @param string $argumentName Name of the argument to check
* @return bool TRUE if the argument is set, otherwise FALSE
*/
public function hasArgument($argumentName);
/**
* Returns an array of arguments and their values
*
* @return array Array of arguments and their values (which may be arguments and values as well)
*/
public function getArguments();
}