TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController Class Reference

Public Member Functions

 __construct ($TYPO3_CONF_VARS, $id, $type, $no_cache='', $cHash='', $jumpurl='', $MP='', $RDCT='')
 
 setContentType ($contentType)
 
 connectToDB ()
 
 sendRedirect ()
 
 getPageRenderer ()
 
 initFEuser ()
 
 initUserGroups ()
 
 isUserOrGroupSet ()
 
 checkAlternativeIdMethods ()
 
 clear_preview ()
 
 isBackendUserLoggedIn ()
 
 determineId ()
 
 fetch_the_id ()
 
 getPageAndRootline ()
 
 getPageShortcut ($SC, $mode, $thisUid, $itera=20, $pageLog=[], $disableGroupCheck=false)
 
 checkRootlineForIncludeSection ()
 
 checkEnableFields ($row, $bypassGroupCheck=false)
 
 checkPageGroupAccess ($row, $groupList=null)
 
 checkPagerecordForIncludeSection ($row)
 
 checkIfLoginAllowedInBranch ()
 
 getPageAccessFailureReasons ()
 
 setIDfromArgV ()
 
 getPageAndRootlineWithDomain ($domainStartPage)
 
 setSysPageWhereClause ()
 
 findDomainRecord ($recursive=false)
 
 pageUnavailableAndExit ($reason='', $header='')
 
 pageNotFoundAndExit ($reason='', $header='')
 
 checkPageUnavailableHandler ()
 
 pageUnavailableHandler ($code, $header, $reason)
 
 pageNotFoundHandler ($code, $header='', $reason='')
 
 pageErrorHandler ($code, $header='', $reason='')
 
 checkAndSetAlias ()
 
 mergingWithGetVars ($GET_VARS)
 
 makeCacheHash ()
 
 reqCHash ()
 
 initTemplate ()
 
 getFromCache ()
 
 getFromCache_queryRow ()
 
 headerNoCache ()
 
 getHash ()
 
 getLockHash ()
 
 getConfigArray ()
 
 settingLanguage ()
 
 settingLocale ()
 
 handleDataSubmission ()
 
 setExternalJumpUrl ()
 
 jumpUrl ()
 
 redirectToExternalUrl ()
 
 setUrlIdToken ()
 
 calculateLinkVars ()
 
 checkPageForMountpointRedirect ()
 
 checkPageForShortcutRedirect ()
 
 isGeneratePage ()
 
 tempPageCacheContent ()
 
 realPageCacheContent ()
 
 setPageCacheContent ($content, $data, $expirationTstamp)
 
 clearPageCacheContent ()
 
 clearPageCacheContent_pidList ($pidList)
 
 setSysLastChanged ()
 
 acquirePageGenerationLock (&$lockObj, $key)
 
 releasePageGenerationLock (&$lockObj)
 
 releaseLocks ()
 
 addCacheTags (array $tags)
 
 generatePage_preProcessing ()
 
 generatePage_whichScript ()
 
 generatePage_postProcessing ()
 
 INTincScript_loadJSCode ()
 
 isINTincScript ()
 
 doXHTML_cleaning ()
 
 doLocalAnchorFix ()
 
 isOutputting ()
 
 processOutput ()
 
 sendCacheHeaders ()
 
 isStaticCacheble ()
 
 contentStrReplace ()
 
 storeSessionData ()
 
 setParseTime ()
 
 previewInfo ()
 
 hook_eofe ()
 
 beLoginLinkIPList ()
 
 addTempContentHttpHeaders ()
 
 encryptCharcode ($n, $start, $end, $offset)
 
 encryptEmail ($string, $back=false)
 
 checkFileInclude ($incFile)
 
 newCObj ()
 
 baseUrlWrap ($url)
 
 logDeprecatedTyposcript ($typoScriptProperty, $explanation='')
 
 updateMD5paramsRecord ($hash)
 
 prefixLocalAnchorsWithScript ()
 
 doWorkspacePreview ()
 
 whichWorkspace ($returnTitle=false)
 
 includeLibraries (array $libraries)
 
 getStorageSiterootPids ()
 
 getPagesTSconfig ()
 
 setJS ($key, $content='')
 
 setCSS ($key, $content)
 
 uniqueHash ($str='')
 
 set_no_cache ($reason='', $internal=false)
 
 set_cache_timeout_default ($seconds)
 
 getUniqueId ($desired='')
 
 sL ($input)
 
 getLLL ($index, $LOCAL_LANG)
 
 csConv ($str, $from='')
 
 convOutputCharset ($content)
 
 convPOSTCharset ()
 
 domainNameMatchesCurrentRequest ($domainName)
 
 getDomainDataForPid ($targetPid)
 
 getDomainNameForPid ($targetPid)
 
 getRequestedId ()
 

Public Attributes

 $id = ''
 
 $type = ''
 
 $cHash = ''
 
 $no_cache = false
 
 $rootLine = ''
 
 $page = ''
 
 $contentPid = 0
 
 $sys_page = ''
 
 $jumpurl = ''
 
 $pageNotFound = 0
 
 $domainStartPage = 0
 
 $pageAccessFailureHistory = []
 
 $MP = ''
 
 $RDCT = ''
 
 $page_cache_reg1 = 0
 
 $siteScript = ''
 
 $fe_user = ''
 
 $loginUser = false
 
 $gr_list = ''
 
 $beUserLogin = false
 
 $workspacePreview = 0
 
 $loginAllowedInBranch = true
 
 $loginAllowedInBranch_mode = ''
 
 $ADMCMD_preview_BEUSER_uid = 0
 
 $fePreview = 0
 
 $showHiddenPage = false
 
 $showHiddenRecords = false
 
 $simUserGroup = 0
 
 $TYPO3_CONF_VARS = []
 
 $config = []
 
 $tmpl = null
 
 $cacheTimeOutDefault = false
 
 $cacheContentFlag = false
 
 $cacheExpires = 0
 
 $isClientCachable = false
 
 $all = []
 
 $sPre = ''
 
 $pSetup = ''
 
 $newHash = ''
 
 $getMethodUrlIdToken = ''
 
 $no_cacheBeforePageGen = false
 
 $tempContent = false
 
 $forceTemplateParsing = false
 
 $cHash_array = []
 
 $pagesTSconfig = ''
 
 $additionalHeaderData = []
 
 $additionalFooterData = []
 
 $additionalJavaScript = []
 
 $additionalCSS = []
 
 $JSeventFuncCalls
 
 $JSCode
 
 $inlineJS
 
 $divSection = ''
 
 $defaultBodyTag = '<body>'
 
 $debug = ''
 
 $intTarget = ''
 
 $extTarget = ''
 
 $fileTarget = ''
 
 $MP_defaults = []
 
 $spamProtectEmailAddresses = 0
 
 $absRefPrefix = ''
 
 $compensateFieldWidth = ''
 
 $lockFilePath = ''
 
 $ATagParams = ''
 
 $sWordRegEx = ''
 
 $sWordList = ''
 
 $linkVars = ''
 
 $excludeCHashVars = ''
 
 $displayEditIcons = ''
 
 $displayFieldEditIcons = ''
 
 $sys_language_uid = 0
 
 $sys_language_mode = ''
 
 $sys_language_content = 0
 
 $sys_language_contentOL = 0
 
 $sys_language_isocode = ''
 
 $applicationData = []
 
 $register = []
 
 $registerStack = []
 
 $cObjectDepthCounter = 50
 
 $recordRegister = []
 
 $currentRecord = ''
 
 $accessKey = []
 
 $imagesOnPage = []
 
 $lastImageInfo = []
 
 $uniqueCounter = 0
 
 $uniqueString = ''
 
 $indexedDocTitle = ''
 
 $altPageTitle = ''
 
 $baseUrl = ''
 
 $anchorPrefix = ''
 
 $cObj = ''
 
 $content = ''
 
 $clientInfo = ''
 
 $scriptParseTime = 0
 
 $csConvObj
 
 $defaultCharSet = 'utf-8'
 
 $renderCharset = 'utf-8'
 
 $metaCharset = 'utf-8'
 
 $localeCharset = ''
 
 $lang = ''
 
 $LL_labels_cache = []
 
 $LL_files_cache = []
 
 $xhtmlDoctype = ''
 
 $xhtmlVersion
 
 $dtdAllowsFrames
 

