PHP 클래스 Neos\Flow\Mvc\Controller\RestController

상속: extends ActionController
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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

보호된 메소드들

메소드 설명
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.

메소드 상세

initializeCreateAction() 보호된 메소드

Allow creation of resources in createAction()
protected initializeCreateAction ( ) : void
리턴 void

initializeUpdateAction() 보호된 메소드

Allow modification of resources in updateAction()
protected initializeUpdateAction ( ) : void
리턴 void

redirectToUri() 보호된 메소드

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"
리턴 void

resolveActionMethodName() 보호된 메소드

Determines the action method and assures that the method exists.
protected resolveActionMethodName ( ) : string
리턴 string The action method name

프로퍼티 상세

$request 보호되어 있는 프로퍼티

The current request
protected ActionRequest,Neos\Flow\Mvc $request
리턴 Neos\Flow\Mvc\ActionRequest

$resourceArgumentName 보호되어 있는 프로퍼티

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
리턴 string

$response 보호되어 있는 프로퍼티

The response which will be returned by this action controller
protected Response,Neos\Flow\Http $response
리턴 Neos\Flow\Http\Response