PHP Class Neos\Flow\Mvc\Controller\RestController

Inheritance: extends ActionController
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$request Neos\Flow\Mvc\ActionRequest The current request
$resourceArgumentName string Name of the action method argument which acts as the resource for the RESTful controller. If an argument with the specified name is passed to the controller, the show, update and delete actions can be triggered automatically.
$response Neos\Flow\Http\Response The response which will be returned by this action controller

Méthodes protégées

Méthode Description
initializeCreateAction ( ) : void Allow creation of resources in createAction()
initializeUpdateAction ( ) : void Allow modification of resources in updateAction()
redirectToUri ( mixed $uri, integer $delay, integer $statusCode = 303 ) : void Redirects the web request to another uri.
resolveActionMethodName ( ) : string Determines the action method and assures that the method exists.

Method Details

initializeCreateAction() protected méthode

Allow creation of resources in createAction()
protected initializeCreateAction ( ) : void
Résultat void

initializeUpdateAction() protected méthode

Allow modification of resources in updateAction()
protected initializeUpdateAction ( ) : void
Résultat void

redirectToUri() protected méthode

NOTE: This method only supports web requests and will throw an exception if used with other request types.
protected redirectToUri ( mixed $uri, integer $delay, integer $statusCode = 303 ) : void
$uri mixed Either a string representation of a URI or a \Neos\Flow\Http\Uri object
$delay integer (optional) The delay in seconds. Default is no delay.
$statusCode integer (optional) The HTTP status code for the redirect. Default is "303 See Other"
Résultat void

resolveActionMethodName() protected méthode

Determines the action method and assures that the method exists.
protected resolveActionMethodName ( ) : string
Résultat string The action method name

Property Details

$request protected_oe property

The current request
protected ActionRequest,Neos\Flow\Mvc $request
Résultat Neos\Flow\Mvc\ActionRequest

$resourceArgumentName protected_oe property

Name of the action method argument which acts as the resource for the RESTful controller. If an argument with the specified name is passed to the controller, the show, update and delete actions can be triggered automatically.
protected string $resourceArgumentName
Résultat string

$response protected_oe property

The response which will be returned by this action controller
protected Response,Neos\Flow\Http $response
Résultat Neos\Flow\Http\Response