TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
WizardController Class Reference

Public Member Functions

 __construct ()
 
 saveAction (ServerRequestInterface $request, ResponseInterface $response)
 
 loadAction (ServerRequestInterface $request, ResponseInterface $response)
 

Protected Member Functions

 getRepository ()
 
 getLanguageService ()
 

Detailed Description

The form wizard controller

Definition at line 25 of file WizardController.php.

Constructor & Destructor Documentation

__construct ( )

The constructor to load the LL file

Definition at line 30 of file WizardController.php.

References WizardController\getLanguageService().

Member Function Documentation

getLanguageService ( )
protected

Returns an instance of LanguageService

Returns

Definition at line 127 of file WizardController.php.

References $GLOBALS.

Referenced by WizardController\__construct(), WizardController\loadAction(), and WizardController\saveAction().

getRepository ( )
protected

Gets the repository object.

Returns
ContentRepository

Definition at line 117 of file WizardController.php.

References GeneralUtility\makeInstance().

Referenced by WizardController\loadAction(), and WizardController\saveAction().

loadAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

The load action called via AJAX

The action which should be taken when the form in the wizard is loaded

Parameters
ServerRequestInterface$request
ResponseInterface$responsethe response object
Returns
ResponseInterface returns a 500 error or a valid JSON response

Definition at line 95 of file WizardController.php.

References MessageInterface\getBody(), WizardController\getLanguageService(), WizardController\getRepository(), MessageInterface\withHeader(), and ResponseInterface\withStatus().

saveAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

The save action called via AJAX

The action which should be taken when the form in the wizard is saved

Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface returns a 500 error or a valid JSON response

Definition at line 62 of file WizardController.php.

References MessageInterface\getBody(), WizardController\getLanguageService(), WizardController\getRepository(), MessageInterface\withHeader(), and ResponseInterface\withStatus().