TYPO3 API  SVNRelease
Public Member Functions | Protected Member Functions
t3lib_matchCondition_backend Class Reference
Inheritance diagram for t3lib_matchCondition_backend:
Inheritance graph
[legend]
Collaboration diagram for t3lib_matchCondition_backend:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

Definition at line 38 of file class.t3lib_matchcondition_backend.php.


Constructor & Destructor Documentation

t3lib_matchCondition_backend::__construct ( )

Constructor for this class

Returns:
void

Definition at line 44 of file class.t3lib_matchcondition_backend.php.


Member Function Documentation

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"

Returns:
integer The determined page id or otherwise 0

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.

Returns:
array 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)...]"

Parameters:
string$string,:The condition to match against its criterias.
Returns:
boolean Whether the condition matched
See also:
t3lib_tsparser::parse()

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.

Returns:
string 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.

Returns:
array 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.

Parameters:
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
Returns:
integer Id of the page the record is persisted on

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_').

Returns:
string The 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.

Returns:
integer 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

Parameters:
stringIdentifier
Returns:
mixed The value of the variable pointed to. private

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.

Returns:
boolean 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.

Parameters:
integer$pid,:The pid the check for as parent page
Returns:
boolean true if the is currently a new page record being edited with $pid as uid of the 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.

Returns:
boolean 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.

Parameters:
string$message,:The log message to set/write
Returns:
void

Reimplemented from t3lib_matchCondition_abstract.

Definition at line 315 of file class.t3lib_matchcondition_backend.php.

References $GLOBALS.


The documentation for this class was generated from the following file: