‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor Class Reference
Inheritance diagram for TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor:
TYPO3\CMS\Core\TypoScript\AST\Visitor\AstVisitorInterface

Public Member Functions

 visitBeforeChildren (RootNode $rootNode, NodeInterface $node, CurrentObjectPath $currentObjectPath, int $currentDepth)
 
 setCurrentTemplateFlatConstants (array $currentTemplateFlatConstants)
 
 getConstants ()
 
 getCategories ()
 
 visit (RootNode $rootNode, NodeInterface $node, CurrentObjectPath $currentObjectPath, int $currentDepth)
 
 visitAfterChildren (RootNode $rootNode, NodeInterface $node, CurrentObjectPath $currentObjectPath, int $currentDepth)
 

Private Member Functions

 parseNodeComment (TokenStreamInterface $commentTokenStream, string $nodeName, ?string $currentValue=null)
 
 parseCustomCategoryAndSubCategories (TokenStreamInterface $commentTokenStream)
 
 getLanguageService ()
 

Private Attributes

array $categories
 
array $subCategories
 
int $subCategoryCounter = 0
 
array $currentTemplateFlatConstants = []
 
array $constants = []
 

Detailed Description

Gather comments suitable for constant editor.

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

Definition at line 34 of file AstConstantCommentVisitor.php.

Member Function Documentation

◆ getCategories()

TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::getCategories ( )

◆ getConstants()

TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::getConstants ( )

◆ getLanguageService()

TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::getLanguageService ( )
private

◆ parseCustomCategoryAndSubCategories()

TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::parseCustomCategoryAndSubCategories ( TokenStreamInterface  $commentTokenStream)
private

◆ parseNodeComment()

◆ setCurrentTemplateFlatConstants()

TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::setCurrentTemplateFlatConstants ( array  $currentTemplateFlatConstants)

◆ visit()

TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::visit ( RootNode  $rootNode,
NodeInterface  $node,
CurrentObjectPath  $currentObjectPath,
int  $currentDepth 
)

◆ visitAfterChildren()

TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::visitAfterChildren ( RootNode  $rootNode,
NodeInterface  $node,
CurrentObjectPath  $currentObjectPath,
int  $currentDepth 
)

◆ visitBeforeChildren()

Member Data Documentation

◆ $categories

array TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::$categories
private
Initial value:
= [
'basic' => [
'label' => 'Basic',
'usageCount' => 0,
],
'menu' => [
'label' => 'Menu',
'usageCount' => 0,
],
'content' => [
'label' => 'Content',
'usageCount' => 0,
],
'page' => [
'label' => 'Page',
'usageCount' => 0,
],
'advanced' => [
'label' => 'Advanced',
'usageCount' => 0,
],
'all' => [
'label' => 'All',
'usageCount' => 0,
],
]

Definition at line 36 of file AstConstantCommentVisitor.php.

Referenced by TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor\getCategories().

◆ $constants

array TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::$constants = []
private

◆ $currentTemplateFlatConstants

array TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::$currentTemplateFlatConstants = []
private

◆ $subCategories

array TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::$subCategories
private

Definition at line 63 of file AstConstantCommentVisitor.php.

◆ $subCategoryCounter

int TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor::$subCategoryCounter = 0
private

Helper hack variable to have a unique sub category order if no sub category is given.

Definition at line 165 of file AstConstantCommentVisitor.php.

Referenced by TYPO3\CMS\Core\TypoScript\AST\Visitor\AstConstantCommentVisitor\parseCustomCategoryAndSubCategories().