Protected Member Functions

 initPageRenderer ()
 
 initCaches ()
 
 determineIdIsHiddenPage ()
 
 createHashBase ($createLockHashBase=false)
 
 updateRootLinesWithTranslations ()
 
 checkTranslatedShortcut ()
 
 regeneratePageTitle ()
 
 recursivelyReplaceIntPlaceholdersInContent ()
 
 INTincScript_includeLibs ($INTiS_config)
 
 INTincScript_process ($INTiS_config)
 
 disableCache ()
 
 calculatePageCacheTimeout ()
 
 getCurrentPageCacheConfiguration ()
 
 getFirstTimeValueForRecord ($tableDef, $now)
 
 acquireLock ($type, $key)
 
 releaseLock ($type)
 
 getBackendUser ()
 
 getDatabaseConnection ()
 
 getTimeTracker ()
 
 getDocumentTemplate ()
 

Protected Attributes

 $originalMountPointPage = null
 
 $originalShortcutPage = null
 
 $activeUrlHandlers = []
 
 $languageDependencies = []
 
 $locks = []
 
 $pageRenderer = null
 
 $pageCache
 
 $pageCacheTags = []
 
 $cacheHash
 
 $domainDataCache = []
 
 $contentType = 'text/html'
 
 $requestedId
 

Private Attributes

 $usedUniqueIds = []
 

Detailed Description

Class for the built TypoScript based frontend. Instantiated in as the global object TSFE.

Main frontend class, instantiated in as the global object TSFE.

This class has a lot of functions and internal variable which are used from

The class is instantiated as $GLOBALS['TSFE'] in .

The use of this class should be inspired by the order of function calls as found in .

Definition at line 64 of file TypoScriptFrontendController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::__construct (   $TYPO3_CONF_VARS,
  $id,
  $type,
  $no_cache = '',
  $cHash = '',
  $jumpurl = '',
  $MP = '',
  $RDCT = '' 
)

Class constructor Takes a number of GET/POST input variable as arguments and stores them internally. The processing of these variables goes on later in this class. Also sets internal clientInfo array (browser information) and a unique string (->uniqueString) for this script instance; A md5 hash of the microtime()

Parameters
array$TYPO3_CONF_VARSThe global $TYPO3_CONF_VARS array. Will be set internally in ->TYPO3_CONF_VARS
mixed$idThe value of GeneralUtility::_GP('id')
int$typeThe value of GeneralUtility::_GP('type')
bool | string$no_cacheThe value of GeneralUtility::_GP('no_cache'), evaluated to 1/0
string$cHashThe value of GeneralUtility::_GP('cHash')
string$jumpurlThe value of GeneralUtility::_GP('jumpurl'), unused since TYPO3 CMS 7. Will have no effect in TYPO3 CMS 8 anymore
string$MPThe value of GeneralUtility::_GP('MP')
string$RDCTThe value of GeneralUtility::_GP('RDCT')
See also

