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

상속: implements Neos\Flow\Mvc\Controller\ControllerInterface
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$arguments Arguments Arguments passed to the controller
$controllerContext ControllerContext
$flashMessageContainer Neos\Flow\Mvc\FlashMessageContainer ..) to add a new Flash Message.
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$request Neos\Flow\Mvc\ActionRequest The current action request directed to this controller
$response Neos\Flow\Http\Response The response which will be returned by this action controller
$supportedMediaTypes array A list of IANA media types which are supported by this controller
$uriBuilder Neos\Flow\Mvc\Routing\UriBuilder
$validatorResolver Neos\Flow\Validation\ValidatorResolver

공개 메소드들

메소드 설명
addFlashMessage ( string $messageBody, string $messageTitle = '', string $severity = Error\Message::SEVERITY_OK, array $messageArguments = [], integer $messageCode = null ) : void Creates a Message object and adds it to the FlashMessageContainer.
getControllerContext ( ) : ControllerContext Returns this controller's context.

보호된 메소드들

메소드 설명
forward ( string $actionName, string $controllerName = null, string $packageKey = null, array $arguments = [] ) : void Forwards the request to another action and / or controller.
forwardToRequest ( ActionRequest $request ) : void Forwards the request to another action and / or controller.
initializeController ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response ) Initializes the controller
mapRequestArgumentsToControllerArguments ( ) : void Maps arguments delivered by the request object to the local controller arguments.
redirect ( string $actionName, string $controllerName = null, string $packageKey = null, array $arguments = null, integer $delay, integer $statusCode = 303, string $format = null ) : void Redirects the request to another action and / or controller.
redirectToRequest ( ActionRequest $request, integer $delay, integer $statusCode = 303 ) : void Redirects the request to another action and / or controller.
redirectToUri ( mixed $uri, integer $delay, integer $statusCode = 303 ) Redirects to another URI
throwStatus ( integer $statusCode, string $statusMessage = null, string $content = null ) Sends the specified HTTP status immediately.

메소드 상세

addFlashMessage() 공개 메소드

This method should be used to add FlashMessages rather than interacting with the container directly.
또한 보기: Error\Message
public addFlashMessage ( string $messageBody, string $messageTitle = '', string $severity = Error\Message::SEVERITY_OK, array $messageArguments = [], integer $messageCode = null ) : void
$messageBody string text of the FlashMessage
$messageTitle string optional header of the FlashMessage
$severity string severity of the FlashMessage (one of the Message::SEVERITY_* constants)
$messageArguments array arguments to be passed to the FlashMessage
$messageCode integer
리턴 void

forward() 보호된 메소드

Request is directly transferred to the other action / controller
또한 보기: redirect()
protected forward ( string $actionName, string $controllerName = null, string $packageKey = null, array $arguments = [] ) : void
$actionName string Name of the action to forward to
$controllerName string Unqualified object name of the controller to forward to. If not specified, the current controller is used.
$packageKey string Key of the package containing the controller to forward to. May also contain the sub package, concatenated with backslash (Vendor.Foo\Bar\Baz). If not specified, the current package is assumed.
$arguments array Arguments to pass to the target action
리턴 void

forwardToRequest() 보호된 메소드

Request is directly transfered to the other action / controller
또한 보기: redirectToRequest()
protected forwardToRequest ( ActionRequest $request ) : void
$request Neos\Flow\Mvc\ActionRequest The request to redirect to
리턴 void

getControllerContext() 공개 메소드

Note that the context is only available after processRequest() has been called.
public getControllerContext ( ) : ControllerContext
리턴 ControllerContext The current controller context

initializeController() 보호된 메소드

This method should be called by the concrete processRequest() method.
protected initializeController ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response )
$request Neos\Flow\Mvc\RequestInterface
$response Neos\Flow\Mvc\ResponseInterface

mapRequestArgumentsToControllerArguments() 보호된 메소드

Maps arguments delivered by the request object to the local controller arguments.

redirect() 보호된 메소드

Redirect will be sent to the client which then performs another request to the new URI. NOTE: This method only supports web requests and will throw an exception if used with other request types.
또한 보기: forward()
protected redirect ( string $actionName, string $controllerName = null, string $packageKey = null, array $arguments = null, integer $delay, integer $statusCode = 303, string $format = null ) : void
$actionName string Name of the action to forward to
$controllerName string Unqualified object name of the controller to forward to. If not specified, the current controller is used.
$packageKey string Key of the package containing the controller to forward to. If not specified, the current package is assumed.
$arguments array Array of arguments for the target action
$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"
$format string The format to use for the redirect URI
리턴 void

redirectToRequest() 보호된 메소드

Redirect will be sent to the client which then performs another request to the new URI. NOTE: This method only supports web requests and will throw an exception if used with other request types.
또한 보기: forwardToRequest()
protected redirectToRequest ( ActionRequest $request, integer $delay, integer $statusCode = 303 ) : void
$request Neos\Flow\Mvc\ActionRequest The request to redirect to
$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

redirectToUri() 보호된 메소드

Redirects to another URI
protected redirectToUri ( mixed $uri, integer $delay, integer $statusCode = 303 )
$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"

throwStatus() 보호된 메소드

NOTE: This method only supports web requests and will throw an exception if used with other request types.
protected throwStatus ( integer $statusCode, string $statusMessage = null, string $content = null )
$statusCode integer The HTTP status code
$statusMessage string A custom HTTP status message
$content string Body content which further explains the status

프로퍼티 상세

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

Arguments passed to the controller
protected Arguments,Neos\Flow\Mvc\Controller $arguments
리턴 Arguments

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

protected ControllerContext,Neos\Flow\Mvc\Controller $controllerContext
리턴 ControllerContext

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

..) to add a new Flash Message.
protected FlashMessageContainer,Neos\Flow\Mvc $flashMessageContainer
리턴 Neos\Flow\Mvc\FlashMessageContainer

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

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface

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

The current action request directed to this controller
protected ActionRequest,Neos\Flow\Mvc $request
리턴 Neos\Flow\Mvc\ActionRequest

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

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

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

A list of IANA media types which are supported by this controller
또한 보기: http://www.iana.org/assignments/media-types/index.html
protected array $supportedMediaTypes
리턴 array

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

protected UriBuilder,Neos\Flow\Mvc\Routing $uriBuilder
리턴 Neos\Flow\Mvc\Routing\UriBuilder

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

protected ValidatorResolver,Neos\Flow\Validation $validatorResolver
리턴 Neos\Flow\Validation\ValidatorResolver