TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Frontend\Page\PageGenerator Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Page\PageGenerator:
TSpagegen TYPO3\CMS\Frontend\Tests\Unit\Page\Fixtures\PageGeneratorFixture

Static Public Member Functions

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

Public Attributes

const NO_PAGE_TITLE = 2
 

Static Protected Member Functions

static stripIntObjectPlaceholder (&$searchString, &$intObjects)
 
static initializeSearchWordDataInTsfe ()
 

Detailed Description

Class for starting TypoScript page generation

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

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 30 of file PageGenerator.php.

Member Function Documentation

◆ generatePageTitle()

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

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

Returns
void

Definition at line 1090 of file PageGenerator.php.

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

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

◆ getIncFiles()

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

References $GLOBALS.

◆ initializeSearchWordDataInTsfe()

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

Fills the sWordList property and builds the regular expression in TSFE that can be used to split strings by the submitted search words.

See also
::sWordList
::sWordRegEx

Definition at line 1152 of file PageGenerator.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\_GP().

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

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

◆ 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
boolean Returns TRUE if $needle matches or is found in $haystack

Definition at line 1048 of file PageGenerator.php.

◆ JSeventFunctions()

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

References $GLOBALS.

◆ pagegenInit()

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

◆ renderContent()

◆ 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 1007 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 36 of file PageGenerator.php.