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

List of all members.

Public Member Functions

 parseTSconfig ($TStext, $type, $id=0, array $rootLine=array())

Protected Member Functions

 parseWithConditions ($TSconfig)
 matching (array $cc)

Protected Attributes

 $rootLine = array()

Detailed Description

A TS-Config parsing class which performs condition evaluation

Id:
class.t3lib_tsparser_tsconfig.php 10121 2011-01-18 20:15:30Z ohader
Author:
Kraft Bernhard <kraftb@kraftb.at> [CLASS/FUNCTION INDEX of SCRIPT]

Definition at line 39 of file class.t3lib_tsparser_tsconfig.php.


Member Function Documentation

t3lib_TSparser_TSconfig::matching ( array $  cc) [protected]

Is just going through an array of conditions to determine which are matching (for getting correct cache entry)

Parameters:
array$cc,:An array containing the sections to match
Returns:
array The input array with matching sections filled into the "match" key

Definition at line 137 of file class.t3lib_tsparser_tsconfig.php.

References t3lib_div\makeInstance().

Referenced by parseTSconfig().

t3lib_TSparser_TSconfig::parseTSconfig ( TStext,
type,
id = 0,
array $  rootLine = array() 
)

Parses the passed TS-Config using conditions and caching

Parameters:
string$TStext,:The TSConfig being parsed
string$type,:The type of TSConfig (either "userTS" or "PAGES")
integer$id,:The uid of the page being handled
array$rootLine,:The rootline of the page being handled
Returns:
array Array containing the parsed TSConfig and a flag wheter the content was retrieved from cache
See also:
t3lib_TSparser

Definition at line 55 of file class.t3lib_tsparser_tsconfig.php.

References $res, $rootLine, t3lib_BEfunc\getHash(), matching(), parseWithConditions(), and t3lib_BEfunc\storeHash().

t3lib_TSparser_TSconfig::parseWithConditions ( TSconfig) [protected]

Does the actual parsing using the parent objects "parse" method. Creates the match-Object

Parameters:
string$TSconfig,:The TSConfig being parsed
Returns:
array Array containing the parsed TSConfig, the encountered sectiosn, the matched sections

Definition at line 113 of file class.t3lib_tsparser_tsconfig.php.

References t3lib_div\makeInstance(), and t3lib_TSparser\parse().

Referenced by parseTSconfig().


Member Data Documentation

t3lib_TSparser_TSconfig::$rootLine = array() [protected]

Definition at line 43 of file class.t3lib_tsparser_tsconfig.php.

Referenced by parseTSconfig().


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