Definition at line 902 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$cHash, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$id, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$jumpurl, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$MP, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$no_cache, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$RDCT, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$type, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$TYPO3_CONF_VARS, TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction(), TYPO3\CMS\Core\Utility\GeneralUtility\clientInfo(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\disableCache(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getTimeTracker(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\initCaches(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\initPageRenderer(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\Utility\GeneralUtility\SYSLOG_SEVERITY_WARNING.

Member Function Documentation

◆ acquireLock()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::acquireLock (   $type,
  $key 
)
protected

◆ acquirePageGenerationLock()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::acquirePageGenerationLock ( $lockObj,
  $key 
)

Lock the page generation process The lock is used to queue page requests until this page is successfully stored in the cache.

Parameters
Locker$lockObjReference to a locking object
string$keyString to identify the lock in the system
Returns
bool Returns TRUE if the lock could be obtained, FALSE otherwise (= process had to wait for existing lock to be released)
See also
releasePageGenerationLock()
Deprecated:
since TYPO3 CMS 7, will be removed with TYPO3 CMS 8

Definition at line 3280 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\headerNoCache(), TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), TYPO3\CMS\Core\Utility\GeneralUtility\SYSLOG_SEVERITY_ERROR, and TYPO3\CMS\Core\Utility\GeneralUtility\SYSLOG_SEVERITY_INFO.

◆ addCacheTags()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::addCacheTags ( array  $tags)

Adds tags to this page's cache entry, you can then f.e. remove cache entries by tag

Parameters
array$tagsAn array of tag
Returns
void

Definition at line 3351 of file TypoScriptFrontendController.php.

◆ addTempContentHttpHeaders()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::addTempContentHttpHeaders ( )

Sends HTTP headers for temporary content. These headers prevent search engines from caching temporary content and asks them to revisit this page again.

Returns
void

Definition at line 3965 of file TypoScriptFrontendController.php.

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

◆ baseUrlWrap()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::baseUrlWrap (   $url)

Prefixing the input URL with ->baseUrl If ->baseUrl is set and the input url is not absolute in some way. Designed as a wrapper functions for use with all frontend links that are processed by JavaScript (for "realurl" compatibility!). So each time a URL goes into window.open, window.location.href or otherwise, wrap it with this function!

Parameters
string$urlInput URL, relative or absolute
Returns
string Processed input value.

Definition at line 4118 of file TypoScriptFrontendController.php.

◆ beLoginLinkIPList()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::beLoginLinkIPList ( )

Returns a link to the BE login screen with redirect to the front-end

Returns
string HTML, a tag for a link to the backend.

Definition at line 3942 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\cmpIP(), and TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv().

◆ calculateLinkVars()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::calculateLinkVars ( )

◆ calculatePageCacheTimeout()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::calculatePageCacheTimeout ( )
protected

Calculates page cache timeout according to the records with starttime/endtime on the page.

Returns
int Page cache timeout or PHP_INT_MAX if cannot be determined

Definition at line 4683 of file TypoScriptFrontendController.php.

References $GLOBALS, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getCurrentPageCacheConfiguration(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getFirstTimeValueForRecord().

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

◆ checkAlternativeIdMethods()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkAlternativeIdMethods ( )

Provides ways to bypass the '?id=[xxx]&type=[xx]' format, using either PATH_INFO or virtual HTML-documents (using Apache mod_rewrite)

Two options: 1) Use PATH_INFO (also Apache) to extract id and type from that var. Does not require any special modules compiled with apache. (less typical) 2) Using hook which enables features like those provided from "realurl" extension (AKA "Speaking URLs")

Returns
void

Definition at line 1172 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction(), and TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv().

◆ checkAndSetAlias()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkAndSetAlias ( )

Fetches the integer page id for a page alias. Looks if ->id is not an integer and if so it will search for a page alias and if found the page uid of that page is stored in $this->id

Returns
void private

Definition at line 2215 of file TypoScriptFrontendController.php.

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

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

◆ checkEnableFields()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkEnableFields (   $row,
  $bypassGroupCheck = false 
)

Checks page record for enableFields Returns TRUE if enableFields does not disable the page record. Takes notice of the ->showHiddenPage flag and uses SIM_ACCESS_TIME for start/endtime evaluation

Parameters
array$rowThe page record to evaluate (needs fields: hidden, starttime, endtime, fe_group)
bool$bypassGroupCheckBypass group-check
Returns
bool TRUE, if record is viewable.
See also
TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::getTreeList(), checkPagerecordForIncludeSection()

Definition at line 1793 of file TypoScriptFrontendController.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkPageGroupAccess().

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

◆ checkFileInclude()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkFileInclude (   $incFile)

Checks if a PHPfile may be included.

Parameters
string$incFileRelative path to php file
Returns
bool Returns TRUE if $GLOBALS['TYPO3_CONF_VARS']['FE']['noPHPscriptInclude'] is not set OR if the file requested for inclusion is found in one of the allowed paths.
Deprecated:
since TYPO3 CMS 7, will be removed with TYPO3 CMS 8

Definition at line 4045 of file TypoScriptFrontendController.php.

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

◆ checkIfLoginAllowedInBranch()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkIfLoginAllowedInBranch ( )

Checks if logins are allowed in the current branch of the page tree. Traverses the full root line and returns TRUE if logins are OK, otherwise FALSE (and then the login user must be unset!)

Returns
bool returns TRUE if logins are OK, otherwise FALSE (and then the login user must be unset!)

Definition at line 1849 of file TypoScriptFrontendController.php.

References $a.

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

◆ checkPageForMountpointRedirect()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkPageForMountpointRedirect ( )

Redirect to target page if the current page is an overlaid mountpoint.

If the current page is of type mountpoint and should be overlaid with the contents of the mountpoint page and is accessed directly, the user will be redirected to the mountpoint context.

Returns
void

Definition at line 3035 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Page\PageRepository\DOKTYPE_MOUNTPOINT.

◆ checkPageForShortcutRedirect()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkPageForShortcutRedirect ( )

◆ checkPageGroupAccess()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkPageGroupAccess (   $row,
  $groupList = null 
)

Check group access against a page record

Parameters
array$rowThe page record to evaluate (needs field: fe_group)
mixed$groupListList of group id's (comma list or array). Default is $this->gr_list
Returns
bool TRUE, if group access is granted. private

Definition at line 1819 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$gr_list.

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkEnableFields(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPageAccessFailureReasons().

◆ checkPagerecordForIncludeSection()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkPagerecordForIncludeSection (   $row)

Checks page record for include section

Parameters
array$rowThe page record to evaluate (needs fields: extendToSubpages + hidden, starttime, endtime, fe_group)
Returns
bool Returns TRUE if either extendToSubpages is not checked or if the enableFields does not disable the page record. private
See also
checkEnableFields(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::getTreeList(), checkRootlineForIncludeSection()

Definition at line 1839 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkEnableFields().

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

◆ checkPageUnavailableHandler()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkPageUnavailableHandler ( )

Checks whether the pageUnavailableHandler should be used. To be used, pageUnavailable_handling must be set and devIPMask must not match the current visitor's IP address.

Returns
bool TRUE/FALSE whether the pageUnavailable_handler should be used.

Definition at line 2024 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\cmpIP(), and TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv().

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\connectToDB(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\fetch_the_id(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getConfigArray(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPageAndRootline().

◆ checkRootlineForIncludeSection()

◆ checkTranslatedShortcut()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkTranslatedShortcut ( )
protected

Checks whether a translated shortcut page has a different shortcut target than the original language page. If that is the case, things get corrected to follow that alternative shortcut

Returns
void

Definition at line 2853 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\fetch_the_id(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPageShortcut().

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

◆ clear_preview()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::clear_preview ( )

Clears the preview-flags, sets sim_exec_time to current time. Hidden pages must be hidden as default, $GLOBALS['SIM_EXEC_TIME'] is set to $GLOBALS['EXEC_TIME'] in bootstrap initializeGlobalTimeVariables(). Alter it by adding or subtracting seconds.

Returns
void

Definition at line 1191 of file TypoScriptFrontendController.php.

References $GLOBALS.

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

◆ clearPageCacheContent()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::clearPageCacheContent ( )

◆ clearPageCacheContent_pidList()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::clearPageCacheContent_pidList (   $pidList)

Clears cache content for a list of page ids

Parameters
string$pidListA list of INTEGER numbers which points to page uids for which to clear entries in the cache_pages cache (page content cache)
Returns
void

Definition at line 3247 of file TypoScriptFrontendController.php.

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

◆ connectToDB()

◆ contentStrReplace()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::contentStrReplace ( )

Substitute various tokens in content. This should happen only if the content is not cached by proxies or client browsers.

Returns
void

Definition at line 3835 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$getMethodUrlIdToken, and TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction().

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

◆ convOutputCharset()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::convOutputCharset (   $content)

Converts input string from renderCharset to metaCharset IF the two charsets are different.

Parameters
string$contentContent to be converted.
Returns
string Converted content string.

Definition at line 4657 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$content.

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\generatePage_postProcessing(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\INTincScript_process(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\regeneratePageTitle().

◆ convPOSTCharset()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::convPOSTCharset ( )

Converts the $_POST array from metaCharset (page HTML charset from input form) to renderCharset (internal processing) IF the two charsets are different.

Returns
void

Definition at line 4670 of file TypoScriptFrontendController.php.

References $GLOBALS.

◆ createHashBase()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::createHashBase (   $createLockHashBase = false)
protected

Calculates the cache-hash (or the lock-hash) This hash is unique to the template, the variables ->id, ->type, ->gr_list (list of groups), ->MP (Mount Points) and cHash array Used to get and later store the cached data.

Parameters
bool$createLockHashBaseWhether to create the lock hash, which doesn't contain the "this->all" (the template information)
Returns
string the serialized hash base

Definition at line 2544 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$all, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$cHash_array, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$domainStartPage, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$MP, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$type, and TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction().

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getHash(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getLockHash().

◆ csConv()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::csConv (   $str,
  $from = '' 
)

Converts the charset of the input string if applicable. The "to" charset is determined by the currently used charset for the page which is "utf-8" by default or set by $GLOBALS['TSFE']->config['config']['renderCharset'] Only if there is a difference between the two charsets will a conversion be made The conversion is done real-time - no caching for performance at this point!

Parameters
string$strString to convert charset for
string$fromOptional "from" charset.
Returns
string Output string, converted if needed.
See also
CharsetConverter

Definition at line 4641 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$renderCharset.

◆ determineId()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::determineId ( )

◆ determineIdIsHiddenPage()

◆ disableCache()

◆ doLocalAnchorFix()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::doLocalAnchorFix ( )

Returns the mode of Local Anchor prefixing

Returns
string Keyword: "all", "cached" or "output
Deprecated:
The TypoScript option "config.prefixLocalAnchors" and the according method in TSFE have been deprecated with TYPO3 CMS 7 and will be removed with TYPO3 CMS 8.

Definition at line 3660 of file TypoScriptFrontendController.php.

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

◆ domainNameMatchesCurrentRequest()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::domainNameMatchesCurrentRequest (   $domainName)

Whether the given domain name (potentially including a path segment) matches currently requested host or the host including the path segment

Parameters
string$domainName
Returns
bool

Definition at line 4850 of file TypoScriptFrontendController.php.

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

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

◆ doWorkspacePreview()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::doWorkspacePreview ( )

◆ doXHTML_cleaning()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::doXHTML_cleaning ( )

Returns the mode of XHTML cleaning

Returns
string Keyword: "all", "cached" or "output
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8; The TypoScript option "config.xhtml_cleaning" has been deprecated

Definition at line 3648 of file TypoScriptFrontendController.php.

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

◆ encryptCharcode()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::encryptCharcode (   $n,
  $start,
  $end,
  $offset 
)

Encryption (or decryption) of a single character. Within the given range the character is shifted with the supplied offset.

Parameters
int$nOrdinal of input character
int$startStart of range
int$endEnd of range
int$offsetOffset
Returns
string encoded/decoded version of character

Definition at line 3989 of file TypoScriptFrontendController.php.

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

◆ encryptEmail()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::encryptEmail (   $string,
  $back = false 
)

Encryption of email addresses for -tags See the spam protection setup in TS 'config.'

Parameters
string$stringInput string to en/decode: "blabl.nosp@m.a@bl.nosp@m.a.com
bool$backIf set, the process is reversed, effectively decoding, not encoding.
Returns
string encoded/decoded version of $string

Definition at line 4007 of file TypoScriptFrontendController.php.

References $a, and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\encryptCharcode().

◆ fetch_the_id()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::fetch_the_id ( )

Get The Page ID This gets the id of the page, checks if the page is in the domain and if the page is accessible Sets variables such as $this->sys_page, $this->loginUser, $this->gr_list, $this->id, $this->type, $this->domainStartPage

Exceptions
ServiceUnavailableException
Returns
void private

Definition at line 1445 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$domainStartPage, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$id, TYPO3\CMS\Core\Utility\GeneralUtility\_GP(), TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkAndSetAlias(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkPageUnavailableHandler(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\findDomainRecord(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPageAndRootlineWithDomain(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getTimeTracker(), TYPO3\CMS\Core\Utility\HttpUtility\HTTP_STATUS_301, TYPO3\CMS\Core\Utility\HttpUtility\HTTP_STATUS_303, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\initUserGroups(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageNotFoundAndExit(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageUnavailableAndExit(), TYPO3\CMS\Core\Utility\HttpUtility\redirect(), TYPO3\CMS\Core\Utility\HttpUtility\SCHEME_HTTP, TYPO3\CMS\Core\Utility\HttpUtility\SCHEME_HTTPS, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\set_no_cache(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\setSysPageWhereClause(), TYPO3\CMS\Core\Utility\GeneralUtility\SYSLOG_SEVERITY_ERROR, and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\whichWorkspace().

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkTranslatedShortcut(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\determineId().

◆ findDomainRecord()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::findDomainRecord (   $recursive = false)

Looking up a domain record based on HTTP_HOST

Parameters
bool$recursiveIf set, it looks "recursively" meaning that a domain like "123.456.typo3.com" would find a domain record like "typo3.com" if "123.456.typo3.com" or "456.typo3.com" did not exist.
Returns
int Returns the page id of the page where the domain record was found. private

Definition at line 1971 of file TypoScriptFrontendController.php.

References $host, and TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv().

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

◆ generatePage_postProcessing()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::generatePage_postProcessing ( )

◆ generatePage_preProcessing()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::generatePage_preProcessing ( )

◆ generatePage_whichScript()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::generatePage_whichScript ( )

Determines to include custom or pagegen.php script returns script-filename if a TypoScript (config) script is defined and should be included instead of pagegen.php

Returns
string|NULL The relative filepath of "config.pageGenScript" if found and allowed

Definition at line 3395 of file TypoScriptFrontendController.php.

◆ getBackendUser()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getBackendUser ( )
protected

◆ getConfigArray()

◆ getCurrentPageCacheConfiguration()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getCurrentPageCacheConfiguration ( )
protected

Obtains a list of table/pid pairs to consider for page caching.

TS configuration looks like this:

The cache lifetime of all pages takes starttime and endtime of news records of page 14 into account: config.cache.all = tt_news:14

The cache lifetime of page 42 takes starttime and endtime of news records of page 15 and addresses of page 16 into account: config.cache.42 = tt_news:15,tt_address:16

Returns
array Array of 'tablename:pid' pairs. There is at least a current page id in the array
See also
TypoScriptFrontendController::calculatePageCacheTimeout()

Definition at line 4715 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$id, and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

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

◆ getDatabaseConnection()

◆ getDocumentTemplate()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getDocumentTemplate ( )
protected

Returns an instance of DocumentTemplate

Returns

Definition at line 5016 of file TypoScriptFrontendController.php.

References $GLOBALS.

◆ getDomainDataForPid()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getDomainDataForPid (   $targetPid)

Obtains domain data for the target pid. Domain data is an array with 'pid', 'domainName' and 'forced' members (see sys_domain table for meaning of these fields.

Parameters
int$targetPidTarget page id
Returns
mixed Return domain data or NULL

Definition at line 4865 of file TypoScriptFrontendController.php.

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

◆ getDomainNameForPid()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getDomainNameForPid (   $targetPid)

Obtains the domain name for the target pid. If there are several domains, the first is returned.

Parameters
int$targetPidTarget page id
Returns
mixed Return domain name or NULL if not found

Definition at line 4895 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getDomainDataForPid().

◆ getFirstTimeValueForRecord()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getFirstTimeValueForRecord (   $tableDef,
  $now 
)
protected

Find the minimum starttime or endtime value in the table and pid that is greater than the current time.

Parameters
string$tableDefTable definition (format tablename:pid)
int$now"Now" time value
Exceptions

Definition at line 4736 of file TypoScriptFrontendController.php.

References $GLOBALS, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\domainNameMatchesCurrentRequest(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getDatabaseConnection(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

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

◆ getFromCache()

◆ getFromCache_queryRow()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getFromCache_queryRow ( )

◆ getHash()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getHash ( )

Calculates the cache-hash This hash is unique to the template, the variables ->id, ->type, ->gr_list (list of groups), ->MP (Mount Points) and cHash array Used to get and later store the cached data.

Returns
string MD5 hash of serialized hash base from createHashBase() private
See also
getFromCache(), getLockHash()

Definition at line 2515 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\createHashBase().

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\generatePage_preProcessing(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getFromCache().

◆ getLLL()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getLLL (   $index,
  $LOCAL_LANG 
)

Returns 'locallang' label - may need initializing by initLLvars

Parameters
string$indexLocal_lang key for which to return label (language is determined by $this->lang)
array$LOCAL_LANGThe locallang array in which to search
Returns
string Label value of $index key.

Definition at line 4587 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$lang, $locales, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

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

◆ getLockHash()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getLockHash ( )

Calculates the lock-hash This hash is unique to the above hash, except that it doesn't contain the template information in $this->all.

Returns
string MD5 hash private
See also
getFromCache(), getHash()

Definition at line 2528 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\createHashBase().

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

◆ getPageAccessFailureReasons()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getPageAccessFailureReasons ( )

Analysing $this->pageAccessFailureHistory into a summary array telling which features disabled display and on which pages and conditions. That data can be used inside a page-not-found handler

Returns
array Summary of why page access was not allowed.

Definition at line 1878 of file TypoScriptFrontendController.php.

References $GLOBALS, and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkPageGroupAccess().

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

◆ getPageAndRootline()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getPageAndRootline ( )

Gets the page and rootline arrays based on the id, $this->id

If the id does not correspond to a proper page, the 'previous' valid page in the rootline is found If the page is a shortcut (doktype=4), the ->id is loaded with that id

Whether or not the ->id is changed to the shortcut id or the previous id in rootline (eg if a page is hidden), the ->page-array and ->rootline is found and must also be valid.

Sets or manipulates internal variables such as: $this->id, $this->page, $this->rootLine, $this->MP, $this->pageNotFound

Exceptions
ServiceUnavailableException
PageNotFoundException
Returns
void private

Definition at line 1560 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$page, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkPageUnavailableHandler(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkRootlineForIncludeSection(), TYPO3\CMS\Frontend\Page\PageRepository\DOKTYPE_MOUNTPOINT, TYPO3\CMS\Frontend\Page\PageRepository\DOKTYPE_SHORTCUT, TYPO3\CMS\Frontend\Page\PageRepository\DOKTYPE_SPACER, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPageShortcut(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageNotFoundAndExit(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageUnavailableAndExit(), TYPO3\CMS\Core\Utility\GeneralUtility\SYSLOG_SEVERITY_ERROR, and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\whichWorkspace().

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

◆ getPageAndRootlineWithDomain()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getPageAndRootlineWithDomain (   $domainStartPage)

Gets ->page and ->rootline information based on ->id. ->id may change during this operation. If not inside domain, then default to first page in domain.

Parameters
int$domainStartPagePage uid of the page where the found domain record is (pid of the domain record)
Returns
void private

Definition at line 1930 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$domainStartPage, and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPageAndRootline().

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

◆ getPageRenderer()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getPageRenderer ( )

◆ getPageShortcut()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getPageShortcut (   $SC,
  $mode,
  $thisUid,
  $itera = 20,
  $pageLog = [],
  $disableGroupCheck = false 
)

Get page shortcut; Finds the records pointed to by input value $SC (the shortcut value)

Parameters
int$SCThe value of the "shortcut" field from the pages record
int$modeThe shortcut mode: 1 will select first subpage, 2 a random subpage, 3 the parent page; default is the page pointed to by $SC
int$thisUidThe current page UID of the page which is a shortcut
int$iteraSafety feature which makes sure that the function is calling itself recursively max 20 times (since this function can find shortcuts to other shortcuts to other shortcuts...)
array$pageLogAn array filled with previous page uids tested by the function - new page uids are evaluated against this to avoid going in circles.
bool$disableGroupCheckIf true, the group check is disabled when fetching the target page (needed e.g. for menu generation)
Exceptions

Definition at line 1685 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$page, TYPO3\CMS\Frontend\Page\PageRepository\DOKTYPE_BE_USER_SECTION, TYPO3\CMS\Frontend\Page\PageRepository\DOKTYPE_SHORTCUT, TYPO3\CMS\Core\Utility\GeneralUtility\intExplode(), TYPO3\CMS\Frontend\Page\PageRepository\SHORTCUT_MODE_FIRST_SUBPAGE, TYPO3\CMS\Frontend\Page\PageRepository\SHORTCUT_MODE_PARENT_PAGE, TYPO3\CMS\Frontend\Page\PageRepository\SHORTCUT_MODE_RANDOM_SUBPAGE, and TYPO3\CMS\Core\Utility\GeneralUtility\SYSLOG_SEVERITY_ERROR.

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkTranslatedShortcut(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPageAndRootline().

◆ getPagesTSconfig()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getPagesTSconfig ( )

◆ getRequestedId()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getRequestedId ( )

Fetches the originally requested id, fallsback to $this->id

Returns
int the originally requested page uid
See also
fetch_the_id()

Definition at line 4907 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$id.

◆ getStorageSiterootPids()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getStorageSiterootPids ( )

Traverses the ->rootLine and returns an array with the first occurrance of storage pid and siteroot pid

Returns
array Array with keys '_STORAGE_PID' and '_SITEROOT' set to the first occurrences found.
Deprecated:
since TYPO3 CMS 7, will be removed with TYPO3 CMS 8. The usage of "storage_pid" is discouraged, the option for "is_siteroot" is handled via the RootlineUtility directly.

Definition at line 4259 of file TypoScriptFrontendController.php.

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

◆ getTimeTracker()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getTimeTracker ( )
protected

◆ getUniqueId()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getUniqueId (   $desired = '')

Returns a unique id to be used as a XML ID (in HTML / XHTML mode)

Parameters
string$desiredThe desired id. If already used it is suffixed with a number
Returns
string The unique id

Definition at line 4491 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\uniqueHash().

◆ handleDataSubmission()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::handleDataSubmission ( )

Handle data submission This is done at this point, because we need the config values

Returns
void

Definition at line 2876 of file TypoScriptFrontendController.php.

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

◆ headerNoCache()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::headerNoCache ( )

Detecting if shift-reload has been clicked Will not be called if re-generation of page happens by other reasons (for instance that the page is not in cache yet!) Also, a backend user MUST be logged in for the shift-reload to be detected due to DoS-attack-security reasons.

Returns
bool If shift-reload in client browser has been clicked, disable getting cached page (and regenerate it).

Definition at line 2488 of file TypoScriptFrontendController.php.

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

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\acquirePageGenerationLock(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getFromCache(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\releasePageGenerationLock(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\tempPageCacheContent().

◆ hook_eofe()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::hook_eofe ( )

End-Of-Frontend hook

Returns
void

Definition at line 3926 of file TypoScriptFrontendController.php.

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

◆ includeLibraries()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::includeLibraries ( array  $libraries)

Includes a comma-separated list of library files by PHP function include_once.

Parameters
array$librariesThe libraries to be included.
Returns
void
Todo:
deprecate this method

Definition at line 4232 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getTimeTracker().

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

◆ initCaches()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::initCaches ( )
protected

◆ initFEuser()

◆ initPageRenderer()

◆ initTemplate()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::initTemplate ( )

Initialize the TypoScript template parser

Returns
void

Definition at line 2334 of file TypoScriptFrontendController.php.

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

◆ initUserGroups()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::initUserGroups ( )

Initializes the front-end user groups. Sets ->loginUser and ->gr_list based on front-end user status.

Returns
void

Definition at line 1116 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$showHiddenRecords, and TYPO3\CMS\Core\Utility\GeneralUtility\devLog().

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

◆ INTincScript_includeLibs()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::INTincScript_includeLibs (   $INTiS_config)
protected

Include libraries for uncached objects.

Parameters
array$INTiS_config$GLOBALS['TSFE']->config['INTincScript'] or part of it
Returns
void
See also
INTincScript()

Definition at line 3538 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\includeLibraries(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

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

◆ INTincScript_loadJSCode()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::INTincScript_loadJSCode ( )

◆ INTincScript_process()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::INTincScript_process (   $INTiS_config)
protected

Processes the INTinclude-scripts and substitue in content.

Parameters
array$INTiS_config$GLOBALS['TSFE']->config['INTincScript'] or part of it
Returns
void
See also
INTincScript()

Definition at line 3555 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\convOutputCharset(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getTimeTracker().

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

◆ isBackendUserLoggedIn()

◆ isGeneratePage()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::isGeneratePage ( )

Returns TRUE if the page should be generated. That is if no URL handler is active and the cacheContentFlag is not set.

Returns
bool

Definition at line 3094 of file TypoScriptFrontendController.php.

◆ isINTincScript()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::isINTincScript ( )

Determines if there are any INTincScripts to include.

Returns
bool Returns TRUE if scripts are found and no URL handler is active.

Definition at line 3637 of file TypoScriptFrontendController.php.

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\isStaticCacheble(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\sendCacheHeaders().

◆ isOutputting()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::isOutputting ( )

Determines if content should be outputted. Outputting content is done only if no URL handler is active and no hook disables the output.

Returns
bool Returns TRUE if no redirect URL is set and no hook disables the output.

Definition at line 3677 of file TypoScriptFrontendController.php.

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

◆ isStaticCacheble()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::isStaticCacheble ( )

Reporting status whether we can send cache control headers for proxy caching or publishing to static files

Rules are: no_cache cannot be set: If it is, the page might contain dynamic content and should never be cached. There can be no USER_INT objects on the page ("isINTincScript()") because they implicitly indicate dynamic content There can be no logged in user because user sessions are based on a cookie and thereby does not offer client caching a chance to know if the user is logged in. Actually, there will be a reverse problem here; If a page will somehow change when a user is logged in he may not see it correctly if the non-login version sent a cache-header! So do NOT use cache headers in page sections where user logins change the page content. (unless using such as realurl to apply a prefix in case of login sections)

Returns
bool

Definition at line 3824 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\isINTincScript(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\isUserOrGroupSet().

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

◆ isUserOrGroupSet()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::isUserOrGroupSet ( )

Checking if a user is logged in or a group constellation different from "0,-1"

Returns
bool TRUE if either a login user is found (array fe_user->user) OR if the gr_list is set to something else than '0,-1' (could be done even without a user being logged in!)

Definition at line 1158 of file TypoScriptFrontendController.php.

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\determineId(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\isStaticCacheble().

◆ jumpUrl()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::jumpUrl ( )

Sends a header "Location" to jumpUrl, if jumpurl is set. Will exit if a location header is sent (for instance if jumpUrl was triggered)

"jumpUrl" is a concept where external links are redirected from the TYPO3 Frontend, but first logs the URL.

Exceptions

Definition at line 2945 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\redirectToExternalUrl().

◆ logDeprecatedTyposcript()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::logDeprecatedTyposcript (   $typoScriptProperty,
  $explanation = '' 
)

Logs access to deprecated TypoScript objects and properties.

Dumps message to the TypoScript message log (admin panel) and the TYPO3 deprecation log.

Parameters
string$typoScriptPropertyDeprecated object or property
string$explanationMessage or additional information
Returns
void

Definition at line 4138 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\deprecationLog(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getTimeTracker().

◆ makeCacheHash()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::makeCacheHash ( )

◆ mergingWithGetVars()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::mergingWithGetVars (   $GET_VARS)

Merging values into the global $_GET

Parameters
array$GET_VARSArray of key/value pairs that will be merged into the current GET-vars. (Non-escaped values)
Returns
void

Definition at line 2233 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\_GET(), TYPO3\CMS\Core\Utility\GeneralUtility\_GETset(), TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\set_no_cache().

◆ newCObj()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::newCObj ( )

Creates an instance of ContentObjectRenderer in $this->cObj This instance is used to start the rendering of the TypoScript template structure

Returns
void
See also
pagegen.php

Definition at line 4058 of file TypoScriptFrontendController.php.

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

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

◆ pageErrorHandler()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::pageErrorHandler (   $code,
  $header = '',
  $reason = '' 
)

Generic error page handler. Exits.

Parameters
mixed$codeWhich type of handling; If a true PHP-boolean or TRUE then a is outputted. If integer an error message with that number is shown. Otherwise the $code value is expected to be a "Location:" header value.
string$headerIf set, this is passed directly to the PHP function, header()
string$reasonIf set, error messages will also mention this as the reason for the page-not-found.
Exceptions

Definition at line 2076 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$content, $params, TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction(), TYPO3\CMS\Core\Utility\GeneralUtility\getFileAbsFileName(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPageAccessFailureReasons(), TYPO3\CMS\Core\Utility\GeneralUtility\getUrl(), TYPO3\CMS\Core\Utility\GeneralUtility\isFirstPartOfStr(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\Utility\HttpUtility\redirect().

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageNotFoundHandler(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageUnavailableHandler().

◆ pageNotFoundAndExit()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::pageNotFoundAndExit (   $reason = '',
  $header = '' 
)

◆ pageNotFoundHandler()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::pageNotFoundHandler (   $code,
  $header = '',
  $reason = '' 
)

Page not found handler. Acts a wrapper for the pageErrorHandler method.

Parameters
mixed$codeWhich type of handling; If a true PHP-boolean or TRUE then a is outputted. If integer an error message with that number is shown. Otherwise the $code value is expected to be a "Location:" header value.
string$headerIf set, this is passed directly to the PHP function, header()
string$reasonIf set, error messages will also mention this as the reason for the page-not-found.
Returns
void (The function exits!)

Definition at line 2061 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageErrorHandler().

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

◆ pageUnavailableAndExit()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::pageUnavailableAndExit (   $reason = '',
  $header = '' 
)

◆ pageUnavailableHandler()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::pageUnavailableHandler (   $code,
  $header,
  $reason 
)

Page unavailable handler. Acts a wrapper for the pageErrorHandler method.

Parameters
mixed$codeWhich type of handling; If a true PHP-boolean or TRUE then a is outputted. If integer an error message with that number is shown. Otherwise the $code value is expected to be a "Location:" header value.
string$headerIf set, this is passed directly to the PHP function, header()
string$reasonIf set, error messages will also mention this as the reason for the page-not-found.
Returns
void (The function exits!)

Definition at line 2048 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageErrorHandler().

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

◆ prefixLocalAnchorsWithScript()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::prefixLocalAnchorsWithScript ( )

◆ previewInfo()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::previewInfo ( )

Outputs preview info.

Returns
void

Definition at line 3907 of file TypoScriptFrontendController.php.

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

◆ processOutput()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::processOutput ( )

Process the output before it's actually outputted. Sends headers also.

This includes substituting the "username" comment, sending additional headers (as defined in the TypoScript "config.additionalheaders" object), XHTML cleaning content (if configured) Works on $this->content.

Returns
void

Definition at line 3700 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\addTempContentHttpHeaders(), TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\contentStrReplace(), TYPO3\CMS\Core\Utility\GeneralUtility\deprecationLog(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\doWorkspacePreview(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\sendCacheHeaders().

◆ realPageCacheContent()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::realPageCacheContent ( )

◆ recursivelyReplaceIntPlaceholdersInContent()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::recursivelyReplaceIntPlaceholdersInContent ( )
protected

Replaces INT placeholders (COA_INT and USER_INT) in $this->content In case the replacement adds additional placeholders, it loops until no new placeholders are found any more.

Definition at line 3519 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\INTincScript_includeLibs(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\INTincScript_process().

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

◆ redirectToExternalUrl()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::redirectToExternalUrl ( )

Loops over all registered URL handlers and lets them process the current URL.

If no handler has stopped the current process (e.g. by redirecting) and a the redirectUrl propert is not empty, the user will be redirected to this URL.

Definition at line 2959 of file TypoScriptFrontendController.php.

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

◆ regeneratePageTitle()

◆ releaseLock()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::releaseLock (   $type)
protected

◆ releaseLocks()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::releaseLocks ( )

◆ releasePageGenerationLock()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::releasePageGenerationLock ( $lockObj)

Release the page generation lock

Parameters
Locker$lockObjReference to a locking object
Returns
bool Returns TRUE on success, FALSE otherwise
See also
acquirePageGenerationLock()
Deprecated:
since TYPO3 CMS 7, will be removed with TYPO3 CMS 8

Definition at line 3317 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Core\Locking\Locker\getLockStatus(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\headerNoCache(), and TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

◆ reqCHash()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::reqCHash ( )

Will disable caching if the cHash value was not set. This function should be called to check the existence of "&cHash" whenever a plugin generating cacheable output is using extra GET variables. If there is a cHash value the validation of it automatically takes place in makeCacheHash() (see above)

Returns
void
See also
makeCacheHash(), ::pi_cHashCheck()

Definition at line 2314 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\clearPageCacheContent(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\disableCache(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getTimeTracker(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageNotFoundAndExit().

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

◆ sendCacheHeaders()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::sendCacheHeaders ( )

Send cache headers good for client/reverse proxy caching This function should not be called if the page content is temporary (like for "Page is being generated..." message, but in that case it is ok because the config-variables are not yet available and so will not allow to send cache headers)

Returns
void -author Ole Tange, Forbrugernes Hus, Denmark

Definition at line 3771 of file TypoScriptFrontendController.php.

References $GLOBALS, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\doWorkspacePreview(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getTimeTracker(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\isINTincScript(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\isStaticCacheble().

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

◆ sendRedirect()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::sendRedirect ( )

Looks up the value of $this->RDCT in the database and if it is found to be associated with a redirect URL then the redirection is carried out with a 'Location:' header May exit after sending a location-header.

Returns
void

Definition at line 1014 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getDatabaseConnection(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\updateMD5paramsRecord().

◆ set_cache_timeout_default()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::set_cache_timeout_default (   $seconds)

◆ set_no_cache()

◆ setContentType()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::setContentType (   $contentType)
Parameters
string$contentType

Definition at line 954 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$contentType.

◆ setCSS()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::setCSS (   $key,
  $content 
)

Sets CSS data in the additionalCSS array

Parameters
string$keyIs the key in the array, for num-key let the value be empty
string$contentIs the content if you want any
Returns
void
See also
setJS()

Definition at line 4356 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$content.

◆ setExternalJumpUrl()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::setExternalJumpUrl ( )

Checks if the current page points to an external URL and stores this value in the redirectUrl variable. The redirection will then be handled by the redirectToExternalUrl() method.

Returns
void
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8. See handleExternalUrlPage()

Definition at line 2929 of file TypoScriptFrontendController.php.

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

◆ setIDfromArgV()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::setIDfromArgV ( )

This checks if there are ARGV-parameters in the QUERY_STRING and if so, those are used for the id $this->id must be 'FALSE' in order for any processing to happen in here If an id/alias value is extracted from the QUERY_STRING it is set in $this->id

Returns
void private

Definition at line 1913 of file TypoScriptFrontendController.php.

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

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

◆ setJS()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::setJS (   $key,
  $content = '' 
)

Sets JavaScript code in the additionalJavaScript array

Parameters
string$keyis the key in the array, for num-key let the value be empty. Note reserved keys 'openPic' and 'mouseOver'
string$contentis the content if you want any
Returns
void
See also
::writeMenu(), ContentObjectRenderer::imageLinkWrap()

Definition at line 4318 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$content.

◆ setPageCacheContent()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::setPageCacheContent (   $content,
  $data,
  $expirationTstamp 
)

◆ setParseTime()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::setParseTime ( )

Sets the parsetime of the page.

Returns
void private

Definition at line 3891 of file TypoScriptFrontendController.php.

References $GLOBALS, and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getTimeTracker().

◆ setSysLastChanged()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::setSysLastChanged ( )

Sets sys last changed Setting the SYS_LASTCHANGED value in the pagerecord: This value will thus be set to the highest tstamp of records rendered on the page. This includes all records with no regard to hidden records, userprotection and so on.

Returns
void
See also
ContentObjectRenderer::lastChanged()

Definition at line 3262 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getDatabaseConnection(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\whichWorkspace().

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

◆ setSysPageWhereClause()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::setSysPageWhereClause ( )

Sets sys_page where-clause

Returns
void private

Definition at line 1958 of file TypoScriptFrontendController.php.

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

◆ settingLanguage()

◆ settingLocale()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::settingLocale ( )

Setting locale for frontend rendering

Returns
void

Definition at line 2821 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getTimeTracker().

◆ setUrlIdToken()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::setUrlIdToken ( )

Sets the URL_ID_TOKEN in the internal var, $this->getMethodUrlIdToken This feature allows sessions to use a GET-parameter instead of a cookie.

Returns
void private

Definition at line 2977 of file TypoScriptFrontendController.php.

◆ sL()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::sL (   $input)

Split Label function for front-end applications.

Parameters
string$inputKey string. Accepts the "LLL:" prefix.
Returns
string Label value, if any.

Definition at line 4517 of file TypoScriptFrontendController.php.

References TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\$lang, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getLLL(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

◆ storeSessionData()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::storeSessionData ( )

Stores session data for the front end user

Returns
void

Definition at line 3880 of file TypoScriptFrontendController.php.

◆ tempPageCacheContent()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::tempPageCacheContent ( )

◆ uniqueHash()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::uniqueHash (   $str = '')

Returns a unique md5 hash. There is no special magic in this, the only point is that you don't have to call md5(uniqid()) which is slow and by this you are sure to get a unique string each time in a little faster way.

Parameters
string$strSome string to include in what is hashed. Not significant at all.
Returns
string MD5 hash of ->uniqueString, input string and uniqueCounter

Definition at line 4370 of file TypoScriptFrontendController.php.

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

◆ updateMD5paramsRecord()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::updateMD5paramsRecord (   $hash)

Updates the tstamp field of a cache_md5params record to the current time.

Parameters
string$hashThe hash string identifying the cache_md5params record for which to update the "tstamp" field to the current time.
Returns
void private

Definition at line 4152 of file TypoScriptFrontendController.php.

References $GLOBALS, and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getDatabaseConnection().

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

◆ updateRootLinesWithTranslations()

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::updateRootLinesWithTranslations ( )
protected

Updating content of the two rootLines IF the language key is set!

Definition at line 2808 of file TypoScriptFrontendController.php.

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

◆ whichWorkspace()

Member Data Documentation

◆ $absRefPrefix

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$absRefPrefix = ''

Definition at line 519 of file TypoScriptFrontendController.php.

◆ $accessKey

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$accessKey = []

Definition at line 669 of file TypoScriptFrontendController.php.

◆ $activeUrlHandlers

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$activeUrlHandlers = []
protected

Definition at line 150 of file TypoScriptFrontendController.php.

◆ $additionalCSS

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$additionalCSS = []

◆ $additionalFooterData

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$additionalFooterData = []

Definition at line 420 of file TypoScriptFrontendController.php.

◆ $additionalHeaderData

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$additionalHeaderData = []

Definition at line 414 of file TypoScriptFrontendController.php.

◆ $additionalJavaScript

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$additionalJavaScript = []

◆ $ADMCMD_preview_BEUSER_uid

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$ADMCMD_preview_BEUSER_uid = 0

Definition at line 247 of file TypoScriptFrontendController.php.

◆ $all

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$all = []

◆ $altPageTitle

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$altPageTitle = ''

◆ $anchorPrefix

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$anchorPrefix = ''

Definition at line 723 of file TypoScriptFrontendController.php.

◆ $applicationData

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$applicationData = []

Definition at line 627 of file TypoScriptFrontendController.php.

◆ $ATagParams

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$ATagParams = ''

Definition at line 537 of file TypoScriptFrontendController.php.

◆ $baseUrl

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$baseUrl = ''

Definition at line 715 of file TypoScriptFrontendController.php.

◆ $beUserLogin

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$beUserLogin = false

◆ $cacheContentFlag

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$cacheContentFlag = false

Definition at line 312 of file TypoScriptFrontendController.php.

◆ $cacheExpires

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$cacheExpires = 0

Definition at line 318 of file TypoScriptFrontendController.php.

◆ $cacheHash

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$cacheHash
protected

Definition at line 842 of file TypoScriptFrontendController.php.

◆ $cacheTimeOutDefault

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$cacheTimeOutDefault = false

◆ $cHash

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$cHash = ''

◆ $cHash_array

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$cHash_array = []

◆ $clientInfo

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$clientInfo = ''

Definition at line 748 of file TypoScriptFrontendController.php.

◆ $cObj

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$cObj = ''

◆ $cObjectDepthCounter

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$cObjectDepthCounter = 50

Definition at line 646 of file TypoScriptFrontendController.php.

◆ $compensateFieldWidth

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$compensateFieldWidth = ''

Definition at line 525 of file TypoScriptFrontendController.php.

◆ $config

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$config = []

Definition at line 291 of file TypoScriptFrontendController.php.

◆ $content

◆ $contentPid

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$contentPid = 0

Definition at line 108 of file TypoScriptFrontendController.php.

◆ $contentType

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$contentType = 'text/html'
protected

Content type HTTP header being sent in the request.

Todo:
Ticket: #63642 Should be refactored to a request/response model later

Definition at line 858 of file TypoScriptFrontendController.php.

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

◆ $csConvObj

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$csConvObj

Definition at line 761 of file TypoScriptFrontendController.php.

◆ $currentRecord

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$currentRecord = ''

Definition at line 662 of file TypoScriptFrontendController.php.

◆ $debug

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$debug = ''

Definition at line 482 of file TypoScriptFrontendController.php.

◆ $defaultBodyTag

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$defaultBodyTag = '<body>'

Definition at line 476 of file TypoScriptFrontendController.php.

◆ $defaultCharSet

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$defaultCharSet = 'utf-8'

Definition at line 767 of file TypoScriptFrontendController.php.

◆ $displayEditIcons

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$displayEditIcons = ''

Definition at line 575 of file TypoScriptFrontendController.php.

◆ $displayFieldEditIcons

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$displayFieldEditIcons = ''

Definition at line 583 of file TypoScriptFrontendController.php.

◆ $divSection

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$divSection = ''

Definition at line 469 of file TypoScriptFrontendController.php.

◆ $domainDataCache

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$domainDataCache = []
protected

Definition at line 849 of file TypoScriptFrontendController.php.

◆ $domainStartPage

◆ $dtdAllowsFrames

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$dtdAllowsFrames

Definition at line 884 of file TypoScriptFrontendController.php.

◆ $excludeCHashVars

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$excludeCHashVars = ''

Definition at line 568 of file TypoScriptFrontendController.php.

◆ $extTarget

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$extTarget = ''

Definition at line 494 of file TypoScriptFrontendController.php.

◆ $fe_user

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$fe_user = ''

Definition at line 201 of file TypoScriptFrontendController.php.

◆ $fePreview

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$fePreview = 0

Definition at line 256 of file TypoScriptFrontendController.php.

◆ $fileTarget

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$fileTarget = ''

Definition at line 500 of file TypoScriptFrontendController.php.

◆ $forceTemplateParsing

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$forceTemplateParsing = false

◆ $getMethodUrlIdToken

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$getMethodUrlIdToken = ''

◆ $gr_list

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$gr_list = ''

◆ $id

◆ $imagesOnPage

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$imagesOnPage = []

Definition at line 676 of file TypoScriptFrontendController.php.

◆ $indexedDocTitle

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$indexedDocTitle = ''

◆ $inlineJS

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$inlineJS

Definition at line 463 of file TypoScriptFrontendController.php.

◆ $intTarget

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$intTarget = ''

Definition at line 488 of file TypoScriptFrontendController.php.

◆ $isClientCachable

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$isClientCachable = false

Definition at line 324 of file TypoScriptFrontendController.php.

◆ $JSCode

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$JSCode

Definition at line 458 of file TypoScriptFrontendController.php.

◆ $JSeventFuncCalls

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$JSeventFuncCalls
Initial value:
= [
'onmousemove' => []

Definition at line 445 of file TypoScriptFrontendController.php.

◆ $jumpurl

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$jumpurl = ''

◆ $lang

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$lang = ''

◆ $languageDependencies

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$languageDependencies = []
protected

Definition at line 812 of file TypoScriptFrontendController.php.

◆ $lastImageInfo

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$lastImageInfo = []

Definition at line 683 of file TypoScriptFrontendController.php.

◆ $linkVars

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$linkVars = ''

◆ $LL_files_cache

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$LL_files_cache = []

Definition at line 803 of file TypoScriptFrontendController.php.

◆ $LL_labels_cache

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$LL_labels_cache = []

Definition at line 798 of file TypoScriptFrontendController.php.

◆ $localeCharset

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$localeCharset = ''

Definition at line 787 of file TypoScriptFrontendController.php.

◆ $lockFilePath

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$lockFilePath = ''

Definition at line 531 of file TypoScriptFrontendController.php.

◆ $locks

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$locks = []
protected

Definition at line 817 of file TypoScriptFrontendController.php.

◆ $loginAllowedInBranch

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$loginAllowedInBranch = true

Definition at line 235 of file TypoScriptFrontendController.php.

◆ $loginAllowedInBranch_mode

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$loginAllowedInBranch_mode = ''

Definition at line 241 of file TypoScriptFrontendController.php.

◆ $loginUser

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$loginUser = false

Definition at line 209 of file TypoScriptFrontendController.php.

◆ $metaCharset

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$metaCharset = 'utf-8'

Definition at line 781 of file TypoScriptFrontendController.php.

◆ $MP

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$MP = ''

◆ $MP_defaults

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$MP_defaults = []

Definition at line 507 of file TypoScriptFrontendController.php.

◆ $newHash

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$newHash = ''

◆ $no_cache

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$no_cache = false

◆ $no_cacheBeforePageGen

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$no_cacheBeforePageGen = false

Definition at line 370 of file TypoScriptFrontendController.php.

◆ $originalMountPointPage

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$originalMountPointPage = null
protected

Definition at line 117 of file TypoScriptFrontendController.php.

◆ $originalShortcutPage

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$originalShortcutPage = null
protected

Definition at line 127 of file TypoScriptFrontendController.php.

◆ $page

◆ $page_cache_reg1

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$page_cache_reg1 = 0

Definition at line 186 of file TypoScriptFrontendController.php.

◆ $pageAccessFailureHistory

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$pageAccessFailureHistory = []

Definition at line 168 of file TypoScriptFrontendController.php.

◆ $pageCache

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$pageCache
protected

Definition at line 830 of file TypoScriptFrontendController.php.

◆ $pageCacheTags

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$pageCacheTags = []
protected

Definition at line 835 of file TypoScriptFrontendController.php.

◆ $pageNotFound

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$pageNotFound = 0

Definition at line 156 of file TypoScriptFrontendController.php.

◆ $pageRenderer

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$pageRenderer = null
protected

◆ $pagesTSconfig

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$pagesTSconfig = ''

◆ $pSetup

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$pSetup = ''

Definition at line 345 of file TypoScriptFrontendController.php.

◆ $RDCT

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$RDCT = ''

◆ $recordRegister

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$recordRegister = []

Definition at line 653 of file TypoScriptFrontendController.php.

◆ $register

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$register = []

Definition at line 632 of file TypoScriptFrontendController.php.

◆ $registerStack

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$registerStack = []

Definition at line 639 of file TypoScriptFrontendController.php.

◆ $renderCharset

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$renderCharset = 'utf-8'

◆ $requestedId

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$requestedId
protected

Definition at line 879 of file TypoScriptFrontendController.php.

◆ $rootLine

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$rootLine = ''

Definition at line 95 of file TypoScriptFrontendController.php.

◆ $scriptParseTime

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$scriptParseTime = 0

Definition at line 753 of file TypoScriptFrontendController.php.

◆ $showHiddenPage

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$showHiddenPage = false

Definition at line 263 of file TypoScriptFrontendController.php.

◆ $showHiddenRecords

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$showHiddenRecords = false

◆ $simUserGroup

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$simUserGroup = 0

◆ $siteScript

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$siteScript = ''

Definition at line 194 of file TypoScriptFrontendController.php.

◆ $spamProtectEmailAddresses

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$spamProtectEmailAddresses = 0

Definition at line 513 of file TypoScriptFrontendController.php.

◆ $sPre

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$sPre = ''

Definition at line 338 of file TypoScriptFrontendController.php.

◆ $sWordList

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$sWordList = ''

Definition at line 552 of file TypoScriptFrontendController.php.

◆ $sWordRegEx

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$sWordRegEx = ''

Definition at line 545 of file TypoScriptFrontendController.php.

◆ $sys_language_content

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$sys_language_content = 0

◆ $sys_language_contentOL

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$sys_language_contentOL = 0

Definition at line 613 of file TypoScriptFrontendController.php.

◆ $sys_language_isocode

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$sys_language_isocode = ''

Definition at line 620 of file TypoScriptFrontendController.php.

◆ $sys_language_mode

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$sys_language_mode = ''

Definition at line 598 of file TypoScriptFrontendController.php.

◆ $sys_language_uid

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$sys_language_uid = 0

◆ $sys_page

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$sys_page = ''

Definition at line 134 of file TypoScriptFrontendController.php.

◆ $tempContent

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$tempContent = false

◆ $tmpl

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$tmpl = null

Definition at line 298 of file TypoScriptFrontendController.php.

◆ $type

◆ $TYPO3_CONF_VARS

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$TYPO3_CONF_VARS = []

◆ $uniqueCounter

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$uniqueCounter = 0

Definition at line 690 of file TypoScriptFrontendController.php.

◆ $uniqueString

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$uniqueString = ''

Definition at line 695 of file TypoScriptFrontendController.php.

◆ $usedUniqueIds

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$usedUniqueIds = []
private

Definition at line 729 of file TypoScriptFrontendController.php.

◆ $workspacePreview

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$workspacePreview = 0

Definition at line 229 of file TypoScriptFrontendController.php.

◆ $xhtmlDoctype

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$xhtmlDoctype = ''

Definition at line 867 of file TypoScriptFrontendController.php.

◆ $xhtmlVersion

TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$xhtmlVersion

Definition at line 872 of file TypoScriptFrontendController.php.