TYPO3  7.6
Static Public Member Functions | Public Attributes | Static Protected Member Functions | List of all members
PageGenerator Class Reference
Inheritance diagram for PageGenerator:
PageGeneratorFixture

Static Public Member Functions

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

Public Attributes

const NO_PAGE_TITLE = 2
 

Static Protected Member Functions

static stripIntObjectPlaceholder (&$searchString, &$intObjects)
 
static getPageRenderer ()
 
static addCssToPageRenderer ($cssStyles, $excludeFromConcatenation=false, $inlineBlockName= 'TSFEinlineStyle')
 

Detailed Description

Class for starting TypoScript page generation

The class is not instantiated as an objects but called directly with the "::" operator. eg: ::pagegenInit()

Definition at line 33 of file PageGenerator.php.

Member Function Documentation

static addCssToPageRenderer (   $cssStyles,
  $excludeFromConcatenation = false,
  $inlineBlockName = 'TSFEinlineStyle' 
)
staticprotected

Adds inline CSS code, by respecting the inlineStyle2TempFile option

Parameters
string$cssStylesthe inline CSS styling
bool$excludeFromConcatenationoption to see if it should be conctatenated
string$inlineBlockNamethe block name to add it

Definition at line 1216 of file PageGenerator.php.

References $GLOBALS.

static getPageRenderer ( )
staticprotected
Returns
PageRenderer

Definition at line 1204 of file PageGenerator.php.

References GeneralUtility\makeInstance().

static inline2TempFile (   $str,
  $ext 
)
static

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

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

Definition at line 1014 of file PageGenerator.php.

References GeneralUtility\writeFileToTypo3tempDir().

static 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
string$haystackThe string in which to find $needle
string$needleThe string to find in $haystack
Returns
bool Returns TRUE if $needle matches or is found in $haystack

Definition at line 1042 of file PageGenerator.php.

References MathUtility\canBeInterpretedAsInteger(), and elseif.

Referenced by TypoScriptFrontendController\calculateLinkVars().

static 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.
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8, use JS directly

Definition at line 174 of file PageGenerator.php.

References $GLOBALS, and GeneralUtility\deprecationLog().

static stripIntObjectPlaceholder ( $searchString,
$intObjects 
)
staticprotected

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

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

Definition at line 999 of file PageGenerator.php.

Member Data Documentation

const NO_PAGE_TITLE = 2

Do not render title tag Typoscript setting: [config][noPageTitle]

Definition at line 39 of file PageGenerator.php.