TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractJsonView Class Reference
Inheritance diagram for AbstractJsonView:
AbstractView ViewInterface ActivateLanguageJson DeactivateLanguageJson GetTranslationsJson RemoveLanguageJson UpdateLanguageJson UpdateTranslationJson

Public Member Functions

 injectObjectManager (ObjectManagerInterface $objectManager)
 
 render ()
 
- Public Member Functions inherited from AbstractView
 setControllerContext (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
 assign ($key, $value)
 
 assignMultiple (array $values)
 
 canRender (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
 initializeView ()
 

Protected Member Functions

 getResponseData ()
 
 sendResponse (array $data)
 

Protected Attributes

 $objectManager
 
- Protected Attributes inherited from AbstractView
 $controllerContext
 
 $variables = []
 

Detailed Description

Base class for JSON views

Definition at line 24 of file AbstractJsonView.php.

Member Function Documentation

getResponseData ( )
abstractprotected

Returns the response data

Returns
array The response data

Referenced by AbstractJsonView\render().

injectObjectManager ( ObjectManagerInterface  $objectManager)
Parameters
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface$objectManager

Definition at line 34 of file AbstractJsonView.php.

References AbstractJsonView\$objectManager.

render ( )

Render template content

Returns
void

Implements ViewInterface.

Definition at line 44 of file AbstractJsonView.php.

References AbstractJsonView\getResponseData(), and AbstractJsonView\sendResponse().

sendResponse ( array  $data)
protected

Send response to browser

Parameters
array$dataThe response data
Returns
void

Definition at line 63 of file AbstractJsonView.php.

Referenced by AbstractJsonView\render().

Member Data Documentation

$objectManager
protected

Definition at line 29 of file AbstractJsonView.php.

Referenced by AbstractJsonView\injectObjectManager().