TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\T3editor\CodeCompletion Class Reference
Inheritance diagram for TYPO3\CMS\T3editor\CodeCompletion:
tx_t3editor_codecompletion

Public Member Functions

 __construct ()
 
 processAjaxRequest ($params, \TYPO3\CMS\Core\Http\AjaxRequestHandler &$ajaxObj)
 

Protected Member Functions

 loadTemplates ($pageId, $templateId=0)
 

Protected Attributes

 $ajaxObj
 

Private Member Functions

 treeWalkCleanup (array $treeBranch)
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Code completion for t3editor

Author
Stephan Petzl spetz.nosp@m.l@gm.nosp@m.x.at
Christian Kartnig offic.nosp@m.e@ha.nosp@m.hnepe.nosp@m.ter..nosp@m.de

Definition at line 23 of file CodeCompletion.php.

Constructor & Destructor Documentation

◆ __construct()

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

Default constructor

Definition at line 33 of file CodeCompletion.php.

References $GLOBALS.

Member Function Documentation

◆ loadTemplates()

TYPO3\CMS\T3editor\CodeCompletion::loadTemplates (   $pageId,
  $templateId = 0 
)
protected

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

Parameters
integer$pageIdID of the page
integer$templateIdCurrently unused (default: 0)
Returns
array Cleaned array of TypoScript information
Author
Oliver Hader olive.nosp@m.r@ty.nosp@m.po3.o.nosp@m.rg

Definition at line 67 of file CodeCompletion.php.

References $GLOBALS, $result, TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\T3editor\CodeCompletion\treeWalkCleanup().

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

◆ processAjaxRequest()

TYPO3\CMS\T3editor\CodeCompletion::processAjaxRequest (   $params,
\TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj 
)

General processor for AJAX requests. (called by typo3/ajax.php)

Parameters
array$paramsAdditional parameters (not used here)
\TYPO3\CMS\Core\Http\AjaxRequestHandler&$ajaxObjThe AjaxRequestHandler object of this request
Returns
void
Author
Oliver Hader olive.nosp@m.r@ty.nosp@m.po3.o.nosp@m.rg

Definition at line 46 of file CodeCompletion.php.

References TYPO3\CMS\T3editor\CodeCompletion\$ajaxObj, and TYPO3\CMS\T3editor\CodeCompletion\loadTemplates().

◆ treeWalkCleanup()

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

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

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$treeBranchTypoScript configuration or sub branch of it
Returns
array Cleaned TypoScript branch

Definition at line 123 of file CodeCompletion.php.

Referenced by TYPO3\CMS\T3editor\CodeCompletion\loadTemplates().

Member Data Documentation

◆ $ajaxObj

TYPO3\CMS\T3editor\CodeCompletion::$ajaxObj
protected