t3lib_matchCondition_frontend Class Reference

Inheritance diagram for t3lib_matchCondition_frontend:

Inheritance graph
[legend]
Collaboration diagram for t3lib_matchCondition_frontend:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 __construct ()

Protected Member Functions

 initializeDeprecatedHooks ()
 evaluateCondition ($string)
 getBrowserInfo ($userAgent)
 getDeviceType ($userAgent)
 getVariable ($var)
 getGroupList ()
 determinePageId ()
 determineRootline ()
 getUserFuncClassPrefix ()
 getUserId ()
 isUserLoggedIn ()
 log ($message)

Protected Attributes

 $deprecatedHooks = array()

Detailed Description

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


Constructor & Destructor Documentation

t3lib_matchCondition_frontend::__construct (  ) 

Constructor for this class

Returns:
void

Reimplemented in t3lib_matchCondition.

Definition at line 49 of file class.t3lib_matchcondition_frontend.php.

References initializeDeprecatedHooks().


Member Function Documentation

t3lib_matchCondition_frontend::determinePageId (  )  [protected]

Determines the current page Id.

Returns:
integer The current page Id

Reimplemented from t3lib_matchCondition_abstract.

Definition at line 220 of file class.t3lib_matchcondition_frontend.php.

References $GLOBALS.

t3lib_matchCondition_frontend::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 229 of file class.t3lib_matchcondition_frontend.php.

References $GLOBALS, and t3lib_matchCondition_abstract::$rootline.

t3lib_matchCondition_frontend::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 81 of file class.t3lib_matchcondition_frontend.php.

References $key, $value, getGroupList(), t3lib_div::inList(), and t3lib_div::trimExplode().

t3lib_matchCondition_frontend::getBrowserInfo ( userAgent  )  [protected]

Generates an array with abstracted browser information

Parameters:
string $userAgent: The useragent string, t3lib_div::getIndpEnv('HTTP_USER_AGENT')
Returns:
array Contains keys "browser", "version", "system"

Reimplemented from t3lib_matchCondition_abstract.

Definition at line 135 of file class.t3lib_matchcondition_frontend.php.

Referenced by initializeDeprecatedHooks().

t3lib_matchCondition_frontend::getDeviceType ( userAgent  )  [protected]

Gets a code for a browsing device based on the input useragent string.

Parameters:
string $userAgent: The useragent string, t3lib_div::getIndpEnv('HTTP_USER_AGENT')
Returns:
string Code for the specific device type

Reimplemented from t3lib_matchCondition_abstract.

Definition at line 156 of file class.t3lib_matchcondition_frontend.php.

References $GLOBALS, and t3lib_div::getUserObj().

Referenced by initializeDeprecatedHooks().

t3lib_matchCondition_frontend::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 210 of file class.t3lib_matchcondition_frontend.php.

References $GLOBALS.

Referenced by evaluateCondition().

t3lib_matchCondition_frontend::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 239 of file class.t3lib_matchcondition_frontend.php.

References $GLOBALS.

t3lib_matchCondition_frontend::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 249 of file class.t3lib_matchcondition_frontend.php.

References $GLOBALS.

t3lib_matchCondition_frontend::getVariable ( var  )  [protected]

Returns GP / ENV / TSFE vars

Parameters:
string Identifier
Returns:
mixed The value of the variable pointed to.

Reimplemented from t3lib_matchCondition_abstract.

Definition at line 185 of file class.t3lib_matchcondition_frontend.php.

References $val, and t3lib_matchCondition_abstract::getGlobal().

t3lib_matchCondition_frontend::initializeDeprecatedHooks (  )  [protected]

Initializes deprectated hooks that existed in t3lib_matchCondition until TYPO3 4.3.

Returns:
void

Definition at line 58 of file class.t3lib_matchcondition_frontend.php.

References $GLOBALS, $TYPO3_CONF_VARS, t3lib_div::deprecationLog(), getBrowserInfo(), getDeviceType(), and t3lib_div::getUserObj().

Referenced by __construct().

t3lib_matchCondition_frontend::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 259 of file class.t3lib_matchcondition_frontend.php.

References $GLOBALS.

t3lib_matchCondition_frontend::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 273 of file class.t3lib_matchcondition_frontend.php.

References $GLOBALS.


Member Data Documentation

t3lib_matchCondition_frontend::$deprecatedHooks = array() [protected]

Definition at line 42 of file class.t3lib_matchcondition_frontend.php.


The documentation for this class was generated from the following file:
Generated on Sat Sep 4 04:18:24 2010 for TYPO3 API by  doxygen 1.4.7