|
TYPO3 API
SVNRelease
|


Public Member Functions | |
| __construct () | |
Protected Member Functions | |
| evaluateCondition ($string) | |
| getVariable ($var) | |
| getGroupList () | |
| determinePageId () | |
| getPage () | |
| getPageIdByRecord ($table, $id, $ignoreTable=FALSE) | |
| isNewPageWithPageId ($pageId) | |
| determineRootline () | |
| getUserFuncClassPrefix () | |
| getUserId () | |
| isUserLoggedIn () | |
| isAdminUser () | |
| log ($message) | |
Definition at line 38 of file class.t3lib_matchcondition_backend.php.
| t3lib_matchCondition_backend::__construct | ( | ) |
Constructor for this class
Definition at line 44 of file class.t3lib_matchcondition_backend.php.
| t3lib_matchCondition_backend::determinePageId | ( | ) | [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"
Reimplemented from t3lib_matchCondition_abstract.
Definition at line 143 of file class.t3lib_matchcondition_backend.php.
References t3lib_matchCondition_abstract\$pageId, t3lib_div\_GP(), and getPageIdByRecord().
Referenced by determineRootline(), and getPage().
| t3lib_matchCondition_backend::determineRootline | ( | ) | [protected] |
Determines the rootline for the current page.
Reimplemented from t3lib_matchCondition_abstract.
Definition at line 257 of file class.t3lib_matchcondition_backend.php.
References t3lib_matchCondition_abstract\$pageId, t3lib_matchCondition_abstract\$rootline, t3lib_BEfunc\BEgetRootLine(), and determinePageId().
| t3lib_matchCondition_backend::evaluateCondition | ( | $ | string | ) | [protected] |
Evaluates a TypoScript condition given as input, eg. "[browser=net][...(other conditions)...]"
| string | $string,: | The condition to match against its criterias. |
Reimplemented from t3lib_matchCondition_abstract.
Definition at line 54 of file class.t3lib_matchcondition_backend.php.
References $value, t3lib_matchCondition_abstract\evaluateConditionCommon(), getGroupList(), t3lib_div\inList(), isAdminUser(), isNewPageWithPageId(), isUserLoggedIn(), and t3lib_div\trimExplode().
| t3lib_matchCondition_backend::getGroupList | ( | ) | [protected] |
Get the usergroup list of the current user.
Reimplemented from t3lib_matchCondition_abstract.
Definition at line 130 of file class.t3lib_matchcondition_backend.php.
References $GLOBALS.
Referenced by evaluateCondition().
| t3lib_matchCondition_backend::getPage | ( | ) | [protected] |
Gets the properties for the current page.
Reimplemented from t3lib_matchCondition_abstract.
Definition at line 182 of file class.t3lib_matchcondition_backend.php.
References t3lib_matchCondition_abstract\$pageId, determinePageId(), and t3lib_BEfunc\getRecord().
| t3lib_matchCondition_backend::getPageIdByRecord | ( | $ | table, |
| $ | id, | ||
| $ | ignoreTable = FALSE |
||
| ) | [protected] |
Gets the page id by a record.
| string | $table,: | Name of the table |
| integer | $id,: | Id of the accordant record |
| boolean | $ignoreTable,: | Whether to ignore the page, if true a positive id value is considered as page id without any further checks |
Definition at line 196 of file class.t3lib_matchcondition_backend.php.
References t3lib_matchCondition_abstract\$pageId, and t3lib_BEfunc\getRecordWSOL().
Referenced by determinePageId().
| t3lib_matchCondition_backend::getUserFuncClassPrefix | ( | ) | [protected] |
Get prefix for user functions (normally 'user_').
Reimplemented from t3lib_matchCondition_abstract.
Definition at line 268 of file class.t3lib_matchcondition_backend.php.
| t3lib_matchCondition_backend::getUserId | ( | ) | [protected] |
Get the id of the current user.
Reimplemented from t3lib_matchCondition_abstract.
Definition at line 278 of file class.t3lib_matchcondition_backend.php.
References $GLOBALS.
| t3lib_matchCondition_backend::getVariable | ( | $ | var | ) | [protected] |
Returns GP / ENV vars
| string | Identifier |
Reimplemented from t3lib_matchCondition_abstract.
Definition at line 117 of file class.t3lib_matchcondition_backend.php.
References t3lib_matchCondition_abstract\getVariableCommon().
| t3lib_matchCondition_backend::isAdminUser | ( | ) | [protected] |
Determines whether the current user is admin.
Definition at line 301 of file class.t3lib_matchcondition_backend.php.
References $GLOBALS.
Referenced by evaluateCondition().
| t3lib_matchCondition_backend::isNewPageWithPageId | ( | $ | pageId | ) | [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.
| integer | $pid,: | The pid the check for as parent page |
Definition at line 219 of file class.t3lib_matchcondition_backend.php.
References $GLOBALS, t3lib_matchCondition_abstract\$pageId, and t3lib_BEfunc\getRecord().
Referenced by evaluateCondition().
| t3lib_matchCondition_backend::isUserLoggedIn | ( | ) | [protected] |
Determines if a user is logged in.
Reimplemented from t3lib_matchCondition_abstract.
Definition at line 288 of file class.t3lib_matchcondition_backend.php.
References $GLOBALS.
Referenced by evaluateCondition().
| t3lib_matchCondition_backend::log | ( | $ | message | ) | [protected] |
Set/write a log message.
| string | $message,: | The log message to set/write |
Reimplemented from t3lib_matchCondition_abstract.
Definition at line 315 of file class.t3lib_matchcondition_backend.php.
References $GLOBALS.
1.7.5.1