‪TYPO3CMS  9.5
TYPO3\CMS\T3editor\Controller\CodeCompletionController Class Reference
Inheritance diagram for TYPO3\CMS\T3editor\Controller\CodeCompletionController:
TYPO3\CMS\T3editor\CodeCompletion

Public Member Functions

ResponseInterface loadCompletions (ServerRequestInterface $request)
 

Protected Member Functions

array getMergedTemplates ($pageId)
 
LanguageService getLanguageService ()
 

Private Member Functions

array treeWalkCleanup (array $treeBranch)
 

Detailed Description

Code completion for t3editor

This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 29 of file CodeCompletionController.php.

Member Function Documentation

◆ getLanguageService()

LanguageService TYPO3\CMS\T3editor\Controller\CodeCompletionController::getLanguageService ( )
protected
Returns
‪LanguageService

Definition at line 120 of file CodeCompletionController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\T3editor\Controller\CodeCompletionController\loadCompletions().

◆ getMergedTemplates()

array TYPO3\CMS\T3editor\Controller\CodeCompletionController::getMergedTemplates (   $pageId)
protected

Gets merged templates by walking the rootline to a given page id.

Todo:
olive.nosp@m.r@ty.nosp@m.po3.o.nosp@m.rg: Refactor this method and comment what's going on there
Parameters
int$pageId
Returns
‪array Setup part of merged template records

Definition at line 60 of file CodeCompletionController.php.

References TYPO3\CMS\T3editor\Controller\CodeCompletionController\treeWalkCleanup().

Referenced by TYPO3\CMS\T3editor\Controller\CodeCompletionController\loadCompletions().

◆ loadCompletions()

ResponseInterface TYPO3\CMS\T3editor\Controller\CodeCompletionController::loadCompletions ( ServerRequestInterface  $request)

Loads all templates up to a given page id (walking the rootline) and cleans parts that are not required for the t3editor codecompletion.

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 38 of file CodeCompletionController.php.

References $GLOBALS, TYPO3\CMS\T3editor\Controller\CodeCompletionController\getLanguageService(), and TYPO3\CMS\T3editor\Controller\CodeCompletionController\getMergedTemplates().

◆ treeWalkCleanup()

array TYPO3\CMS\T3editor\Controller\CodeCompletionController::treeWalkCleanup ( array  $treeBranch)
private

Walks through a tree of TypoScript configuration an cleans it up.

@TODO olive.nosp@m.r@ty.nosp@m.po3.o.nosp@m.rg: Define and comment why this is necessary and exactly happens below

Parameters
array$treeBranch‪TypoScript configuration or sub branch of it
Returns
‪array Cleaned TypoScript branch

Definition at line 85 of file CodeCompletionController.php.

Referenced by TYPO3\CMS\T3editor\Controller\CodeCompletionController\getMergedTemplates().