TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\T3editor\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()

TYPO3\CMS\T3editor\TypoScriptReferenceLoader::__construct ( )

Default constructor

Definition at line 33 of file TypoScriptReferenceLoader.php.

References $GLOBALS.

Member Function Documentation

◆ getType()

TYPO3\CMS\T3editor\TypoScriptReferenceLoader::getType (   $typeId)
protected

Get type

Parameters
string$typeId
Returns

Definition at line 164 of file TypoScriptReferenceLoader.php.

Referenced by TYPO3\CMS\T3editor\TypoScriptReferenceLoader\getTypes().

◆ getTypes()

TYPO3\CMS\T3editor\TypoScriptReferenceLoader::getTypes ( )
protected

◆ loadFile()

TYPO3\CMS\T3editor\TypoScriptReferenceLoader::loadFile (   $filepath)
protected

Load XML file

Parameters
string$filepath
Returns
void

Definition at line 76 of file TypoScriptReferenceLoader.php.

Referenced by TYPO3\CMS\T3editor\TypoScriptReferenceLoader\processAjaxRequest().

◆ processAjaxRequest()

TYPO3\CMS\T3editor\TypoScriptReferenceLoader::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 TYPO3\CMS\Core\Utility\ExtensionManagementUtility\extPath(), TYPO3\CMS\T3editor\TypoScriptReferenceLoader\getTypes(), and TYPO3\CMS\T3editor\TypoScriptReferenceLoader\loadFile().

Member Data Documentation

◆ $xmlDoc

TYPO3\CMS\T3editor\TypoScriptReferenceLoader::$xmlDoc
protected

Definition at line 28 of file TypoScriptReferenceLoader.php.