TSpagegen Class Reference

List of all members.

Public Member Functions

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


Detailed Description

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


Member Function Documentation

TSpagegen::pagegenInit (  ) 

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

Returns:
void

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

TSpagegen::getIncFiles (  ) 

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 272 of file class.tslib_pagegen.php.

TSpagegen::JSeventFunctions (  ) 

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 305 of file class.tslib_pagegen.php.

TSpagegen::renderContent (  ) 

Rendering the page content

Returns:
void

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

TSpagegen::renderContentWithHeader ( pageContent  ) 

Rendering normal HTML-page with header by wrapping the generated content ($pageContent) in body-tags and setting the header accordingly.

Parameters:
string The page content which TypoScript objects has generated
Returns:
void

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

TSpagegen::inline2TempFile ( str,
ext 
)

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

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

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

TSpagegen::isAllowedLinkVarValue ( haystack,
needle 
)

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:
string The string in which to find $needle
string The string to find in $haystack
Returns:
boolean Returns true if $needle matches or is found in $haystack

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


The documentation for this class was generated from the following file:
This documentation has been generated automatically from TYPO3 source code using Doxygen and is provided as is by Cast Iron Coding as a courtesy to other TYPO3 developers and users. Please consider Cast Iron Coding — a full-service web development agency in Portland, Oregon specializing in TYPO3 extension development — for all of your TYPO3 development and consulting needs!