TYPO3 API  SVNRelease
Static Public Member Functions | Static Protected Member Functions
TSpagegen Class Reference

List of all members.

Static Public Member Functions

static pagegenInit ()
static getIncFiles ()
static JSeventFunctions ()
static renderContent ()
static inline2TempFile ($str, $ext)
static isAllowedLinkVarValue ($haystack, $needle)

Static Protected Member Functions

static stripIntObjectPlaceholder (&$searchString, &$intObjects)

Detailed Description

Definition at line 88 of file class.tslib_pagegen.php.


Member Function Documentation

static TSpagegen::getIncFiles ( ) [static]

Returns an array with files to include. These files are the ones set up in TypoScript config.

Returns:
array Files to include. Paths are relative to PATH_site.

Definition at line 259 of file class.tslib_pagegen.php.

References $GLOBALS.

static TSpagegen::inline2TempFile ( str,
ext 
) [static]

Writes string to a temporary file named after the md5-hash of the string

Parameters:
stringCSS styles / JavaScript to write to file.
stringExtension: "css" or "js"
Returns:
string <script> or <link> tag for the file.

Definition at line 1119 of file class.tslib_pagegen.php.

References $GLOBALS, and t3lib_div\writeFile().

static TSpagegen::isAllowedLinkVarValue ( haystack,
needle 
) [static]

Checks if the value defined in "config.linkVars" contains an allowed value. Otherwise, return false which means the value will not be added to any links.

Parameters:
stringThe string in which to find $needle
stringThe string to find in $haystack
Returns:
boolean Returns true if $needle matches or is found in $haystack

Definition at line 1151 of file class.tslib_pagegen.php.

References t3lib_div\testInt().

Referenced by pagegenInit().

static TSpagegen::JSeventFunctions ( ) [static]

Processing JavaScript handlers

Returns:
array Array with a) a JavaScript section with event handlers and variables set and b) an array with attributes for the body tag.

Definition at line 292 of file class.tslib_pagegen.php.

References $GLOBALS.

static TSpagegen::pagegenInit ( ) [static]

Setting some vars in TSFE, primarily based on TypoScript config settings.

Returns:
void

Definition at line 95 of file class.tslib_pagegen.php.

References $GLOBALS, $value, t3lib_div\_GET(), t3lib_div\_GP(), t3lib_div\getIndpEnv(), t3lib_div\implodeArrayForUrl(), t3lib_div\intExplode(), t3lib_div\intInRange(), isAllowedLinkVarValue(), and t3lib_div\trimExplode().

static TSpagegen::renderContent ( ) [static]

Rendering the page content

Returns:
void

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

References $GLOBALS.

static TSpagegen::stripIntObjectPlaceholder ( &$  searchString,
&$  intObjects 
) [static, protected]

Searches for placeholder created from *_INT cObjects, removes them from $searchString and merges them to $intObjects

Parameters:
string$searchString,:the String which should be cleaned from int-object markers
string$intObjects,:the String the found int-placeholders are moved to (for further processing)

Definition at line 1105 of file class.tslib_pagegen.php.


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