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

Public Member Functions

 __construct ()
 
 processAjaxRequest (ServerRequestInterface $request, ResponseInterface $response)
 

Protected Member Functions

 loadFile ($filepath)
 
 getTypes ()
 
 getType ($typeId)
 

Protected Attributes

 $xmlDoc
 

Detailed Description

Loads TSref information from a XML file an responds to an AJAX call.

Definition at line 23 of file TypoScriptReferenceLoader.php.

Constructor & Destructor Documentation

__construct ( )

Default constructor

Definition at line 33 of file TypoScriptReferenceLoader.php.

References $GLOBALS.

Member Function Documentation

getType (   $typeId)
protected

Get type

Parameters
string$typeId
Returns

Definition at line 161 of file TypoScriptReferenceLoader.php.

getTypes ( )
protected

Get types from XML

Returns
array

Definition at line 89 of file TypoScriptReferenceLoader.php.

Referenced by TypoScriptReferenceLoader\processAjaxRequest().

loadFile (   $filepath)
protected

Load XML file

Parameters
string$filepath
Returns
void

Definition at line 76 of file TypoScriptReferenceLoader.php.

Referenced by TypoScriptReferenceLoader\processAjaxRequest().

processAjaxRequest ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

General processor for AJAX requests. Called by AjaxRequestHandler

Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface

Definition at line 46 of file TypoScriptReferenceLoader.php.

References $response, MessageInterface\getBody(), ServerRequestInterface\getParsedBody(), ServerRequestInterface\getQueryParams(), TypoScriptReferenceLoader\getTypes(), TypoScriptReferenceLoader\loadFile(), and MessageInterface\withHeader().

Member Data Documentation

$xmlDoc
protected

Definition at line 28 of file TypoScriptReferenceLoader.php.