‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeNodeFinderVisitor Class Reference
Inheritance diagram for TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeNodeFinderVisitor:
TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeVisitorInterface

Public Member Functions

 setNodeIdentifier (string $nodeIdentifier)
 
 getFoundNode ()
 
 visitBeforeChildren (IncludeInterface $include, int $currentDepth)
 
 visit (IncludeInterface $include, int $currentDepth)
 

Private Attributes

IncludeInterface $foundNode = null
 
string $nodeIdentifier
 

Detailed Description

Find a single node in tree identified by node identifier.

This visitor is used in ext:tstemplate TypoScript modules and ext:backend page TSconfig backend modules to find single nodes, for instance when their source should be rendered.

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

Definition at line 30 of file IncludeTreeNodeFinderVisitor.php.

Member Function Documentation

◆ getFoundNode()

TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeNodeFinderVisitor::getFoundNode ( )

◆ setNodeIdentifier()

TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeNodeFinderVisitor::setNodeIdentifier ( string  $nodeIdentifier)

◆ visit()

TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeNodeFinderVisitor::visit ( IncludeInterface  $include,
int  $currentDepth 
)

Main visit method called for each node.

Implements TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeVisitorInterface.

Definition at line 52 of file IncludeTreeNodeFinderVisitor.php.

◆ visitBeforeChildren()

TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeNodeFinderVisitor::visitBeforeChildren ( IncludeInterface  $include,
int  $currentDepth 
)

Gets called by the traversers before children are traversed. Useful for instance for the IncludeTreeConditionMatcherVisitor to evaluate a condition verdict before children are traversed (or not).

Implements TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeVisitorInterface.

Definition at line 45 of file IncludeTreeNodeFinderVisitor.php.

References TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeInterface\getIdentifier().

Member Data Documentation

◆ $foundNode

IncludeInterface TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeNodeFinderVisitor::$foundNode = null
private

◆ $nodeIdentifier

string TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeNodeFinderVisitor::$nodeIdentifier
private