TYPO3
7.6
|
Public Member Functions | |
__construct () | |
Public Member Functions inherited from AbstractConditionMatcher | |
setPageId ($pageId) | |
getPageId () | |
setRootline (array $rootline) | |
getRootline () | |
setSimulateMatchResult ($simulateMatchResult) | |
setSimulateMatchConditions (array $simulateMatchConditions) | |
match ($expression) | |
Protected Member Functions | |
evaluateCondition ($string) | |
getVariable ($var) | |
getGroupList () | |
determinePageId () | |
getPage () | |
getPageIdByRecord ($table, $id, $ignoreTable=false) | |
isNewPageWithPageId ($pageId) | |
determineRootline () | |
getUserId () | |
isUserLoggedIn () | |
isAdminUser () | |
log ($message) | |
getBackendUserAuthentication () | |
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 | |
Protected Attributes inherited from AbstractConditionMatcher | |
$pageId | |
$rootline | |
$simulateMatchResult = false | |
$simulateMatchConditions = array() | |
Matching TypoScript conditions for backend disposal.
Used with the TypoScript parser. Matches browserinfo, IPnumbers for use with templates
Definition at line 28 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
__construct | ( | ) |
Constructor for this class
Definition at line 33 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
|
protected |
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"
Definition at line 133 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References AbstractConditionMatcher\$pageId, GeneralUtility\_GP(), elseif, and ConditionMatcher\getPageIdByRecord().
Referenced by ConditionMatcher\determineRootline(), and ConditionMatcher\getPage().
|
protected |
Determines the rootline for the current page.
Definition at line 240 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References AbstractConditionMatcher\$pageId, BackendUtility\BEgetRootLine(), and ConditionMatcher\determinePageId().
|
protected |
Evaluates a TypoScript condition given as input, eg. "[browser=net][...(other conditions)...]"
string | $string | The condition to match against its criterias. |
Definition at line 44 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References AbstractConditionMatcher\evaluateConditionCommon(), ConditionMatcher\getGroupList(), GeneralUtility\inList(), ConditionMatcher\isAdminUser(), ConditionMatcher\isNewPageWithPageId(), ConditionMatcher\isUserLoggedIn(), and GeneralUtility\trimExplode().
|
protected |
Definition at line 292 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References $GLOBALS.
Referenced by ConditionMatcher\getGroupList(), ConditionMatcher\getUserId(), ConditionMatcher\isAdminUser(), ConditionMatcher\isUserLoggedIn(), and ConditionMatcher\log().
|
protected |
Get the usergroup list of the current user.
Definition at line 120 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References ConditionMatcher\getBackendUserAuthentication().
Referenced by ConditionMatcher\evaluateCondition().
|
protected |
Gets the properties for the current page.
Definition at line 167 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References AbstractConditionMatcher\$pageId, ConditionMatcher\determinePageId(), and BackendUtility\getRecord().
|
protected |
Gets the page id by a record.
string | $table | Name of the table |
int | $id | Id of the accordant record |
bool | $ignoreTable | Whether to ignore the page, if TRUE a positive |
Definition at line 181 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References AbstractConditionMatcher\$pageId, and BackendUtility\getRecordWSOL().
Referenced by ConditionMatcher\determinePageId().
|
protected |
Get the id of the current user.
Definition at line 251 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References ConditionMatcher\getBackendUserAuthentication().
|
protected |
Returns GP / ENV vars
string | $var | Identifier |
Definition at line 109 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References AbstractConditionMatcher\getVariableCommon().
|
protected |
Determines whether the current user is admin.
Definition at line 271 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References ConditionMatcher\getBackendUserAuthentication().
Referenced by ConditionMatcher\evaluateCondition().
|
protected |
Determine if record of table 'pages' with the given $pid is currently created in TCEforms. This information is required for conditions in BE for PIDupinRootline.
int | $pageId | The pid the check for as parent page |
Definition at line 203 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References $GLOBALS, AbstractConditionMatcher\$pageId, and BackendUtility\getRecord().
Referenced by ConditionMatcher\evaluateCondition().
|
protected |
Determines if a user is logged in.
Definition at line 261 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References ConditionMatcher\getBackendUserAuthentication().
Referenced by ConditionMatcher\evaluateCondition().
|
protected |
Set/write a log message.
string | $message | The log message to set/write |
Definition at line 282 of file backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php.
References ConditionMatcher\getBackendUserAuthentication().