TYPO3  7.6
Protected Member Functions | List of all members
ConditionMatcher Class Reference
Inheritance diagram for ConditionMatcher:
AbstractConditionMatcher

Protected Member Functions

 evaluateCondition ($string)
 
 getVariable ($var)
 
 getGroupList ()
 
 determinePageId ()
 
 getPage ()
 
 determineRootline ()
 
 getUserId ()
 
 isUserLoggedIn ()
 
 log ($message)
 
 getTypoScriptFrontendController ()
 
 getTimeTracker ()
 
- Protected Member Functions inherited from AbstractConditionMatcher
 normalizeExpression ($expression)
 
 evaluateConditionCommon ($key, $value)
 
 parseUserFuncArguments ($arguments)
 
 getVariableCommon (array $vars)
 
 compareNumber ($test, $leftValue)
 
 searchStringWildcard ($haystack, $needle)
 
 getBrowserInfo ($userAgent)
 
 getDeviceType ($userAgent)
 
 getGlobal ($var, $source=null)
 
 evaluateCondition ($string)
 
 getVariable ($name)
 
 getGroupList ()
 
 determinePageId ()
 
 getPage ()
 
 determineRootline ()
 
 getUserId ()
 
 isUserLoggedIn ()
 
 log ($message)
 

Additional Inherited Members

- Public Member Functions inherited from AbstractConditionMatcher
 setPageId ($pageId)
 
 getPageId ()
 
 setRootline (array $rootline)
 
 getRootline ()
 
 setSimulateMatchResult ($simulateMatchResult)
 
 setSimulateMatchConditions (array $simulateMatchConditions)
 
 match ($expression)
 
- Protected Attributes inherited from AbstractConditionMatcher
 $pageId
 
 $rootline
 
 $simulateMatchResult = false
 
 $simulateMatchConditions = array()
 

Detailed Description

Matching TypoScript conditions for frontend disposal.

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

Definition at line 26 of file frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.

Member Function Documentation

determinePageId ( )
protected

Determines the current page Id.

Returns
int The current page Id

Definition at line 131 of file frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.

References ConditionMatcher\getTypoScriptFrontendController().

determineRootline ( )
protected

Determines the rootline for the current page.

Returns
array The rootline for the current page.

Definition at line 151 of file frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.

References ConditionMatcher\getTypoScriptFrontendController().

evaluateCondition (   $string)
protected

Evaluates a TypoScript condition given as input, eg. "[browser=net][...(other conditions)...]"

Parameters
string$stringThe condition to match against its criterias.
Returns
bool Whether the condition matched
See Also
::parse()
Exceptions
\TYPO3\CMS\Core\Configuration\TypoScript\Exception\InvalidTypoScriptConditionException

Definition at line 37 of file frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.

References AbstractConditionMatcher\evaluateConditionCommon(), ConditionMatcher\getGroupList(), GeneralUtility\inList(), and GeneralUtility\trimExplode().

getGroupList ( )
protected

Get the usergroup list of the current user.

Returns
string The usergroup list of the current user

Definition at line 121 of file frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.

References ConditionMatcher\getTypoScriptFrontendController().

Referenced by ConditionMatcher\evaluateCondition().

getPage ( )
protected

Gets the properties for the current page.

Returns
array The properties for the current page.

Definition at line 141 of file frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.

References ConditionMatcher\getTypoScriptFrontendController().

getTimeTracker ( )
protected
getTypoScriptFrontendController ( )
protected
getUserId ( )
protected

Get the id of the current user.

Returns
int The id of the current user

Definition at line 161 of file frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.

References ConditionMatcher\getTypoScriptFrontendController().

getVariable (   $var)
protected

Returns GP / ENV / TSFE vars

Parameters
string$varIdentifier
Returns
mixed The value of the variable pointed to or NULL if variable did not exist

Definition at line 97 of file frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.

References AbstractConditionMatcher\getGlobal(), and AbstractConditionMatcher\getVariableCommon().

isUserLoggedIn ( )
protected

Determines if a user is logged in.

Returns
bool Determines if a user is logged in

Definition at line 171 of file frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.

References ConditionMatcher\getTypoScriptFrontendController().

log (   $message)
protected

Set/write a log message.

Parameters
string$messageThe log message to set/write
Returns
void

Definition at line 182 of file frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.

References ConditionMatcher\getTimeTracker().