‪TYPO3CMS  10.4
TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractCondition Class Reference

Public Member Functions

 setConditionMatcherInstance ($conditionMatcherInstance)
 
bool matchCondition (array $conditionParameters)
 

Protected Member Functions

TYPO3 CMS Core Configuration TypoScript ConditionMatching AbstractConditionMatcher getConditionMatcherInstance ()
 

Protected Attributes

TYPO3 CMS Core Configuration TypoScript ConditionMatching AbstractConditionMatcher $conditionMatcherInstance
 

Detailed Description

Abstract class to define own custom TypoScript conditions.

Used with the TypoScript parser.

Definition at line 23 of file AbstractCondition.php.

Member Function Documentation

◆ getConditionMatcherInstance()

TYPO3 CMS Core Configuration TypoScript ConditionMatching AbstractConditionMatcher TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractCondition::getConditionMatcherInstance ( )
protected
Returns
‪\TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher

Definition at line 32 of file AbstractCondition.php.

References TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractCondition\$conditionMatcherInstance.

◆ matchCondition()

bool TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractCondition::matchCondition ( array  $conditionParameters)
abstract

Main method handling the evaluation. Any given parameters given within the condition in form of [ACME\MyPackageName\MyCondition = value1, = value2] will be given as parameter in form of a numeric array, each entry containing the strings that are split by the commas e.g. array('= value1', '= value2')

Parameters
array$conditionParameters
Returns
‪bool

◆ setConditionMatcherInstance()

TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractCondition::setConditionMatcherInstance (   $conditionMatcherInstance)
Parameters
\TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher$conditionMatcherInstance

Definition at line 40 of file AbstractCondition.php.

References TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractCondition\$conditionMatcherInstance.

Member Data Documentation

◆ $conditionMatcherInstance

TYPO3 CMS Core Configuration TypoScript ConditionMatching AbstractConditionMatcher TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractCondition::$conditionMatcherInstance
protected