TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractCondition Class Reference
Inheritance diagram for TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractCondition:
TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\Fixtures\TestCondition TYPO3\CMS\Frontend\Tests\Unit\Configuration\TypoScript\ConditionMatching\Fixtures\TestCondition

Public Member Functions

 setConditionMatcherInstance ($conditionMatcherInstance)
 
 matchCondition (array $conditionParameters)
 

Protected Member Functions

 getConditionMatcherInstance ()
 

Protected Attributes

 $conditionMatcherInstance
 

Detailed Description

Abstract class to define own custom TypoScript conditions.

Used with the TypoScript parser.

Definition at line 22 of file AbstractCondition.php.

Member Function Documentation

◆ getConditionMatcherInstance()

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

◆ matchCondition()

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 = 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

Referenced by TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractCondition\setConditionMatcherInstance().

◆ 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, and TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractCondition\matchCondition().

Member Data Documentation

◆ $conditionMatcherInstance

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