Extbase\MVC

Class Tx_Extbase_MVC_Request


public class Tx_Extbase_MVC_Request

Represents a generic request.

Package: Extbase
Subpackage: MVC
Version: $ID:$
Scope: prototype


Method Summary

 void setDispatched(boolean $flag)
 boolean isDispatched()
 string getControllerObjectName()
 string getPluginName()
 string getControllerExtensionName()
 string getControllerExtensionKey()
 string getControllerName()
 string getControllerActionName()
 array getArguments()
 string getArgument(string $argumentName)
 boolean hasArgument(string $argumentName)

Method Detail

setDispatched

public void setDispatched(boolean $flag)

Sets the dispatched flag

Parameters

$flag - If this request has been dispatched

isDispatched

public boolean 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.

getControllerObjectName

public string getControllerObjectName()

Returns the object name of the controller defined by the extension name and controller name

getPluginName

public string getPluginName()

Returns the plugin key.

getControllerExtensionName

public string getControllerExtensionName()

Returns the extension name of the specified controller.

getControllerExtensionKey

public string getControllerExtensionKey()

Returns the extension name of the specified controller.

getControllerName

public string getControllerName()

Returns the object name of the controller supposed to handle this request, if one was set already (if not, the name of the default controller is returned)

getControllerActionName

public string getControllerActionName()

Returns the name of the action the controller is supposed to execute.

getArguments

public array getArguments()

Returns an array of arguments and their values

getArgument

public string getArgument(string $argumentName)

Returns the value of the specified argument

Parameters

$argumentName - Name of the argument

hasArgument

public boolean hasArgument(string $argumentName)

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

Parameters

$argumentName - Name of the argument to check