‪TYPO3CMS  9.5
TYPO3\CMS\Frontend\Page\PageGenerator Class Reference

Static Public Member Functions

static renderContent ()
 
static renderContentWithHeader ($pageContent)
 
static string inline2TempFile ($str, $ext)
 
static bool isAllowedLinkVarValue ($haystack, $needle)
 
static generatePageTitle ()
 

Public Attributes

const NO_PAGE_TITLE = 2
 

Static Protected Member Functions

static stripIntObjectPlaceholder (&$searchString, &$intObjects)
 
static generateMetaTagHtml (array $metaTagTypoScript, ContentObjectRenderer $cObj)
 
static PageRenderer getPageRenderer ()
 
static addCssToPageRenderer ($cssStyles, $excludeFromConcatenation=false, $inlineBlockName='TSFEinlineStyle')
 
static getCurrentSiteLanguage ()
 

Detailed Description

Class for starting TypoScript page generation

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

Deprecated:
‪this class will be removed in TYPO3 v10.0, as all functionality has been built in RequestHandler already.

Definition at line 37 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$cssStyles‪the inline CSS styling
bool$excludeFromConcatenation‪option to see if it should be concatenated
string$inlineBlockName‪the block name to add it

Definition at line 1017 of file PageGenerator.php.

References $GLOBALS, TYPO3\CMS\Core\Page\PageRenderer\addCssFile(), TYPO3\CMS\Core\Page\PageRenderer\addCssInlineBlock(), and TYPO3\CMS\Frontend\Page\PageGenerator\getPageRenderer().

Referenced by TYPO3\CMS\Frontend\Page\PageGenerator\renderContentWithHeader().

◆ generateMetaTagHtml()

static TYPO3\CMS\Frontend\Page\PageGenerator::generateMetaTagHtml ( array  $metaTagTypoScript,
ContentObjectRenderer  $cObj 
)
staticprotected

Generate meta tags from meta tag TypoScript

Parameters
array$metaTagTypoScript‪TypoScript configuration for meta tags (e.g. $GLOBALS['TSFE']->pSetup['meta.'])
ContentObjectRenderer$cObj

Definition at line 960 of file PageGenerator.php.

References TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap().

◆ generatePageTitle()

static TYPO3\CMS\Frontend\Page\PageGenerator::generatePageTitle ( )
static

Generate title for page. Takes the settings [config][noPageTitle], [config][pageTitleFirst], [config][titleTagFunction] [config][pageTitleSeparator] and [config][noPageTitle] into account. Furthermore $GLOBALS[TSFE]->altPageTitle is observed.

Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0, as TSFE->generatePageTitle() should be used instead.

Definition at line 948 of file PageGenerator.php.

References $GLOBALS.

◆ getCurrentSiteLanguage()

static TYPO3\CMS\Frontend\Page\PageGenerator::getCurrentSiteLanguage ( )
staticprotected

Returns the currently configured "site language" if a site is configured (= resolved) in the current request.

Definition at line 1040 of file PageGenerator.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Frontend\Page\PageGenerator\renderContentWithHeader().

◆ getPageRenderer()

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

Definition at line 1005 of file PageGenerator.php.

Referenced by TYPO3\CMS\Frontend\Page\PageGenerator\addCssToPageRenderer().

◆ inline2TempFile()

static string 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$str‪CSS styles / JavaScript to write to file.
string$ext‪Extension: "css" or "js
Returns
‪string <script> or <link> tag for the file.
Deprecated:
‪since TYPO3 v9.4, will be removed in TYPO3 v10.0. This functionality is now within TYPO3's Frontend Request Handler.

Definition at line 875 of file PageGenerator.php.

References TYPO3\CMS\Core\Core\Environment\getPublicPath().

◆ isAllowedLinkVarValue()

static bool 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$haystack‪The string in which to find $needle
string$needle‪The string to find in $haystack
Returns
‪bool Returns TRUE if $needle matches or is found in $haystack
Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0, is now called within TSFE itself, if needed outside the regular calculations, reimplement the method on your own.

Definition at line 904 of file PageGenerator.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().

◆ renderContent()

static TYPO3\CMS\Frontend\Page\PageGenerator::renderContent ( )
static

Rendering the page content

Deprecated:
‪since TYPO3 v9.4 will be removed in TYPO3 v10.0. This functionality is now within RequestHandler.

Definition at line 50 of file PageGenerator.php.

References $GLOBALS, and TYPO3\CMS\Frontend\Page\PageGenerator\renderContentWithHeader().

◆ renderContentWithHeader()

◆ 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$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 859 of file PageGenerator.php.

Referenced by TYPO3\CMS\Frontend\Page\PageGenerator\renderContentWithHeader().

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]

Deprecated:
‪will not be used anymore, and will be removed in TYPO3 v10.0.

Definition at line 44 of file PageGenerator.php.