TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Frontend\Page\PageGenerator Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Page\PageGenerator:
TYPO3\CMS\Frontend\Tests\Unit\Page\Fixtures\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 34 of file PageGenerator.php.

Member Function Documentation

◆ addCssToPageRenderer()

static TYPO3\CMS\Frontend\Page\PageGenerator::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 1217 of file PageGenerator.php.

References $GLOBALS.

◆ getPageRenderer()

static TYPO3\CMS\Frontend\Page\PageGenerator::getPageRenderer ( )
staticprotected
Returns
PageRenderer

Definition at line 1205 of file PageGenerator.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ inline2TempFile()

static TYPO3\CMS\Frontend\Page\PageGenerator::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 1015 of file PageGenerator.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\writeFileToTypo3tempDir().

◆ isAllowedLinkVarValue()

static TYPO3\CMS\Frontend\Page\PageGenerator::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 1043 of file PageGenerator.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\_GP(), TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap().

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\calculateLinkVars().

◆ JSeventFunctions()

◆ stripIntObjectPlaceholder()

static TYPO3\CMS\Frontend\Page\PageGenerator::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 1000 of file PageGenerator.php.

Member Data Documentation

◆ NO_PAGE_TITLE

const TYPO3\CMS\Frontend\Page\PageGenerator::NO_PAGE_TITLE = 2

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

Definition at line 40 of file PageGenerator.php.