‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher:
TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\ConditionMatcherInterface

Public Member Functions

 __construct (Context $context=null, int $pageId=null, array $rootLine=null)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher
 setPageId ($pageId)
 
int getPageId ()
 
 setRootline (array $rootline)
 
array getRootline ()
 
 setSimulateMatchResult ($simulateMatchResult)
 
 setSimulateMatchConditions (array $simulateMatchConditions)
 
bool match ($expression)
 

Protected Member Functions

 updateExpressionLanguageVariables ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher
 initializeExpressionLanguageResolver ()
 
 evaluateExpression (string $expression)
 

Protected Attributes

Context $context
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher
int $pageId
 
array $rootline
 
bool $simulateMatchResult = false
 
array $simulateMatchConditions = array( )
 
Resolver $expressionLanguageResolver
 
array $expressionLanguageResolverVariables = array( )
 

Private Member Functions

int determinePageId ()
 
int getPageIdByRecord (string $table, int $id, bool $ignoreTable=false)
 

Detailed Description

Matching TypoScript conditions for backend disposal.

Used with the TypoScript parser. Matches browserinfo, IP numbers for use with templates

Deprecated:
‪since v12, will be removed in v13 together with old TypoScript parser

Definition at line 33 of file ConditionMatcher.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher::__construct ( Context  $context = null,
int  $pageId = null,
array  $rootLine = null 
)

Member Function Documentation

◆ determinePageId()

int TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher::determinePageId ( )
private

Tries to determine the ID of the page currently processed. When User/Group TS-Config is parsed when no specific page is handled (i.e. in the Extension Manager, etc.) this function will return "0", so that the accordant conditions (e.g. PIDinRootline) will return "FALSE"

Returns
‪int The determined page id or otherwise 0

Definition at line 106 of file ConditionMatcher.php.

References TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher\$pageId, TYPO3\CMS\Webhooks\Message\$uid, TYPO3\CMS\Core\Utility\GeneralUtility\_GP(), and TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher\getPageIdByRecord().

Referenced by TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher\__construct(), and TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher\updateExpressionLanguageVariables().

◆ getPageIdByRecord()

int TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher::getPageIdByRecord ( string  $table,
int  $id,
bool  $ignoreTable = false 
)
private

Gets the page id by a record.

Parameters
string$table‪Name of the table
int$id‪Id of the accordant record
bool$ignoreTable‪Whether to ignore the page, if TRUE a positive
Returns
‪int Id of the page the record is persisted on

Definition at line 148 of file ConditionMatcher.php.

References TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher\$pageId, and TYPO3\CMS\Webhooks\Message\$record.

Referenced by TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher\determinePageId().

◆ updateExpressionLanguageVariables()

TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher::updateExpressionLanguageVariables ( )
protected

Member Data Documentation

◆ $context

Context TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher::$context
protected