TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Utility\GeneralUtility Class Reference
Inheritance diagram for TYPO3\CMS\Core\Utility\GeneralUtility:
t3lib_div TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\Fixtures\GeneralUtilityFixture TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFixture

Static Public Member Functions

static _GP ($var)
 
static _GPmerged ($parameter)
 
static _GET ($var=NULL)
 
static _POST ($var=NULL)
 
static _GETset ($inputGet, $key='')
 
static removeXSS ($string)
 
static gif_compress ($theFile, $type)
 
static png_to_gif_by_imagemagick ($theFile)
 
static read_png_gif ($theFile, $output_png=FALSE)
 
static fixed_lgd_cs ($string, $chars, $appendString='...')
 
static cmpIP ($baseIP, $list)
 
static cmpIPv4 ($baseIP, $list)
 
static cmpIPv6 ($baseIP, $list)
 
static IPv6Hex2Bin ($hex)
 
static IPv6Bin2Hex ($bin)
 
static normalizeIPv6 ($address)
 
static compressIPv6 ($address)
 
static validIP ($ip)
 
static validIPv4 ($ip)
 
static validIPv6 ($ip)
 
static cmpFQDN ($baseHost, $list)
 
static isOnCurrentHost ($url)
 
static inList ($list, $item)
 
static rmFromList ($element, $list)
 
static expandList ($list)
 
static int_from_ver ($verNumberStr)
 
static compat_version ($verNumberStr)
 
static md5int ($str)
 
static shortMD5 ($input, $len=10)
 
static hmac ($input, $additionalSecret='')
 
static uniqueList ($in_list, $secondParameter=NULL)
 
static split_fileref ($fileNameWithPath)
 
static dirname ($path)
 
static modifyHTMLColor ($color, $R, $G, $B)
 
static modifyHTMLColorAll ($color, $all)
 
static isFirstPartOfStr ($str, $partStr)
 
static formatSize ($sizeInBytes, $labels='')
 
static convertMicrotime ($microtime)
 
static splitCalc ($string, $operators)
 
static htmlspecialchars_decode ($value)
 
static deHSCentities ($str)
 
static slashJS ($string, $extended=FALSE, $char='\'')
 
static rawUrlEncodeJS ($str)
 
static rawUrlEncodeFP ($str)
 
static validEmail ($email)
 
static isBrokenEmailEnvironment ()
 
static normalizeMailAddress ($address)
 
static formatForTextarea ($content)
 
static strtoupper ($str)
 
static strtolower ($str)
 
static generateRandomBytes ($bytesToReturn)
 
static idnaEncode ($value)
 
static getRandomHexString ($count)
 
static underscoredToUpperCamelCase ($string)
 
static underscoredToLowerCamelCase ($string)
 
static camelCaseToLowerCaseUnderscored ($string)
 
static lcfirst ($string)
 
static isValidUrl ($url)
 
static inArray (array $in_array, $item)
 
static intExplode ($delimiter, $string, $removeEmptyValues=FALSE, $limit=0)
 
static revExplode ($delimiter, $string, $count=0)
 
static trimExplode ($delim, $string, $removeEmptyValues=FALSE, $limit=0)
 
static removeArrayEntryByValue (array $array, $cmpValue)
 
static keepItemsInArray (array $array, $keepItems, $getValueFunc=NULL)
 
static implodeArrayForUrl ($name, array $theArray, $str='', $skipBlank=FALSE, $rawurlencodeParamName=FALSE)
 
static explodeUrl2Array ($string, $multidim=FALSE)
 
static compileSelectedGetVarsFromArray ($varList, array $getArray, $GPvarAlt=TRUE)
 
static addSlashesOnArray (array &$theArray)
 
static stripSlashesOnArray (array &$theArray)
 
static slashArray (array $arr, $cmd)
 
static remapArrayKeys (&$array, $mappingTable)
 
static array_merge_recursive_overrule (array $arr0, array $arr1, $notAddKeys=FALSE, $includeEmptyValues=TRUE, $enableUnsetFeature=TRUE)
 
static array_merge (array $arr1, array $arr2)
 
static arrayDiffAssocRecursive (array $array1, array $array2)
 
static csvValues (array $row, $delim=',', $quote='"')
 
static removeDotsFromTS (array $ts)
 
static naturalKeySortRecursive (&$array)
 
static get_tag_attributes ($tag)
 
static split_tag_attributes ($tag)
 
static implodeAttributes (array $arr, $xhtmlSafe=FALSE, $dontOmitBlankAttribs=FALSE)
 
static wrapJS ($string, $linebreak=TRUE)
 
static xml2tree ($string, $depth=999)
 
static array2xml_cs (array $array, $docTag='phparray', array $options=array(), $charset='')
 
static array2xml (array $array, $NSprefix='', $level=0, $docTag='phparray', $spaceInd=0, array $options=array(), array $stackData=array())
 
static xml2array ($string, $NSprefix='', $reportDocTag=FALSE)
 
static xmlRecompileFromStructValArray (array $vals)
 
static xmlGetHeaderAttribs ($xmlData)
 
static minifyJavaScript ($script, &$error='')
 
static getUrl ($url, $includeHeader=0, $requestHeaders=FALSE, &$report=NULL)
 
static writeFile ($file, $content, $changePermissions=FALSE)
 
static fixPermissions ($path, $recursive=FALSE)
 
static writeFileToTypo3tempDir ($filepath, $content)
 
static mkdir ($newFolder)
 
static mkdir_deep ($directory, $deepDirectory='')
 
static rmdir ($path, $removeNonEmpty=FALSE)
 
static flushDirectory ($directory, $keepOriginalDirectory=FALSE, $flushOpcodeCache=FALSE)
 
static get_dirs ($path)
 
static getFilesInDir ($path, $extensionList='', $prependPath=FALSE, $order='', $excludePattern='')
 
static getAllFilesAndFoldersInPath (array $fileArr, $path, $extList='', $regDirs=FALSE, $recursivityLevels=99, $excludePattern='')
 
static removePrefixPathFromList (array $fileArr, $prefixToRemove)
 
static fixWindowsFilePath ($theFile)
 
static resolveBackPath ($pathStr)
 
static locationHeaderUrl ($path)
 
static getMaxUploadFileSize ($localLimit=0)
 
static getBytesFromSizeMeasurement ($measurement)
 
static getMaximumPathLength ()
 
static createVersionNumberedFilename ($file, $forceQueryString=FALSE)
 
static getThisUrl ()
 
static linkThisScript (array $getParams=array())
 
static linkThisUrl ($url, array $getParams=array())
 
static getIndpEnv ($getEnvName)
 
static isAllowedHostHeaderValue ($hostHeaderValue)
 
static milliseconds ()
 
static clientInfo ($useragent='')
 
static getHostname ($requestHost=TRUE)
 
static getFileAbsFileName ($filename, $onlyRelative=TRUE, $relToTYPO3_mainDir=FALSE)
 
static validPathStr ($theFile)
 
static isAbsPath ($path)
 
static isAllowedAbsPath ($path)
 
static verifyFilenameAgainstDenyPattern ($filename)
 
static copyDirectory ($source, $destination)
 
static sanitizeLocalUrl ($url='')
 
static upload_copy_move ($source, $destination)
 
static upload_to_tempfile ($uploadedFileName)
 
static unlink_tempfile ($uploadedTempFileName)
 
static tempnam ($filePrefix, $fileSuffix='')
 
static stdAuthCode ($uid_or_record, $fields='', $codeLength=8)
 
static hideIfNotTranslated ($l18n_cfg_fieldValue)
 
static hideIfDefaultLanguage ($localizationConfiguration)
 
static llXmlAutoFileName ($fileRef, $language, $sameLocation=FALSE)
 
static loadTCA ($table)
 
static resolveSheetDefInDS ($dataStructArray, $sheet='sDEF')
 
static resolveAllSheetsInDS (array $dataStructArray)
 
static callUserFunction ($funcName, &$params, &$ref, $checkPrefix='', $errorMode=0)
 
static getUserObj ($classRef, $checkPrefix='', $silent=FALSE)
 
static makeInstance ($className)
 
static setSingletonInstance ($className, \TYPO3\CMS\Core\SingletonInterface $instance)
 
static removeSingletonInstance ($className, \TYPO3\CMS\Core\SingletonInterface $instance)
 
static resetSingletonInstances (array $newSingletonInstances)
 
static getSingletonInstances ()
 
static addInstance ($className, $instance)
 
static purgeInstances ()
 
static makeInstanceService ($serviceType, $serviceSubType='', $excludeServiceKeys=array())
 
static requireOnce ($requireFile)
 
static requireFile ($requireFile)
 
static plainMailEncoded ($email, $subject, $message, $headers='', $encoding='quoted-printable', $charset='', $dontEncodeHeader=FALSE)
 
static quoted_printable ($string, $maxlen=76)
 
static encodeHeader ($line, $enc='quoted-printable', $charset='utf-8')
 
static substUrlsInPlainText ($message, $urlmode='76', $index_script_url='')
 
static makeRedirectUrl ($inUrl, $l=0, $index_script_url='')
 
static freetypeDpiComp ($font_size)
 
static initSysLog ()
 
static devLog ($msg, $extKey, $severity=0, $dataVar=FALSE)
 
static deprecationLog ($msg)
 
static getDeprecationLogFileName ()
 
static logDeprecatedFunction ()
 
static arrayToLogString (array $arr, $valueList=array(), $valueLength=20)
 
static imageMagickCommand ($command, $parameters, $path='')
 
static unQuoteFilenames ($parameters, $unQuote=FALSE)
 
static quoteJSvalue ($value)
 
static cleanOutputBuffers ()
 
static flushOutputBuffers ()
 
static presetApplicationContext (\TYPO3\CMS\Core\Core\ApplicationContext $applicationContext)
 
static getApplicationContext ()
 
static isRunningOnCgiServerApi ()
 

Public Attributes

const SYSLOG_SEVERITY_INFO = 0
 
const SYSLOG_SEVERITY_NOTICE = 1
 
const SYSLOG_SEVERITY_WARNING = 2
 
const SYSLOG_SEVERITY_ERROR = 3
 
const SYSLOG_SEVERITY_FATAL = 4
 
const ENV_TRUSTED_HOSTS_PATTERN_ALLOW_ALL = '.*'
 
const ENV_TRUSTED_HOSTS_PATTERN_SERVER_NAME = 'SERVER_NAME'
 

Static Protected Member Functions

static generateRandomBytesOpenSsl ($bytesToGenerate)
 
static generateRandomBytesMcrypt ($bytesToGenerate)
 
static generateRandomBytesUrandom ($bytesToGenerate)
 
static generateRandomBytesFallback ($bytesToReturn)
 
static xml2arrayProcess ($string, $NSprefix='', $reportDocTag=FALSE)
 
static getRedirectUrlFromHttpHeaders ($content)
 
static stripHttpHeaders ($content)
 
static createDirectoryPath ($fullDirectoryPath)
 
static isInternalRequestType ()
 
static instantiateClass ($className, $arguments)
 
static getClassName ($className)
 
static getImplementationForClass ($className)
 
static classHasImplementation ($className)
 
static checkInstanceClassName ($className, $instance)
 

Static Protected Attributes

static $allowHostHeaderValue = FALSE
 
static $singletonInstances = array()
 
static $nonSingletonInstances = array()
 
static $finalClassNameCache = array()
 
static $applicationContext = NULL
 
static $idnaStringCache = array()
 
static $idnaConverter = NULL
 
static $supportedCgiServerApis
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! The legendary "t3lib_div" class - Miscellaneous functions for general purpose. Most of the functions do not relate specifically to TYPO3 However a section of functions requires certain TYPO3 features available See comments in the source. You are encouraged to use this library in your own scripts!

USE: The class is intended to be used without creating an instance of it. So: Don't instantiate - call functions with "\TYPO3\CMS\Core\Utility\GeneralUtility::" prefixed the function name. So use ::[method-name] to refer to the functions, eg. '::milliseconds()'

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

Definition at line 31 of file GeneralUtility.php.

Member Function Documentation

◆ _GET()

static TYPO3\CMS\Core\Utility\GeneralUtility::_GET (   $var = NULL)
static

Returns the global $_GET array (or value from) normalized to contain un-escaped values. ALWAYS use this API function to acquire the GET variables!

Parameters
string$varOptional pointer to value in GET array (basically name of GET var)
Returns
mixed If $var is set it returns the value of $_GET[$var]. If $var is NULL (default), returns $_GET itself. In any case slashes are stipped from the output!
See also
_POST(), _GP(), _GETset()

Definition at line 166 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Backend\Template\DocumentTemplate\__construct(), TYPO3\CMS\Fluid\Core\Widget\WidgetRequestBuilder\build(), TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder\buildBackendUri(), TYPO3\CMS\Backend\Utility\BackendUtility\buildScriptUrl(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\calculateLinkVars(), TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\canHandleRequest(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\canRetrieveGlobalInputsThroughGet(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkPageForShortcutRedirect(), TYPO3\CMS\Recordlist\RecordList\clearCache(), TYPO3\CMS\Frontend\View\AdminPanelView\display(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\executeAdminCommand(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\executeAdminCommand(), TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView\func_search(), TYPO3\CMS\Workspaces\Service\WorkspaceService\generateWorkspacePreviewLink(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getConfigArray(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getData(), TYPO3\CMS\Core\ExtDirect\ExtDirectApi\getExtDirectApi(), TYPO3\CMS\Install\Controller\ToolController\getLastError(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\getPreserveGetVars(), TYPO3\CMS\Version\Hook\PreviewHook\getPreviewConfiguration(), TYPO3\CMS\Reports\Report\Status\SystemStatus\getStatus(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getUrlToCurrentLocation(), TYPO3\CMS\Install\Controller\Action\Ajax\AbstractCoreUpdate\getVersionToHandle(), TYPO3\CMS\Backend\Controller\BackendController\handlePageEditing(), TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\init(), TYPO3\CMS\Reports\Controller\ReportController\initializeAction(), TYPO3\CMS\Workspaces\Controller\PreviewController\initializeAction(), TYPO3\CMS\Rtehtmlarea\Controller\BrowseLinksController\main(), TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController\main(), TYPO3\CMS\Recordlist\Controller\ElementBrowserController\main(), TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController\main(), TYPO3\CMS\Lowlevel\View\ConfigurationView\main(), TYPO3\CMS\Backend\Controller\ClickMenuController\main(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController\main(), TYPO3\CMS\Backend\Controller\PageLayoutController\main(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\makeCacheHash(), TYPO3\CMS\Backend\Template\DocumentTemplate\makeShortcutUrl(), TYPO3\CMS\Filelist\Controller\FileListController\menuConfig(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\mergingWithGetVars(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController\modMenu(), TYPO3\CMS\Backend\Controller\EditDocumentController\preInit(), TYPO3\CMS\Core\TypoScript\TemplateService\processTemplate(), TYPO3\CMS\Core\ExtDirect\ExtDirectRouter\route(), TYPO3\CMS\Fluid\Core\Widget\Bootstrap\run(), TYPO3\CMS\Backend\Controller\BackendController\setStartupModule(), TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController\showStats(), and TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\start().

◆ _GETset()

static TYPO3\CMS\Core\Utility\GeneralUtility::_GETset (   $inputGet,
  $key = '' 
)
static

Writes input value to $_GET.

Parameters
mixed$inputGet
string$key
Returns
void

Definition at line 207 of file GeneralUtility.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

Referenced by TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\buildBackendUriConvertsDomainObjectsAfterArgumentsHaveBeenMerged(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\buildBackendUriCreatesAbsoluteUrisIfSpecified(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\buildBackendUriKeepsModuleQueryParametersIfAddQueryStringIsNotSet(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\buildBackendUriKeepsQueryParametersIfAddQueryStringIsSet(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\buildBackendUriKeepsQueryParametersIfAddQueryStringMethodIsNotSet(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\buildBackendUriMergesAndOverrulesQueryParametersWithArguments(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\buildBackendUriRemovesSpecifiedQueryParametersIfArgumentsToBeExcludedFromQueryStringIsSet(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\buildBackendUriRespectsSection(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\canSetNewGetInputValues(), TYPO3\CMS\Workspaces\Service\WorkspaceService\generateWorkspacePreviewLink(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getConfigArray(), TYPO3\CMS\Extbase\Tests\Unit\Configuration\BackendConfigurationManagerTest\getCurrentPageIdReturnsPageIdFromGet(), TYPO3\CMS\Extbase\Tests\Unit\Configuration\BackendConfigurationManagerTest\getCurrentPageIdReturnsPageIdFromPost(), TYPO3\CMS\Version\Hook\PreviewHook\getPreviewConfiguration(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getSetAssignsOneValueToOneKey(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getSetCanAssignAnArrayToASpecificArrayChildElement(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getSetCanAssignAStringValueToASpecificArrayChildElement(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getSetCanAssignsAnArrayToASpecificArrayElement(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getSetForArrayDropsExistingValues(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getSetForOneValueDoesNotDropUnrelatedValues(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getSetWritesArrayToGetSystemVariable(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getSetWritesArrayToGlobalsHttpGetVars(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\mergingWithGetVars(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\setExternalJumpUrl().

◆ _GP()

static TYPO3\CMS\Core\Utility\GeneralUtility::_GP (   $var)
static

Returns the 'GLOBAL' value of incoming data from POST or GET, with priority to POST (that is equalent to 'GP' order) Strips slashes from all output, both strings and arrays. To enhancement security in your scripts, please consider using ::_GET or ::_POST if you already know by which method your data is arriving to the scripts!

Parameters
string$varGET/POST var to return
Returns
mixed POST var named $var and if not set, the GET var of the same name.

Definition at line 128 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Install\Service\ContextService\__construct(), TYPO3\CMS\Workspaces\ExtDirect\WorkspaceSelectorToolbarItem\__construct(), TYPO3\CMS\Backend\Controller\Wizard\ListController\__construct(), TYPO3\CMS\Filelist\Controller\FileListController\__construct(), TYPO3\CMS\Frontend\ContentObject\SearchResultContentObject\__construct(), TYPO3\CMS\Frontend\Controller\ExtDirectEidController\actionIsAllowed(), TYPO3\CMS\T3editor\T3editor\ajaxSaveCode(), TYPO3\CMS\Extbase\Core\ModuleRunner\callModule(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\canRetrieveValueWithGP(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\checkAuthentication(), TYPO3\CMS\Backend\Module\AbstractFunctionModule\checkExtObj(), TYPO3\CMS\Backend\Module\BaseScriptClass\checkExtObj(), TYPO3\CMS\Version\Hook\PreviewHook\checkForPreview(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_flex(), TYPO3\CMS\Opendocs\Controller\OpendocsController\closeDocument(), TYPO3\CMS\Recycler\Controller\RecyclerAjaxController\createContent(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\determineId(), TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher\determinePageId(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\determineScriptUrl(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\determineScriptUrl(), TYPO3\CMS\Backend\Tree\View\AbstractTreeView\determineScriptUrl(), TYPO3\CMS\Backend\Controller\EditDocumentController\doProcessData(), TYPO3\CMS\Feedit\FrontendEditPanel\editIcons(), TYPO3\CMS\Feedit\FrontendEditPanel\editPanelLinkWrap(), TYPO3\CMS\Backend\Tree\View\FolderTreeView\evaluateExpandCollapseParameter(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_getObjTree(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_getTemplateHierarchyArr(), TYPO3\CMS\Impexp\LocalPageTree\ext_tree(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\fetch_the_id(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\fetchUserSessionFromDB(), TYPO3\CMS\Workspaces\Controller\ReviewController\fullIndexAction(), TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView\func_refindex(), TYPO3\CMS\Install\Controller\AbstractController\getAction(), TYPO3\CMS\Backend\History\RecordHistory\getArgument(), TYPO3\CMS\Impexp\Controller\ImportExportController\getButtons(), TYPO3\CMS\Form\View\Wizard\WizardView\getButtons(), TYPO3\CMS\Install\Controller\Action\AbstractAction\getContext(), TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getCurrentPageIdFromGetPostData(), TYPO3\CMS\Frontend\View\AdminPanelView\getEditModule(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getFieldDefaultValue(), TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication\getLoginFormData(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\getLoginFormData(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\getModuleContent(), TYPO3\CMS\SysAction\ActionTask\getOverview(), TYPO3\CMS\Version\Hook\PreviewHook\getPreviewConfiguration(), TYPO3\CMS\Version\Hook\PreviewHook\getPreviewInputCode(), TYPO3\CMS\Openid\OpenidService\getReturnURL(), TYPO3\CMS\Rtehtmlarea\SelectImage\getRTEImageStorageDir(), TYPO3\CMS\Openid\OpenidService\getSignedClaimedOpenIDIdentifier(), TYPO3\CMS\Openid\OpenidService\getSignedParameter(), TYPO3\CMS\SysAction\ActionTask\getTask(), TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher\getVariableCommon(), TYPO3\CMS\Backend\Module\AbstractFunctionModule\handleExternalFunctionValue(), TYPO3\CMS\Form\Domain\Repository\ContentRepository\hasRecord(), TYPO3\CMS\Workspaces\Controller\ReviewController\indexAction(), TYPO3\CMS\Backend\Controller\BackendLayoutWizardController\init(), TYPO3\CMS\Backend\Controller\Wizard\EditController\init(), TYPO3\CMS\Rtehtmlarea\ContentParser\init(), TYPO3\CMS\Rtehtmlarea\User\init(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\init(), TYPO3\CMS\Recordlist\Controller\ElementBrowserController\init(), TYPO3\CMS\Backend\Controller\File\FileController\init(), TYPO3\CMS\Backend\Controller\Wizard\RteController\init(), TYPO3\CMS\Impexp\Controller\ImportExportController\init(), TYPO3\CMS\Backend\Controller\FileSystemNavigationFrameController\init(), TYPO3\CMS\Backend\Controller\File\RenameFileController\init(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\init(), TYPO3\CMS\Backend\Controller\File\FileUploadController\init(), TYPO3\CMS\Backend\Controller\ClickMenuController\init(), TYPO3\CMS\Backend\Controller\File\EditFileController\init(), TYPO3\CMS\Backend\Controller\Wizard\AddController\init(), TYPO3\CMS\Backend\Controller\File\CreateFolderController\init(), TYPO3\CMS\Backend\Controller\ContentElement\MoveElementController\init(), TYPO3\CMS\Backend\Controller\PageTreeNavigationController\init(), TYPO3\CMS\Frontend\Controller\ShowImageController\init(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\init(), TYPO3\CMS\Cshmanual\Controller\HelpModuleController\init(), TYPO3\CMS\Backend\Controller\Wizard\TableController\init(), TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController\init(), TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\init(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\init(), TYPO3\CMS\Backend\Controller\LoginController\init(), TYPO3\CMS\Recordlist\RecordList\init(), TYPO3\CMS\Backend\Controller\NewRecordController\init(), TYPO3\CMS\Perm\Controller\PermissionModuleController\init(), TYPO3\CMS\Backend\Controller\Wizard\FormsController\init(), TYPO3\CMS\Backend\Module\BaseScriptClass\init(), TYPO3\CMS\Backend\Controller\PageLayoutController\init(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\init(), TYPO3\CMS\Backend\Controller\EditDocumentController\init(), TYPO3\CMS\Openid\OpenidService\initAuth(), TYPO3\CMS\Core\FrontendEditing\FrontendEditingController\initConfigOptions(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\initCurrentUrl(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\initCurrentUrl(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\initFEuser(), TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\Hook\BackendUserHandler\initialize(), TYPO3\CMS\Frontend\View\AdminPanelView\initialize(), TYPO3\CMS\Workspaces\Controller\AbstractController\initializeAction(), TYPO3\CMS\Frontend\Page\PageGenerator\initializeSearchWordDataInTsfe(), TYPO3\CMS\Rtehtmlarea\SelectImage\initVariables(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\initVariables(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\initVariables(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\isAvailable(), TYPO3\CMS\Backend\Controller\LoginController\isLoginInProgress(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\jumpUrl(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\linkWrapTemplateTitle(), TYPO3\CMS\SysAction\ActionList\listURL(), TYPO3\CMS\Backend\Controller\EditDocumentController\localizationRedirect(), TYPO3\CMS\Backend\Controller\LogoutController\logout(), TYPO3\CMS\Openid\OpenidEid\main(), TYPO3\CMS\ExtraPageCmOptions\ExtraPageContextMenuOptions\main(), TYPO3\CMS\Impexp\Clickmenu\main(), TYPO3\CMS\Recordlist\Controller\ElementBrowserFramesetController\main(), TYPO3\CMS\WizardSortpages\View\SortPagesWizardModuleFunction\main(), TYPO3\CMS\Openid\Wizard\main(), TYPO3\CMS\Impexp\Task\ImportExportTask\main(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController\main(), TYPO3\CMS\Impexp\Controller\ImportExportController\main(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\main(), TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController\main(), TYPO3\CMS\Lowlevel\View\ConfigurationView\main(), TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\main(), TYPO3\CMS\Version\Controller\VersionModuleController\main(), TYPO3\CMS\Backend\Controller\ClickMenuController\main(), TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController\main(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController\main(), TYPO3\CMS\Rtehtmlarea\ContentParser\main_parse_html(), TYPO3\CMS\Rtehtmlarea\SelectImage\main_rte(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\main_rte(), TYPO3\CMS\Rtehtmlarea\User\main_user(), TYPO3\CMS\Backend\Controller\LoginController\makeInterfaceSelectorBox(), TYPO3\CMS\Backend\Controller\LoginController\makeLoginBoxImage(), TYPO3\CMS\Recycler\Controller\RecyclerAjaxController\mapCommand(), TYPO3\CMS\IndexedSearch\Controller\ModuleController\menuConfig(), TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView\menuConfig(), TYPO3\CMS\Lowlevel\View\ConfigurationView\menuConfig(), TYPO3\CMS\Version\Controller\VersionModuleController\menuConfig(), TYPO3\CMS\Recordlist\RecordList\menuConfig(), TYPO3\CMS\Perm\Controller\PermissionModuleController\menuConfig(), TYPO3\CMS\Filelist\Controller\FileListController\menuConfig(), TYPO3\CMS\Backend\Module\BaseScriptClass\menuConfig(), TYPO3\CMS\Backend\Controller\PageLayoutController\menuConfig(), TYPO3\CMS\WizardCrpages\Controller\CreatePagesWizardModuleFunctionController\modMenu(), TYPO3\CMS\Install\Controller\AbstractController\outputLoginFormIfNotAuthorized(), TYPO3\CMS\Backend\Controller\EditDocumentController\preInit(), TYPO3\CMS\Dbal\Controller\ModuleController\printSqlCheck(), TYPO3\CMS\Backend\Form\Element\SuggestElement\processAjaxRequest(), TYPO3\CMS\Backend\Form\Element\InlineElement\processAjaxRequest(), TYPO3\CMS\Backend\Form\Element\InlineElement\processAjaxRequestConstruct(), TYPO3\CMS\Backend\ModuleSettings\processStoreControl(), TYPO3\CMS\Core\Database\QueryView\procesStoreControl(), TYPO3\CMS\Install\Controller\AbstractController\redirect(), TYPO3\CMS\Backend\Template\DocumentTemplate\redirectUrls(), TYPO3\CMS\Install\Controller\ToolController\registerExtensionConfigurationErrorHandler(), TYPO3\CMS\Fluid\ViewHelpers\Be\PagePathViewHelper\render(), TYPO3\CMS\Fluid\ViewHelpers\Be\PageInfoViewHelper\render(), TYPO3\CMS\Backend\Form\Element\InlineElement\renderForeignRecord(), TYPO3\CMS\Frontend\Controller\ExtDirectEidController\routeAction(), TYPO3\CMS\T3editor\Hook\TypoScriptTemplateInfoHook\save(), TYPO3\CMS\Frontend\View\AdminPanelView\saveConfigOptions(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\showLogin(), TYPO3\CMS\Setup\Controller\SetupModuleController\simulateUser(), TYPO3\CMS\Workspaces\Controller\ReviewController\singleIndexAction(), TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\start(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\TBE_dragNDrop(), TYPO3\CMS\Lowlevel\Utility\ArrayBrowser\tree(), TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\updateBrokenLinks(), TYPO3\CMS\SysAction\ActionTask\viewNewBackendUser(), TYPO3\CMS\SysAction\ActionTask\viewRecordList(), and TYPO3\CMS\Lowlevel\Utility\ArrayBrowser\wrapArrayKey().

◆ _GPmerged()

static TYPO3\CMS\Core\Utility\GeneralUtility::_GPmerged (   $parameter)
static

Returns the global arrays $_GET and $_POST merged with $_POST taking precedence.

Parameters
string$parameterKey (variable name) from GET or POST vars
Returns
array Returns the GET vars merged recursively onto the POST vars.

Definition at line 149 of file GeneralUtility.php.

References TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

Referenced by TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\getModuleContent(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\gpMergedWillMergeArraysFromGetAndPost(), and TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder\loadDefaultValues().

◆ _POST()

static TYPO3\CMS\Core\Utility\GeneralUtility::_POST (   $var = NULL)
static

Returns the global $_POST array (or value from) normalized to contain un-escaped values. ALWAYS use this API function to acquire the $_POST variables!

Parameters
string$varOptional pointer to value in POST array (basically name of POST var)
Returns
mixed If $var is set it returns the value of $_POST[$var]. If $var is NULL (default), returns $_POST itself. In any case slashes are stipped from the output!
See also
_GET(), _GP()

Definition at line 187 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Perm\Controller\PermissionAjaxController\__construct(), TYPO3\CMS\Frontend\ContentObject\SearchResultContentObject\__construct(), TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder\buildBackendUri(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\canRetrieveGlobalInputsThroughPost(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\changePassword(), TYPO3\CMS\Recordlist\RecordList\clearCache(), TYPO3\CMS\Backend\Toolbar\ShortcutToolbarItem\createAjaxShortcut(), TYPO3\CMS\Backend\Toolbar\ShortcutToolbarItem\deleteAjaxShortcut(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\executeTasks(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\getButtons(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getData(), TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication\getLoginFormData(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\getLoginFormData(), TYPO3\CMS\Install\Controller\AbstractController\getPostValues(), TYPO3\CMS\Version\Hook\PreviewHook\getPreviewConfiguration(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\locDataCheck(), TYPO3\CMS\Openid\Wizard\main(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController\main(), TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController\main(), TYPO3\CMS\Lowlevel\View\ConfigurationView\main(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\main(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController\main(), TYPO3\CMS\Filelist\Controller\FileListController\menuConfig(), TYPO3\CMS\Core\Database\QueryGenerator\procesData(), TYPO3\CMS\Openid\OpenidService\processLoginData(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowBeforeSaving(), TYPO3\CMS\Frontend\ContentObject\FormContentObject\render(), TYPO3\CMS\Core\ExtDirect\ExtDirectRouter\route(), TYPO3\CMS\T3editor\Hook\TypoScriptTemplateInfoHook\save(), TYPO3\CMS\Backend\Toolbar\ShortcutToolbarItem\setAjaxShortcut(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\setPersonalDictionaryPath(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\showForgot(), TYPO3\CMS\Setup\Controller\SetupModuleController\storeIncomingData(), TYPO3\CMS\Version\Controller\VersionModuleController\versioningMgm(), and TYPO3\CMS\SysAction\ActionTask\viewNewBackendUser().

◆ addInstance()

static TYPO3\CMS\Core\Utility\GeneralUtility::addInstance (   $className,
  $instance 
)
static

Sets the instance of a non-singleton class to be returned by makeInstance.

If this function is called multiple times for the same $className, makeInstance will return the instances in the order in which they have been added (FIFO).

Warning: This is a helper method for unit tests. Do not call this directly in production code!

See also
makeInstance
Exceptions

Definition at line 4651 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\addInstanceCalledTwoTimesMakesMakeInstanceReturnBothInstancesInAddingOrder(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\addInstanceForClassThatIsNoSubclassOfProvidedClassThrowsException(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\addInstanceForEmptyClassNameThrowsException(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\addInstanceMakesMakeInstanceReturnThatInstance(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\addInstanceWithSingletonInstanceThrowsException(), TYPO3\CMS\Core\Tests\Unit\Utility\MailUtilityTest\doMailCallsHook(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\getContentObjectCallsMakeInstanceForNewContentObjectInstance(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\getDriverObjectAcceptsDriverClassName(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceCalledTwoTimesAfterAddInstanceReturnTwoDifferentInstances(), TYPO3\CMS\Core\Tests\Unit\DataHandler\DataHandlerTest\processDatamapForFrozenNonZeroWorkspaceReturnsFalse(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\purgeInstancesDropsAddedInstance(), typo3\sysext\form\Tests\Unit\Domain\AttributesAttributeTest\setUp(), and TYPO3\CMS\Form\Tests\Unit\PostProcess\PostProcessorTest\setUp().

◆ addSlashesOnArray()

static TYPO3\CMS\Core\Utility\GeneralUtility::addSlashesOnArray ( array &  $theArray)
static

AddSlash array This function traverses a multidimensional array and adds slashes to the values. NOTE that the input array is and argument by reference.!! Twin-function to stripSlashesOnArray

Parameters
array$theArrayMultidimensional input array, (REFERENCE!)
Returns
array

Definition at line 1703 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\addSlashesOnArrayAddsSlashesRecursive(), and TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\handleMagicQuotesGpc().

◆ array2xml()

static TYPO3\CMS\Core\Utility\GeneralUtility::array2xml ( array  $array,
  $NSprefix = '',
  $level = 0,
  $docTag = 'phparray',
  $spaceInd = 0,
array  $options = array(),
array  $stackData = array() 
)
static

Deprecated to call directly (unless you are aware of using XML prologues)! Use "array2xml_cs" instead (which adds an XML-prologue)

Converts a PHP array into an XML string. The XML output is optimized for readability since associative keys are used as tag names. This also means that only alphanumeric characters are allowed in the tag names AND only keys NOT starting with numbers (so watch your usage of keys!). However there are options you can set to avoid this problem. Numeric keys are stored with the default tag name "numIndex" but can be overridden to other formats) The function handles input values from the PHP array in a binary-safe way; All characters below 32 (except 9,10,13) will trigger the content to be converted to a base64-string The PHP variable type of the data IS preserved as long as the types are strings, arrays, integers and booleans. Strings are the default type unless the "type" attribute is set. The output XML has been tested with the PHP XML-parser and parses OK under all tested circumstances with 4.x versions. However, with PHP5 there seems to be the need to add an XML prologue a la <?xml version="1.0" encoding="[charset]" standalone="yes" ?> - otherwise UTF-8 is assumed! Unfortunately, many times the output from this function is used without adding that prologue meaning that non-ASCII characters will break the parsing!! This suchs of course! Effectively it means that the prologue should always be prepended setting the right characterset, alternatively the system should always run as utf-8! However using MSIE to read the XML output didn't always go well: One reason could be that the character encoding is not observed in the PHP data. The other reason may be if the tag-names are invalid in the eyes of MSIE. Also using the namespace feature will make MSIE break parsing. There might be more reasons...

Parameters
array$arrayThe input PHP array with any kind of data; text, binary, integers. Not objects though.
string$NSprefixtag-prefix, eg. a namespace prefix like "T3:"
integer$levelCurrent recursion level. Don't change, stay at zero!
string$docTagAlternative document tag. Default is "phparray".
integer$spaceIndIf greater than zero, then the number of spaces corresponding to this number is used for indenting, if less than zero - no indentation, if zero - a single TAB is used
array$optionsOptions for the compilation. Key "useNindex" => 0/1 (boolean: whether to use "n0, n1, n2" for num. indexes); Key "useIndexTagForNum" => "[tag for numerical indexes]"; Key "useIndexTagForAssoc" => "[tag for associative indexes"; Key "parentTagMap" => array('parentTag' => 'thisLevelTag')
array$stackDataStack data. Don't touch.
Returns
string An XML string made from the input content in the array.
See also
xml2array()

Definition at line 2115 of file GeneralUtility.php.

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

Referenced by TYPO3\CMS\Install\SystemEnvironment\Check\checkLibXmlBug(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceStorageTest\convertConfigurationArrayToFlexformXml(), TYPO3\CMS\Impexp\ImportExport\createXML(), TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools\flexArray2Xml(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\xml2ArrayConvertsEmptyArraysToElementWithoutContent().

◆ array2xml_cs()

static TYPO3\CMS\Core\Utility\GeneralUtility::array2xml_cs ( array  $array,
  $docTag = 'phparray',
array  $options = array(),
  $charset = '' 
)
static

Turns PHP array into XML. See array2xml()

Parameters
array$arrayThe input PHP array with any kind of data; text, binary, integers. Not objects though.
string$docTagAlternative document tag. Default is "phparray".
array$optionsOptions for the compilation. See array2xml() for description.
string$charsetForced charset to prologue
Returns
string An XML string made from the input content in the array.
See also
xml2array(),array2xml()

Definition at line 2086 of file GeneralUtility.php.

◆ array_merge()

static TYPO3\CMS\Core\Utility\GeneralUtility::array_merge ( array  $arr1,
array  $arr2 
)
static

◆ array_merge_recursive_overrule()

static TYPO3\CMS\Core\Utility\GeneralUtility::array_merge_recursive_overrule ( array  $arr0,
array  $arr1,
  $notAddKeys = FALSE,
  $includeEmptyValues = TRUE,
  $enableUnsetFeature = TRUE 
)
static

Merges two arrays recursively and "binary safe" (integer keys are overridden as well), overruling similar values in the first array ($arr0) with the values of the second array ($arr1) In case of identical keys, ie. keeping the values of the second.

Parameters
array$arr0First array
array$arr1Second array, overruling the first array
boolean$notAddKeysIf set, keys that are NOT found in $arr0 (first array) will not be set. Thus only existing value can/will be overruled from second array.
boolean$includeEmptyValuesIf set, values from $arr1 will overrule if they are empty or zero. Default: TRUE
boolean$enableUnsetFeatureIf set, special values "__UNSET" can be used in the second array in order to unset array keys in the resulting array.
Returns
array Resulting array where $arr1 values has overruled $arr0 values
Deprecated:
[!!!] Since 6.2, use ArrayUtility::mergeRecursiveWithOverrule - WARNING: The new method changed its signature and does not return the first parameter anymore, but it is more performant.

Definition at line 1784 of file GeneralUtility.php.

References TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\arrayMergeRecursiveOverruleDoesConsiderUnsetValues().

◆ arrayDiffAssocRecursive()

static TYPO3\CMS\Core\Utility\GeneralUtility::arrayDiffAssocRecursive ( array  $array1,
array  $array2 
)
static

Filters keys off from first array that also exist in second array. Comparison is done by keys. This method is a recursive version of php array_diff_assoc()

Parameters
array$array1Source array
array$array2Reduce source array by this array
Returns
array Source array reduced by keys also present in second array

Definition at line 1810 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\arrayDiffAssocRecursiveHandlesMixedArrays(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\arrayDiffAssocRecursiveHandlesMultiDimensionalArrays(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\arrayDiffAssocRecursiveHandlesOneDimensionalArrays(), TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder\buildBackendUri(), TYPO3\CMS\Version\Hook\DataHandlerHook\processCmdmap_deleteAction(), and TYPO3\CMS\Core\DataHandling\DataHandler\unsetElementsToBeDeleted().

◆ arrayToLogString()

static TYPO3\CMS\Core\Utility\GeneralUtility::arrayToLogString ( array  $arr,
  $valueList = array(),
  $valueLength = 20 
)
static

Converts a one dimensional array to a one line string which can be used for logging or debugging output Example: "loginType: FE; refInfo: Array; HTTP_HOST: www.example.org; REMOTE_ADDR: 192.168.1.5; REMOTE_HOST:; security_level:; showHiddenRecords: 0;"

Parameters
array$arrData array which should be outputted
mixed$valueListList of keys which should be listed in the output string. Pass a comma list or an array. An empty list outputs the whole array.
integer$valueLengthLong string values are shortened to this length. Default: 20
Returns
string Output string with key names and their value as string

Definition at line 5271 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\checkAuthentication(), TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication\fetchGroupData(), TYPO3\CMS\Lowlevel\SyslogCommand\main(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\processLoginData(), TYPO3\CMS\Backend\ModuleSettings\processStoreControl(), and TYPO3\CMS\Frontend\Controller\DataSubmissionController\start().

◆ callUserFunction()

static TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction (   $funcName,
$params,
$ref,
  $checkPrefix = '',
  $errorMode = 0 
)
static

Calls a user-defined function/method in class Such a function/method should look like this: "function proc(&$params, &$ref) {...}"

Parameters
string$funcNameFunction/Method reference or Closure, '[file-reference":"]["&"]class/function["->"method-name]'. You can prefix this reference with "[file-reference]:" and ::getFileAbsFileName() will then be used to resolve the filename and subsequently include it by "require_once()" which means you don't have to worry about including the class file either! Example: "EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL". Finally; you can prefix the class name with "&" if you want to reuse a former instance of the same object call ("singleton").
mixed$paramsParameters to be pass along (typically an array) (REFERENCE!)
mixed$refReference to be passed along (typically "$this" - being a reference to the calling object) (REFERENCE!)
string$checkPrefixNot used anymore since 6.0
integer$errorModeError mode (when class/function could not be found): 0 - call debug(), 1 - do nothing, 2 - raise an exception (allows to call a user function that may return FALSE)
Returns
mixed Content from method/function call or FALSE if the class/method/function was not found
See also
getUserObj()

Definition at line 4276 of file GeneralUtility.php.

References $GLOBALS, and debug().

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\__construct(), TYPO3\CMS\T3editor\T3editor\ajaxSaveCode(), TYPO3\CMS\Core\DataHandling\DataHandler\applyFiltersToValues(), TYPO3\CMS\Linkvalidator\Task\ValidatorTask\buildMail(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\calcPerms(), TYPO3\CMS\Form\View\Wizard\WizardView\callRenderHook(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\callUserFunctionAcceptsClosures(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\callUserFunctionCanCallFunction(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\callUserFunctionCanCallMethod(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\callUserFunctionCanPersistObjectsBetweenCalls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\callUserFunctionCanPrefixFuncNameWithFilePath(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\callUserFunctionWillReturnFalseForInvalidParameters(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\callUserFunctionWillThrowExceptionForInvalidParameters(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\changePassword(), TYPO3\CMS\Backend\Form\Element\InlineElement\checkAccess(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkAlternativeIdMethods(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\checkAuthentication(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkEnableFields(), TYPO3\CMS\Core\Html\HtmlParser\checkTagTypeCounts(), TYPO3\CMS\Core\DataHandling\DataHandler\clear_cacheCmd(), TYPO3\CMS\Recordlist\RecordList\clearCache(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\connectToDB(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\contentStrReplace(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\createHashBase(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\determineId(), TYPO3\CMS\Core\Page\PageRenderer\doCompressCss(), TYPO3\CMS\Core\Page\PageRenderer\doCompressJavaScript(), TYPO3\CMS\Core\Page\PageRenderer\doConcatenateCss(), TYPO3\CMS\Core\Page\PageRenderer\doConcatenateJavaScript(), TYPO3\CMS\Core\FrontendEditing\FrontendEditingController\editAction(), TYPO3\CMS\Frontend\Page\PageRepository\enableFields(), TYPO3\CMS\Backend\Controller\BackendController\executeHook(), TYPO3\CMS\Core\Page\PageRenderer\executePostRenderHook(), TYPO3\CMS\Core\Page\PageRenderer\executePreRenderHook(), TYPO3\CMS\Core\Page\PageRenderer\executeRenderPostTransformHook(), TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\executeValueModifier(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_printFields(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\fetch_the_id(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\fetchGroups(), TYPO3\CMS\Core\Cache\Frontend\AbstractFrontend\flushByTag(), TYPO3\CMS\Backend\Form\FormEngine\formatValue(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\generateAndSendHash(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\generatePage_postProcessing(), TYPO3\CMS\Core\Utility\ClientUtility\getBrowserInfo(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getConfigArray(), TYPO3\CMS\Core\Utility\ClientUtility\getDeviceType(), TYPO3\CMS\Backend\ContextMenu\Pagetree\ContextMenuDataProvider\getDisableActions(), TYPO3\CMS\Backend\Template\DocumentTemplate\getDocHeaderButtons(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getFromCache(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\getImgColumnWidths(), TYPO3\CMS\Setup\Controller\SetupModuleController\getJavaScript(), TYPO3\CMS\Backend\Controller\LoginController\getJScode(), TYPO3\CMS\Linkvalidator\Task\ValidatorTask\getLinkTypes(), TYPO3\CMS\Backend\Utility\BackendUtility\getNoRecordTitle(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\getPagePermsClause(), TYPO3\CMS\Core\Database\QueryView\getQueryResultCode(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordTitle(), TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\getSearchFields(), TYPO3\CMS\Backend\Form\Element\InlineElement\getSingleField_typeInline(), TYPO3\CMS\Backend\Form\FormEngine\getSingleField_typeUser(), TYPO3\CMS\Backend\Utility\BackendUtility\getUpdateSignalCode(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\headerNoCache(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\hook_eofe(), TYPO3\CMS\Core\TypoScript\TemplateService\includeStaticTypoScriptSources(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\initFEuser(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\isBackendUserLoggedIn(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\isOutputting(), TYPO3\CMS\Core\TypoScript\TemplateService\linkData(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\linkWrapTemplateTitle(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\logoff(), TYPO3\CMS\Frontend\Controller\PageInformationController\main(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\main(), TYPO3\CMS\Backend\Controller\File\EditFileController\main(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\main(), TYPO3\CMS\Backend\Controller\PageLayoutController\main(), TYPO3\CMS\Backend\Utility\IconUtility\mapRecordTypeToSpriteIconName(), TYPO3\CMS\Backend\Template\DocumentTemplate\moduleBody(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageErrorHandler(), TYPO3\CMS\Core\DataHandling\DataHandler\prepareCacheFlush(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\previewInfo(), TYPO3\CMS\Backend\Controller\EditDocumentController\printContent(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\processOutput(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\processRedirect(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowBeforeSaving(), TYPO3\CMS\Backend\Form\DataPreprocessor\procItems(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\recordEditAccessInternals(), TYPO3\CMS\Backend\Form\Element\InlineElement\renderForeignRecordHeader(), TYPO3\CMS\Backend\Form\Element\SuggestDefaultReceiver\renderRecord(), TYPO3\CMS\Setup\Controller\SetupModuleController\renderUserSetup(), TYPO3\CMS\Frontend\Controller\ExtDirectEidController\routeAction(), TYPO3\CMS\Core\Cache\Frontend\VariableFrontend\set(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\set_cache_timeout_default(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\settingLanguage(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\showLogin(), TYPO3\CMS\Frontend\Imaging\GifBuilder\start(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\start(), TYPO3\CMS\Backend\Controller\LoginController\startForm(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_editPanel(), TYPO3\CMS\Setup\Controller\SetupModuleController\storeIncomingData(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\TCAlookup(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawHeader(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawItem(), and TYPO3\CMS\Workspaces\Service\WorkspaceService\viewSingleRecord().

◆ camelCaseToLowerCaseUnderscored()

static TYPO3\CMS\Core\Utility\GeneralUtility::camelCaseToLowerCaseUnderscored (   $string)
static

◆ checkInstanceClassName()

static TYPO3\CMS\Core\Utility\GeneralUtility::checkInstanceClassName (   $className,
  $instance 
)
staticprotected

Checks that $className is non-empty and that $instance is an instance of $className.

Exceptions

Definition at line 4671 of file GeneralUtility.php.

◆ classHasImplementation()

static TYPO3\CMS\Core\Utility\GeneralUtility::classHasImplementation (   $className)
staticprotected

Checks if a class has a configured implementation

Parameters
string$className
Returns
boolean

Definition at line 4538 of file GeneralUtility.php.

References $GLOBALS.

◆ cleanOutputBuffers()

static TYPO3\CMS\Core\Utility\GeneralUtility::cleanOutputBuffers ( )
static

Ends and cleans all output buffers

Returns
void

Definition at line 5359 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Openid\OpenidReturn\main().

◆ clientInfo()

static TYPO3\CMS\Core\Utility\GeneralUtility::clientInfo (   $useragent = '')
static

Client Browser Information

Parameters
string$useragentAlternative User Agent string (if empty, ::getIndpEnv('HTTP_USER_AGENT') is used)
Returns
array Parsed information about the HTTP_USER_AGENT in categories BROWSER, VERSION, SYSTEM

Definition at line 3720 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Backend\Form\FormEngine\__construct(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\__construct(), TYPO3\CMS\Rtehtmlarea\SelectImage\getAllowedItems(), TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\initializeGlobalVariables(), and TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\start().

◆ cmpFQDN()

static TYPO3\CMS\Core\Utility\GeneralUtility::cmpFQDN (   $baseHost,
  $list 
)
static

Match fully qualified domain name with list of strings with wildcard

Parameters
string$baseHostA hostname or an IPv4/IPv6-address (will by reverse-resolved; typically REMOTE_ADDR)
string$listA comma-list of domain names to match with. -wildcard allowed but cannot be part of a string, so it must match the full host name (eg. myhost..com => correct, myhost.*domain.com => wrong)
Returns
boolean TRUE if a domain name mask from $list matches $baseIP

Definition at line 641 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\cmpFqdnReturnsFalse(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\cmpFqdnReturnsTrue(), and TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher\evaluateConditionCommon().

◆ cmpIP()

static TYPO3\CMS\Core\Utility\GeneralUtility::cmpIP (   $baseIP,
  $list 
)
static

Match IP number with list of numbers with wildcard Dispatcher method for switching into specialised IPv4 and IPv6 methods.

Parameters
string$baseIPIs the current remote IP address for instance, typ. REMOTE_ADDR
string$listIs a comma-list of IP-addresses to match with. -wildcard allowed instead of number, plus leaving out parts in the IP number is accepted as wildcard (eg. 192.168..* equals 192.168). If list is "*" no check is done and the function returns TRUE immediately. An empty list always returns FALSE.
Returns
boolean TRUE if an IP-mask from $list matches $baseIP

Definition at line 389 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\beLoginLinkIPList(), TYPO3\CMS\Backend\FrontendBackendUserAuthentication\checkBackendAccessSettingsFromInitPhp(), TYPO3\CMS\Core\Core\Bootstrap\checkBackendIpOrDie(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\checkLockToIP(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkPageUnavailableHandler(), TYPO3\CMS\Core\Core\Bootstrap\configureExceptionHandling(), TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher\evaluateConditionCommon(), TYPO3\CMS\Core\Database\DatabaseConnection\explain(), and TYPO3\CMS\Install\Controller\Action\Step\DatabaseConnect\isConfigurationComplete().

◆ cmpIPv4()

static TYPO3\CMS\Core\Utility\GeneralUtility::cmpIPv4 (   $baseIP,
  $list 
)
static

Match IPv4 number with list of numbers with wildcard

Parameters
string$baseIPIs the current remote IP address for instance, typ. REMOTE_ADDR
string$listIs a comma-list of IP-addresses to match with. -wildcard allowed instead of number, plus leaving out parts in the IP number is accepted as wildcard (eg. 192.168..* equals 192.168), could also contain IPv6 addresses
Returns
boolean TRUE if an IP-mask from $list matches $baseIP

Definition at line 410 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\cmpIPv4ReturnsFalseForNotMatchingAddress(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\cmpIPv4ReturnsTrueForMatchingAddress().

◆ cmpIPv6()

static TYPO3\CMS\Core\Utility\GeneralUtility::cmpIPv6 (   $baseIP,
  $list 
)
static

Match IPv6 address with a list of IPv6 prefixes

Parameters
string$baseIPIs the current remote IP address for instance
string$listIs a comma-list of IPv6 prefixes, could also contain IPv4 addresses
Returns
boolean TRUE If an baseIP matches any prefix

Definition at line 456 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\cmpIPv6ReturnsFalseForNotMatchingAddress(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\cmpIPv6ReturnsTrueForMatchingAddress().

◆ compat_version()

static TYPO3\CMS\Core\Utility\GeneralUtility::compat_version (   $verNumberStr)
static

Returns TRUE if the current TYPO3 version (or compatibility version) is compatible to the input version Notice that this function compares branches, not versions (4.0.1 would be > 4.0.0 although they use the same compat_version)

Parameters
string$verNumberStrMinimum branch number required (format x.y / e.g. "4.0" NOT "4.0.0"!)
Returns
boolean Returns TRUE if this setup is compatible with the provided version number
Todo:
Still needs a function to convert versions to branches

Definition at line 791 of file GeneralUtility.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\VersionNumberUtility\convertVersionNumberToInteger().

Referenced by TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher\evaluateConditionCommon(), and TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getConfigArray().

◆ compileSelectedGetVarsFromArray()

static TYPO3\CMS\Core\Utility\GeneralUtility::compileSelectedGetVarsFromArray (   $varList,
array  $getArray,
  $GPvarAlt = TRUE 
)
static

Returns an array with selected keys from incoming data. (Better read source code if you want to find out...)

Parameters
string$varListList of variable/key names
array$getArrayArray from where to get values based on the keys in $varList
boolean$GPvarAltIf set, then ::_GP() is used to fetch the value if not found (isset) in the $getArray
Returns
array Output array with selected variables.

Definition at line 1681 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\compileSelectedGetVarsFromArrayFiltersIncomingData(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\compileSelectedGetVarsFromArrayUsesGetPostDataFallback(), TYPO3\CMS\Backend\Controller\EditDocumentController\compileStoreDat(), and TYPO3\CMS\Backend\Template\DocumentTemplate\makeShortcutUrl().

◆ compressIPv6()

static TYPO3\CMS\Core\Utility\GeneralUtility::compressIPv6 (   $address)
static

Compress an IPv6 address to the shortest notation

Parameters
string$addressGiven IPv6 address
Returns
string Compressed address
See also
normalizeIPv6()

Definition at line 594 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\compressIPv6CorrectlyCompressesAdresses(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\compressIPv6CorrectlyCompressesAdressWithSomeAddressOnRightSide().

◆ convertMicrotime()

static TYPO3\CMS\Core\Utility\GeneralUtility::convertMicrotime (   $microtime)
static

Returns microtime input to milliseconds

Parameters
string$microtimeMicrotime
Returns
integer Microtime input string converted to an integer (milliseconds)

Definition at line 1002 of file GeneralUtility.php.

◆ copyDirectory()

static TYPO3\CMS\Core\Utility\GeneralUtility::copyDirectory (   $source,
  $destination 
)
static

◆ createDirectoryPath()

static TYPO3\CMS\Core\Utility\GeneralUtility::createDirectoryPath (   $fullDirectoryPath)
staticprotected

Creates directories for the specified paths if they do not exist. This functions sets proper permission mask but does not set proper user and group.

Parameters
string$fullDirectoryPath
Returns
string Path to the the first created directory in the hierarchy
See also
::mkdir_deep
Exceptions

Definition at line 2900 of file GeneralUtility.php.

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

◆ createVersionNumberedFilename()

static TYPO3\CMS\Core\Utility\GeneralUtility::createVersionNumberedFilename (   $file,
  $forceQueryString = FALSE 
)
static

Function for static version numbers on files, based on the filemtime

This will make the filename automatically change when a file is changed, and by that re-cached by the browser. If the file does not exist physically the original file passed to the function is returned without the timestamp.

Behaviour is influenced by the setting TYPO3_CONF_VARS[TYPO3_MODE][versionNumberInFilename] = TRUE (BE) / "embed" (FE) : modify filename = FALSE (BE) / "querystring" (FE) : add timestamp as parameter

Parameters
string$fileRelative path to file including all potential query parameters (not htmlspecialchared yet)
boolean$forceQueryStringIf settings would suggest to embed in filename, this parameter allows us to force the versioning to occur in the query string. This is needed for scriptaculous.js which cannot have a different filename in order to load its modules (?load=...)
Returns
string Relative path with version filename including the timestamp

Definition at line 3253 of file GeneralUtility.php.

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

Referenced by TYPO3\CMS\T3editor\T3editor\__construct(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\getRteInitJsCode(), TYPO3\CMS\Backend\Controller\PageLayoutController\main(), TYPO3\CMS\Core\Page\PageRenderer\processJsFile(), TYPO3\CMS\Frontend\ContentObject\FormContentObject\render(), TYPO3\CMS\Core\Page\PageRenderer\renderAdditionalJavaScriptLibraries(), TYPO3\CMS\Core\Page\PageRenderer\renderCssFiles(), TYPO3\CMS\Core\Page\PageRenderer\renderCssLibraries(), and TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptFiles().

◆ csvValues()

static TYPO3\CMS\Core\Utility\GeneralUtility::csvValues ( array  $row,
  $delim = ',',
  $quote = '"' 
)
static

Takes a row and returns a CSV string of the values with $delim (default is ,) and $quote (default is ") as separator chars.

Parameters
array$rowInput array of values
string$delimDelimited, default is comma
string$quoteQuote-character to wrap around the values.
Returns
string A single line of CSV

Definition at line 1832 of file GeneralUtility.php.

◆ deHSCentities()

static TYPO3\CMS\Core\Utility\GeneralUtility::deHSCentities (   $str)
static

Re-converts HTML entities if they have been converted by htmlspecialchars() Note: Use htmlspecialchars($str, ENT_COMPAT, 'UTF-8', FALSE) to avoid double encoding. This makes the call to this method obsolete.

Parameters
string$strString which contains eg. "&amp;amp;" which should stay "&amp;". Or "&amp;#1234;" to "&#1234;". Or "&amp;#x1b;" to "&#x1b;
Returns
string Converted result.

Definition at line 1051 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\deHSCentitiesReturnsDecodedString().

◆ deprecationLog()

◆ devLog()

static TYPO3\CMS\Core\Utility\GeneralUtility::devLog (   $msg,
  $extKey,
  $severity = 0,
  $dataVar = FALSE 
)
static

Logs message to the development log. This should be implemented around the source code, both frontend and backend, logging everything from the flow through an application, messages, results from comparisons to fatal errors. The result is meant to make sense to developers during development or debugging of a site. The idea is that this function is only a wrapper for external extensions which can set a hook which will be allowed to handle the logging of the information to any format they might wish and with any kind of filter they would like. If you want to implement the devLog in your applications, simply add lines like: if (TYPO3_DLOG) ::devLog('[write message in english here]', 'extension key');

Parameters
string$msgMessage (in english).
string$extKeyExtension key (from which extension you are calling the log)
integer$severitySeverity: 0 is info, 1 is notice, 2 is warning, 3 is fatal error, -1 is "OK" message
mixed$dataVarAdditional data you want to pass to the logger.
Returns
void

Definition at line 5167 of file GeneralUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\ModuleSettings\addToStoreList(), TYPO3\CMS\Backend\ModuleSettings\addToStoreListFromPrefix(), TYPO3\CMS\Sv\AuthenticationService\authUser(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\checkAuthentication(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\compareUident(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\createUserSession(), TYPO3\CMS\Extbase\Validation\ValidatorResolver\createValidator(), TYPO3\CMS\Core\Database\DatabaseConnection\debug_check_recordset(), TYPO3\CMS\Core\Service\AbstractService\devLog(), TYPO3\CMS\Backend\Template\DocumentTemplate\endPage(), TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication\fetchGroupData(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\fetchUserSession(), TYPO3\CMS\Sv\AuthenticationService\getGroups(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\getImgColumnRelations(), TYPO3\CMS\Sv\AuthenticationService\getUser(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\initUserGroups(), TYPO3\CMS\Extbase\Object\Container\Container\log(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\logoff(), TYPO3\CMS\Dbal\Database\DatabaseConnection\prepare_SELECTquery(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\processLoginData(), TYPO3\CMS\Backend\ModuleSettings\processStoreControl(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\setAndSaveSessionData(), TYPO3\CMS\Core\Error\ErrorHandler\setExceptionalErrors(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\setSessionCookie(), TYPO3\CMS\Backend\ModuleSettings\setStoreList(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\start(), TYPO3\CMS\Saltedpasswords\SaltedPasswordService\updatePassword(), TYPO3\CMS\Openid\OpenidService\writeLog(), TYPO3\CMS\Core\Error\AbstractExceptionHandler\writeLogEntries(), TYPO3\CMS\Saltedpasswords\SaltedPasswordService\writeLogMessage(), and TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\writeUC().

◆ dirname()

static TYPO3\CMS\Core\Utility\GeneralUtility::dirname (   $path)
static

Returns the directory part of a path without trailing slash If there is no dir-part, then an empty string is returned. Behaviour:

'/dir1/dir2/script.php' => '/dir1/dir2' '/dir1/' => '/dir1' 'dir1/script.php' => 'dir1' 'd/script.php' => 'd' '/script.php' => '' '' => ''

Parameters
string$pathDirectory name / path
Returns
string Processed input value. See function description.

Definition at line 914 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\dirnameWithDataProvider(), TYPO3\CMS\Workspaces\Controller\PreviewController\generateJavascript(), TYPO3\CMS\Backend\Controller\BackendController\generateJavascript(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Core\Utility\GeneralUtility\gif_compress(), TYPO3\CMS\Backend\Form\FrontendFormEngine\initializeTemplateContainer(), and TYPO3\CMS\Frontend\Page\PageGenerator\renderContent().

◆ encodeHeader()

static TYPO3\CMS\Core\Utility\GeneralUtility::encodeHeader (   $line,
  $enc = 'quoted-printable',
  $charset = 'utf-8' 
)
static

Encode header lines Email headers must be ASCII, therefore they will be encoded to quoted_printable (default) or base64.

Parameters
string$lineContent to encode
string$encEncoding type: "base64" or "quoted-printable". Default value is "quoted-printable".
string$charsetCharset used for encoding
Returns
string The encoded string

Definition at line 4924 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\encodeHeaderEncodesQuestionmarksInQuotedPrintableMailHeader(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\encodeHeaderEncodesWhitespacesInQuotedPrintableMailHeader().

◆ expandList()

static TYPO3\CMS\Core\Utility\GeneralUtility::expandList (   $list)
static

Expand a comma-separated list of integers with ranges (eg 1,3-5,7 becomes 1,3,4,5,7). Ranges are limited to 1000 values per range.

Parameters
string$listComma-separated list of integers with ranges (string)
Returns
string New comma-separated list of items

Definition at line 750 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\expandListExpandsForTwoThousandElementsExpandsOnlyToThousandElementsMaximum(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\expandListExpandsIntegerRanges(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_expandList().

◆ explodeUrl2Array()

static TYPO3\CMS\Core\Utility\GeneralUtility::explodeUrl2Array (   $string,
  $multidim = FALSE 
)
static

◆ fixed_lgd_cs()

static TYPO3\CMS\Core\Utility\GeneralUtility::fixed_lgd_cs (   $string,
  $chars,
  $appendString = '...' 
)
static

Truncates a string with appended/prepended "..." and takes current character set into consideration.

Parameters
string$stringString to truncate
integer$charsMust be an integer with an absolute value of at least 4. if negative the string is cropped from the right end.
string$appendStringAppendix to the truncated string
Returns
string Cropped string

Definition at line 368 of file GeneralUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Utility\DiffUtility\addClearBuffer(), TYPO3\CMS\Backend\View\PageLayoutView\dataFields(), TYPO3\CMS\Feedit\FrontendEditPanel\editPanel(), TYPO3\CMS\Impexp\ImportExport\export_addRecord(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_fixed_lgd(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_getTemplateHierarchyArr(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_printFields(), TYPO3\CMS\Filelist\FileList\formatDirList(), TYPO3\CMS\Filelist\FileList\formatFileList(), TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView\func_search(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\generateReferenceToolTip(), TYPO3\CMS\Perm\Controller\PermissionModuleController\getButtons(), TYPO3\CMS\Filelist\FileList\getButtonsAndOtherMarkers(), TYPO3\CMS\Backend\Template\DocumentTemplate\getFileheader(), TYPO3\CMS\Backend\Template\DocumentTemplate\getHeader(), TYPO3\CMS\Backend\Utility\BackendUtility\getNoRecordTitle(), TYPO3\CMS\Backend\Template\DocumentTemplate\getPagePath(), TYPO3\CMS\Frontend\Page\PageRepository\getPathFromRootline(), TYPO3\CMS\IndexedSearch\Controller\ModuleController\getPhashExternalDocs(), TYPO3\CMS\IndexedSearch\Controller\ModuleController\getPhashT3pages(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordPath(), TYPO3\CMS\Backend\Search\LiveSearch\LiveSearch\getRecordTitlePrep(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordTitlePrep(), TYPO3\CMS\Backend\Template\DocumentTemplate\getResourceHeader(), TYPO3\CMS\Backend\Form\FormEngine\getSingleField_typeFlex_sheetMenu(), TYPO3\CMS\Backend\Toolbar\ShortcutToolbarItem\initShortcuts(), TYPO3\CMS\Filelist\FileList\linkWrapDir(), TYPO3\CMS\Filelist\FileList\linkWrapFile(), TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\linkWrapItems(), TYPO3\CMS\Backend\Controller\PageTreeNavigationController\main(), TYPO3\CMS\Backend\Controller\NewRecordController\main(), TYPO3\CMS\Backend\Controller\PageLayoutController\main(), TYPO3\CMS\WizardCrpages\Controller\CreatePagesWizardModuleFunctionController\modMenu(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\parseCurUrl(), TYPO3\CMS\Backend\Clipboard\Clipboard\printContentFromTab(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDBClickMenu(), TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController\printPhashRow(), TYPO3\CMS\Core\TimeTracker\TimeTracker\printTSlog(), TYPO3\CMS\Core\Database\RelationHandler\readyForInterface(), TYPO3\CMS\Fluid\ViewHelpers\Be\PagePathViewHelper\render(), TYPO3\CMS\Frontend\Controller\TranslationStatusController\renderL10nTable(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\renderList(), TYPO3\CMS\Backend\View\PageLayoutView\renderText(), TYPO3\CMS\Backend\Form\DataPreprocessor\selectAddForeign(), TYPO3\CMS\Cshmanual\Controller\HelpModuleController\substituteGlossaryWords_htmlcleaner_callback(), and TYPO3\CMS\Recordlist\Browser\ElementBrowser\TBE_dragNDrop().

◆ fixPermissions()

static TYPO3\CMS\Core\Utility\GeneralUtility::fixPermissions (   $path,
  $recursive = FALSE 
)
static

Sets the file system mode and group ownership of a file or a folder.

Parameters
string$pathPath of file or folder, must not be escaped. Path can be absolute or relative
boolean$recursiveIf set, also fixes permissions of files and folders in the folder (if $path is a folder)
Returns
mixed TRUE on success, FALSE on error, always TRUE on Windows OS

Definition at line 2733 of file GeneralUtility.php.

References $GLOBALS, and $result.

Referenced by TYPO3\CMS\Core\Locking\Locker\acquire(), TYPO3\CMS\Core\Locking\Locker\acquireExclusiveLock(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\addFile(), TYPO3\CMS\Core\Http\Observer\Download\closeFile(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\combineExec(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\copyFileWithinStorage(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\copyFolderWithinStorageCopiesFileInSingleSubFolderToNewFolderName(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\createFile(), TYPO3\CMS\Install\Service\EnableFileService\createInstallToolEnableFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsCorrectlySetsPermissionsRecursive(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsDoesNotSetPermissionsToNotAllowedPath(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsDefaultPermissionsToDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsDefaultPermissionsToFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsGroup(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToDirectoryWithTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToHiddenDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToHiddenFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsWithRelativeFileReference(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\imageMagickExec(), TYPO3\CMS\Backend\Utility\IconUtility\imagemake(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\ImageWrite(), TYPO3\CMS\Backend\View\ThumbnailView\main(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\moveFolderWithinStorage(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\replaceFile(), TYPO3\CMS\Core\Cache\Backend\FileBackend\set(), TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend\set(), TYPO3\CMS\Core\Package\PackageManager\sortAndSavePackageStates(), and TYPO3\CMS\Core\Mail\MboxTransport\stop().

◆ fixWindowsFilePath()

static TYPO3\CMS\Core\Utility\GeneralUtility::fixWindowsFilePath (   $theFile)
static

Fixes a path for windows-backslashes and reduces double-slashes to single slashes

Parameters
string$theFileFile path to process
Returns
string

Definition at line 3125 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\DataHandling\DataHandler\applyFiltersToValues(), TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset\cleanUpPath(), TYPO3\CMS\Fluid\View\TemplateView\expandPatterns(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\filesCanBeCopiedToATemporaryPath(), TYPO3\CMS\Fluid\View\StandaloneView\getLayoutPathAndFilename(), TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest\getLayoutSourceReturnsContentOfDefaultLayoutFileIfNoLayoutExistsForTheSpecifiedFormat(), TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest\getLayoutSourceReturnsContentOfLayoutFileForTheDefaultFormat(), TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest\getLayoutSourceReturnsContentOfLayoutFileForTheSpecifiedFormat(), TYPO3\CMS\Fluid\View\StandaloneView\getPartialPathAndFilename(), TYPO3\CMS\Core\Utility\PathUtility\getRelativePath(), TYPO3\CMS\Core\Utility\CommandUtility\imageMagickCommand(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\moveFolderWithinStorage(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\removeDirectory(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\renameFile(), TYPO3\CMS\Sv\Report\ServicesListReport\renderExecutablesSearchPathList(), TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest\renderLoadsSpecifiedTemplateFileAndPassesSourceToTemplateParser(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest\setCacheDirectoryAllowsRelativeDottedPathWithoutTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest\setCacheDirectoryAllowsRelativeDottedPathWithTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest\setCacheDirectoryAllowsRelativePathWithoutTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest\setCacheDirectoryAllowsRelativePathWithTrailingSlash(), and TYPO3\CMS\Form\Request\storeFiles().

◆ flushDirectory()

static TYPO3\CMS\Core\Utility\GeneralUtility::flushDirectory (   $directory,
  $keepOriginalDirectory = FALSE,
  $flushOpcodeCache = FALSE 
)
static

Flushes a directory by first moving to a temporary resource, and then triggering the remove process. This way directories can be flushed faster to prevent race conditions on concurrent processes accessing the same directory.

Parameters
string$directoryThe directory to be renamed and flushed
bool$keepOriginalDirectoryWhether to only empty the directory and not remove it
bool$flushOpcodeCacheAlso flush the opcode cache right after renaming the directory.
Returns
boolean Whether the action was successful

Definition at line 2969 of file GeneralUtility.php.

References $result, and TYPO3\CMS\Core\Utility\OpcodeCacheUtility\clearAllActive().

Referenced by TYPO3\CMS\Install\Service\ClearCacheService\clearAll(), and TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend\flush().

◆ flushOutputBuffers()

static TYPO3\CMS\Core\Utility\GeneralUtility::flushOutputBuffers ( )
static

Ends and flushes all output buffers

Returns
void

Definition at line 5371 of file GeneralUtility.php.

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

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

◆ formatForTextarea()

static TYPO3\CMS\Core\Utility\GeneralUtility::formatForTextarea (   $content)
static

Formats a string for output between <textarea>-tags All content outputted in a textarea form should be passed through this function Not only is the content htmlspecialchar'ed on output but there is also a single newline added in the top. The newline is necessary because browsers will ignore the first newline after <textarea> if that is the first character. Therefore better set it!

Parameters
string$contentInput string to be formatted.
Returns
string Formatted for <textarea>-tags

Definition at line 1166 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Backend\Rte\AbstractRte\drawRTE(), TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\drawRTE(), TYPO3\CMS\Core\Database\QueryView\getQueryResultCode(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\isAvailable(), TYPO3\CMS\Backend\Controller\File\EditFileController\main(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowBeforeSaving(), and TYPO3\CMS\Frontend\ContentObject\FormContentObject\render().

◆ formatSize()

static TYPO3\CMS\Core\Utility\GeneralUtility::formatSize (   $sizeInBytes,
  $labels = '' 
)
static

Formats the input integer $sizeInBytes as bytes/kilobytes/megabytes (-/K/M)

Parameters
integer$sizeInBytesNumber of bytes to format.
string$labelsLabels for bytes, kilo, mega and giga separated by vertical bar (|) and possibly encapsulated in "". Eg: " | K| M| G" (which is the default value)
Returns
string Formatted representation of the byte number, for output.

Definition at line 967 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\DataHandling\DataHandler\applyFiltersToValues(), TYPO3\CMS\IndexedSearch\Controller\SearchController\compileSingleResultRow(), TYPO3\CMS\Impexp\ImportExport\displayContentOverview(), TYPO3\CMS\Impexp\ImportExport\export_addFile(), TYPO3\CMS\Impexp\ImportExport\export_addRecord(), TYPO3\CMS\Impexp\ImportExport\export_addSysFile(), TYPO3\CMS\Impexp\Controller\ImportExportController\exportData(), TYPO3\CMS\Filelist\FileList\formatFileList(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\formatSizeTranslatesBytesToHigherOrderRepresentation(), TYPO3\CMS\Backend\Form\FormEngine\formatValue(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getDeprecationLogStatus(), TYPO3\CMS\Frontend\View\AdminPanelView\getInfoModule(), TYPO3\CMS\IndexedSearch\Controller\ModuleController\getPhashExternalDocs(), TYPO3\CMS\IndexedSearch\Controller\ModuleController\getPhashT3pages(), TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\getSenderEmailName(), TYPO3\CMS\Reports\Report\Status\SystemStatus\getStatus(), TYPO3\CMS\Rtehtmlarea\User\main_user(), TYPO3\CMS\Backend\Form\FormEngine\previewFieldValue(), TYPO3\CMS\Backend\Clipboard\Clipboard\printContentFromTab(), TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController\printPhashRow(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\procesResources(), TYPO3\CMS\Core\Log\Processor\MemoryUsageProcessor\processLogRecord(), TYPO3\CMS\Core\Log\Processor\MemoryPeakUsageProcessor\processLogRecord(), TYPO3\CMS\Install\ViewHelpers\File\SizeViewHelper\render(), TYPO3\CMS\Core\Resource\Hook\FileInfoHook\renderFileInformationContent(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\resourceListForCopy(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_bytes(), and TYPO3\CMS\Recordlist\Browser\ElementBrowser\TBE_dragNDrop().

◆ freetypeDpiComp()

static TYPO3\CMS\Core\Utility\GeneralUtility::freetypeDpiComp (   $font_size)
static

Function to compensate for FreeType2 96 dpi

Parameters
integer$font_sizeFontsize for freetype function call
Returns
integer Compensated fontsize based on $GLOBALS['TYPO3_CONF_VARS']['GFX']['TTFdpi']

Definition at line 5038 of file GeneralUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\fontGif(), TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\getSenderEmailName(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\ImageTTFBBoxWrapper(), and TYPO3\CMS\Core\Imaging\GraphicalFunctions\ImageTTFTextWrapper().

◆ generateRandomBytes()

◆ generateRandomBytesFallback()

static TYPO3\CMS\Core\Utility\GeneralUtility::generateRandomBytesFallback (   $bytesToReturn)
staticprotected

Generate pseudo random bytes as last resort

Parameters
$bytesToReturn
Returns
string

Definition at line 1290 of file GeneralUtility.php.

References $GLOBALS.

◆ generateRandomBytesMcrypt()

static TYPO3\CMS\Core\Utility\GeneralUtility::generateRandomBytesMcrypt (   $bytesToGenerate)
staticprotected

Generate random bytes using mcrypt if available

Parameters
$bytesToGenerate
Returns
string

Definition at line 1258 of file GeneralUtility.php.

◆ generateRandomBytesOpenSsl()

static TYPO3\CMS\Core\Utility\GeneralUtility::generateRandomBytesOpenSsl (   $bytesToGenerate)
staticprotected

Generate random bytes using openssl if available

Parameters
string$bytesToGenerate
Returns
string

Definition at line 1244 of file GeneralUtility.php.

◆ generateRandomBytesUrandom()

static TYPO3\CMS\Core\Utility\GeneralUtility::generateRandomBytesUrandom (   $bytesToGenerate)
staticprotected

Read random bytes from /dev/urandom if it is accessible

Parameters
$bytesToGenerate
Returns
string

Definition at line 1271 of file GeneralUtility.php.

◆ get_dirs()

static TYPO3\CMS\Core\Utility\GeneralUtility::get_dirs (   $path)
static

Returns an array with the names of folders in a specific path Will return 'error' (string) if there were an error with reading directory content.

Parameters
string$pathPath to list directories from
Returns
array Returns an array with the directory entries as values. If no path, the return value is nothing.

Definition at line 2994 of file GeneralUtility.php.

Referenced by TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\crawler_execute_type2(), TYPO3\CMS\Documentation\Domain\Repository\DocumentRepository\findAll(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getDirsReturnsArrayOfDirectoriesFromGivenDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getDirsReturnsStringErrorOnPathFailure(), TYPO3\CMS\Extensionmanager\Utility\DependencyUtility\getExtensionFromInExtensionRepository(), and TYPO3\CMS\Backend\Sprite\SpriteGenerator\getFolder().

◆ get_tag_attributes()

static TYPO3\CMS\Core\Utility\GeneralUtility::get_tag_attributes (   $tag)
static

Returns an array with all attributes of the input HTML tag as key/value pairs. Attributes are only lowercase a-z $tag is either a whole tag (eg '<TAG option="" attrib="VALUE">') or the parameter list (ex ' OPTION ATTRIB=VALUE>') If an attribute is empty, then the value for the key is empty. You can check if it existed with isset()

Parameters
string$tagHTML-tag string (or attributes only)
Returns
array Array with the attribute values.

Definition at line 1891 of file GeneralUtility.php.

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

Referenced by TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\_parseFunc(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\addParams(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\encaps_lineSplit(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\initCurrentUrl(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\initCurrentUrl(), TYPO3\CMS\Frontend\Plugin\AbstractPlugin\pi_openAtagHrefInJSwindow(), TYPO3\CMS\Rtehtmlarea\Controller\AccessibilityLinkController\removeAccessibilityIcon(), and TYPO3\CMS\IndexedSearch\Indexer\splitHTMLContent().

◆ getAllFilesAndFoldersInPath()

static TYPO3\CMS\Core\Utility\GeneralUtility::getAllFilesAndFoldersInPath ( array  $fileArr,
  $path,
  $extList = '',
  $regDirs = FALSE,
  $recursivityLevels = 99,
  $excludePattern = '' 
)
static

Recursively gather all files and folders of a path.

Parameters
array$fileArrEmpty input array (will have files added to it)
string$pathThe path to read recursively from (absolute) (include trailing slash!)
string$extListComma list of file extensions: Only files with extensions in this list (if applicable) will be selected.
boolean$regDirsIf set, directories are also included in output.
integer$recursivityLevelsThe number of levels to dig down...
string$excludePatternregex pattern of files/directories to exclude
Returns
array An array with the found files/directories.

Definition at line 3084 of file GeneralUtility.php.

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

Referenced by TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\crawler_execute_type2(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\createZipFileFromExtension(), TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\includeDirectory(), and TYPO3\CMS\Lowlevel\LostFilesCommand\main().

◆ getApplicationContext()

◆ getBytesFromSizeMeasurement()

static TYPO3\CMS\Core\Utility\GeneralUtility::getBytesFromSizeMeasurement (   $measurement)
static

Gets the bytes value from a measurement string like "100k".

Parameters
string$measurementThe measurement (e.g. "100k")
Returns
integer The bytes value (e.g. 102400)

Definition at line 3215 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getBytesFromSizeMeasurementCalculatesCorrectByteValue(), and TYPO3\CMS\Reports\Report\Status\SystemStatus\getStatus().

◆ getClassName()

static TYPO3\CMS\Core\Utility\GeneralUtility::getClassName (   $className)
staticprotected

Returns the class name for a new instance, taking into account registered implementations for this class

Parameters
string$classNameBase class name to evaluate
Returns
string Final class name to instantiate with "new [classname]

Definition at line 4513 of file GeneralUtility.php.

◆ getDeprecationLogFileName()

static TYPO3\CMS\Core\Utility\GeneralUtility::getDeprecationLogFileName ( )
static

◆ getFileAbsFileName()

static TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName (   $filename,
  $onlyRelative = TRUE,
  $relToTYPO3_mainDir = FALSE 
)
static

Returns the absolute filename of a relative reference, resolves the "EXT:" prefix (way of referring to files inside extensions) and checks that the file is inside the PATH_site of the TYPO3 installation and implies a check with ::validPathStr().

Parameters
string$filenameThe input filename/filepath to evaluate
boolean$onlyRelativeIf $onlyRelative is set (which it is by default), then only return values relative to the current PATH_site is accepted.
boolean$relToTYPO3_mainDirIf $relToTYPO3_mainDir is set, then relative paths are relative to PATH_typo3 constant - otherwise (default) they are relative to PATH_site
Returns
string Returns the absolute filename of $filename if valid, otherwise blank string.

Definition at line 3832 of file GeneralUtility.php.

References TYPO3\CMS\Core\Utility\ExtensionManagementUtility\extPath(), and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded().

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\applyStandardWrapToFluidPaths(), TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\assertAssertionDataSet(), TYPO3\CMS\Rtehtmlarea\Extension\MicroDataSchema\buildJavascriptConfiguration(), TYPO3\CMS\Impexp\ImportExport\checkOrCreateDir(), TYPO3\CMS\Scheduler\Task\RecyclerGarbageCollectionTask\cleanupRecycledFiles(), TYPO3\CMS\Core\DataHandling\DataHandler\copyRecord_fixRTEmagicImages(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\crawler_execute_type2(), TYPO3\CMS\Extensionmanager\Utility\UpdateScriptUtility\determineUpdateClassName(), TYPO3\CMS\Linkvalidator\Task\ValidatorTask\execute(), TYPO3\CMS\Impexp\ImportExport\export_addFile(), TYPO3\CMS\Impexp\ImportExport\export_addFilesFromRelations(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_getTSCE_config_image(), TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\extractIncludes(), TYPO3\CMS\IndexedSearch\Indexer\extractLinks(), TYPO3\CMS\Documentation\Service\DocumentationService\fetchDocument(), TYPO3\CMS\Core\Database\SoftReferenceIndex\fileadminReferences(), TYPO3\CMS\Core\Database\SoftReferenceIndex\findRef_images(), TYPO3\CMS\Core\Database\SoftReferenceIndex\findRef_TStemplate(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\getAbsolutePath(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\getContentCssFileName(), TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility\getDefaultConfigurationRawString(), TYPO3\CMS\Backend\Utility\BackendUtility\getFlexFormDS(), TYPO3\CMS\Backend\Template\DocumentTemplate\getHtmlTemplate(), TYPO3\CMS\Extensionmanager\ViewHelpers\ImageViewHelper\getImageUri(), TYPO3\CMS\Documentation\Service\DocumentationService\getLocalExtensions(), TYPO3\CMS\Documentation\Service\DocumentationService\getOfficialDocuments(), TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser\getParsedData(), TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser\getParsedData(), TYPO3\CMS\Backend\Utility\BackendUtility\getRegisteredFlexForms(), TYPO3\CMS\Core\Page\PageRenderer\getTemplateForPart(), TYPO3\CMS\Dbal\Database\DatabaseConnection\handler_init(), TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\importScenarioDataSet(), TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\includeDirectory(), TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\includeFile(), TYPO3\CMS\IndexedSearch\Indexer\indexRegularDocument(), TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController\init(), TYPO3\CMS\Core\Charset\CharsetConverter\initCaseFolding(), TYPO3\CMS\Core\Charset\CharsetConverter\initCharset(), TYPO3\CMS\Core\Core\CliBootstrap\initializeCliKeyOrDie(), TYPO3\CMS\Install\Controller\Action\AbstractAction\initializeHandle(), TYPO3\CMS\Core\Charset\CharsetConverter\initToASCII(), TYPO3\CMS\Core\Charset\CharsetConverter\initUnicodeData(), TYPO3\CMS\Core\Localization\Parser\LocallangArrayParser\isWithinWebRoot(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\jumpUrl(), TYPO3\CMS\Core\Page\PageRenderer\loadRequireJs(), TYPO3\CMS\Core\Localization\LocalizationFactory\localizationOverride(), TYPO3\CMS\Lowlevel\DoubleFilesCommand\main_autoFix(), TYPO3\CMS\Lowlevel\RteImagesCommand\main_autoFix(), TYPO3\CMS\Lowlevel\LostFilesCommand\main_autoFix(), TYPO3\CMS\Cshmanual\Controller\HelpModuleController\make_seeAlso(), TYPO3\CMS\Backend\Controller\LoginController\makeLoginBoxImage(), TYPO3\CMS\IndexedSearch\Controller\SearchController\makeRating(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageErrorHandler(), TYPO3\CMS\Backend\Form\FormEngine\previewFieldValue(), TYPO3\CMS\Cshmanual\Controller\HelpModuleController\printImage(), TYPO3\CMS\Impexp\ImportExport\processSoftReferences_saveFile(), TYPO3\CMS\Impexp\ImportExport\processSoftReferences_saveFile_createRelFile(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowBeforeSaving(), TYPO3\CMS\Fluid\ViewHelpers\Uri\ResourceViewHelper\render(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\render_uploads(), TYPO3\CMS\Backend\Form\FormEngine\renderWizards(), TYPO3\CMS\Fluid\View\TemplateView\resolveFileNamePath(), TYPO3\CMS\Workspaces\Service\AdditionalResourceService\resolvePath(), TYPO3\CMS\Core\Resource\ResourceFactory\retrieveFileOrFolderObject(), TYPO3\CMS\Core\Localization\LanguageStore\setConfiguration(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\setLayoutRootPath(), TYPO3\CMS\Core\Log\Writer\FileWriter\setLogFile(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\setPartialRootPath(), TYPO3\CMS\Core\Database\SoftReferenceIndex\setTypoLinkPartsElement(), TYPO3\CMS\Documentation\Service\DocumentationService\unzipDocumentPackage(), TYPO3\CMS\Lang\Utility\Connection\Ter\unzipTranslationFile(), TYPO3\CMS\Lang\Utility\Connection\Ter\updateTranslation(), and TYPO3\CMS\Impexp\ImportExport\writeFileVerify().

◆ getFilesInDir()

static TYPO3\CMS\Core\Utility\GeneralUtility::getFilesInDir (   $path,
  $extensionList = '',
  $prependPath = FALSE,
  $order = '',
  $excludePattern = '' 
)
static

Finds all files in a given path and returns them as an array. Each array key is a md5 hash of the full path to the file. This is done because 'some' extensions like the import/export extension depend on this.

Parameters
string$pathThe path to retrieve the files from.
string$extensionListA comma-separated list of file extensions. Only files of the specified types will be retrieved. When left blank, files of any type will be retrieved.
boolean$prependPathIf TRUE, the full path to the file is returned. If FALSE only the file name is returned.
string$orderThe sorting order. The default sorting order is alphabetical. Setting $order to 'mtime' will sort the files by modification time.
string$excludePatternA regular expression pattern of file names to exclude. For example: 'clear.gif' or '(clear.gif|.htaccess)'. The pattern will be wrapped with: '/^' and '$/'.
Returns
array|string Array of the files found, or an error message in case the path could not be opened.

Definition at line 3023 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Backend\Template\DocumentTemplate\addStyleSheetDirectory(), TYPO3\CMS\Documentation\Domain\Repository\DocumentRepository\findAll(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFilesInDirByExtensionDoesNotFindFilesWithOtherExtensions(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFilesInDirByExtensionFindsFiles(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFilesInDirCanOrderByMtime(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFilesInDirCanPrependPath(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFilesInDirDoesNotFindDirectories(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFilesInDirDoesNotFindDotfiles(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFilesInDirDoesSortAlphabeticallyByDefault(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFilesInDirExcludesFilesMatchingPattern(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFilesInDirFindsHiddenFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFilesInDirFindsRegularFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFilesInDirReturnsArrayWithMd5OfElementAndPathAsArrayKey(), TYPO3\CMS\Backend\Sprite\SpriteGenerator\getFolder(), TYPO3\CMS\Install\Controller\Action\Tool\CleanUp\getTypo3TempStatistics(), TYPO3\CMS\Backend\Sprite\AbstractSpriteHandler\loadRegisteredSprites(), TYPO3\CMS\Backend\Controller\BackendController\loadResourcesForRegisteredNavigationComponents(), TYPO3\CMS\Impexp\Task\ImportExportTask\main(), TYPO3\CMS\Rtehtmlarea\User\main_user(), and TYPO3\CMS\Backend\Controller\LoginController\makeLoginBoxImage().

◆ getHostname()

static TYPO3\CMS\Core\Utility\GeneralUtility::getHostname (   $requestHost = TRUE)
static

Get the fully-qualified domain name of the host.

Parameters
boolean$requestHostUse request host (when not in CLI mode).
Returns
string The fully-qualified host name.

Definition at line 3784 of file GeneralUtility.php.

References $host.

◆ getImplementationForClass()

static TYPO3\CMS\Core\Utility\GeneralUtility::getImplementationForClass (   $className)
staticprotected

Returns the configured implementation of the class

Parameters
string$className
Returns
string

Definition at line 4528 of file GeneralUtility.php.

References $GLOBALS.

◆ getIndpEnv()

static TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv (   $getEnvName)
static

Abstraction method which returns System Environment Variables regardless of server OS, CGI/MODULE version etc. Basically this is SERVER variables for most of them. This should be used instead of getEnv() and $_SERVER/ENV_VARS to get reliable values for all situations.

Parameters
string$getEnvNameName of the "environment variable"/"server variable" you wish to use. Valid values are SCRIPT_NAME, SCRIPT_FILENAME, REQUEST_URI, PATH_INFO, REMOTE_ADDR, REMOTE_HOST, HTTP_REFERER, HTTP_HOST, HTTP_USER_AGENT, HTTP_ACCEPT_LANGUAGE, QUERY_STRING, TYPO3_DOCUMENT_ROOT, TYPO3_HOST_ONLY, TYPO3_HOST_ONLY, TYPO3_REQUEST_HOST, TYPO3_REQUEST_URL, TYPO3_REQUEST_SCRIPT, TYPO3_REQUEST_DIR, TYPO3_SITE_URL, _ARRAY
Returns
string Value based on the input key, independent of server/os environment.
Exceptions

Definition at line 3368 of file GeneralUtility.php.

References $GLOBALS, $host, TYPO3\CMS\Core\Utility\GeneralUtility\dirname(), if, TYPO3\CMS\Core\Utility\PathUtility\stripPathSitePrefix(), and TYPO3\CMS\Core\Utility\GeneralUtility\strtolower().

Referenced by TYPO3\CMS\Install\View\StandaloneView\__construct(), TYPO3\CMS\Install\Service\SessionService\__construct(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\__construct(), TYPO3\CMS\Backend\Template\DocumentTemplate\addStyleSheetDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\allGetIndpEnvCallsRelatedToHostNamesCallIsAllowedHostHeaderValue(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\beLoginLinkIPList(), TYPO3\CMS\Fluid\Tests\Unit\Core\Widget\WidgetRequestBuilderTest\buildSetsBaseUri(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\RequestBuilderTest\buildSetsRequestBaseUri(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\RequestBuilderTest\buildSetsRequestRequestUri(), TYPO3\CMS\Fluid\Tests\Unit\Core\Widget\WidgetRequestBuilderTest\buildSetsRequestUri(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkAlternativeIdMethods(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\checkAuthentication(), TYPO3\CMS\Backend\FrontendBackendUserAuthentication\checkBackendAccessSettingsFromInitPhp(), TYPO3\CMS\Core\Core\Bootstrap\checkBackendIpOrDie(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkDataSubmission(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\checkisOnCurrentHostInvalidHosts(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkJumpUrlReferer(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\checkLockToIP(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkPageUnavailableHandler(), TYPO3\CMS\Core\Core\Bootstrap\checkSslBackendAndRedirectIfNeeded(), TYPO3\CMS\Core\Html\HtmlParser\checkTagTypeCounts(), TYPO3\CMS\Recordlist\RecordList\clearCache(), TYPO3\CMS\Core\Core\Bootstrap\configureExceptionHandling(), TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest\constructorSetsBaseUri(), TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest\constructorSetsRequestUri(), TYPO3\CMS\Rtehtmlarea\Hook\Frontend\Controller\TypoScriptFrontendControllerHook\contentPostProcOutput(), TYPO3\CMS\IndexedSearch\Indexer\createLocalPathUsingDomainURL(), TYPO3\CMS\Core\Resource\ResourceCompressor\createMergedFile(), TYPO3\CMS\Backend\Utility\BackendUtility\createPreviewUrl(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\determineScriptUrl(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\determineScriptUrl(), TYPO3\CMS\Backend\Tree\View\AbstractTreeView\determineScriptUrl(), TYPO3\CMS\Frontend\View\AdminPanelView\display(), TYPO3\CMS\Backend\History\RecordHistory\displaySettings(), TYPO3\CMS\Backend\Controller\EditDocumentController\doProcessData(), TYPO3\CMS\Core\Error\DebugExceptionHandler\echoExceptionWeb(), TYPO3\CMS\Feedit\FrontendEditPanel\editIcons(), TYPO3\CMS\Backend\Utility\BackendUtility\editOnClick(), TYPO3\CMS\Feedit\FrontendEditPanel\editPanel(), TYPO3\CMS\Feedit\FrontendEditPanel\editPanelLinkWrap(), TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher\evaluateConditionCommon(), TYPO3\CMS\Install\Controller\Action\Tool\LoadExtensions\executeAction(), TYPO3\CMS\Core\Database\DatabaseConnection\explain(), TYPO3\CMS\Frontend\View\AdminPanelView\ext_makeToolBar(), TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest\extractHyperLinksRecurnsCorrectPathWithBaseUrl(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\fetch_the_id(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\fetchGroups(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\findDomainRecord(), TYPO3\CMS\Workspaces\Controller\ReviewController\fullIndexAction(), TYPO3\CMS\Workspaces\Controller\PreviewController\generateJavascript(), TYPO3\CMS\Backend\Controller\BackendController\generateJavascript(), TYPO3\CMS\Frontend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\genericGetVariablesSucceedsWithNamespaceIENV(), TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\genericGetVariablesSucceedsWithNamespaceIENV(), TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath(), TYPO3\CMS\SysAction\ActionTask\getActions(), TYPO3\CMS\Backend\Utility\BackendUtility\getAjaxUrl(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\getAuthInfoArray(), TYPO3\CMS\Linkvalidator\Linktype\FileLinktype\getBrokenUrl(), TYPO3\CMS\Linkvalidator\Linktype\InternalLinktype\getBrokenUrl(), TYPO3\CMS\Backend\Controller\FileSystemNavigationFrameController\getButtons(), TYPO3\CMS\Backend\Controller\PageTreeNavigationController\getButtons(), TYPO3\CMS\Version\Controller\VersionModuleController\getButtons(), TYPO3\CMS\Backend\Controller\PageLayoutController\getButtons(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\getCookieDomain(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getDeprecationLogStatus(), TYPO3\CMS\Frontend\Page\PageRepository\getExtURL(), TYPO3\CMS\Extbase\Service\ImageService\getImageUri(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getIndpEnvForHostAllowsAllHostnameValuesIfHostPatternIsSetToAllowAll(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getIndpEnvForHostThrowsExceptionForNotAllowedHostnameValues(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getIndpEnvTypo3HostOnlyParsesHostnamesAndIpAdresses(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getIndpEnvTypo3PortParsesHostnamesAndIpAdresses(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getIndpEnvTypo3SitePathReturnNonEmptyString(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getIndpEnvTypo3SitePathReturnsStringEndingWithSlash(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getIndpEnvTypo3SitePathReturnsStringStartingWithDrive(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getIndpEnvTypo3SitePathReturnsStringStartingWithSlash(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getInstallToolProtectionStatus(), TYPO3\CMS\Recycler\Controller\RecyclerModuleController\getJavaScriptConfiguration(), TYPO3\CMS\Rtehtmlarea\SelectImage\getJSCode(), TYPO3\CMS\Backend\Utility\BackendUtility\getModuleUrl(), TYPO3\CMS\Backend\Utility\BackendUtility\getPathType_web_nonweb(), TYPO3\CMS\Version\Hook\PreviewHook\getPreviewConfiguration(), TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\getRecordActions(), TYPO3\CMS\Openid\OpenidService\getReturnURL(), TYPO3\CMS\Backend\View\PageLayoutView\getSelectedBackendLayoutUid(), TYPO3\CMS\Openid\Wizard\getSelfUrl(), TYPO3\CMS\Reports\Report\Status\SystemStatus\getStatus(), TYPO3\CMS\Backend\ModuleSettings\getStoreControl(), TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher\getVariableCommon(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\hashLockClause_getHashInt(), TYPO3\CMS\Workspaces\Hook\TypoScriptFrontendControllerHook\hook_eofe(), TYPO3\CMS\Workspaces\Controller\ReviewController\indexAction(), TYPO3\CMS\Rtehtmlarea\User\init(), TYPO3\CMS\Backend\Controller\File\FileUploadController\init(), TYPO3\CMS\Backend\Controller\Wizard\TableController\init(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\init(), TYPO3\CMS\Backend\Controller\LoginController\init(), TYPO3\CMS\Backend\Controller\Wizard\FormsController\init(), TYPO3\CMS\Workspaces\Controller\PreviewController\initializeAction(), TYPO3\CMS\Backend\Form\FrontendFormEngine\initializeTemplateContainer(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\initVariables(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\ipLockClause_remoteIPNumber(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\isAvailable(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\isInCurrentDomain(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\isOnCurrentHostReturnsTrueWithCurrentHost(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\isRelativeUrl(), TYPO3\CMS\Backend\Template\DocumentTemplate\issueCommand(), TYPO3\CMS\IndexedSearch\Controller\SearchController\linkPage(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\linkPage(), TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController\listWords(), TYPO3\CMS\Rsaauth\Hook\FrontendLoginHook\loginFormHook(), TYPO3\CMS\Openid\OpenidReturn\main(), TYPO3\CMS\Backend\Controller\Wizard\ListController\main(), TYPO3\CMS\Backend\Controller\File\FileController\main(), TYPO3\CMS\Backend\Controller\Wizard\AddController\main(), TYPO3\CMS\Version\Controller\VersionModuleController\main(), TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\main(), TYPO3\CMS\Backend\Controller\PageLayoutController\main(), TYPO3\CMS\Backend\Template\DocumentTemplate\makeShortcutIcon(), TYPO3\CMS\Backend\Utility\IconUtility\mapFileExtensionToSpriteIconName(), TYPO3\CMS\Version\Hook\DataHandlerHook\moveRecord_processFieldValue(), TYPO3\CMS\Taskcenter\Controller\TaskModuleController\openInNewWindow(), TYPO3\CMS\Install\Controller\AbstractController\outputLoginFormIfNotAuthorized(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageErrorHandler(), TYPO3\CMS\Frontend\Page\PageGenerator\pagegenInit(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\prefixLocalAnchorsWithScript(), TYPO3\CMS\Backend\Controller\EditDocumentController\preInit(), TYPO3\CMS\Rtehtmlarea\Controller\AccessibilityLinkController\removeAccessibilityIcon(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\removeCookie(), TYPO3\CMS\Beuser\ViewHelpers\RemoveUserViewHelper\render(), TYPO3\CMS\SysNote\ViewHelpers\EditLinkViewHelper\render(), TYPO3\CMS\Beuser\ViewHelpers\IssueCommandViewHelper\render(), TYPO3\CMS\SysAction\ActionTask\renderActionList(), TYPO3\CMS\Frontend\Page\PageGenerator\renderContent(), TYPO3\CMS\Backend\Form\Element\InlineElement\renderForeignRecord(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\resetUC(), TYPO3\CMS\Core\Resource\ResourceCompressor\returnFileReference(), TYPO3\CMS\Openid\OpenidService\sendOpenIDRequest(), TYPO3\CMS\Backend\Controller\EditDocumentController\setDocument(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\setIDfromArgV(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\setSessionCookie(), TYPO3\CMS\Form\PostProcess\MailPostProcessor\setSubject(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\showLogin(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\simplelog(), TYPO3\CMS\Workspaces\Controller\ReviewController\singleIndexAction(), TYPO3\CMS\Core\Html\RteHtmlParser\siteUrl(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\start(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\tempPageCacheContent(), TYPO3\CMS\Core\Html\RteHtmlParser\TS_images_rte(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawHeader(), TYPO3\CMS\SysAction\ActionTask\viewEditRecord(), TYPO3\CMS\SysAction\ActionTask\viewNewRecord(), TYPO3\CMS\Backend\Template\DocumentTemplate\viewPageIcon(), TYPO3\CMS\SysAction\ActionTask\viewRecordList(), TYPO3\CMS\SysAction\ActionTask\viewSqlQuery(), TYPO3\CMS\Core\Tests\Unit\Log\Processor\WebProcessorTest\webProcessorAddsWebDataToLogRecord(), TYPO3\CMS\Core\Error\AbstractExceptionHandler\writeLog(), TYPO3\CMS\Core\Error\ErrorHandler\writeLog(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\writelog(), TYPO3\CMS\Core\Error\AbstractExceptionHandler\writeLogEntries(), TYPO3\CMS\IndexedSearch\Controller\SearchController\writeSearchStat(), and TYPO3\CMS\IndexedSearch\Controller\SearchFormController\writeSearchStat().

◆ getMaximumPathLength()

static TYPO3\CMS\Core\Utility\GeneralUtility::getMaximumPathLength ( )
static

Retrieves the maximum path length that is valid in the current environment.

Returns
integer The maximum available path length

Definition at line 3232 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend\setCache().

◆ getMaxUploadFileSize()

static TYPO3\CMS\Core\Utility\GeneralUtility::getMaxUploadFileSize (   $localLimit = 0)
static

Returns the maximum upload size for a file that is allowed. Measured in KB. This might be handy to find out the real upload limit that is possible for this TYPO3 installation. The first parameter can be used to set something that overrides the maxFileSize, usually for the TCA values.

Parameters
integer$localLimitthe number of Kilobytes (!) that should be used as
Returns
integer The maximum size of uploads that are allowed (measured in kilobytes)

Definition at line 3193 of file GeneralUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Resource\ResourceStorage\assureFileUploadPermissions(), and TYPO3\CMS\Filelist\Controller\FileListController\menuConfig().

◆ getRandomHexString()

static TYPO3\CMS\Core\Utility\GeneralUtility::getRandomHexString (   $count)
static

◆ getRedirectUrlFromHttpHeaders()

static TYPO3\CMS\Core\Utility\GeneralUtility::getRedirectUrlFromHttpHeaders (   $content)
staticprotected

Parses HTTP headers and returns the content of the "Location" header or the empty string if no such header found.

Parameters
string$content
Returns
string

Definition at line 2667 of file GeneralUtility.php.

References $result.

◆ getSingletonInstances()

static TYPO3\CMS\Core\Utility\GeneralUtility::getSingletonInstances ( )
static

Get all currently registered singletons

Warning: This is NOT a public API method and must not be used in own extensions! This method is usually only used in tests in setUp() to fetch the list of currently registered singletons, if this list is manipulated with setSingletonInstance() in tests.

Definition at line 4632 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getSingletonInstancesContainsPreviouslySetSingletonInstance(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\resetSingletonInstancesResetsPreviouslySetInstance(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\resetSingletonInstancesSetsGivenInstance(), TYPO3\CMS\Core\Tests\Unit\Utility\MailUtilityTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest\setUp(), TYPO3\CMS\Extbase\Tests\Unit\Core\BootstrapTest\setUp(), TYPO3\CMS\Extbase\Tests\Unit\Service\FlexFormServiceTest\setUp(), TYPO3\CMS\Scheduler\Tests\Unit\Task\CachingFrameworkGarbageCollectionTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Resource\FolderTest\setUp(), TYPO3\CMS\Extensionmanager\Tests\Unit\Task\UpdateExtensionListTaskTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Resource\FileTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceStorageTest\setUp(), TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\setUp(), typo3\sysext\form\Tests\Unit\Domain\AttributesAttributeTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Utility\ExtensionManagementUtilityTest\setUp(), TYPO3\CMS\Core\Tests\Unit\DataHandler\DataHandlerTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Resource\Utility\FileExtensionFilterTest\setUp(), TYPO3\CMS\Form\Tests\Unit\PostProcess\PostProcessorTest\setUp(), and TYPO3\CMS\Core\Tests\Integrity\IntegrityTest\standardSingletonIsRegistered().

◆ getThisUrl()

static TYPO3\CMS\Core\Utility\GeneralUtility::getThisUrl ( )
static

Returns the HOST+DIR-PATH of the current script (The URL, but without 'http://' and without script-filename)

Returns
string

Definition at line 3308 of file GeneralUtility.php.

◆ getUrl()

static TYPO3\CMS\Core\Utility\GeneralUtility::getUrl (   $url,
  $includeHeader = 0,
  $requestHeaders = FALSE,
$report = NULL 
)
static

Reads the file or url $url and returns the content If you are having trouble with proxys when reading URLs you can configure your way out of that with settings like $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlUse'] etc.

Parameters
string$urlFile/URL to read
integer$includeHeaderWhether the HTTP header should be fetched or not. 0=disable, 1=fetch header+content, 2=fetch header only
array$requestHeadersHTTP headers to be used in the request
array$reportError code/message and, if $includeHeader is 1, response meta data (HTTP status and content type)
Returns
mixed The content from the resource given as input. FALSE if an error has occurred.

Definition at line 2461 of file GeneralUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\TypoScript\TemplateService\addExtensionStatics(), TYPO3\CMS\Impexp\ImportExport\addThumbnail(), TYPO3\CMS\Rtehtmlarea\Extension\MicroDataSchema\buildJavascriptConfiguration(), TYPO3\CMS\Core\Core\Bootstrap\checkLockedBackendAndRedirectOrDie(), TYPO3\CMS\Lowlevel\CleanerCommand\cli_main(), TYPO3\CMS\Core\Resource\ResourceCompressor\compressCssFile(), TYPO3\CMS\Core\Resource\ResourceCompressor\compressJsFile(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\createExtLocalconfCacheEntry(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\createExtTablesCacheEntry(), TYPO3\CMS\Core\Resource\ResourceCompressor\createMergedFile(), TYPO3\CMS\Extensionmanager\Utility\UpdateScriptUtility\determineUpdateClassName(), TYPO3\CMS\Impexp\ImportExport\export_addFile(), TYPO3\CMS\Documentation\Service\DocumentationService\fetchDocument(), TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility\fetchExtension(), TYPO3\CMS\Extensionmanager\Utility\Repository\Helper\fetchFile(), TYPO3\CMS\Install\Service\CoreVersionService\fetchVersionMatrixFromRemote(), TYPO3\CMS\Documentation\Service\DocumentationService\getAvailablePackages(), TYPO3\CMS\Extensionmanager\Controller\UploadExtensionFileController\getExtensionFromT3xFile(), TYPO3\CMS\Backend\Utility\BackendUtility\getFlexFormDS(), TYPO3\CMS\Backend\Template\DocumentTemplate\getHtmlTemplate(), TYPO3\CMS\Install\Service\CoreUpdateService\getMessages(), TYPO3\CMS\Documentation\Service\DocumentationService\getOfficialDocuments(), TYPO3\CMS\Core\DataHandling\DataHandler\getPlaceholderTitleForTableLabel(), TYPO3\CMS\T3editor\T3editor\getPreparedTemplate(), TYPO3\CMS\Version\Hook\PreviewHook\getPreviewConfiguration(), TYPO3\CMS\Backend\Utility\BackendUtility\getRegisteredFlexForms(), TYPO3\CMS\Install\Updates\InitUpdateWizard\getRequiredUpdates(), TYPO3\CMS\Extensionmanager\Utility\InstallUtility\getSqlDataDumpForFile(), TYPO3\CMS\Install\Service\SqlExpectedSchemaService\getTablesDefinitionString(), TYPO3\CMS\Core\Page\PageRenderer\getTemplateForPart(), TYPO3\CMS\Install\Updates\ExtensionManagerTables\getUpdateStatements(), TYPO3\CMS\Install\Updates\FilePermissionUpdate\getUpdateStatements(), TYPO3\CMS\Core\Html\RteHtmlParser\getUrl(), TYPO3\CMS\IndexedSearch\Indexer\getUrlHeaders(), TYPO3\CMS\Extensionmanager\Utility\InstallUtility\importStaticSqlFile(), TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\includeFile(), TYPO3\CMS\Core\TypoScript\TemplateService\includeStaticTypoScriptSources(), TYPO3\CMS\IndexedSearch\Indexer\indexExternalUrl(), TYPO3\CMS\Core\Charset\CharsetConverter\initCaseFolding(), TYPO3\CMS\Core\Charset\CharsetConverter\initCharset(), TYPO3\CMS\Core\Charset\CharsetConverter\initToASCII(), TYPO3\CMS\Core\Charset\CharsetConverter\initUnicodeData(), TYPO3\CMS\Extensionmanager\Utility\Repository\Helper\isExtListUpdateNecessary(), TYPO3\CMS\Impexp\ImportExport\loadFile(), TYPO3\CMS\Backend\Controller\BackendController\loadResourcesForRegisteredNavigationComponents(), TYPO3\CMS\Install\Controller\Action\Ajax\ExtensionCompatibilityTester\logError(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageErrorHandler(), TYPO3\CMS\Install\Updates\ExtensionManagerTables\performUpdate(), TYPO3\CMS\Extensionmanager\Utility\InstallUtility\processDatabaseUpdates(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowBeforeSaving(), TYPO3\CMS\IndexedSearch\FileContentParser\readFileContent(), TYPO3\CMS\Install\Controller\Action\Ajax\ExtensionCompatibilityTester\removeCurrentExtensionFromFile(), TYPO3\CMS\Frontend\ContentObject\MediaContentObject\render(), TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage\render(), TYPO3\CMS\Backend\Form\DataPreprocessor\renderRecord_typesProc(), TYPO3\CMS\Core\Resource\ResourceCompressor\retrieveExternalFile(), TYPO3\CMS\Install\Controller\Action\Ajax\ExtensionCompatibilityTester\writeCurrentExtensionToFile(), and TYPO3\CMS\Impexp\ImportExport\writeFileVerify().

◆ getUserObj()

static TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj (   $classRef,
  $checkPrefix = '',
  $silent = FALSE 
)
static

Creates and returns reference to a user defined object. This function can return an object reference if you like. Just prefix the function call with "&": "$objRef = &\TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj('EXT:myext/class.tx_myext_myclass.php:&tx_myext_myclass');". This will work ONLY if you prefix the class name with "&" as well. See description of function arguments.

: Deprecate the whole method in several steps: 1. Deprecated singleton pattern, 2. Deprecate file prefix/ require file, 3. Deprecate usage without valid class name. The last step should be to deprecate the method itslef.

Parameters
string$classRefClass reference, '[file-reference":"]["&"]class-name'. You can prefix the class name with "[file-reference]:" and ::getFileAbsFileName() will then be used to resolve the filename and subsequently include it by "require_once()" which means you don't have to worry about including the class file either! Example: "EXT:realurl/class.tx_realurl.php:&tx_realurl". Finally; for the class name you can prefix it with "&" and you will reuse the previous instance of the object identified by the full reference string (meaning; if you ask for the same $classRef later in another place in the code you will get a reference to the first created one!).
string$checkPrefixNot used anymore since 6.0
boolean$silentNot used anymore since 6.0
Returns
object The instance of the class asked for. Instance is created with ::makeInstance
See also
callUserFunction()

Definition at line 4378 of file GeneralUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\SysAction\ActionTask\__construct(), TYPO3\CMS\Backend\Toolbar\ClearCacheToolbarItem\__construct(), TYPO3\CMS\Linkvalidator\LinkAnalyzer\__construct(), TYPO3\CMS\Backend\Form\FormEngine\__construct(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\addAttributesForm(), TYPO3\CMS\Core\DataHandling\DataHandler\applyFiltersToValues(), TYPO3\CMS\Saltedpasswords\Utility\ExtensionManagerConfigurationUtility\buildHashMethodSelector(), TYPO3\CMS\Setup\Controller\SetupModuleController\checkAccess(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkDataSubmission(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_flex(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_flex_procInData_travDS(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_input_Eval(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_text_Eval(), TYPO3\CMS\Lowlevel\CleanerCommand\cli_main(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\cObjGet(), TYPO3\CMS\Core\Database\DatabaseConnection\connectDB(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\crawler_execute(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\crawler_init(), TYPO3\CMS\Frontend\Hooks\MediaItemHooks\customMediaParams(), TYPO3\CMS\Frontend\Hooks\MediaItemHooks\customMediaRenderTypes(), TYPO3\CMS\Core\DataHandling\DataHandler\deleteAction(), TYPO3\CMS\Saltedpasswords\Salt\SaltFactory\determineSaltingHashingMethod(), TYPO3\CMS\Frontend\View\AdminPanelView\display(), TYPO3\CMS\Core\FrontendEditing\FrontendEditingController\displayEditIcons(), TYPO3\CMS\Core\FrontendEditing\FrontendEditingController\displayEditPanel(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\enableRegisteredPlugins(), TYPO3\CMS\Core\Core\Bootstrap\executeExtTablesAdditionalFile(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\extLinkATagParams(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\fetchGroups(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\filterMenuPages(), TYPO3\CMS\Core\ExtDirect\ExtDirectApi\generateAPI(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\generatePage_postProcessing(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getATagParams(), TYPO3\CMS\Core\DataHandling\DataHandler\getCheckModifyAccessListHookObjects(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getData(), TYPO3\CMS\Backend\Utility\BackendUtility\getFlexFormDS(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getGetImgResourceHookObjects(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getImageSourceCollection(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\getJSCode(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\getJsCode(), TYPO3\CMS\Reports\Report\Status\SystemStatus\getMissingPhpModulesOfExtensions(), TYPO3\CMS\Frontend\Page\PageRepository\getPage(), TYPO3\CMS\Frontend\Page\PageRepository\getPageOverlay(), TYPO3\CMS\Frontend\Page\PageRepository\getRecordOverlay(), TYPO3\CMS\Saltedpasswords\Salt\SaltFactory\getSaltingInstance(), TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIconForResource(), TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer\getStageActions(), TYPO3\CMS\Rsaauth\Storage\StorageFactory\getStorage(), TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard\getUpgradeObjectInstance(), TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController\hookRequest(), TYPO3\CMS\IndexedSearch\Domain\Repository\IndexSearchRepository\hookRequest(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\hookRequest(), TYPO3\CMS\IndexedSearch\Controller\SearchController\hookRequest(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\hookRequest(), TYPO3\CMS\Aboutmodules\Controller\ModulesController\indexAction(), TYPO3\CMS\IndexedSearch\Indexer\init(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\initCurrentUrl(), TYPO3\CMS\Backend\Form\Element\InlineElement\initHookObjects(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\initHookObjects(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\initialize(), TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\initialize(), TYPO3\CMS\IndexedSearch\Indexer\initializeExternalParsers(), TYPO3\CMS\IndexedSearch\Controller\SearchController\initializeExternalParsers(), TYPO3\CMS\Backend\FrontendBackendUserAuthentication\initializeFrontendEdit(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\jumpUrl(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\locDataCheck(), TYPO3\CMS\Rtehtmlarea\Controller\BrowseLinksController\main(), TYPO3\CMS\Rtehtmlarea\Controller\SelectImageController\main(), TYPO3\CMS\Lowlevel\RteImagesCommand\main(), TYPO3\CMS\Recordlist\Controller\ElementBrowserController\main(), TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController\main(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\main(), TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\main(), TYPO3\CMS\Rtehtmlarea\ContentParser\main_parse_html(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\main_rte(), TYPO3\CMS\Filelist\FileList\makeEdit(), TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\makeQueryArray(), TYPO3\CMS\Backend\Utility\IconUtility\mapRecordOverlayToSpriteIconName(), TYPO3\CMS\WizardCrpages\Controller\CreatePagesWizardModuleFunctionController\modMenu(), TYPO3\CMS\Core\DataHandling\DataHandler\moveRecord(), TYPO3\CMS\Version\Hook\DataHandlerHook\moveRecord_processFieldValue(), TYPO3\CMS\Core\DataHandling\DataHandler\moveRecord_raw(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\processData(), TYPO3\CMS\Core\ExtDirect\ExtDirectRouter\processRpc(), TYPO3\CMS\IndexedSearch\Controller\SearchController\procSearchWordsByLexer(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\realPageCacheContent(), TYPO3\CMS\Frontend\ContentObject\MediaContentObject\render(), TYPO3\CMS\Backend\Utility\BackendUtility\RTEgetObj(), TYPO3\CMS\Saltedpasswords\Salt\SaltFactory\setPreferredHashingMethod(), TYPO3\CMS\Backend\Utility\BackendUtility\softRefParserObj(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\start(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\stopTask(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\TCAlookup(), TYPO3\CMS\Core\Html\RteHtmlParser\TS_links_db(), TYPO3\CMS\Core\Html\RteHtmlParser\TS_links_rte(), and TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawItem().

◆ gif_compress()

static TYPO3\CMS\Core\Utility\GeneralUtility::gif_compress (   $theFile,
  $type 
)
static

Compressing a GIF file if not already LZW compressed. This function is a workaround for the fact that ImageMagick and/or GD does not compress GIF-files to their minimun size (that is RLE or no compression used)

The function takes a file-reference, $theFile, and saves it again through GD or ImageMagick in order to compress the file GIF: If $type is not set, the compression is done with ImageMagick (provided that $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path_lzw'] is pointing to the path of a lzw-enabled version of 'convert') else with GD (should be RLE-enabled!) If $type is set to either 'IM' or 'GD' the compression is done with ImageMagick and GD respectively PNG: No changes.

$theFile is expected to be a valid GIF-file! The function returns a code for the operation.

Parameters
string$theFileFilepath
string$typeSee description of function
Returns
string Returns "GD" if GD was used, otherwise "IM" if ImageMagick was used. If nothing done at all, it returns empty string.

Definition at line 276 of file GeneralUtility.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\dirname(), TYPO3\CMS\Core\Utility\CommandUtility\exec(), and TYPO3\CMS\Core\Utility\GeneralUtility\strtolower().

Referenced by TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\getSenderEmailName(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\imageMagickConvert(), TYPO3\CMS\Backend\Utility\IconUtility\makeIcon(), and TYPO3\CMS\Core\Imaging\GraphicalFunctions\output().

◆ hideIfDefaultLanguage()

static TYPO3\CMS\Core\Utility\GeneralUtility::hideIfDefaultLanguage (   $localizationConfiguration)
static

◆ hideIfNotTranslated()

static TYPO3\CMS\Core\Utility\GeneralUtility::hideIfNotTranslated (   $l18n_cfg_fieldValue)
static

Responds on input localization setting value whether the page it comes from should be hidden if no translation exists or not.

Parameters
integer$l18n_cfg_fieldValueValue from "l18n_cfg" field of a page record
Returns
boolean TRUE if the page should be hidden

Definition at line 4104 of file GeneralUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\filterMenuPages(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\isSubMenu(), TYPO3\CMS\Frontend\Controller\TranslationStatusController\renderL10nTable(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\settingLanguage(), and TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\start().

◆ hmac()

static TYPO3\CMS\Core\Utility\GeneralUtility::hmac (   $input,
  $additionalSecret = '' 
)
static

Returns a proper HMAC on a given input string and secret TYPO3 encryption key.

Parameters
string$inputInput string to create HMAC from
string$additionalSecretadditionalSecret to prevent hmac beeing used in a different context
Returns
string resulting (hexadecimal) HMAC currently with a length of 40 (HMAC-SHA-1)

Definition at line 828 of file GeneralUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\FormProtection\AbstractFormProtection\generateToken(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\getJsCode(), TYPO3\CMS\Core\Resource\ResourceStorage\getPublicUrl(), TYPO3\CMS\Install\Service\SessionService\getSessionSavePath(), TYPO3\CMS\Openid\OpenidEid\getSignature(), TYPO3\CMS\Openid\OpenidService\getSignature(), TYPO3\CMS\Backend\Form\Element\InlineElement\getSingleField_typeInline(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\hmacReturnsEqualHashesForEqualInput(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\hmacReturnsHashOfProperLength(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\hmacReturnsNoEqualHashesForNonEqualInput(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\http_makelinks(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\imageLinkWrap(), TYPO3\CMS\Backend\Controller\BackendLayoutWizardController\init(), TYPO3\CMS\Backend\Controller\FileSystemNavigationFrameController\init(), TYPO3\CMS\Frontend\Controller\ShowImageController\init(), TYPO3\CMS\Backend\Form\Element\InlineElement\injectAjaxConfiguration(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\jumpUrl(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\locDataJU(), TYPO3\CMS\Backend\Tree\View\FolderTreeView\PMiconATagWrap(), TYPO3\CMS\Frontend\ContentObject\FormContentObject\render(), TYPO3\CMS\Backend\Form\FormEngine\renderWizards(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\setExternalJumpUrl(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\TCAlookup(), TYPO3\CMS\Core\Tests\Unit\FormProtection\InstallToolFormProtectionTest\tokenFromSessionDataIsAvailableForValidateToken(), TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest\tokenFromSessionDataIsAvailableForValidateToken(), and TYPO3\CMS\Core\FormProtection\AbstractFormProtection\validateToken().

◆ htmlspecialchars_decode()

static TYPO3\CMS\Core\Utility\GeneralUtility::htmlspecialchars_decode (   $value)
static

Inverse version of htmlspecialchars()

Deprecated:
since 6.2 replaced by php native htmlspecialchars_decode()
Parameters
string$valueValue where >, <, " and & should be converted to regular chars.
Returns
string Converted result.

Definition at line 1037 of file GeneralUtility.php.

◆ idnaEncode()

static TYPO3\CMS\Core\Utility\GeneralUtility::idnaEncode (   $value)
static

Returns an ASCII string (punicode) representation of $value

Parameters
string$value
Returns
string An ASCII encoded (punicode) string

Definition at line 1307 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_input_Eval(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\TCAlookup().

◆ imageMagickCommand()

static TYPO3\CMS\Core\Utility\GeneralUtility::imageMagickCommand (   $command,
  $parameters,
  $path = '' 
)
static

Compile the command for running ImageMagick/GraphicsMagick.

Parameters
string$commandCommand to be run: identify, convert or combine/composite
string$parametersThe parameters string
string$pathOverride the default path (e.g. used by the install tool)
Returns
string Compiled command that deals with IM6 & GraphicsMagick

Definition at line 5293 of file GeneralUtility.php.

References $parameters.

Referenced by TYPO3\CMS\Core\Imaging\GraphicalFunctions\combineExec(), TYPO3\CMS\Core\Resource\Processing\LocalPreviewHelper\generatePreviewFromFile(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\imageMagickExec(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\imageMagickIdentify(), and TYPO3\CMS\Backend\View\ThumbnailView\main().

◆ implodeArrayForUrl()

static TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl (   $name,
array  $theArray,
  $str = '',
  $skipBlank = FALSE,
  $rawurlencodeParamName = FALSE 
)
static

Implodes a multidim-array into GET-parameters (eg. &param[key][key2]=value2&param[key][key3]=value3)

Parameters
string$nameName prefix for entries. Set to blank if you wish none.
array$theArrayThe (multidimensional) array to implode
string$str(keep blank)
boolean$skipBlankIf set, parameters which were blank strings would be removed.
boolean$rawurlencodeParamNameIf set, the param name itself (for example "param[key][key2]") would be rawurlencoded as well.
Returns
string Imploded result, fx. &param[key][key2]=value2&param[key][key3]=value3
See also
explodeUrl2Array()

Definition at line 1634 of file GeneralUtility.php.

Referenced by TYPO3\CMS\IndexedSearch\Indexer\backend_initIndexer(), TYPO3\CMS\Backend\Utility\BackendUtility\buildScriptUrl(), TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder\buildTypolinkConfiguration(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\calculateLinkVars(), TYPO3\CMS\Backend\Controller\EditDocumentController\compileStoreDat(), TYPO3\CMS\Backend\Controller\EditDocumentController\doProcessData(), TYPO3\CMS\Filelist\FileList\formatFileList(), TYPO3\CMS\Workspaces\Service\WorkspaceService\generateWorkspacePreviewLink(), TYPO3\CMS\Backend\Utility\BackendUtility\getAjaxUrl(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\getJsCode(), TYPO3\CMS\Backend\Utility\BackendUtility\getModuleUrl(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\getPreserveGetVars(), TYPO3\CMS\Backend\Template\DocumentTemplate\getTabMenu(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getTypoLink(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\implodeArrayForUrlBuildsValidParameterString(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\implodeArrayForUrlCanSkipEmptyParameters(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\implodeArrayForUrlCanUrlEncodeKeyNames(), TYPO3\CMS\Backend\Controller\EditDocumentController\init(), TYPO3\CMS\Workspaces\Controller\PreviewController\initializeAction(), TYPO3\CMS\Core\TypoScript\TemplateService\linkData(), TYPO3\CMS\IndexedSearch\Controller\SearchController\linkPage(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\linkPage(), TYPO3\CMS\Backend\Controller\PageLayoutController\main(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\makeCacheHash(), TYPO3\CMS\Filelist\FileList\makeEdit(), TYPO3\CMS\Backend\Template\DocumentTemplate\makeShortcutUrl(), TYPO3\CMS\Frontend\Plugin\AbstractPlugin\pi_linkTP(), TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController\printPhashRow(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\removeInvalidElements(), and TYPO3\CMS\Backend\Form\FormEngine\renderWizards().

◆ implodeAttributes()

static TYPO3\CMS\Core\Utility\GeneralUtility::implodeAttributes ( array  $arr,
  $xhtmlSafe = FALSE,
  $dontOmitBlankAttribs = FALSE 
)
static

Implodes attributes in the array $arr for an attribute list in eg. and HTML tag (with quotes)

Parameters
array$arrArray with attribute key/value pairs, eg. "bgcolor"=>"red", "border"=>0
boolean$xhtmlSafeIf set the resulting attribute list will have a) all attributes in lowercase (and duplicates weeded out, first entry taking precedence) and b) all values htmlspecialchar()'ed. It is recommended to use this switch!
boolean$dontOmitBlankAttribsIf TRUE, don't check if values are blank. Default is to omit attributes with blank values.
Returns
string Imploded attributes, eg. 'bgcolor="red" border="0"'

Definition at line 1961 of file GeneralUtility.php.

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

Referenced by TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\addParams(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\encaps_lineSplit(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\getBodyTagAdditions(), TYPO3\CMS\Rtehtmlarea\Controller\CustomAttributeController\render_clickenlarge(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\render_table(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\render_uploads(), TYPO3\CMS\Frontend\Page\PageGenerator\renderContent(), TYPO3\CMS\Rtehtmlarea\Controller\ImageRenderingController\renderImageAttributes(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\setATagParts(), TYPO3\CMS\Core\Html\RteHtmlParser\transformStyledATags(), TYPO3\CMS\Core\Html\RteHtmlParser\TS_AtagToAbs(), TYPO3\CMS\Core\Html\RteHtmlParser\TS_images_rte(), TYPO3\CMS\Core\Html\RteHtmlParser\TS_links_db(), and TYPO3\CMS\Core\Html\RteHtmlParser\TS_reglinks().

◆ inArray()

static TYPO3\CMS\Core\Utility\GeneralUtility::inArray ( array  $in_array,
  $item 
)
static

Check if an string item exists in an array. Please note that the order of function parameters is reverse compared to the PHP function in_array()!!!

Comparison to PHP in_array(): -> $array = array(0, 1, 2, 3); -> variant_a := ::inArray($array, $needle) -> variant_b := in_array($needle, $array) -> variant_c := in_array($needle, $array, TRUE) +------—+--------—+--------—+--------—+ | $needle | variant_a | variant_b | variant_c | +------—+--------—+--------—+--------—+ | '1a' | FALSE | TRUE | FALSE | | '' | FALSE | TRUE | FALSE | | '0' | TRUE | TRUE | FALSE | | 0 | TRUE | TRUE | TRUE | +------—+--------—+--------—+--------—+

Parameters
array$in_arrayOne-dimensional array of items
string$itemItem to check for
Returns
boolean TRUE if $item is in the one-dimensional array $in_array

Definition at line 1451 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Backend\Utility\BackendUtility\blindGroupNames(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\filterMenuPages(), TYPO3\CMS\Frontend\ContentObject\Menu\JavaScriptMenuContentObject\generate_level(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\inArrayChecksStringExistenceWithinArray().

◆ initSysLog()

static TYPO3\CMS\Core\Utility\GeneralUtility::initSysLog ( )
static

◆ inList()

static TYPO3\CMS\Core\Utility\GeneralUtility::inList (   $list,
  $item 
)
static

Check for item in list Check if an item exists in a comma-separated list of items.

Parameters
string$listComma-separated list of items (string)
string$itemItem to check for
Returns
boolean TRUE if $item is in $list

Definition at line 719 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Backend\Form\Element\TreeElement\__construct(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\_parseFunc(), TYPO3\CMS\Dbal\Database\DatabaseConnection\_quoteWhereClause(), TYPO3\CMS\Backend\Tree\View\AbstractTreeView\addField(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addModule(), TYPO3\CMS\Core\Category\CategoryRegistry\addTcaColumn(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addToAllTCAtypes(), TYPO3\CMS\Backend\User\ExtDirect\BackendUserSettingsDataProvider\addToList(), TYPO3\CMS\Version\DataHandler\CommandMap\applyWorkspacesSetStageBehaviour(), TYPO3\CMS\Backend\Utility\BackendUtility\blindUserNames(), TYPO3\CMS\Rtehtmlarea\Extension\SelectFont\buildJSFontItemsConfig(), TYPO3\CMS\Frontend\Imaging\GifBuilder\calcOffset(), TYPO3\CMS\Workspaces\Service\WorkspaceService\canCreatePreviewLink(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\check(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\checkAuthMode(), TYPO3\CMS\Core\Resource\ResourceStorage\checkFileExtensionPermission(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\checkIf(), TYPO3\CMS\Backend\Module\ModuleLoader\checkModWorkspace(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_flex_procInData_travDS(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_input(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_SW(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\checkWorkspace(), TYPO3\CMS\Core\DataHandling\DataHandler\compareFieldArrayWithCurrentAndUnset(), TYPO3\CMS\Dbal\Database\SqlParser\compileWhereClause(), TYPO3\CMS\Core\Database\SqlParser\compileWhereClause(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\copyImageOntoImage(), TYPO3\CMS\Core\DataHandling\DataHandler\copyPages(), TYPO3\CMS\Version\Dependency\ElementEntityProcessor\createNewDependentElementChildReferenceCallback(), TYPO3\CMS\Version\Dependency\ElementEntityProcessor\createNewDependentElementParentReferenceCallback(), TYPO3\CMS\Backend\Form\Element\InlineElement\createNewRecord(), TYPO3\CMS\Dbal\Database\DatabaseConnection\debugHandler(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\enableDisableItems(), TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher\evaluateCondition(), TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher\evaluateConditionCommon(), TYPO3\CMS\Core\Database\DatabaseConnection\explain(), TYPO3\CMS\Impexp\ImportExport\export_addFile(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_getObjTree(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_getTypeData(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_procesInput(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\fetchGroups(), TYPO3\CMS\Workspaces\Service\StagesService\fetchGroupsRecursive(), TYPO3\CMS\Rtehtmlarea\SelectImage\fileIsSelectableInFileList(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\filelink(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\filelist(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\fileResource(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\filterMenuPages(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\func_edit(), TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView\func_search(), TYPO3\CMS\Frontend\ContentObject\Menu\JavaScriptMenuContentObject\generate_level(), TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\generateList(), TYPO3\CMS\Core\Resource\Processing\LocalPreviewHelper\generatePreviewFromFile(), TYPO3\CMS\Backend\View\PageLayoutView\generateTtContentDataArray(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getBorderAttr(), TYPO3\CMS\Core\DataHandling\DataHandler\getCheckModifyAccessListHookObjects(), TYPO3\CMS\Setup\Controller\SetupModuleController\getCSH(), TYPO3\CMS\Install\Service\SqlSchemaMigrationService\getDatabaseExtra(), TYPO3\CMS\Core\DataHandling\DataHandler\getExcludeListArray(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\getImageDimensions(), TYPO3\CMS\Backend\Utility\BackendUtility\getModuleData(), TYPO3\CMS\Backend\Utility\BackendUtility\getNoRecordTitle(), TYPO3\CMS\Backend\Form\FormEngine\getPaletteFields(), TYPO3\CMS\Extensionmanager\Utility\Parser\XmlParserFactory\getParserInstance(), TYPO3\CMS\Backend\Form\Element\InlineElement\getPossibleRecords(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordWSOL(), TYPO3\CMS\Workspaces\Service\StagesService\getResponsibleUser(), TYPO3\CMS\Core\TypoScript\TemplateService\getRootlineLevel(), TYPO3\CMS\Backend\Form\FormEngine\getSelectItems(), TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\getSenderEmailName(), TYPO3\CMS\Openid\OpenidService\getSignedParameter(), TYPO3\CMS\Backend\Form\FormEngine\getSingleField_typeFlex_sheetMenu(), TYPO3\CMS\Backend\Form\FormEngine\getSingleField_typeSelect_multiple(), TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer\getStageActions(), TYPO3\CMS\Backend\View\PageLayoutView\getTableMenu(), TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeDataProvider\getTableWhere(), TYPO3\CMS\Core\Database\SoftReferenceIndex\getTypoLinkParts(), TYPO3\CMS\SysAction\ActionTask\getUsergroups(), TYPO3\CMS\Core\Database\SqlParser\getValue(), TYPO3\CMS\Core\DataHandling\DataHandler\getVersionizedIncomingFieldArray(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\hashLockClause_getHashInt(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\imageLinkWrap(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\imageMagickConvert(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\initialize(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\inListForItemContainedReturnsTrue(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\inListForItemNotContainedReturnsFalse(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\is_allowed(), TYPO3\CMS\Core\Tree\TableConfiguration\AbstractTableConfigurationTreeDataProvider\isExpanded(), TYPO3\CMS\Filelist\FileList\isImage(), TYPO3\CMS\Scheduler\CronCommand\CronCommand\isInCommandList(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isMemberOfGroup(), TYPO3\CMS\Backend\Controller\NewRecordController\isTableAllowedForThisPage(), TYPO3\CMS\Rtehtmlarea\ContentParser\keepSpanTagsWithId(), TYPO3\CMS\SysAction\ActionList\listURL(), TYPO3\CMS\Backend\RecordList\ElementBrowserRecordList\listURL(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\mailto_makelinks(), TYPO3\CMS\Impexp\Controller\ImportExportController\main(), TYPO3\CMS\Backend\Controller\File\EditFileController\main(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\main(), TYPO3\CMS\Backend\View\ThumbnailView\main(), TYPO3\CMS\Backend\Controller\EditDocumentController\main(), TYPO3\CMS\Filelist\FileList\makeEdit(), TYPO3\CMS\Core\Database\QueryGenerator\makeOptionList(), TYPO3\CMS\Backend\Search\LiveSearch\LiveSearch\makeQuerySearchByTable(), TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\makeSearchString(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\maskImageOntoImage(), TYPO3\CMS\Backend\Form\ElementConditionMatcher\matchFieldCondition(), TYPO3\CMS\Backend\Controller\PageLayoutController\menuConfig(), TYPO3\CMS\Backend\Module\BaseScriptClass\mergeExternalItems(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\modAccess(), TYPO3\CMS\Core\DataHandling\DataHandler\moveL10nOverlayRecords(), TYPO3\CMS\Core\Database\SqlParser\parseALTERTABLE(), TYPO3\CMS\Core\Database\SqlParser\parseWhereClause(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Evaluation\EvaluatorTest\passwordIsTurnedIntoSaltedString(), TYPO3\CMS\Backend\Clipboard\Clipboard\printContentFromTab(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\procesResources(), TYPO3\CMS\Core\Html\HtmlParser\processTag(), TYPO3\CMS\Core\TypoScript\TemplateService\processTemplate(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowBeforeSaving(), TYPO3\CMS\Backend\User\ExtDirect\BackendUserSettingsDataProvider\removeFromList(), TYPO3\CMS\Frontend\ContentObject\MultimediaContentObject\render(), TYPO3\CMS\Frontend\ContentObject\FormContentObject\render(), TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\renderPreview(), TYPO3\CMS\Backend\Form\DataPreprocessor\renderRecord(), TYPO3\CMS\Backend\Form\DataPreprocessor\renderRecordRaw(), TYPO3\CMS\Version\DataHandler\CommandMap\resolveWorkspacesSetStageDependencies(), TYPO3\CMS\Version\DataHandler\CommandMap\resolveWorkspacesSwapDependencies(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\resourceListForCopy(), TYPO3\CMS\Saltedpasswords\Evaluation\Evaluator\returnFieldJS(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\setToolbar(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\showLogin(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\splitString(), TYPO3\CMS\Dbal\Database\DatabaseConnection\sql_query(), TYPO3\CMS\Frontend\Controller\DataSubmissionController\start(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\start(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\TBE_dragNDrop(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\TCAlookup(), TYPO3\CMS\Backend\Utility\BackendUtility\titleAltAttrib(), TYPO3\CMS\Core\Html\RteHtmlParser\TS_links_rte(), TYPO3\CMS\Core\Html\RteHtmlParser\TS_transform_rte(), TYPO3\CMS\IndexedSearch\Lexer\utf8_is_letter(), TYPO3\CMS\Version\Controller\VersionModuleController\versioningMgm(), and TYPO3\CMS\Core\Authentication\BackendUserAuthentication\workspaceCheckStageForCurrent().

◆ instantiateClass()

static TYPO3\CMS\Core\Utility\GeneralUtility::instantiateClass (   $className,
  $arguments 
)
staticprotected

Speed optimized alternative to ReflectionClass::newInstanceArgs()

Parameters
string$classNameName of the class to instantiate
array$argumentsArguments passed to self::makeInstance() thus the first one with index 0 holds the requested class name
Returns
mixed

Definition at line 4465 of file GeneralUtility.php.

◆ int_from_ver()

static TYPO3\CMS\Core\Utility\GeneralUtility::int_from_ver (   $verNumberStr)
static

Returns an integer from a three part version number, eg '4.12.3' -> 4012003

Parameters
string$verNumberStrVersion number on format x.x.x
Returns
integer Integer version of version number (where each part can count to 999)
Deprecated:
Use VersionNumberUtility::convertVersionNumberToInteger instead, will be removed after 6.2

Definition at line 778 of file GeneralUtility.php.

References TYPO3\CMS\Core\Utility\VersionNumberUtility\convertVersionNumberToInteger().

◆ intExplode()

static TYPO3\CMS\Core\Utility\GeneralUtility::intExplode (   $delimiter,
  $string,
  $removeEmptyValues = FALSE,
  $limit = 0 
)
static

Explodes a $string delimited by $delim and casts each item in the array to (int). Corresponds to ::trimExplode(), but with conversion to integers for all values.

Parameters
string$delimiterDelimiter string to explode with
string$stringThe string to explode
boolean$removeEmptyValuesIf set, all empty values (='') will NOT be set in output
integer$limitIf positive, the result will contain a maximum of limit elements,
Returns
array Exploded values, all converted to integers

Definition at line 1470 of file GeneralUtility.php.

References $result.

Referenced by TYPO3\CMS\Core\Imaging\GraphicalFunctions\adjust(), TYPO3\CMS\Rtehtmlarea\Extension\Acronym\buildJSAcronymArray(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\calcTextCordsForMap(), TYPO3\CMS\Core\Database\QueryGenerator\cleanInputVal(), TYPO3\CMS\Core\Database\DatabaseConnection\cleanIntList(), TYPO3\CMS\Frontend\ContentObject\Menu\CategoryMenuUtility\collectPages(), TYPO3\CMS\Frontend\ContentObject\RecordsContentObject\collectRecordsFromCategories(), TYPO3\CMS\Core\Utility\VersionNumberUtility\convertVersionStringToArray(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\copyGifOntoGif(), TYPO3\CMS\Extbase\Persistence\Generic\QueryFactory\create(), TYPO3\CMS\Backend\Utility\BackendUtility\createPreviewUrl(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\crop(), TYPO3\CMS\Extbase\Persistence\Generic\Backend\determineStoragePageIdForNewRecord(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\doSearch(), TYPO3\CMS\Dbal\Database\DatabaseConnection\exec_SELECTquery(), TYPO3\CMS\IndexedSearch\Domain\Repository\IndexSearchRepository\execFinalQuery(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\execFinalQuery(), TYPO3\CMS\Dbal\Database\AdodbPreparedStatement\execute(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_getTypeData(), TYPO3\CMS\Impexp\LocalPageTree\ext_tree(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\fetchGroups(), TYPO3\CMS\Workspaces\Service\StagesService\fetchGroupsRecursive(), TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository\findByPidsAndAuthor(), TYPO3\CMS\Frontend\ContentObject\Menu\GraphicalMenuContentObject\findLargestDims(), TYPO3\CMS\Frontend\ContentObject\Menu\ImageMenuContentObject\generate(), TYPO3\CMS\Backend\Form\FormEngine\getAdditionalPreviewLanguages(), TYPO3\CMS\IndexedSearch\Controller\SearchController\getAllAvailableIndexConfigurationsOptions(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\getBannedUids(), TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager\getConfiguration(), TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper\getConstraint(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\getFileMountRecords(), TYPO3\CMS\Workspaces\Service\WorkspaceService\getMoveToPlaceHolderFromPages(), TYPO3\CMS\Frontend\Page\PageRepository\getMultipleGroupsWhereClause(), TYPO3\CMS\Core\Utility\VersionNumberUtility\getNumericTypo3Version(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPageShortcut(), TYPO3\CMS\Dbal\Database\DatabaseConnection\getQueryComponents(), TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getRecursiveStoragePids(), TYPO3\CMS\Extbase\Configuration\FrontendConfigurationManager\getRecursiveStoragePids(), TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeDataProvider\getRelatedRecords(), TYPO3\CMS\Backend\View\PageLayoutView\getSelectedBackendLayoutUid(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getSlidePids(), TYPO3\CMS\Sv\AuthenticationService\getSubGroups(), TYPO3\CMS\Backend\Tree\Pagetree\DataProvider\getWhereClause(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\imageLinkWrap(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\IMparams(), TYPO3\CMS\Core\TypoScript\TemplateService\includeStaticTypoScriptSources(), TYPO3\CMS\IndexedSearch\Controller\SearchController\initialize(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\initialize(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\initializeDbMountpointsInWorkspace(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\intExplodeConvertsStringsToInteger(), TYPO3\CMS\Rtehtmlarea\Controller\BrowseLinksController\main(), TYPO3\CMS\Recordlist\Controller\ElementBrowserController\main(), TYPO3\CMS\Backend\Controller\PageLayoutController\main(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\makeBox(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\makeEllipse(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\makeEmboss(), TYPO3\CMS\Frontend\ContentObject\Menu\GraphicalMenuContentObject\makeGifs(), TYPO3\CMS\Core\Database\QueryGenerator\makeSelectorTable(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\makeShadow(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\objPosition(), TYPO3\CMS\Frontend\Page\PageGenerator\pagegenInit(), TYPO3\CMS\Core\Utility\RootlineUtility\parseMountPointParameter(), TYPO3\CMS\Core\TypoScript\TemplateService\processTemplate(), TYPO3\CMS\Core\Utility\VersionNumberUtility\raiseVersionNumber(), TYPO3\CMS\IndexedSearch\Controller\SearchController\searchAction(), TYPO3\CMS\IndexedSearch\Domain\Repository\IndexSearchRepository\sectionTableWhere(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\sectionTableWhere(), TYPO3\CMS\Dbal\Database\DatabaseConnection\SELECTquery(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\settingLanguage(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\setWorkArea(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\splitString(), TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject\start(), TYPO3\CMS\Frontend\Imaging\GifBuilder\start(), TYPO3\CMS\Frontend\ContentObject\TableRenderer\start(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\start(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\substring(), and TYPO3\CMS\Core\Imaging\GraphicalFunctions\txtPosition().

◆ IPv6Bin2Hex()

static TYPO3\CMS\Core\Utility\GeneralUtility::IPv6Bin2Hex (   $bin)
static

Transform an IPv6 address from binary to hex-representation

Parameters
string$binIPv6 address in hex-presentation
Returns
string Binary representation (16 characters, 128 characters)
See also
IPv6Hex2Bin()

Definition at line 520 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\IPv6Bin2HexCorrectlyConvertsAddresses().

◆ IPv6Hex2Bin()

static TYPO3\CMS\Core\Utility\GeneralUtility::IPv6Hex2Bin (   $hex)
static

Transform a regular IPv6 address from hex-representation into binary

Parameters
string$hexIPv6 address in hex-presentation
Returns
string Binary representation (16 characters, 128 characters)
See also
IPv6Bin2Hex()

Definition at line 509 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\IPv6Hex2BinCorrectlyConvertsAddresses().

◆ isAbsPath()

◆ isAllowedAbsPath()

◆ isAllowedHostHeaderValue()

static TYPO3\CMS\Core\Utility\GeneralUtility::isAllowedHostHeaderValue (   $hostHeaderValue)
static

Checks if the provided host header value matches the trusted hosts pattern. If the pattern is not defined (which only can happen early in the bootstrap), deny any value.

Parameters
string$hostHeaderValueHTTP_HOST header value as sent during the request (may include port)
Returns
bool

Definition at line 3658 of file GeneralUtility.php.

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

◆ isBrokenEmailEnvironment()

static TYPO3\CMS\Core\Utility\GeneralUtility::isBrokenEmailEnvironment ( )
static

Checks if current e-mail sending method does not accept recipient/sender name in a call to PHP mail() function. Windows version of mail() and mini_sendmail program are known not to process such input correctly and they cause SMTP errors. This function will return TRUE if current mail sending method has problem with recipient name in recipient/sender argument for mail().

TODO: 4.3 should have additional configuration variable, which is combined by || with the rest in this function.

Returns
boolean TRUE if mail() does not accept recipient name

Definition at line 1140 of file GeneralUtility.php.

◆ isFirstPartOfStr()

static TYPO3\CMS\Core\Utility\GeneralUtility::isFirstPartOfStr (   $str,
  $partStr 
)
static

Returns TRUE if the first part of $str matches the string $partStr

Parameters
string$strFull string to check
string$partStrReference string which must be found as the "first part" of the full string
Returns
boolean TRUE if $partStr was found to be equal to the first part of $str

Definition at line 956 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Locking\Locker\__destruct(), TYPO3\CMS\Frontend\Controller\DataSubmissionController\__destruct(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\_parseFunc(), TYPO3\CMS\SysAction\ActionTask\action_getUserMainDir(), TYPO3\CMS\Backend\View\BackendLayoutView\addColPosListLayoutItems(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\addFile(), TYPO3\CMS\Core\DataHandling\DataHandler\applyFiltersToValues(), TYPO3\CMS\Extensionmanager\Domain\Repository\ConfigurationItemRepository\buildConfigurationArray(), TYPO3\CMS\Core\Resource\ResourceCompressor\checkBaseDirectory(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\checkDeniedSuburls(), TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\checkIncludeLines(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\checkPathAgainstMounts(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\checkUrl(), TYPO3\CMS\Core\DataHandling\DataHandler\clear_cacheCmd(), TYPO3\CMS\Backend\Sprite\AbstractSpriteHandler\collectTcaSpriteIcons(), TYPO3\CMS\Dbal\Database\SqlParser\compileWhereClause(), TYPO3\CMS\Core\DataHandling\DataHandler\copyRecord_fixRTEmagicImages(), TYPO3\CMS\Core\Database\ReferenceIndex\createEntryData_fileRels(), TYPO3\CMS\Cshmanual\Controller\HelpModuleController\createGlossaryIndex(), TYPO3\CMS\Core\Resource\ResourceCompressor\createMergedFile(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\createTempSubDir(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\determineBaseUrl(), TYPO3\CMS\Impexp\ImportExport\export_addFile(), TYPO3\CMS\Documentation\Service\DocumentationService\fetchNearestDocument(), TYPO3\CMS\Linkvalidator\Linktype\FileLinktype\fetchType(), TYPO3\CMS\Linkvalidator\Linktype\LinkHandler\fetchType(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\filelist(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\findFirstWebFolder(), TYPO3\CMS\Core\Database\SoftReferenceIndex\findRef_images(), TYPO3\CMS\Core\Database\SoftReferenceIndex\findRef_TStemplate(), TYPO3\CMS\Impexp\ImportExport\fixFileIDsInRelations(), TYPO3\CMS\Core\TypoScript\TemplateService\getFileName(), TYPO3\CMS\Core\Resource\ResourceFactory\getFolderObjectFromCombinedIdentifier(), TYPO3\CMS\Backend\Template\DocumentTemplate\getHtmlTemplate(), TYPO3\CMS\Extensionmanager\Utility\ListUtility\getInstallTypeForPackage(), TYPO3\CMS\Documentation\Domain\Repository\DocumentRepository\getMetadata(), TYPO3\CMS\Backend\Utility\BackendUtility\getPathType_web_nonweb(), TYPO3\CMS\Core\Utility\MailUtility\getSystemFromAddress(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\initCurrentUrl(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\is_webpath(), TYPO3\CMS\Install\Controller\Action\Step\DatabaseConnect\isConfigurationComplete(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\isFirstPartOfStrReturnsFalseForNotMatchingFirstPart(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\isFirstPartOfStrReturnsTrueForMatchingFirstPart(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\isInCurrentDomain(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\isInLocalDomain(), TYPO3\CMS\Backend\Form\FormEngine\isNewRecord(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\isRelativeUrl(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\isValidExtensionPath(), TYPO3\CMS\Core\Configuration\ConfigurationManager\isValidLocalConfigurationPath(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\isWebFolder(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\isWithin(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\jumpUrl(), TYPO3\CMS\Lowlevel\DoubleFilesCommand\main(), TYPO3\CMS\Lowlevel\RteImagesCommand\main(), TYPO3\CMS\Lowlevel\LostFilesCommand\main(), TYPO3\CMS\Lowlevel\RteImagesCommand\main_autoFix(), TYPO3\CMS\Saltedpasswords\Tests\Unit\Evaluation\EvaluatorTest\md5HashIsUpdatedToTemporarySaltedString(), TYPO3\CMS\Install\Service\SilentConfigurationUpgradeService\migrateOldInstallWizardDoneSettingsToNewClassNames(), TYPO3\CMS\Version\Hook\DataHandlerHook\moveRecord_processFieldValue(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageErrorHandler(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\parseCurUrl(), TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\parseSub(), TYPO3\CMS\Impexp\ImportExport\processSoftReferences_saveFile(), TYPO3\CMS\Impexp\ImportExport\processSoftReferences_saveFile_createRelFile(), TYPO3\CMS\Backend\Utility\BackendUtility\referenceCount(), TYPO3\CMS\Core\Locking\Locker\release(), TYPO3\CMS\Rtehtmlarea\Controller\AccessibilityLinkController\removeAccessibilityIcon(), TYPO3\CMS\Rtehtmlarea\Controller\CustomAttributeController\render_clickenlarge(), TYPO3\CMS\Cshmanual\Controller\HelpModuleController\render_TOC(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\render_uploads(), TYPO3\CMS\Backend\Form\FormEngine\renderWizards(), TYPO3\CMS\Core\Resource\ResourceFactory\retrieveFileOrFolderObject(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\set_no_cache(), TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend\setCacheDirectory(), TYPO3\CMS\Core\Database\SoftReferenceIndex\setTypoLinkPartsElement(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\TCAlookup(), TYPO3\CMS\Core\Html\RteHtmlParser\TS_links_rte(), TYPO3\CMS\Impexp\ImportExport\unlinkTempFiles(), and TYPO3\CMS\Impexp\ImportExport\verifyFolderAccess().

◆ isInternalRequestType()

static TYPO3\CMS\Core\Utility\GeneralUtility::isInternalRequestType ( )
staticprotected

Allows internal requests to the install tool and from the command line. We accept this risk to have the install tool always available. Also CLI needs to be allowed as unfortunately AbstractUserAuthentication::getAuthInfoArray() accesses HTTP_HOST without reason on CLI

Returns
bool

Definition at line 3701 of file GeneralUtility.php.

◆ isOnCurrentHost()

static TYPO3\CMS\Core\Utility\GeneralUtility::isOnCurrentHost (   $url)
static

Checks if a given URL matches the host that currently handles this HTTP request. Scheme, hostname and (optional) port of the given URL are compared.

Parameters
string$urlURL to compare with the TYPO3 request host
Returns
boolean Whether the URL matches the TYPO3 request host

Definition at line 707 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Resource\ResourceCompressor\createMergedFile(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\isOnCurrentHostReturnsTrueWithCurrentHost().

◆ isRunningOnCgiServerApi()

static TYPO3\CMS\Core\Utility\GeneralUtility::isRunningOnCgiServerApi ( )
static

Check if the current request is running on a CGI server API

Returns
bool

Definition at line 5423 of file GeneralUtility.php.

◆ isValidUrl()

static TYPO3\CMS\Core\Utility\GeneralUtility::isValidUrl (   $url)
static

Checks if a given string is a Uniform Resource Locator (URL).

On seriously malformed URLs, parse_url may return FALSE and emit an E_WARNING.

filter_var() requires a scheme to be present.

http://www.faqs.org/rfcs/rfc2396.html Scheme names consist of a sequence of characters beginning with a lower case letter and followed by any combination of lower case letters, digits, plus ("+"), period ("."), or hyphen ("-"). For resiliency, programs interpreting URI should treat upper case letters as equivalent to lower case in scheme names (e.g., allow "HTTP" as well as "http"). scheme = alpha *( alpha | digit | "+" | "-" | "." )

Convert the domain part to punicode if it does not look like a regular domain name. Only the domain part because RFC3986 specifies the the rest of the url may not contain special characters: http://tools.ietf.org/html/rfc3986#appendix-A

Parameters
string$urlThe URL to be validated
Returns
boolean Whether the given URL is valid

Definition at line 1401 of file GeneralUtility.php.

References TYPO3\CMS\Core\Utility\HttpUtility\buildUrl().

Referenced by TYPO3\CMS\Core\Resource\ResourceCompressor\createMergedFile(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\determineBaseUrl(), TYPO3\CMS\Core\Resource\ResourceStorage\getPublicUrl(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\getPublicUrlReturnsValidUrlContainingSpecialCharacters(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\isInLocalDomain(), TYPO3\CMS\Frontend\ContentObject\MediaContentObject\render(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\validURLReturnsFalseForInvalidRessoure(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\validURLReturnsTrueForValidResource().

◆ keepItemsInArray()

static TYPO3\CMS\Core\Utility\GeneralUtility::keepItemsInArray ( array  $array,
  $keepItems,
  $getValueFunc = NULL 
)
static

Filters an array to reduce its elements to match the condition. The values in $keepItems can be optionally evaluated by a custom callback function.

Example (arguments used to call this function): $array = array( array('aa' => array('first', 'second'), array('bb' => array('third', 'fourth'), array('cc' => array('fifth', 'sixth'), ); $keepItems = array('third'); $getValueFunc = create_function('$value', 'return $value[0];');

Returns: array( array('bb' => array('third', 'fourth'), )

Parameters
array$arrayThe initial array to be filtered/reduced
mixed$keepItemsThe items which are allowed/kept in the array - accepts array or csv string
string$getValueFunc(optional) Callback function used to get the value to keep
Returns
array The filtered/reduced array with the kept items

Definition at line 1599 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Backend\Form\Element\InlineElement\getPossibleRecords(), TYPO3\CMS\Backend\Form\FormEngine\getSelectItems(), TYPO3\CMS\Backend\Form\FormEngine\getSingleField_typeSelect_multiple(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\keepItemsInArrayCanUseCallbackOnSearchArray(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\keepItemsInArrayCanUseClosure(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\keepItemsInArrayWorksWithOneArgument(), and TYPO3\CMS\Backend\Form\FlexFormsHelper\modifySingleFlexFormSheet().

◆ lcfirst()

static TYPO3\CMS\Core\Utility\GeneralUtility::lcfirst (   $string)
static

Converts the first char of a string to lowercase if it is a latin character (A-Z). Example: Converts "Hello World" to "hello World"

Parameters
string$stringThe string to be used to lowercase the first character
Returns
string The string with the first character as lowercase

Definition at line 1373 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\lcFirst().

◆ linkThisScript()

static TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript ( array  $getParams = array())
static

Returns the link-url to the current script. In $getParams you can set associative keys corresponding to the GET-vars you wish to add to the URL. If you set them empty, they will remove existing GET-vars from the current URL. REMEMBER to always use htmlspecialchars() for content in href-properties to get ampersands converted to entities (XHTML requirement and XSS precaution)

Parameters
array$getParamsArray of GET parameters to include
Returns
string

Definition at line 3325 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\TypoScript\ConfigurationForm\ext_getForm(), TYPO3\CMS\Backend\Controller\NewRecordController\getButtons(), TYPO3\CMS\Backend\Controller\Wizard\RteController\init(), TYPO3\CMS\Filelist\FileList\listURL(), TYPO3\CMS\ExtraPageCmOptions\ExtraPageContextMenuOptions\main(), TYPO3\CMS\Backend\Controller\ContentElement\MoveElementController\main(), TYPO3\CMS\Backend\Controller\PageTreeNavigationController\main(), TYPO3\CMS\Backend\Clipboard\Clipboard\printClipboard(), TYPO3\CMS\Backend\Template\DocumentTemplate\redirectUrls(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\renderList(), and TYPO3\CMS\Recordlist\Browser\ElementBrowser\TBE_dragNDrop().

◆ linkThisUrl()

static TYPO3\CMS\Core\Utility\GeneralUtility::linkThisUrl (   $url,
array  $getParams = array() 
)
static

Takes a full URL, $url, possibly with a querystring and overlays the $getParams arrays values onto the quirystring, packs it all together and returns the URL again. So basically it adds the parameters in $getParams to an existing URL, $url

Parameters
string$urlURL string
array$getParamsArray of key/value pairs for get parameters to add/overrule with. Can be multidimensional.
Returns
string Output URL with added getParams.

Definition at line 3347 of file GeneralUtility.php.

References TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

Referenced by TYPO3\CMS\Backend\Controller\File\FileUploadController\main(), TYPO3\CMS\Backend\Controller\File\RenameFileController\main(), and TYPO3\CMS\Backend\Controller\File\CreateFolderController\main().

◆ llXmlAutoFileName()

static TYPO3\CMS\Core\Utility\GeneralUtility::llXmlAutoFileName (   $fileRef,
  $language,
  $sameLocation = FALSE 
)
static

Returns auto-filename for locallang localizations

Parameters
string$fileRefAbsolute file reference to locallang file
string$languageLanguage key
bool$sameLocationIf TRUE, then locallang localization file name will be returned with same directory as $fileRef
Returns
string Returns the filename reference for the language unless error occurred in which case it will be NULL

Definition at line 4146 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser\getParsedData(), and TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser\getParsedData().

◆ loadTCA()

static TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA (   $table)
static

Loads the $GLOBALS['TCA'] (Table Configuration Array) for the $table

Requirements: 1) must be configured table (the ctrl-section configured), 2) columns must not be an array (which it is always if whole table loaded), and 3) there is a value for dynamicConfigFile (filename in typo3conf)

Parameters
string$tableTable name for which to load the full TCA array part into $GLOBALS['TCA']
Returns
void
Deprecated:
since 6.1, will be removed two versions later

Definition at line 4198 of file GeneralUtility.php.

◆ locationHeaderUrl()

static TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl (   $path)
static

Prefixes a URL used with 'header-location' with 'http://...' depending on whether it has it already.

  • If already having a scheme, nothing is prepended
  • If having REQUEST_URI slash '/', then prefixing 'http://[host]' (relative to host)
  • Otherwise prefixed with TYPO3_REQUEST_DIR (relative to current dir / TYPO3_REQUEST_DIR)
Parameters
string$pathURL / path to prepend full URL addressing to.
Returns
string
Exceptions

Definition at line 3169 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Frontend\View\AdminPanelView\display(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\generateAndSendHash(), TYPO3\CMS\Frontend\View\AdminPanelView\getAdminPanelHeaderData(), TYPO3\CMS\Openid\OpenidService\getReturnURL(), TYPO3\CMS\Core\ExtDirect\ExtDirectApi\getRoutingUrl(), TYPO3\CMS\Core\Utility\HttpUtility\redirect(), and TYPO3\CMS\Core\Page\PageRenderer\renderMainJavaScriptLibraries().

◆ logDeprecatedFunction()

static TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction ( )
static

Logs a call to a deprecated function. The log message will be taken from the annotation.

Returns
void

Definition at line 5234 of file GeneralUtility.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\DebugUtility\debugTrail(), and TYPO3\CMS\Core\Utility\PathUtility\stripPathSitePrefix().

Referenced by TYPO3\CMS\Backend\Template\MediumDocumentTemplate\__construct(), TYPO3\CMS\Backend\Template\SmallDocumentTemplate\__construct(), TYPO3\CMS\Backend\Template\StandardDocumentTemplate\__construct(), TYPO3\CMS\Core\Resource\FileRepository\addToIndex(), TYPO3\CMS\Core\Category\CategoryRegistry\applyTca(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\blindPath(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\checkFileNameLen(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\checkFolder(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\cleanDirectoryName(), TYPO3\CMS\Core\Messaging\FlashMessageQueue\clear(), TYPO3\CMS\Core\DataHandling\DataHandler\clear_cache(), TYPO3\CMS\Frontend\Utility\EidUtility\connectDB(), TYPO3\CMS\Extbase\Object\ObjectManager\create(), TYPO3\CMS\Backend\Form\FormEngine\dbFileCon(), TYPO3\CMS\Filelist\FileList\dirData(), TYPO3\CMS\Backend\Utility\BackendUtility\displayWarningMessages(), TYPO3\CMS\Core\Resource\ResourceStorage\fetchFolderListFromDriver(), TYPO3\CMS\Core\Resource\FileRepository\findBySha1Hash(), TYPO3\CMS\Core\Resource\FileRepository\findByUid(), TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView\findFile(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\findRecycler(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\findTempFolder(), TYPO3\CMS\Extbase\Mvc\Controller\FlashMessageContainer\flush(), TYPO3\CMS\Backend\Template\DocumentTemplate\formWidthText(), TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView\func_filesearch(), TYPO3\CMS\Core\Category\CategoryRegistry\get(), TYPO3\CMS\Core\Core\ClassLoader\getAliasForClassName(), TYPO3\CMS\Extbase\Mvc\Controller\FlashMessageContainer\getAllMessages(), TYPO3\CMS\Extbase\Mvc\Controller\FlashMessageContainer\getAllMessagesAndFlush(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getCompressedTCarray(), TYPO3\CMS\Backend\Template\DocumentTemplate\getFileheader(), TYPO3\CMS\Core\Resource\FileRepository\getFileIndexRecord(), TYPO3\CMS\Core\Resource\FileRepository\getFileIndexRecordsForFolder(), TYPO3\CMS\Core\Resource\FileRepository\getFileIndexStatus(), TYPO3\CMS\Core\Resource\ResourceStorage\getFileList(), TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext\getFlashMessageContainer(), TYPO3\CMS\Core\Resource\ResourceStorage\getFolderList(), TYPO3\CMS\Backend\Utility\IconUtility\getIconImage(), TYPO3\CMS\Fluid\View\TemplateView\getLayoutRootPath(), TYPO3\CMS\Fluid\View\TemplateView\getPartialRootPath(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\getRequiredExtensionListArray(), TYPO3\CMS\Rtehtmlarea\SelectImage\getRTEImageStorageDir(), TYPO3\CMS\Backend\View\PageLayoutView\getSelectedBackendLayoutUid(), TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\getSysLanguageUid(), TYPO3\CMS\Fluid\View\TemplateView\getTemplateRootPath(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\getTotalFileInfo(), TYPO3\CMS\Core\DataHandling\DataHandler\getUniqueFields(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\includeTCA(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\init_actionPerms(), TYPO3\CMS\Core\FormProtection\InstallToolFormProtection\injectInstallTool(), TYPO3\CMS\Core\DataHandling\DataHandler\internal_clearPageCache(), TYPO3\CMS\Backend\Template\DocumentTemplate\isCMlayers(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLocalconfWritable(), TYPO3\CMS\Core\Utility\PhpOptionsUtility\isMagicQuotesGpcEnabled(), TYPO3\CMS\Backend\Form\FormEngine\isPalettesCollapsed(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\isPathValid(), TYPO3\CMS\Core\Utility\PhpOptionsUtility\isSafeModeEnabled(), TYPO3\CMS\Core\Utility\PhpOptionsUtility\isSqlSafeModeEnabled(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\isWebFolder(), TYPO3\CMS\Lang\LanguageService\JScharCode(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\loadIndexerClass(), TYPO3\CMS\Core\Utility\MailUtility\mail(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\plainMailEncoded(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\printLogErrorMessages(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\rmDoubleSlash(), TYPO3\CMS\Core\Html\RteHtmlParser\rteImageStorageDir(), TYPO3\CMS\Extbase\Mvc\Controller\FlashMessageContainer\setControllerContext(), TYPO3\CMS\Backend\Sprite\SpriteGenerator\setOmmitSpriteNameInIconName(), TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\setReturnRawQueryResult(), TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\setSysLanguageUid(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\tidyHTML(), TYPO3\CMS\Core\Resource\FileRepository\update(), TYPO3\CMS\Backend\View\PageLayoutView\wordWrapper(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\writeBottom(), and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\writeNewExtensionList().

◆ makeInstance()

static TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance (   $className)
static

Creates an instance of a class taking into account the class-extensions API of TYPO3. USE THIS method instead of the PHP "new" keyword. Eg. "$obj = new myclass;" should be "$obj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance("myclass")" instead!

You can also pass arguments for a constructor: ::makeInstance('myClass', $arg1, $arg2, ..., $argN)

Exceptions

Definition at line 4424 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Install\View\StandaloneView\__construct(), TYPO3\CMS\Extbase\Object\ObjectManagerException\__construct(), TYPO3\CMS\Backend\InterfaceState\ExtDirect\DataProvider\__construct(), TYPO3\CMS\Core\Resource\Processing\LocalCropScaleMaskHelper\__construct(), TYPO3\CMS\Backend\Domain\Repository\Module\BackendModuleRepository\__construct(), TYPO3\CMS\Extbase\Object\ObjectManager\__construct(), TYPO3\CMS\Backend\Tree\Pagetree\Indicator\__construct(), TYPO3\CMS\Taskcenter\Controller\TaskModuleController\__construct(), TYPO3\CMS\Feedit\FrontendEditPanel\__construct(), TYPO3\CMS\Install\Updates\FilePermissionUpdate\__construct(), TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\__construct(), TYPO3\CMS\Backend\Module\ModuleController\__construct(), TYPO3\CMS\Install\Updates\InitUpdateWizard\__construct(), TYPO3\CMS\Backend\Form\Element\TreeElement\__construct(), TYPO3\CMS\Form\PostProcess\PostProcessor\__construct(), TYPO3\CMS\Backend\View\ModuleMenuView\__construct(), TYPO3\CMS\Core\Category\Collection\CategoryCollection\__construct(), TYPO3\CMS\Perm\Controller\PermissionAjaxController\__construct(), TYPO3\CMS\Backend\Security\CategoryPermissionsAspect\__construct(), TYPO3\CMS\Backend\Search\LiveSearch\ExtDirect\LiveSearchDataProvider\__construct(), TYPO3\CMS\Backend\View\BackendLayoutView\__construct(), TYPO3\CMS\Install\Updates\AbstractDatabaseSchemaUpdate\__construct(), TYPO3\CMS\Core\Resource\AbstractRepository\__construct(), TYPO3\CMS\Install\View\FailsafeView\__construct(), TYPO3\CMS\Workspaces\ExtDirect\WorkspaceSelectorToolbarItem\__construct(), TYPO3\CMS\Extbase\Scheduler\FieldProvider\__construct(), TYPO3\CMS\SysNote\Core\Bootstrap\__construct(), TYPO3\CMS\Core\Mail\SwiftMailerAdapter\__construct(), TYPO3\CMS\Lang\Domain\Repository\LanguageRepository\__construct(), TYPO3\CMS\Extensionmanager\Utility\Importer\MirrorListUtility\__construct(), TYPO3\CMS\Form\Domain\Model\Attribute\AttributesAttribute\__construct(), TYPO3\CMS\Rsaauth\Backend\CommandLineBackend\__construct(), TYPO3\CMS\Core\Log\LogManager\__construct(), TYPO3\CMS\Form\PostProcess\RedirectPostProcessor\__construct(), TYPO3\CMS\Form\View\Wizard\WizardView\__construct(), TYPO3\CMS\Extbase\Scheduler\Task\__construct(), TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode\__construct(), TYPO3\CMS\Form\PostProcess\MailPostProcessor\__construct(), TYPO3\CMS\Form\Validation\LengthValidator\__construct(), TYPO3\CMS\Core\Resource\ProcessedFileRepository\__construct(), TYPO3\CMS\Core\Encoder\JavaScriptEncoder\__construct(), TYPO3\CMS\Extensionmanager\Report\ExtensionStatus\__construct(), TYPO3\CMS\Form\View\Mail\MailView\__construct(), TYPO3\CMS\IndexedSearch\Lexer\__construct(), TYPO3\CMS\Form\View\Confirmation\ConfirmationView\__construct(), TYPO3\CMS\Form\View\Mail\Html\HtmlView\__construct(), TYPO3\CMS\Core\Resource\ResourceFactory\__construct(), TYPO3\CMS\Backend\Search\LiveSearch\LiveSearch\__construct(), TYPO3\CMS\Scheduler\Task\AbstractTask\__construct(), TYPO3\CMS\Backend\Controller\BackendController\__construct(), TYPO3\CMS\Backend\Toolbar\ShortcutToolbarItem\__construct(), TYPO3\CMS\Form\Validation\AbstractValidator\__construct(), TYPO3\CMS\Core\FormProtection\BackendFormProtection\__construct(), TYPO3\CMS\Extbase\Persistence\Generic\Backend\__construct(), TYPO3\CMS\Core\Resource\ProcessedFile\__construct(), TYPO3\CMS\Backend\Tree\View\PagePositionMap\__construct(), TYPO3\CMS\Filelist\Controller\FileListController\__construct(), TYPO3\CMS\Frontend\ContentObject\SearchResultContentObject\__construct(), TYPO3\CMS\Core\Utility\RootlineUtility\__construct(), TYPO3\CMS\Fluid\View\TemplateView\__construct(), TYPO3\CMS\Core\Database\ReferenceIndex\__construct(), TYPO3\CMS\Form\Domain\Model\Element\AbstractElement\__construct(), TYPO3\CMS\Dbal\Database\DatabaseConnection\__construct(), TYPO3\CMS\Core\Page\PageRenderer\__construct(), TYPO3\CMS\Core\Charset\CharsetConverter\__construct(), TYPO3\CMS\Backend\Form\FormEngine\__construct(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\__construct(), TYPO3\CMS\Extbase\Scheduler\Task\__wakeup(), TYPO3\CMS\Extbase\Persistence\Generic\QueryResult\__wakeup(), TYPO3\CMS\Extbase\Persistence\Generic\Query\__wakeup(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\acquirePageGenerationLock(), TYPO3\CMS\Backend\View\BackendLayout\DataProviderCollection\add(), TYPO3\CMS\Form\Domain\Model\Additional\AdditionalAdditionalElement\addAdditional(), TYPO3\CMS\Form\Domain\Model\Attribute\AttributesAttribute\addAttribute(), TYPO3\CMS\Backend\View\BackendLayoutView\addColPosListLayoutItems(), TYPO3\CMS\Form\Domain\Factory\TypoScriptFactory\addElement(), TYPO3\CMS\Core\Page\PageRenderer\addExtOnReadyCode(), TYPO3\CMS\Extbase\Mvc\Controller\AbstractController\addFlashMessage(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\addInstanceCalledTwoTimesMakesMakeInstanceReturnBothInstancesInAddingOrder(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\addInstanceMakesMakeInstanceReturnThatInstance(), TYPO3\CMS\Fluid\Core\Parser\Configuration\addInterceptor(), TYPO3\CMS\Core\DataHandling\DataHandler\addNewValuesToRemapStackChildIds(), TYPO3\CMS\Install\Controller\AbstractController\addSessionMessages(), TYPO3\CMS\Core\Database\QueryView\addToStoreQueryConfigs(), TYPO3\CMS\Core\DataHandling\DataHandler\applyFiltersToValues(), TYPO3\CMS\Core\Html\RteHtmlParser\applyPlainImageModeSettings(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\assignContentObjectVariables(), TYPO3\CMS\Workspaces\Service\AutoPublishService\autoPublishWorkspaces(), TYPO3\CMS\Version\Utility\WorkspacesUtility\autoPublishWorkspaces(), TYPO3\CMS\IndexedSearch\Indexer\backend_initIndexer(), TYPO3\CMS\Core\Utility\MailUtility\breakLinesForEmail(), TYPO3\CMS\Rtehtmlarea\Extension\Acronym\buildJSAcronymArray(), TYPO3\CMS\Frontend\Imaging\GifBuilder\calcOffset(), TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem\checkAccess(), TYPO3\CMS\Saltedpasswords\Utility\ExtensionManagerConfigurationUtility\checkConfigurationBackend(), TYPO3\CMS\Belog\Module\BackendLogModuleBootstrap\checkExtObj(), TYPO3\CMS\Backend\Module\AbstractFunctionModule\checkExtObj(), TYPO3\CMS\Backend\Module\BaseScriptClass\checkExtObj(), TYPO3\CMS\Frontend\Imaging\GifBuilder\checkFile(), TYPO3\CMS\Version\Hook\PreviewHook\checkForPreview(), TYPO3\CMS\Install\Updates\MediaFlexformUpdate\checkForUpdate(), TYPO3\CMS\Install\Updates\AbstractUpdate\checkIfTableExists(), TYPO3\CMS\Linkvalidator\Linktype\FileLinktype\checkLink(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\checkPageForShortcutRedirect(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\checkSchedulerUser(), TYPO3\CMS\Core\Html\HtmlParser\checkTagTypeCounts(), TYPO3\CMS\Frontend\Imaging\GifBuilder\checkTextObj(), TYPO3\CMS\Extensionmanager\Utility\UpdateScriptUtility\checkUpdateScriptExists(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_flex(), TYPO3\CMS\Frontend\Page\PageRepository\checkWorkspaceAccess(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\cleanFileName(), TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools\cleanFlexFormXML(), TYPO3\CMS\Core\Messaging\FlashMessageQueue\clear(), TYPO3\CMS\Recordlist\RecordList\clearCache(), TYPO3\CMS\Backend\Controller\PageLayoutController\clearCache(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\cObjGet(), TYPO3\CMS\Core\Utility\RootlineUtility\columnHasRelationToResolve(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\compileResult(), TYPO3\CMS\Fluid\Core\Widget\Bootstrap\configureObjectManager(), TYPO3\CMS\Extbase\Core\Bootstrap\configureObjectManager(), TYPO3\CMS\Core\Cache\Backend\PdoBackend\connect(), TYPO3\CMS\Form\Utility\TypoScriptToJsonConverter\convert(), TYPO3\CMS\Core\Resource\ResourceFactory\convertFlexFormDataToConfigurationArray(), TYPO3\CMS\Backend\Module\ModuleController\convertRawModuleDataToModuleMenuObject(), TYPO3\CMS\Core\DataHandling\DataHandler\copyMovedRecordToNewLocation(), TYPO3\CMS\Core\DataHandling\DataHandler\copyRecord_fixRTEmagicImages(), TYPO3\CMS\Core\Database\RelationHandler\countItems(), TYPO3\CMS\IndexedSearch\Hook\CrawlerFilesHook\crawler_execute(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\crawler_execute_type2(), TYPO3\CMS\Core\Collection\AbstractRecordCollection\create(), TYPO3\CMS\Form\Domain\Model\Element\AbstractElement\createAdditional(), TYPO3\CMS\Core\FormProtection\FormProtectionFactory\createAndStoreInstance(), TYPO3\CMS\Form\Domain\Model\Element\AbstractElement\createAttributes(), TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\Hook\BackendUserHandler\createBackendUser(), TYPO3\CMS\Form\View\Form\Element\ContainerElementView\createChildElementFromModel(), TYPO3\CMS\Form\View\Confirmation\Element\ContainerElementView\createChildElementFromModel(), TYPO3\CMS\Form\View\Mail\Html\Element\ContainerElementView\createChildElementFromModel(), TYPO3\CMS\Recycler\Controller\RecyclerAjaxController\createContent(), TYPO3\CMS\Core\Localization\Parser\LocallangArrayParser\createCsConvObject(), TYPO3\CMS\Core\Tests\Functional\DataHandling\Framework\ActionService\createDataHandler(), TYPO3\CMS\Backend\View\BackendLayoutView\createDataProviderContext(), TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper\createDocInstance(), TYPO3\CMS\Core\Resource\ProcessedFileRepository\createDomainObject(), TYPO3\CMS\Core\Resource\Index\ExtractorRegistry\createExtractorInstance(), TYPO3\CMS\Form\Utility\FilterUtility\createFilter(), TYPO3\CMS\Form\Domain\Model\Element\AbstractElement\createFilter(), TYPO3\CMS\Core\Resource\ResourceFactory\createFolderObject(), TYPO3\CMS\Version\Hook\PreviewHook\createFrontendBackendUser(), TYPO3\CMS\Core\Resource\ProcessedFileRepository\createNewProcessedFileObject(), TYPO3\CMS\Backend\Form\Element\InlineElement\createNewRecord(), TYPO3\CMS\Backend\Utility\BackendUtility\createPreviewUrl(), TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository\createQueryConstraints(), TYPO3\CMS\Version\Hook\DataHandlerHook\createRelationHandlerInstance(), TYPO3\CMS\Core\DataHandling\DataHandler\createRelationHandlerInstance(), TYPO3\CMS\Form\Utility\ValidatorUtility\createRule(), TYPO3\CMS\Core\Resource\ResourceFactory\createStorageObject(), TYPO3\CMS\Backend\Tree\TreeNodeCollection\dataFromArray(), TYPO3\CMS\Backend\Tree\TreeNode\dataFromArray(), TYPO3\CMS\Core\Mail\SwiftMailerAdapter\decode(), TYPO3\CMS\Recycler\Domain\Model\DeletedRecords\deleteData(), TYPO3\CMS\Core\DataHandling\DataHandler\deleteRecord(), TYPO3\CMS\Core\DataHandling\DataHandler\deleteRecord_flexFormCallBack(), TYPO3\CMS\Reports\Controller\ReportController\detailAction(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\determineId(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\determineIdIsHiddenPage(), TYPO3\CMS\Form\Controller\WizardController\dispatch(), TYPO3\CMS\Backend\History\RecordHistory\displayHistory(), TYPO3\CMS\Reports\Report\Status\WarningMessagePostProcessor\displayWarningMessages_postProcess(), TYPO3\CMS\Backend\Controller\EditDocumentController\doProcessData(), TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController\drawTableOfIndexedPages(), TYPO3\CMS\Core\Error\ProductionExceptionHandler\echoExceptionWeb(), TYPO3\CMS\Extbase\Persistence\Generic\Query\equals(), TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider\evaluateDisplayCondition(), TYPO3\CMS\Extensionmanager\Task\UpdateExtensionListTask\execute(), TYPO3\CMS\Workspaces\Task\AutoPublishTask\execute(), TYPO3\CMS\Version\Task\AutoPublishTask\execute(), TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionTask\execute(), TYPO3\CMS\Linkvalidator\Task\ValidatorTask\execute(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\executeAdminCommand(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\executeTasks(), TYPO3\CMS\Extensionmanager\Utility\UpdateScriptUtility\executeUpdateIfNeeded(), TYPO3\CMS\Impexp\ImportExport\export_addFile(), TYPO3\CMS\Impexp\ImportExport\export_addRecord(), TYPO3\CMS\Impexp\Controller\ImportExportController\exportData(), TYPO3\CMS\Core\TypoScript\ConfigurationForm\ext_mergeIncomingWithExisting(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_outputTS(), TYPO3\CMS\Core\Tests\Unit\TypoScript\TemplateServiceTest\extensionStaticsAreProcessedIfExplicitlyRequested(), TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController\extGetTreeList(), TYPO3\CMS\Backend\FrontendBackendUserAuthentication\extGetTreeList(), TYPO3\CMS\Backend\Module\BaseScriptClass\extObjContent(), TYPO3\CMS\IndexedSearch\Indexer\extractBaseHref(), TYPO3\CMS\IndexedSearch\Indexer\extractHyperLinks(), TYPO3\CMS\IndexedSearch\Indexer\extractLinks(), TYPO3\CMS\Core\Resource\Index\Indexer\extractRequiredMetaData(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\fetch_the_id(), TYPO3\CMS\Documentation\Controller\DocumentController\fetchAction(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\fetchGroupData(), TYPO3\CMS\Documentation\Domain\Repository\DocumentRepository\findAll(), TYPO3\CMS\Core\Resource\ResourceFactory\findBestMatchingStorageByLocalPath(), TYPO3\CMS\Core\Resource\Index\MetaDataRepository\findByFile(), TYPO3\CMS\Core\Resource\FileRepository\findBySha1Hash(), TYPO3\CMS\Core\Cache\Backend\FileBackend\findIdentifiersByTag(), TYPO3\CMS\Frontend\ContentObject\Menu\GraphicalMenuContentObject\findLargestDims(), TYPO3\CMS\Core\Database\SoftReferenceIndex\findRef_images(), TYPO3\CMS\Rtehtmlarea\Hook\SoftReferenceHook\findRef_rtehtmlarea_images(), TYPO3\CMS\Core\Database\SoftReferenceIndex\findRef_TStemplate(), TYPO3\CMS\Core\Database\SoftReferenceIndex\findRef_typolink_tag(), TYPO3\CMS\Workspaces\Hook\DataHandlerHook\flushWorkspaceCacheEntriesByWorkspaceId(), TYPO3\CMS\Filelist\FileList\formatFileList(), TYPO3\CMS\Workspaces\Controller\ReviewController\fullIndexAction(), TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView\func_refindex(), TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView\func_relations(), TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView\func_search(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\func_unzip(), TYPO3\CMS\Frontend\ContentObject\Menu\ImageMenuContentObject\generate(), TYPO3\CMS\Backend\Sprite\SpriteBuildingHandler\generate(), TYPO3\CMS\Workspaces\Service\GridDataService\generateGridListFromVersions(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\generatePage_postProcessing(), TYPO3\CMS\Frontend\Page\PageGenerator\generatePageTitle(), TYPO3\CMS\Workspaces\Service\WorkspaceService\generateWorkspacePreviewLink(), TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\getActionService(), TYPO3\CMS\Scheduler\Task\FileStorageIndexingAdditionalFieldProvider\getAdditionalFields(), TYPO3\CMS\Scheduler\Task\FileStorageExtractionAdditionalFieldProvider\getAdditionalFields(), TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler\getAffectedElements(), TYPO3\CMS\Backend\Form\FormDataTraverser\getAllowedTableForGroupField(), TYPO3\CMS\Backend\Form\FormEngine\getAvailableLanguages(), TYPO3\CMS\Backend\Search\LiveSearch\LiveSearch\getAvailablePageIds(), TYPO3\CMS\Backend\View\PageLayoutView\getBackendLayoutView(), TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\getButtons(), TYPO3\CMS\Backend\Controller\NewRecordController\getButtons(), TYPO3\CMS\Perm\Controller\PermissionModuleController\getButtons(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\getCache(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getCacheFloodingProtectionStatus(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\getCacheManager(), TYPO3\CMS\Core\DataHandling\DataHandler\getCacheManager(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\getCharsetConversion(), TYPO3\CMS\Core\DataHandling\DataHandler\getCheckModifyAccessListHookObjects(), TYPO3\CMS\Form\Domain\Factory\TypoScriptFactory\getChildElementsByIntegerKey(), TYPO3\CMS\Extbase\Object\Container\Container\getClassInfoCache(), TYPO3\CMS\Extbase\Object\Container\Container\getClassInfoFactory(), TYPO3\CMS\Frontend\ContentObject\FilesContentObject\getCollectionRepository(), TYPO3\CMS\Version\Hook\DataHandlerHook\getCommandMap(), TYPO3\CMS\Version\DataHandler\CommandMap\getCommonSetStagePropertiesCallback(), TYPO3\CMS\Core\Page\PageRenderer\getCompressor(), TYPO3\CMS\Extbase\Utility\LocalizationUtility\getConfigurationManager(), TYPO3\CMS\Form\View\Confirmation\ConfirmationView\getConfirmationButtons(), TYPO3\CMS\Reports\Report\Status\FalStatus\getContentAdapterStatus(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getContentObject(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getCreatedDirectoriesWorldWritableStatus(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getCreatedFilesWorldWritableStatus(), TYPO3\CMS\Core\TypoScript\TemplateService\getCurrentPageData(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getData(), TYPO3\CMS\Core\Tests\FunctionalTestCase\getDatabaseConnection(), TYPO3\CMS\Version\Dependency\ElementEntityProcessor\getDataHandler(), TYPO3\CMS\Backend\Form\DataPreprocessor\getDataIdList(), TYPO3\CMS\Core\Integrity\DatabaseIntegrityCheck\getDBFields(), TYPO3\CMS\Workspaces\Service\Dependency\CollectionService\getDependencyCallback(), TYPO3\CMS\Version\DataHandler\CommandMap\getDependencyCallback(), TYPO3\CMS\Workspaces\Service\GridDataService\getDependencyCollectionService(), TYPO3\CMS\Workspaces\Service\Dependency\CollectionService\getDependencyResolver(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getDeprecationLogStatus(), TYPO3\CMS\Workspaces\Service\HistoryService\getDifferencesObject(), TYPO3\CMS\Extensionmanager\ViewHelpers\Form\TypoScriptConstantsViewHelper\getDocInstance(), TYPO3\CMS\Workspaces\Service\Dependency\CollectionService\getElementEntityProcessor(), TYPO3\CMS\Version\DataHandler\CommandMap\getElementEntityProcessor(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getEncryptionKeyStatus(), TYPO3\CMS\Core\Resource\Service\IndexerService\getFactory(), TYPO3\CMS\Version\Dependency\DependencyResolver\getFactory(), TYPO3\CMS\Dbal\Database\DatabaseConnection\getFieldInfoCache(), TYPO3\CMS\Scheduler\Task\FileStorageExtractionAdditionalFieldProvider\getFileCountField(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getFileDenyPatternStatus(), TYPO3\CMS\Frontend\ContentObject\FilesContentObject\getFileFactory(), TYPO3\CMS\Core\Resource\ResourceStorage\getFileFactory(), TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect\getFileIndexRepository(), TYPO3\CMS\Core\Resource\Service\IndexerService\getFileIndexRepository(), TYPO3\CMS\Core\Resource\File\getFileIndexRepository(), TYPO3\CMS\Core\Resource\ResourceStorage\getFileProcessingService(), TYPO3\CMS\Lowlevel\RteImagesCommand\getFileProcObj(), TYPO3\CMS\Core\Resource\ResourceFactory\getFileReferenceObject(), TYPO3\CMS\Frontend\ContentObject\FilesContentObject\getFileRepository(), TYPO3\CMS\Core\Resource\ResourceStorage\getFolder(), TYPO3\CMS\Backend\Tree\View\FolderTreeView\getFolderTree(), TYPO3\CMS\Core\Type\File\ImageInfo\getGraphicalFunctions(), TYPO3\CMS\Core\Resource\Processing\LocalImageProcessor\getGraphicalFunctionsObject(), TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer\getGridDataService(), TYPO3\CMS\Frontend\Page\PageRepository\getHash(), TYPO3\CMS\Backend\Utility\BackendUtility\getHash(), TYPO3\CMS\Backend\Controller\PageLayoutController\getHeaderFlashMessagesForCurrentPid(), TYPO3\CMS\Backend\Form\Element\InlineElement\getHeadTags(), TYPO3\CMS\Core\Resource\Processing\LocalImageProcessor\getHelperByTaskName(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getHtaccessUploadStatus(), TYPO3\CMS\Rtehtmlarea\Controller\ImageRenderingController\getImageAttributes(), TYPO3\CMS\Core\Type\File\ImageInfo\getImageSizes(), TYPO3\CMS\Core\Resource\ResourceFactory\getIndexer(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\getIndexer(), TYPO3\CMS\Core\Resource\ResourceStorage\getIndexer(), TYPO3\CMS\Core\Resource\FileRepository\getIndexerService(), TYPO3\CMS\Core\Resource\File\getIndexerService(), TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory\getInjectProperties(), TYPO3\CMS\Core\Resource\Service\UserFileInlineLabelService\getInlineLabel(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getInstallToolPasswordStatus(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getInstallToolProtectionStatus(), TYPO3\CMS\Install\Updates\ExtensionManagerTables\getInstallToolSqlParser(), TYPO3\CMS\Core\Resource\ResourceFactory\getInstance(), TYPO3\CMS\Core\Category\CategoryRegistry\getInstance(), TYPO3\CMS\Core\Resource\Index\FileIndexRepository\getInstance(), TYPO3\CMS\Workspaces\Service\GridDataService\getIntegrityService(), TYPO3\CMS\Form\Domain\Factory\TypoScriptFactory\getLayoutFromTypoScript(), TYPO3\CMS\Linkvalidator\LinkAnalyzer\getLinkStatistics(), TYPO3\CMS\Linkvalidator\Task\ValidatorTask\getLinkTypes(), TYPO3\CMS\Core\Database\RelationHandler\getLiveDefaultId(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getLLL(), TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\getLoadDbGroup(), TYPO3\CMS\Form\Domain\Factory\TypoScriptFactory\getLocalConentObject(), TYPO3\CMS\Core\DataHandling\DataHandler\getLocalTCE(), TYPO3\CMS\Core\Resource\ProcessedFileRepository\getLogger(), TYPO3\CMS\Core\Log\LogManager\getLoggerNames(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getMemcachedConnectionStatus(), TYPO3\CMS\Frontend\ContentObject\Menu\MenuContentObjectFactory\getMenuObjectByType(), TYPO3\CMS\Core\Messaging\FlashMessageService\getMessageQueueByIdentifier(), TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect\getMetaDataRepository(), TYPO3\CMS\Core\Resource\Service\IndexerService\getMetaDataRepository(), TYPO3\CMS\Core\Resource\File\getMetaDataRepository(), TYPO3\CMS\Workspaces\Service\WorkspaceService\getMoveToPlaceHolderFromPages(), TYPO3\CMS\Backend\Form\Element\InlineElement\getNewRecordPid(), TYPO3\CMS\Impexp\ImportExport\getNewTCE(), TYPO3\CMS\Scheduler\Execution\getNextExecution(), TYPO3\CMS\Backend\Tree\Pagetree\ExtdirectTreeDataProvider\getNodeTypes(), TYPO3\CMS\Backend\Utility\BackendUtility\getNoRecordTitle(), TYPO3\CMS\Core\Resource\ResourceFactory\getObjectFromCombinedIdentifier(), TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeDataProvider\getObjectManager(), TYPO3\CMS\Backend\Controller\LoginController\getObjectManager(), TYPO3\CMS\Workspaces\Service\WorkspaceService\getObjectManager(), TYPO3\CMS\Core\Resource\ResourceStorage\getObjectManager(), TYPO3\CMS\Openid\OpenidService\getOpenIDConsumer(), TYPO3\CMS\Backend\Template\DocumentTemplate\getPageInfo(), TYPO3\CMS\Backend\Template\DocumentTemplate\getPageRenderer(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPageRenderer(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser\getPageRepository(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getPageRepository(), TYPO3\CMS\Backend\Utility\BackendUtility\getPagesTSconfig(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getPagesTSconfig(), TYPO3\CMS\Backend\Form\FormEngine\getPaletteFields(), TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser\getParsedData(), TYPO3\CMS\Extensionmanager\Utility\Parser\XmlParserFactory\getParserInstance(), TYPO3\CMS\Backend\Utility\BackendUtility\getPathType_web_nonweb(), TYPO3\CMS\Core\Resource\Collection\FolderBasedFileCollection\getPersistableDataArray(), TYPO3\CMS\Backend\Form\FormEngine\getPlaceholderAttribute(), TYPO3\CMS\Core\DataHandling\DataHandler\getPlaceholderTitleForTableLabel(), TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect\getProcessedFileRepository(), TYPO3\CMS\Core\Resource\ResourceFactory\getProcessedFileRepository(), TYPO3\CMS\Core\Resource\ResourceStorage\getProcessingFolder(), TYPO3\CMS\Core\Log\Logger\getProcessors(), TYPO3\CMS\Setup\Controller\SetupModuleController\getRealScriptUserObj(), TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\getRecipientList(), TYPO3\CMS\Core\Utility\RootlineUtility\getRecordArray(), TYPO3\CMS\Backend\Tree\Pagetree\DataProvider\getRecordWithWorkspaceOverlay(), TYPO3\CMS\Perm\Controller\PermissionModuleController\getRecursiveSelect(), TYPO3\CMS\Version\Dependency\DependencyEntityFactory\getReference(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getReferenceIndexStatus(), TYPO3\CMS\Core\FormProtection\BackendFormProtection\getRegistry(), TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeDataProvider\getRelatedRecords(), TYPO3\CMS\Core\Database\ReferenceIndex\getRelations(), TYPO3\CMS\Core\Database\ReferenceIndex\getRelations_procDB(), TYPO3\CMS\Core\Database\ReferenceIndex\getRelations_procFiles(), TYPO3\CMS\Extensionmanager\Utility\Repository\Helper\getRemoteMirrorListFile(), TYPO3\CMS\Reports\Report\Status\Status\getReport(), TYPO3\CMS\Core\Resource\Service\IndexerService\getRepository(), TYPO3\CMS\IndexedSearch\Hook\MysqlFulltextIndexHook\getResultRows_SQLpointer(), TYPO3\CMS\IndexedSearch\Domain\Repository\IndexSearchRepository\getResultRows_SQLpointer(), TYPO3\CMS\Openid\Wizard\getReturnUrl(), TYPO3\CMS\Backend\Tree\Pagetree\ExtdirectTreeDataProvider\getRoot(), TYPO3\CMS\Frontend\Page\PageRepository\getRootLine(), TYPO3\CMS\Rtehtmlarea\SelectImage\getRTEImageStorageDir(), TYPO3\CMS\Backend\Utility\BackendUtility\getRuntimeCache(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\getSearchWords(), TYPO3\CMS\IndexedSearch\Controller\SearchController\getSearchWords(), TYPO3\CMS\Impexp\Utility\ImportExportUtility\getSignalSlotDispatcher(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\getSignalSlotDispatcher(), TYPO3\CMS\Core\Resource\Service\FileProcessingService\getSignalSlotDispatcher(), TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService\getSignalSlotDispatcher(), TYPO3\CMS\Backend\Controller\EditDocumentController\getSignalSlotDispatcher(), TYPO3\CMS\Core\Database\SoftReferenceIndex\getSignalSlotDispatcher(), TYPO3\CMS\Backend\Utility\BackendUtility\getSignalSlotDispatcher(), TYPO3\CMS\Backend\Form\FormEngine\getSingleField_typeFlex_sheetMenu(), TYPO3\CMS\Backend\Form\FormEngine\getSingleField_typeSelect(), TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer\getStageActions(), TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\getStageService(), TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer\getStagesService(), TYPO3\CMS\Reports\Report\Status\SystemStatus\getStatus(), TYPO3\CMS\Reports\Report\Status\FalStatus\getStatus(), TYPO3\CMS\Reports\Report\Status\Status\getStatusProviders(), TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest\getSysDomainCacheReturnsCurrentDomainRecord(), TYPO3\CMS\Frontend\Tests\Unit\Controller\TypoScriptFrontendControllerTest\getSysDomainCacheReturnsForcedDomainRecord(), TYPO3\CMS\Backend\Utility\BackendUtility\getSystemLanguages(), TYPO3\CMS\Workspaces\Service\GridDataService\getSystemLanguageValue(), TYPO3\CMS\T3editor\Hook\FileEditHook\getT3editor(), TYPO3\CMS\T3editor\Hook\TypoScriptTemplateInfoHook\getT3editor(), TYPO3\CMS\Recycler\Domain\Model\Tables\getTables(), TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeDataProvider\getTableWhere(), TYPO3\CMS\SysAction\ActionTask\getTask(), TYPO3\CMS\Workspaces\Hook\DataHandlerHook\getTceMain(), TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\getTceMain(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\getTranslateTools(), TYPO3\CMS\Frontend\Utility\EidUtility\getTSFE(), TYPO3\CMS\Install\Controller\Action\Tool\CleanUp\getTypo3TempStatistics(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\getUidRootLineForClosestTemplate(), TYPO3\CMS\Workspaces\Service\HistoryService\getUserName(), TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication\getUserTSconf(), TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute\getValue(), TYPO3\CMS\Backend\Template\DocumentTemplate\getVersionSelector(), TYPO3\CMS\Fluid\Core\Compiler\AbstractCompiledTemplate\getViewHelper(), TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer\getWorkspaceInfos(), TYPO3\CMS\Workspaces\Hook\BackendUtilityHook\getWorkspaceService(), TYPO3\CMS\Workspaces\ExtDirect\PagetreeCollectionsProcessor\getWorkspaceService(), TYPO3\CMS\Backend\Tree\View\AbstractTreeView\getWorkspaceService(), TYPO3\CMS\Dbal\Database\DatabaseConnection\handler_init(), TYPO3\CMS\Core\Resource\ResourceStorage\hasFile(), TYPO3\CMS\Form\Domain\Repository\ContentRepository\hasRecord(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\HTMLparser_TSbridge(), TYPO3\CMS\Aboutmodules\Controller\ModulesController\indexAction(), TYPO3\CMS\Workspaces\Controller\ReviewController\indexAction(), TYPO3\CMS\Taskcenter\Controller\TaskModuleController\indexAction(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\indexExtUrl(), TYPO3\CMS\IndexedSearch\Example\CrawlerHook\indexOperation(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\indexSingleRecord(), TYPO3\CMS\Backend\Controller\BackendLayoutWizardController\init(), TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\init(), TYPO3\CMS\Rtehtmlarea\ContentParser\init(), TYPO3\CMS\Install\Updates\FileIdentifierHashUpdate\init(), TYPO3\CMS\Backend\Controller\NoDocumentsOpenController\init(), TYPO3\CMS\Install\Updates\FilemountUpdateWizard\init(), TYPO3\CMS\Rtehtmlarea\User\init(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\init(), TYPO3\CMS\Recordlist\Controller\ElementBrowserController\init(), TYPO3\CMS\Backend\Controller\File\FileController\init(), TYPO3\CMS\IndexedSearch\Controller\ModuleController\init(), TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView\init(), TYPO3\CMS\Backend\Controller\Wizard\RteController\init(), TYPO3\CMS\Backend\Controller\FileSystemNavigationFrameController\init(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\init(), TYPO3\CMS\Backend\Controller\File\RenameFileController\init(), TYPO3\CMS\Backend\Controller\File\FileUploadController\init(), TYPO3\CMS\Backend\Controller\ClickMenuController\init(), TYPO3\CMS\Backend\Controller\File\EditFileController\init(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\init(), TYPO3\CMS\Backend\Controller\File\CreateFolderController\init(), TYPO3\CMS\Lowlevel\View\ConfigurationView\init(), TYPO3\CMS\Backend\Controller\ContentElement\MoveElementController\init(), TYPO3\CMS\Backend\Controller\PageTreeNavigationController\init(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\init(), TYPO3\CMS\Backend\Controller\Wizard\TableController\init(), TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\init(), TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController\init(), TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\init(), TYPO3\CMS\Perm\Controller\PermissionModuleController\init(), TYPO3\CMS\Backend\Controller\NewRecordController\init(), TYPO3\CMS\Backend\Controller\Wizard\FormsController\init(), TYPO3\CMS\Setup\Controller\SetupModuleController\init(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\init(), TYPO3\CMS\IndexedSearch\Indexer\init(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\initCaches(), TYPO3\CMS\Backend\Controller\File\FileController\initClipboard(), TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\initClipboard(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\initDocumentTemplate(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\initFEuser(), TYPO3\CMS\Workspaces\ExtDirect\MassActionHandler\initFlushData(), TYPO3\CMS\Core\Localization\LocalizationFactory\initialize(), TYPO3\CMS\Recycler\Controller\RecyclerModuleController\initialize(), TYPO3\CMS\Form\Controller\FormController\initialize(), TYPO3\CMS\Extbase\Scheduler\TaskExecutor\initialize(), TYPO3\CMS\IndexedSearch\Domain\Repository\IndexSearchRepository\initialize(), TYPO3\CMS\IndexedSearch\Controller\SearchController\initialize(), TYPO3\CMS\Dbal\Database\DatabaseConnection\initialize(), TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\initialize(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController\initialize_editor(), TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController\initialize_editor(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\initialize_editor(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController\initialize_editor(), TYPO3\CMS\Workspaces\Controller\PreviewController\initializeAction(), TYPO3\CMS\Backend\FrontendBackendUserAuthentication\initializeAdminPanel(), TYPO3\CMS\Core\Core\Bootstrap\initializeBackendTemplate(), TYPO3\CMS\Core\Core\Bootstrap\initializeBackendUserMounts(), TYPO3\CMS\Core\Localization\LocalizationFactory\initializeCache(), TYPO3\CMS\Extbase\Core\Bootstrap\initializeCache(), TYPO3\CMS\Backend\View\PageLayoutView\initializeClipboard(), TYPO3\CMS\Backend\Controller\BackendController\initializeCoreToolbarItems(), TYPO3\CMS\Core\Core\Bootstrap\initializeExceptionHandling(), TYPO3\CMS\Impexp\ImportExport\initializeImport(), TYPO3\CMS\Extbase\Object\Container\ClassInfoCache\initializeLevel2Cache(), TYPO3\CMS\Core\Resource\StorageRepository\initializeLocalCache(), TYPO3\CMS\Extbase\Utility\LocalizationUtility\initializeLocalization(), TYPO3\CMS\Core\Mail\MailMessage\initializeMailer(), TYPO3\CMS\Extbase\SignalSlot\Dispatcher\initializeObject(), TYPO3\CMS\Core\Utility\RootlineUtility\initializeObject(), TYPO3\CMS\Extbase\Core\Bootstrap\initializeObjectManager(), TYPO3\CMS\Core\Core\Bootstrap\initializeSpriteManager(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\initializeStandaloneViewInstance(), TYPO3\CMS\Core\FrontendEditing\FrontendEditingController\initializeTceMain(), TYPO3\CMS\Backend\Form\FrontendFormEngine\initializeTemplateContainer(), TYPO3\CMS\Core\Mail\Mailer\initializeTransport(), TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeDataProvider\initializeTreeData(), TYPO3\CMS\Workspaces\Service\GridDataService\initializeWorkspacesCachingFramework(), TYPO3\CMS\Frontend\Utility\EidUtility\initLanguage(), TYPO3\CMS\Backend\Controller\FileSystemNavigationFrameController\initPage(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\initTemplate(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\initVariables(), TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper\injectConfigurationManager(), TYPO3\CMS\Extbase\Object\Container\Container\injectDependencies(), TYPO3\CMS\Fluid\View\AbstractTemplateView\injectTemplateCompiler(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\isAvailable(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\isBackendUserLoggedIn(), TYPO3\CMS\Rtehtmlarea\Controller\ImageRenderingController\isExternalImage(), TYPO3\CMS\Backend\Sprite\SpriteManager\isInitialized(), TYPO3\CMS\Workspaces\Controller\PreviewController\isInvalidStage(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLocalconfWritable(), TYPO3\CMS\Core\Resource\ResourceStorage\isOnline(), TYPO3\CMS\Backend\Form\FormEngine\isPalettesCollapsed(), TYPO3\CMS\Form\Validation\DigitValidator\isValid(), TYPO3\CMS\Form\Validation\AlphanumericValidator\isValid(), TYPO3\CMS\Form\Validation\AlphabeticValidator\isValid(), TYPO3\CMS\SysAction\ActionTask\JScode(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\linkWrapTemplateTitle(), TYPO3\CMS\Linkvalidator\Task\ValidatorTask\loadModTsConfig(), TYPO3\CMS\Backend\Form\FormEngine\loadPaletteElements(), TYPO3\CMS\T3editor\CodeCompletion\loadTemplates(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\locDataCheck(), TYPO3\CMS\Core\Tests\Unit\Log\Writer\FileWriterTest\logsToFileDataProvider(), TYPO3\CMS\Core\Utility\MailUtility\mail(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\mailto_makelinks(), TYPO3\CMS\T3editor\FormWizard\main(), TYPO3\CMS\Rtehtmlarea\Controller\BrowseLinksController\main(), TYPO3\CMS\WizardSortpages\View\SortPagesWizardModuleFunction\main(), TYPO3\CMS\Rtehtmlarea\Controller\SelectImageController\main(), TYPO3\CMS\Openid\Wizard\main(), TYPO3\CMS\Dbal\Controller\ModuleController\main(), TYPO3\CMS\Func\Controller\PageFunctionsController\main(), TYPO3\CMS\Frontend\Controller\TranslationStatusController\main(), TYPO3\CMS\Frontend\Controller\PageInformationController\main(), TYPO3\CMS\Info\Controller\InfoModuleController\main(), TYPO3\CMS\Impexp\Task\ImportExportTask\main(), TYPO3\CMS\Backend\Controller\Wizard\EditController\main(), TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\main(), TYPO3\CMS\InfoPagetsconfig\Controller\InfoPageTyposcriptConfigController\main(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController\main(), TYPO3\CMS\Impexp\Controller\ImportExportController\main(), TYPO3\CMS\Recordlist\Controller\ElementBrowserController\main(), TYPO3\CMS\Backend\Controller\NoDocumentsOpenController\main(), TYPO3\CMS\Backend\Controller\Wizard\RteController\main(), TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController\main(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\main(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\main(), TYPO3\CMS\Backend\Controller\Wizard\AddController\main(), TYPO3\CMS\Lowlevel\View\ConfigurationView\main(), TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\main(), TYPO3\CMS\Version\Controller\VersionModuleController\main(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\main(), TYPO3\CMS\Cshmanual\Controller\HelpModuleController\main(), TYPO3\CMS\Backend\Controller\ClickMenuController\main(), TYPO3\CMS\Backend\Controller\PageTreeNavigationController\main(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController\main(), TYPO3\CMS\Setup\Controller\SetupModuleController\main(), TYPO3\CMS\Backend\Controller\PageLayoutController\main(), TYPO3\CMS\Backend\Controller\EditDocumentController\main(), TYPO3\CMS\Lowlevel\DeletedRecordsCommand\main_autoFix(), TYPO3\CMS\Lowlevel\OrphanRecordsCommand\main_autoFix(), TYPO3\CMS\Lowlevel\MissingFilesCommand\main_autoFix(), TYPO3\CMS\Lowlevel\CleanFlexformCommand\main_autoFix(), TYPO3\CMS\Lowlevel\MissingRelationsCommand\main_autoFix(), TYPO3\CMS\Lowlevel\DoubleFilesCommand\main_autoFix(), TYPO3\CMS\Lowlevel\RteImagesCommand\main_autoFix(), TYPO3\CMS\Lowlevel\VersionsCommand\main_autoFix(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\main_folder(), TYPO3\CMS\Rtehtmlarea\ContentParser\main_parse_html(), TYPO3\CMS\Lowlevel\CleanFlexformCommand\main_parseTreeCallBack(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\main_rte(), TYPO3\CMS\Rtehtmlarea\SelectImage\main_rte(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\main_rte(), TYPO3\CMS\Frontend\Page\FramesetRenderer\make(), TYPO3\CMS\Frontend\ContentObject\Menu\GraphicalMenuContentObject\makeGifs(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceCalledTwoTimesAfterAddInstanceReturnTwoDifferentInstances(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceCalledTwoTimesForNonSingletonClassReturnsDifferentInstances(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceCalledTwoTimesForSingletonClassReturnsSameInstance(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceCalledTwoTimesForSingletonClassWithPurgeInstancesInbetweenReturnsDifferentInstances(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceInstanciatesConfiguredImplementation(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstancePassesParametersToConstructor(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceResolvesConfiguredImplementationsRecursively(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceReturnsClassInstance(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceWithEmptyArrayThrowsException(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceWithEmptyClassNameThrowsException(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceWithNonEmptyArrayThrowsException(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceWithNullClassNameThrowsException(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceWithZeroStringClassNameThrowsException(), TYPO3\CMS\Backend\Controller\LoginController\makeLoginBoxImage(), TYPO3\CMS\Backend\Controller\LoginController\makeLogoutForm(), TYPO3\CMS\IndexedSearch\Controller\SearchController\makeRating(), TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper\mapDateTime(), TYPO3\CMS\Core\Resource\ResourceStorage\markAsTemporaryOffline(), TYPO3\CMS\IndexedSearch\Controller\SearchController\markupSWpartsOfString(), TYPO3\CMS\Install\Updates\AbstractUpdate\markWizardAsDone(), TYPO3\CMS\Filelist\Controller\FileListController\menuConfig(), TYPO3\CMS\WizardCrpages\Controller\CreatePagesWizardModuleFunctionController\modMenu(), TYPO3\CMS\Backend\Template\DocumentTemplate\moduleBody(), TYPO3\CMS\Core\DataHandling\DataHandler\moveL10nOverlayRecords(), TYPO3\CMS\Version\Hook\DataHandlerHook\moveRecord_processFieldValue(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\newCObj(), TYPO3\CMS\Core\DataHandling\DataHandler\newlog2(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\pageErrorHandler(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\parseFunc(), TYPO3\CMS\Backend\Configuration\TsConfigParser\parseTSconfig(), TYPO3\CMS\Backend\History\RecordHistory\performRollback(), TYPO3\CMS\Install\Updates\ProcessedFileChecksumUpdate\performUpdate(), TYPO3\CMS\Install\Updates\FileIdentifierHashUpdate\performUpdate(), TYPO3\CMS\Install\Updates\CompatVersionUpdate\performUpdate(), TYPO3\CMS\Dbal\Database\DatabaseConnection\precompileSELECTquery(), TYPO3\CMS\Dbal\Database\DatabaseConnection\prepare_SELECTquery(), TYPO3\CMS\Backend\Controller\EditDocumentController\printContent(), TYPO3\CMS\Form\PostProcess\PostProcessor\process(), TYPO3\CMS\Backend\Form\Element\SuggestElement\processAjaxRequest(), TYPO3\CMS\Backend\Form\Element\InlineElement\processAjaxRequestConstruct(), TYPO3\CMS\Core\TypoScript\TemplateService\processIncludes(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\processingByExtClassArray(), TYPO3\CMS\Sv\Tests\Unit\AuthenticationServiceTest\processLoginDataProvider(), TYPO3\CMS\Core\Tests\Unit\Log\Processor\AbstractProcessorTest\processorRefusesInvalidConfigurationOptions(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\processOutput(), TYPO3\CMS\Workspaces\Controller\AbstractController\processRequest(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowBeforeSaving(), TYPO3\CMS\Core\Database\QueryView\procesStoreControl(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\purgeInstancesDropsAddedInstance(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\pushErrorMessagesToFlashMessageQueue(), TYPO3\CMS\Core\Database\QueryView\queryMaker(), TYPO3\CMS\Core\Tests\Functional\DataHandling\Framework\DataSet\read(), TYPO3\CMS\Workspaces\Service\AdditionalColumnService\register(), TYPO3\CMS\Frontend\MediaWizard\MediaWizardProviderManager\registerMediaWizardProvider(), TYPO3\CMS\Impexp\ImportExport\remapListedDBRecords_flexFormCallBack(), TYPO3\CMS\Core\Resource\Index\FileIndexRepository\remove(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\removeInaccessiblePages(), TYPO3\CMS\Frontend\ContentObject\ImageTextContentObject\render(), TYPO3\CMS\Frontend\ContentObject\ContentTableContentObject\render(), TYPO3\CMS\Frontend\ContentObject\TemplateContentObject\render(), TYPO3\CMS\Backend\Controller\BackendController\render(), TYPO3\CMS\Form\View\Mail\Html\Element\AbstractElementView\render(), TYPO3\CMS\Form\View\Confirmation\Element\AbstractElementView\render(), TYPO3\CMS\Form\View\Form\Element\AbstractElementView\render(), TYPO3\CMS\Cshmanual\Controller\HelpModuleController\render_TOC(), TYPO3\CMS\SysAction\ActionTask\renderActionList(), TYPO3\CMS\Frontend\Page\PageGenerator\renderContent(), TYPO3\CMS\Backend\Form\FormEngine\renderDefaultLanguageDiff(), TYPO3\CMS\Backend\History\RecordHistory\renderDiff(), TYPO3\CMS\Saltedpasswords\Utility\ExtensionManagerConfigurationUtility\renderFlashMessage(), TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService\renderIsPublic(), TYPO3\CMS\Taskcenter\Controller\TaskModuleController\renderModuleContent(), TYPO3\CMS\Backend\Form\DataPreprocessor\renderRecord_flexProc(), TYPO3\CMS\Backend\Form\DataPreprocessor\renderRecord_SW(), TYPO3\CMS\Backend\Form\DataPreprocessor\renderRecord_typesProc(), TYPO3\CMS\Backend\Form\FormEngine\renderVDEFDiff(), TYPO3\CMS\Core\Tests\Unit\Cache\Frontend\PhpFrontendTest\requireOnceCallsTheBackendsRequireOnceMethod(), TYPO3\CMS\Core\Log\LogManager\reset(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\resetUC(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\resourceListForCopy(), TYPO3\CMS\Core\ExtDirect\ExtDirectRouter\route(), TYPO3\CMS\Frontend\Controller\ExtDirectEidController\routeAction(), TYPO3\CMS\Fluid\Core\Widget\Bootstrap\run(), TYPO3\CMS\T3editor\Hook\TypoScriptTemplateInfoHook\save(), TYPO3\CMS\T3editor\Hook\FileEditHook\save(), TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility\saveDefaultConfiguration(), TYPO3\CMS\SysAction\ActionTask\saveNewBackendUser(), TYPO3\CMS\Core\Database\DatabaseConnection\searchQuery(), TYPO3\CMS\Backend\Form\DataPreprocessor\selectAddSpecial(), TYPO3\CMS\Form\PostProcess\MailPostProcessor\send(), TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\sendPageToNextStage(), TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\sendPageToPreviousStage(), TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\sentCollectionToStage(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\set_cache_timeout_default(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\setCachedList(), TYPO3\CMS\Form\PostProcess\MailPostProcessor\setCharacterSet(), TYPO3\CMS\Core\Http\HttpRequest\setConfiguration(), TYPO3\CMS\Extbase\Mvc\Controller\FlashMessageContainer\setControllerContext(), TYPO3\CMS\Core\Error\ErrorHandler\setExceptionalErrors(), TYPO3\CMS\Form\Domain\Factory\TypoScriptFactory\setFilters(), TYPO3\CMS\Impexp\ImportExport\setFlexFormRelations(), TYPO3\CMS\Form\PostProcess\MailPostProcessor\setFrom(), TYPO3\CMS\Core\DataHandling\DataHandler\setHistory(), TYPO3\CMS\Core\Tests\Unit\Log\Writer\FileWriterTest\setLogFileAcceptsAbsolutePath(), TYPO3\CMS\Core\Tests\Unit\Log\Writer\FileWriterTest\setLogFileSetsLogFile(), TYPO3\CMS\Reports\Task\SystemStatusUpdateTask\setNotificationEmail(), TYPO3\CMS\Core\Tests\Unit\Cache\Frontend\PhpFrontendTest\setPassesPhpSourceCodeTagsAndLifetimeToBackend(), TYPO3\CMS\Scheduler\Task\AbstractTask\setScheduler(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\setSingletonInstanceCalledTwoTimesMakesMakeInstanceReturnLastSetInstance(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\setSingletonInstanceMakesMakeInstanceReturnThatInstance(), TYPO3\CMS\Core\Tests\Unit\Log\LogManagerTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Configuration\ConditionMatcherTest\setUp(), TYPO3\CMS\Frontend\Tests\Unit\Configuration\TypoScript\ConditionMatching\ConditionMatcherTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\Form\FormEngineInlineTest\setUp(), TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExportTestCase\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\QueryParserTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Localization\Parser\LocallangXmlParserTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Localization\Parser\XliffParserTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\RelationTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\OperatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\InTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\AddTest\setUp(), TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\CountTest\setUp(), TYPO3\CMS\Core\Tests\Functional\Category\Collection\CategoryCollectionTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\PdoBackendTest\setUpBackend(), TYPO3\CMS\Core\Tests\FunctionalTestCaseBootstrapUtility\setUpBasicTypo3Bootstrap(), TYPO3\CMS\Core\Tests\Unit\Log\Writer\FileWriterTest\setUpVfsStream(), TYPO3\CMS\Form\Domain\Model\Element\ResetElement\setValue(), TYPO3\CMS\Viewpage\Controller\ViewModuleController\showAction(), TYPO3\CMS\Form\Controller\FormController\showConfirmation(), TYPO3\CMS\Form\Controller\FormController\showForm(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\simplelog(), TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility\simulateFrontendEnvironment(), TYPO3\CMS\Fluid\ViewHelpers\Format\CropViewHelper\simulateFrontendEnvironment(), TYPO3\CMS\Setup\Controller\SetupModuleController\simulateUser(), TYPO3\CMS\Workspaces\Controller\ReviewController\singleIndexAction(), TYPO3\CMS\Frontend\Imaging\GifBuilder\start(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\start(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_editPanel(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_offsetWrap(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_stdWrapPreProcess(), TYPO3\CMS\Core\Mail\MboxTransport\stop(), TYPO3\CMS\Scheduler\Task\AbstractTask\stop(), TYPO3\CMS\Frontend\Page\PageRepository\storeHash(), TYPO3\CMS\Backend\Utility\BackendUtility\storeHash(), TYPO3\CMS\Setup\Controller\SetupModuleController\storeIncomingData(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\substituteCMarkers(), TYPO3\CMS\Cshmanual\Controller\HelpModuleController\substituteGlossaryWords(), TYPO3\CMS\Beuser\Hook\SwitchBackUserHook\switchBack(), TYPO3\CMS\Core\Tests\Unit\Log\LogManagerTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Localization\Parser\LocallangXmlParserTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Localization\Parser\XliffParserTest\tearDown(), TYPO3\CMS\Core\Integrity\DatabaseIntegrityCheck\testDBRefs(), TYPO3\CMS\Backend\Utility\BackendUtility\titleAltAttrib(), TYPO3\CMS\Backend\Rte\AbstractRte\transformContent(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawItem(), TYPO3\CMS\Recycler\Domain\Model\DeletedRecords\undeleteData(), TYPO3\CMS\Core\Core\Bootstrap\unregisterClassLoader(), TYPO3\CMS\Core\Core\Bootstrap\unsetReservedGlobalVariables(), TYPO3\CMS\Scheduler\Task\AbstractTask\unsetScheduler(), TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\updateBrokenLinks(), TYPO3\CMS\Lang\Domain\Repository\LanguageRepository\updateSelectedLanguages(), TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\updateStageChangeButtons(), TYPO3\CMS\Fluid\Compatibility\DocbookGeneratorService\userFunc(), TYPO3\CMS\Version\Controller\VersionModuleController\versioningMgm(), TYPO3\CMS\Version\Hook\DataHandlerHook\versionizePages(), TYPO3\CMS\Core\TypoScript\TemplateService\versionOL(), TYPO3\CMS\SysAction\ActionTask\viewEditRecord(), TYPO3\CMS\SysAction\ActionTask\viewNewBackendUser(), TYPO3\CMS\SysAction\ActionTask\viewRecordList(), TYPO3\CMS\SysAction\ActionTask\viewSqlQuery(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\wizard_appendWizards(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\writeLog(), TYPO3\CMS\Frontend\ContentObject\Menu\TextMenuContentObject\writeMenu(), TYPO3\CMS\Frontend\ContentObject\Menu\GraphicalMenuContentObject\writeMenu(), and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\writeNewExtensionList().

◆ makeInstanceService()

static TYPO3\CMS\Core\Utility\GeneralUtility::makeInstanceService (   $serviceType,
  $serviceSubType = '',
  $excludeServiceKeys = array() 
)
static

Find the best service and check if it works. Returns object of the service class.

Parameters
string$serviceTypeType of service (service key).
string$serviceSubTypeSub type like file extensions or similar. Defined by the service.
mixed$excludeServiceKeysList of service keys which should be excluded in the search for a service. Array or comma list.
Returns
object The service object or an array with error info's.

Definition at line 4705 of file GeneralUtility.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\array_merge(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\deactivateService(), die, TYPO3\CMS\Core\Utility\ExtensionManagementUtility\findService(), and TYPO3\CMS\Core\Utility\DebugUtility\viewArray().

Referenced by TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\checkAuthentication(), TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication\fetchGroupData(), and TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\processLoginData().

◆ makeRedirectUrl()

static TYPO3\CMS\Core\Utility\GeneralUtility::makeRedirectUrl (   $inUrl,
  $l = 0,
  $index_script_url = '' 
)
static

Sub-function for substUrlsInPlainText() above.

Parameters
string$inUrlInput URL
integer$lURL string length limit
string$index_script_urlURL of "index script" - the prefix of the "?RDCT=..." parameter. If not supplied it will default to ::getIndpEnv('TYPO3_REQUEST_DIR').'index.php'
Returns
string Processed URL

Definition at line 5014 of file GeneralUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Utility\GeneralUtility\substUrlsInPlainText().

◆ md5int()

◆ milliseconds()

◆ minifyJavaScript()

◆ mkdir()

static TYPO3\CMS\Core\Utility\GeneralUtility::mkdir (   $newFolder)
static

Wrapper function for mkdir. Sets folder permissions according to $GLOBALS['TYPO3_CONF_VARS']['BE']['folderCreateMask'] and group ownership according to $GLOBALS['TYPO3_CONF_VARS']['BE']['createGroup']

Parameters
string$newFolderAbsolute path to folder, see PHP mkdir() function. Removes trailing slash internally.
Returns
boolean TRUE if went well!

Definition at line 2854 of file GeneralUtility.php.

References $GLOBALS, and $result.

Referenced by TYPO3\CMS\Core\Resource\ResourceCompressor\__construct(), TYPO3\CMS\SysAction\ActionTask\action_createDir(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\addDirectory(), TYPO3\CMS\Impexp\ImportExport\checkOrCreateDir(), TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService\copyDependencies(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\copyDirectoryCopiesFilesAndDirectoriesWithAbsolutePaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\copyDirectoryCopiesFilesAndDirectoriesWithRelativePaths(), TYPO3\CMS\Extensionmanager\Controller\UploadExtensionFileController\copyExtensionFolderToTempFolder(), TYPO3\CMS\Core\Utility\GeneralUtility\createDirectoryPath(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\FileHandlingUtilityTest\createFakeExtension(), TYPO3\CMS\Core\Tests\Unit\Core\ClassLoaderTest\createFakeExtension(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\createFakeExtension(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\createFolder(), TYPO3\CMS\Core\Locking\Locker\createPathIfNeeded(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\createTempSubDir(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsCorrectlySetsPermissionsRecursive(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsDefaultPermissionsToDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToDirectoryWithTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToHiddenDirectory(), TYPO3\CMS\Install\Report\InstallStatusReport\getFileSystemStatus(), TYPO3\CMS\Extensionmanager\Utility\InstallUtility\importInitialFiles(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\importT3DFileDoesNotImportFileIfAlreadyImported(), TYPO3\CMS\Backend\Sprite\SpriteManager\isInitialized(), TYPO3\CMS\Core\Tests\Unit\Utility\ExtensionManagementUtilityTest\loadBaseTcaCreatesCacheFileWithContentOfAnExtensionsConfigurationTcaPhpFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirCreatesDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirCreatesDirectoryWithTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirCreatesHiddenDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirSetsGroupOwnershipOfCreatedDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirSetsPermissionsOfCreatedDirectory(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\moveFolderWithinStorage(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\processDatabaseUpdatesCallsImportFile(), TYPO3\CMS\Impexp\ImportExport\processSoftReferences_saveFile_createRelFile(), and TYPO3\CMS\Extensionmanager\Controller\UploadExtensionFileController\removeExtensionAndRestoreFromBackup().

◆ mkdir_deep()

static TYPO3\CMS\Core\Utility\GeneralUtility::mkdir_deep (   $directory,
  $deepDirectory = '' 
)
static

Creates a directory - including parent directories if necessary and sets permissions on newly created directories.

Parameters
string$directoryTarget directory to create. Must a have trailing slash
string$deepDirectoryDirectory to create. This second parameter
Returns
void
Exceptions

Definition at line 2872 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\DataHandling\DataHandler\applyFiltersToValues(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\copyFolderWithinStorageCopiesFileInSingleSubFolderToNewFolderName(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\copyFolderWithinStorageCopiesSingleSubFolderToNewFolderName(), TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend\createFinalCacheDirectory(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\createFolder(), TYPO3\CMS\Core\Log\Writer\FileWriter\createLogFile(), TYPO3\CMS\Core\Tests\Unit\Utility\ExtensionManagementUtilityTest\createMockPackageManagerWithMockPackage(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\createNestedDirectory(), TYPO3\CMS\Install\Service\SessionService\ensureSessionSavePathExists(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\FileNodeTest\fixSelfReturnsArrayOfStatusMessages(), TYPO3\CMS\Install\Updates\TceformsUpdateWizard\getRecordsFromTable(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepCreatesDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepCreatesDirectoryInVfsStream(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepCreatesSubdirectoriesRecursive(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepDoesNotChangePermissionsOfExistingSubDirectories(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepFixesPermissionsOfCreatedDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepFixesPermissionsOnNewParentDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepSetsGroupOwnershipOfCreatedDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepSetsGroupOwnershipOfCreatedParentDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepSetsGroupOwnershipOnNewSubDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepThrowsExceptionIfBaseDirectoryIsNotOfTypeString(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepThrowsExceptionIfDeepDirectoryIsNotOfTypeString(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepThrowsExceptionIfDirectoryCreationFails(), TYPO3\CMS\Install\Updates\RteMagicImagesUpdateWizard\performUpdate(), TYPO3\CMS\Install\Service\CoreUpdateService\setDownloadTargetPath(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest\tearDown(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\AbstractNodeTest\tearDown(), TYPO3\CMS\Documentation\Service\DocumentationService\unzipDocumentPackage(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\unzipExtensionFromFile(), TYPO3\CMS\Lang\Utility\Connection\Ter\unzipTranslationFile(), and TYPO3\CMS\Lang\Utility\Connection\Ter\updateTranslation().

◆ modifyHTMLColor()

static TYPO3\CMS\Core\Utility\GeneralUtility::modifyHTMLColor (   $color,
  $R,
  $G,
  $B 
)
static

Modifies a HTML Hex color by adding/subtracting $R,$G and $B integers

Parameters
string$colorA hexadecimal color code, #xxxxxx
integer$ROffset value 0-255
integer$GOffset value 0-255
integer$BOffset value 0-255
Returns
string A hexadecimal color code, #xxxxxx, modified according to input vars
See also
modifyHTMLColorAll()

Definition at line 929 of file GeneralUtility.php.

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

Referenced by TYPO3\CMS\Core\Database\QueryGenerator\printCodeArray().

◆ modifyHTMLColorAll()

static TYPO3\CMS\Core\Utility\GeneralUtility::modifyHTMLColorAll (   $color,
  $all 
)
static

Modifies a HTML Hex color by adding/subtracting $all integer from all R/G/B channels

Parameters
string$colorA hexadecimal color code, #xxxxxx
integer$allOffset value 0-255 for all three channels.
Returns
string A hexadecimal color code, #xxxxxx, modified according to input vars
See also
modifyHTMLColor()

Definition at line 945 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Backend\Form\FormEngine\__construct(), and TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\syntaxHighlight_print().

◆ naturalKeySortRecursive()

static TYPO3\CMS\Core\Utility\GeneralUtility::naturalKeySortRecursive ( $array)
static

◆ normalizeIPv6()

static TYPO3\CMS\Core\Utility\GeneralUtility::normalizeIPv6 (   $address)
static

Normalize an IPv6 address to full length

Parameters
string$addressGiven IPv6 address
Returns
string Normalized address
See also
compressIPv6()

Definition at line 531 of file GeneralUtility.php.

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

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\normalizeIPv6CorrectlyNormalizesAddresses().

◆ normalizeMailAddress()

static TYPO3\CMS\Core\Utility\GeneralUtility::normalizeMailAddress (   $address)
static

Changes from/to arguments for mail() function to work in any environment.

Parameters
string$addressAddress to adjust
Returns
string Adjusted address

Definition at line 1150 of file GeneralUtility.php.

◆ plainMailEncoded()

static TYPO3\CMS\Core\Utility\GeneralUtility::plainMailEncoded (   $email,
  $subject,
  $message,
  $headers = '',
  $encoding = 'quoted-printable',
  $charset = '',
  $dontEncodeHeader = FALSE 
)
static

Simple substitute for the PHP function mail() which allows you to specify encoding and character set The fifth parameter ($encoding) will allow you to specify 'base64' encryption for the output (set $encoding=base64) Further the output has the charset set to UTF-8 by default.

Parameters
string$emailEmail address to send to. (see PHP function mail())
string$subjectSubject line, non-encoded. (see PHP function mail())
string$messageMessage content, non-encoded. (see PHP function mail())
string$headersHeaders, separated by LF
string$encodingEncoding type: "base64", "quoted-printable", "8bit". Default value is "quoted-printable".
string$charsetCharset used in encoding-headers (only if $encoding is set to a valid value which produces such a header)
boolean$dontEncodeHeaderIf set, the header content will not be encoded
Returns
boolean TRUE if mail was accepted for delivery, FALSE otherwise
Deprecated:
since 6.1, will be removed two versions later - Use instead

Definition at line 4805 of file GeneralUtility.php.

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

◆ png_to_gif_by_imagemagick()

static TYPO3\CMS\Core\Utility\GeneralUtility::png_to_gif_by_imagemagick (   $theFile)
static

Converts a png file to gif. This converts a png file to gif IF the FLAG $GLOBALS['TYPO3_CONF_VARS']['FE']['png_to_gif'] is set TRUE.

Parameters
string$theFileThe filename with path
Returns
string New filename

Definition at line 316 of file GeneralUtility.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\CommandUtility\exec(), and TYPO3\CMS\Core\Utility\GeneralUtility\strtolower().

Referenced by TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\cImage(), TYPO3\CMS\Frontend\ContentObject\Menu\ImageMenuContentObject\generate(), TYPO3\CMS\Frontend\ContentObject\Menu\TextMenuContentObject\getBeforeAfter(), and TYPO3\CMS\Frontend\ContentObject\Menu\GraphicalMenuContentObject\makeGifs().

◆ presetApplicationContext()

static TYPO3\CMS\Core\Utility\GeneralUtility::presetApplicationContext ( \TYPO3\CMS\Core\Core\ApplicationContext  $applicationContext)
static

Set the ApplicationContext

This function is used by the Bootstrap to hand over the application context. It must not be used anywhere else, because the context shall never be changed on runtime!

Parameters
\TYPO3\CMS\Core\Core\ApplicationContext$applicationContext
Exceptions

Definition at line 5402 of file GeneralUtility.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\$applicationContext.

Referenced by TYPO3\CMS\Core\Core\Bootstrap\baseSetup().

◆ purgeInstances()

static TYPO3\CMS\Core\Utility\GeneralUtility::purgeInstances ( )
static

Purge all instances returned by makeInstance.

This function is most useful when called from tearDown in a test case to drop any instances that have been created by the tests.

Warning: This is a helper method for unit tests. Do not call this directly in production code!

See also
makeInstance
Returns
void

Definition at line 4691 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\makeInstanceCalledTwoTimesForSingletonClassWithPurgeInstancesInbetweenReturnsDifferentInstances(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\purgeInstancesDropsAddedInstance(), TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest\setUp(), TYPO3\CMS\Extbase\Tests\Unit\Core\BootstrapTest\tearDown(), and TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest\tearDown().

◆ quoted_printable()

static TYPO3\CMS\Core\Utility\GeneralUtility::quoted_printable (   $string,
  $maxlen = 76 
)
static

Implementation of quoted-printable encode. See RFC 1521, section 5.1 Quoted-Printable Content-Transfer-Encoding

Parameters
string$stringContent to encode
integer$maxlenLength of the lines, default is 76
Returns
string The QP encoded string

Definition at line 4866 of file GeneralUtility.php.

◆ quoteJSvalue()

static TYPO3\CMS\Core\Utility\GeneralUtility::quoteJSvalue (   $value)
static

Quotes a string for usage as JS parameter.

Parameters
string$valuethe string to encode, may be empty
Returns
string the encoded value already quoted (with single quotes),

Definition at line 5339 of file GeneralUtility.php.

Referenced by TYPO3\CMS\SysAction\ActionTask\action_linkUserName(), TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link\buildJavascriptConfiguration(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\compileResult(), TYPO3\CMS\IndexedSearch\Controller\SearchController\compileResultRows(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_delete(), TYPO3\CMS\Core\Utility\DebugUtility\debug(), TYPO3\CMS\Core\Utility\DebugUtility\debugInPopUpWindow(), TYPO3\CMS\Feedit\FrontendEditPanel\editPanelLinkWrap(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\expandPage(), TYPO3\CMS\Core\TypoScript\ConfigurationForm\ext_getForm(), TYPO3\CMS\Frontend\ContentObject\Menu\JavaScriptMenuContentObject\generate_level(), TYPO3\CMS\Perm\Controller\PermissionModuleController\getButtons(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\getClassOnChangeJS(), TYPO3\CMS\Backend\Utility\BackendUtility\getFuncCheck(), TYPO3\CMS\Backend\Utility\BackendUtility\getFuncInput(), TYPO3\CMS\Backend\Utility\BackendUtility\getFuncMenu(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\getJSCode(), TYPO3\CMS\Rtehtmlarea\SelectImage\getJSCode(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\getJsCode(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\getPageConfigLabel(), TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\getRecordActions(), TYPO3\CMS\Backend\Controller\BackendController\handlePageEditing(), TYPO3\CMS\Rtehtmlarea\SelectImage\imageInsertJS(), TYPO3\CMS\Backend\Controller\BackendLayoutWizardController\init(), TYPO3\CMS\Rtehtmlarea\User\init(), TYPO3\CMS\Backend\Controller\File\CreateFolderController\init(), TYPO3\CMS\Backend\Controller\EditDocumentController\init(), TYPO3\CMS\Workspaces\Controller\PreviewController\initializeAction(), TYPO3\CMS\Backend\Toolbar\ShortcutToolbarItem\initShortcuts(), TYPO3\CMS\Backend\RecordList\ElementBrowserRecordList\linkWrapItems(), TYPO3\CMS\Rsaauth\Hook\FrontendLoginHook\loginFormHook(), TYPO3\CMS\Recordlist\Controller\ElementBrowserFramesetController\main(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController\main(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\main(), TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController\main(), TYPO3\CMS\Backend\Controller\PageLayoutController\main(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\main_rte(), TYPO3\CMS\Rtehtmlarea\SelectImage\main_rte(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\main_rte(), TYPO3\CMS\Rtehtmlarea\User\main_user(), TYPO3\CMS\Filelist\FileList\makeRef(), TYPO3\CMS\Backend\Template\DocumentTemplate\makeShortcutIcon(), ext_posMap\onClickInsertRecord(), TYPO3\CMS\Backend\Tree\View\FolderTreeView\PMiconATagWrap(), TYPO3\CMS\Backend\Clipboard\Clipboard\printClipboard(), TYPO3\CMS\Rtehtmlarea\PageTree\printTree(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\quoteJsValueTest(), TYPO3\CMS\Beuser\ViewHelpers\RemoveUserViewHelper\render(), TYPO3\CMS\Frontend\ContentObject\FormContentObject\render(), TYPO3\CMS\Backend\Controller\BackendController\render(), TYPO3\CMS\Openid\OpenidModuleSetup\renderOpenID(), TYPO3\CMS\Backend\Form\Element\SuggestElement\renderSuggestSelector(), TYPO3\CMS\Workspaces\Controller\ReviewController\singleIndexAction(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_encodeForJavaScriptValue(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\TCAlookup(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawHeader(), TYPO3\CMS\WizardSortpages\View\SortPagesWizardModuleFunction\wiz_linkOrder(), ext_posMap\wrapColumnHeader(), TYPO3\CMS\Backend\View\PageTreeView\wrapIcon(), and ext_posMap\wrapRecordTitle().

◆ rawUrlEncodeFP()

static TYPO3\CMS\Core\Utility\GeneralUtility::rawUrlEncodeFP (   $str)
static

rawurlencode which preserves "/" chars Useful when file paths should keep the "/" chars, but have all other special chars encoded.

Parameters
string$strInput string
Returns
string Output string

Definition at line 1088 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\cImage(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rawUrlEncodeFpPreservesSlashes(), and TYPO3\CMS\Recordlist\Browser\ElementBrowser\TBE_dragNDrop().

◆ rawUrlEncodeJS()

static TYPO3\CMS\Core\Utility\GeneralUtility::rawUrlEncodeJS (   $str)
static

Version of rawurlencode() where all spaces (%20) are re-converted to space-characters. Useful when passing text to JavaScript where you simply url-encode it to get around problems with syntax-errors, linebreaks etc.

Parameters
string$strString to raw-url-encode with spaces preserved
Returns
string Rawurlencoded result of input string, but with all %20 (space chars) converted to real spaces.

Definition at line 1077 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rawUrlEncodeJsPreservesWhitespaces().

◆ read_png_gif()

static TYPO3\CMS\Core\Utility\GeneralUtility::read_png_gif (   $theFile,
  $output_png = FALSE 
)
static

Returns filename of the png/gif version of the input file (which can be png or gif). If input file type does not match the wanted output type a conversion is made and temp-filename returned.

Parameters
string$theFileFilepath of image file
boolean$output_pngIf set, then input file is converted to PNG, otherwise to GIF
Returns
string If the new image file exists, its filepath is returned

Definition at line 338 of file GeneralUtility.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\CommandUtility\exec(), and TYPO3\CMS\Core\Utility\GeneralUtility\strtolower().

Referenced by TYPO3\CMS\Backend\Utility\IconUtility\imagecreatefrom().

◆ remapArrayKeys()

static TYPO3\CMS\Core\Utility\GeneralUtility::remapArrayKeys ( $array,
  $mappingTable 
)
static

Rename Array keys with a given mapping table

Parameters
array$arrayArray by reference which should be remapped
array$mappingTableArray with remap information, array/$oldKey => $newKey)

Definition at line 1759 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\remapArrayKeysExchangesKeysWithGivenMapping(), and TYPO3\CMS\Frontend\ContentObject\QuicktimeObjectContentObject\render().

◆ removeArrayEntryByValue()

static TYPO3\CMS\Core\Utility\GeneralUtility::removeArrayEntryByValue ( array  $array,
  $cmpValue 
)
static

◆ removeDotsFromTS()

static TYPO3\CMS\Core\Utility\GeneralUtility::removeDotsFromTS ( array  $ts)
static

◆ removePrefixPathFromList()

static TYPO3\CMS\Core\Utility\GeneralUtility::removePrefixPathFromList ( array  $fileArr,
  $prefixToRemove 
)
static

Removes the absolute part of all files/folders in fileArr

Parameters
array$fileArrThe file array to remove the prefix from
string$prefixToRemoveThe prefix path to remove (if found as first part of string!)
Returns
array The input $fileArr processed.

Definition at line 3107 of file GeneralUtility.php.

Referenced by TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\crawler_execute_type2(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\createZipFileFromExtension(), and TYPO3\CMS\Lowlevel\LostFilesCommand\main().

◆ removeSingletonInstance()

static TYPO3\CMS\Core\Utility\GeneralUtility::removeSingletonInstance (   $className,
\TYPO3\CMS\Core\SingletonInterface  $instance 
)
static

Removes the instance of a singleton class to be returned by makeInstance.

Warning: This is NOT a public API method and must not be used in own extensions! This methods exists mostly for unit tests to inject a mock of a singleton class. If you use this, make sure to always combine this with getSingletonInstances() and resetSingletonInstances() in setUp() and tearDown() of the test class.

See also
makeInstance
Exceptions

Definition at line 4588 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Cache\Cache\flagCachingFrameworkForReinitialization().

◆ removeXSS()

static TYPO3\CMS\Core\Utility\GeneralUtility::removeXSS (   $string)
static

Wrapper for the RemoveXSS function. Removes potential XSS code from an input string.

Using an external class by Travis Puderbaugh kalla.nosp@m.har@.nosp@m.quick.nosp@m.wire.nosp@m.d.com

Parameters
string$stringInput string
Returns
string Input string with potential XSS code removed

Definition at line 247 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Form\Filter\RemoveXssFilter\filter(), TYPO3\CMS\Filelist\FileList\getButtonsAndOtherMarkers(), TYPO3\CMS\Frontend\ContentObject\FormContentObject\render(), TYPO3\CMS\Backend\Search\LiveSearch\LiveSearch\setQueryString(), and TYPO3\CMS\Felogin\Controller\FrontendLoginController\validateRedirectUrl().

◆ requireFile()

static TYPO3\CMS\Core\Utility\GeneralUtility::requireFile (   $requireFile)
static

Requires a class for TYPO3 Useful to require classes from inside other classes (not global scope). A limited set of global variables are available (see function)

Parameters
string$requireFile,Path of the file to be included
Returns
void

Definition at line 4784 of file GeneralUtility.php.

References $TYPO3_CONF_VARS.

◆ requireOnce()

static TYPO3\CMS\Core\Utility\GeneralUtility::requireOnce (   $requireFile)
static

Require a class for TYPO3 Useful to require classes from inside other classes (not global scope). A limited set of global variables are available (see function)

Parameters
string$requireFile,Path of the file to be included
Returns
void

Definition at line 4770 of file GeneralUtility.php.

References $TYPO3_CONF_VARS.

◆ resetSingletonInstances()

static TYPO3\CMS\Core\Utility\GeneralUtility::resetSingletonInstances ( array  $newSingletonInstances)
static

Set a group of singleton instances. Similar to setSingletonInstance(), but multiple instances can be set.

Warning: This is NOT a public API method and must not be used in own extensions! This method is usually only used in tests to restore the list of singletons in tearDown(), that was backed up with getSingletonInstances() in setUp() and manipulated in tests with setSingletonInstance()

Definition at line 4613 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\resetSingletonInstancesResetsPreviouslySetInstance(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\resetSingletonInstancesSetsGivenInstance(), TYPO3\CMS\Core\Tests\Unit\Utility\MailUtilityTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest\tearDown(), TYPO3\CMS\Extbase\Tests\Unit\Core\BootstrapTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Resource\FolderTest\tearDown(), TYPO3\CMS\Extbase\Tests\Unit\Service\FlexFormServiceTest\tearDown(), TYPO3\CMS\Scheduler\Tests\Unit\Task\CachingFrameworkGarbageCollectionTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Resource\FileTest\tearDown(), TYPO3\CMS\Extensionmanager\Tests\Unit\Task\UpdateExtensionListTaskTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceStorageTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Utility\ExtensionManagementUtilityTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\DataHandler\DataHandlerTest\tearDown(), typo3\sysext\form\Tests\Unit\Domain\AttributesAttributeTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Resource\Utility\FileExtensionFilterTest\tearDown(), TYPO3\CMS\Form\Tests\Unit\PostProcess\PostProcessorTest\tearDown(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\tearDown(), and TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest\tearDown().

◆ resolveAllSheetsInDS()

static TYPO3\CMS\Core\Utility\GeneralUtility::resolveAllSheetsInDS ( array  $dataStructArray)
static

Resolves ALL sheet definitions in dataStructArray If no sheet is found, then the default "sDEF" will be created with the dataStructure inside.

Parameters
array$dataStructArrayInput data structure, possibly with a sheet-definition and references to external data source files.
Returns
array Output data structure with all sheets resolved as arrays.

Definition at line 4248 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Backend\Utility\BackendUtility\getRegisteredFlexForms(), TYPO3\CMS\Backend\Form\FlexFormsHelper\modifyFlexFormDS(), and TYPO3\CMS\Backend\Form\Element\SuggestElement\processAjaxRequest().

◆ resolveBackPath()

static TYPO3\CMS\Core\Utility\GeneralUtility::resolveBackPath (   $pathStr)
static

Resolves "../" sections in the input path string. For example "fileadmin/directory/../other_directory/" will be resolved to "fileadmin/other_directory/"

Parameters
string$pathStrFile path in which "/../" is resolved
Returns
string

Definition at line 3136 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\addExtOnReadyCode(), TYPO3\CMS\Backend\Template\DocumentTemplate\addStyleSheetDirectory(), TYPO3\CMS\Backend\Sprite\SimpleSpriteHandler\buildCssAndRegisterIcons(), TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link\buildJSClassesAnchorArray(), TYPO3\CMS\Backend\Module\ModuleLoader\checkMod(), TYPO3\CMS\Backend\Sprite\AbstractSpriteHandler\collectTcaSpriteIcons(), TYPO3\CMS\Core\Resource\ResourceCompressor\compressCssFile(), TYPO3\CMS\Core\Resource\ResourceCompressor\compressJsFile(), TYPO3\CMS\Core\Resource\ResourceCompressor\createMergedFile(), TYPO3\CMS\Impexp\ImportExport\export_addFile(), TYPO3\CMS\Backend\Sprite\SpriteBuildingHandler\generate(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\getAbsolutePath(), TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getDeprecationLogFileLink(), TYPO3\CMS\Core\Resource\ResourceCompressor\getFilenameFromMainDir(), TYPO3\CMS\Backend\Template\DocumentTemplate\getHtmlTemplate(), TYPO3\CMS\Backend\Module\ModuleLoader\getRelativePath(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\indexExtUrl(), TYPO3\CMS\IndexedSearch\Indexer\isAllowedLocalFile(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\jumpUrl(), TYPO3\CMS\Filelist\FileList\linkWrapSort(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\mailto_makelinks(), TYPO3\CMS\Backend\Controller\LoginController\makeLoginBoxImage(), TYPO3\CMS\Backend\Utility\IconUtility\mapFileExtensionToSpriteIconName(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\prependAbsolutePath(), TYPO3\CMS\Impexp\ImportExport\processSoftReferences_saveFile_createRelFile(), TYPO3\CMS\Backend\View\LogoView\render(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\render_uploads(), TYPO3\CMS\Core\Page\PageRenderer\renderAdditionalJavaScriptLibraries(), TYPO3\CMS\Core\Page\PageRenderer\renderCssFiles(), TYPO3\CMS\Core\Page\PageRenderer\renderCssLibraries(), TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptFiles(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\resolveBackPathWithDataProvider(), and TYPO3\CMS\Backend\Sprite\SpriteGenerator\resolveSpritePath().

◆ resolveSheetDefInDS()

static TYPO3\CMS\Core\Utility\GeneralUtility::resolveSheetDefInDS (   $dataStructArray,
  $sheet = 'sDEF' 
)
static

Looks for a sheet-definition in the input data structure array. If found it will return the data structure for the sheet given as $sheet (if found). If the sheet definition is in an external file that file is parsed and the data structure inside of that is returned.

Parameters
array$dataStructArrayInput data structure, possibly with a sheet-definition and references to external data source files.
string$sheetThe sheet to return, preferably.
Returns
array An array with two num. keys: key0: The data structure is returned in this key (array) UNLESS an error occurred in which case an error string is returned (string). key1: The used sheet key value!

Definition at line 4211 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_flex_procInData(), TYPO3\CMS\Backend\Form\DataPreprocessor\renderRecord_flexProc_procInData(), and TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools\traverseFlexFormXMLData().

◆ revExplode()

static TYPO3\CMS\Core\Utility\GeneralUtility::revExplode (   $delimiter,
  $string,
  $count = 0 
)
static

◆ rmdir()

static TYPO3\CMS\Core\Utility\GeneralUtility::rmdir (   $path,
  $removeNonEmpty = FALSE 
)
static

Wrapper function for rmdir, allowing recursive deletion of folders and files

Parameters
string$pathAbsolute path to folder, see PHP rmdir() function. Removes trailing slash internally.
boolean$removeNonEmptyAllow deletion of non-empty directories
Returns
boolean TRUE if went well!

Definition at line 2926 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Locking\LockerTest\constructorCreatesLockDirectoryIfNotExisting(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\deleteFolder(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\moveFolderWithinStorage(), TYPO3\CMS\Extensionmanager\Controller\UploadExtensionFileController\removeBackupFolder(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\removeDirectory(), TYPO3\CMS\Extensionmanager\Controller\UploadExtensionFileController\removeExtensionAndRestoreFromBackup(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirDoesNotRemoveDirectoryWithFilesAndReturnsFalseIfRecursiveDeletionIsOff(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirRemovesDeadLinkToDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirRemovesDeadLinkToFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirRemovesDirectoriesRecursiveAndReturnsTrue(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirRemovesDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirRemovesDirectoryWithTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirRemovesFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirRemovesLinkToDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirReturnFalseIfNoFileWasRemoved(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirReturnTrueIfFileWasRemoved(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest\tearDown(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\LinkNodeTest\tearDown(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\FileNodeTest\tearDown(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\RootNodeTest\tearDown(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\AbstractNodeTest\tearDown(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\FileHandlingUtilityTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Utility\ExtensionManagementUtilityTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\tearDown(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\tearDown(), and TYPO3\CMS\Lang\Utility\Connection\Ter\updateTranslation().

◆ rmFromList()

static TYPO3\CMS\Core\Utility\GeneralUtility::rmFromList (   $element,
  $list 
)
static

Removes an item from a comma-separated list of items.

If $element contains a comma, the behaviour of this method is undefined. Empty elements in the list are preserved.

Parameters
string$elementElement to remove
string$listComma-separated list of items (string)
Returns
string New comma-separated list of items

Definition at line 733 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Setup\Controller\SetupModuleController\getFieldsFromShowItem(), TYPO3\CMS\Rtehtmlarea\ContentParser\keepSpanTagsWithId(), TYPO3\CMS\Rtehtmlarea\Extension\Language\main(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmFromListRemovesElementsFromCommaSeparatedList().

◆ sanitizeLocalUrl()

static TYPO3\CMS\Core\Utility\GeneralUtility::sanitizeLocalUrl (   $url = '')
static

Checks if a given string is a valid frame URL to be loaded in the backend.

Parameters
string$urlpotential URL to check
Returns
string either $url if $url is considered to be harmless, or an

Definition at line 3955 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Backend\History\RecordHistory\getArgument(), TYPO3\CMS\Backend\Controller\Wizard\TableController\getButtons(), TYPO3\CMS\Backend\Controller\Wizard\RteController\getButtons(), TYPO3\CMS\Backend\Controller\Wizard\FormsController\getButtons(), TYPO3\CMS\Version\Hook\PreviewHook\getPreviewConfiguration(), TYPO3\CMS\Backend\Controller\File\FileController\init(), TYPO3\CMS\Backend\Controller\File\RenameFileController\init(), TYPO3\CMS\Backend\Controller\File\FileUploadController\init(), TYPO3\CMS\Backend\Controller\File\EditFileController\init(), TYPO3\CMS\Backend\Controller\Wizard\AddController\init(), TYPO3\CMS\Backend\Controller\File\CreateFolderController\init(), TYPO3\CMS\Backend\Controller\ContentElement\MoveElementController\init(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\init(), TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\init(), TYPO3\CMS\Backend\Controller\LoginController\init(), TYPO3\CMS\Recordlist\RecordList\init(), TYPO3\CMS\Backend\Controller\NewRecordController\init(), TYPO3\CMS\Backend\Controller\PageLayoutController\init(), TYPO3\CMS\Backend\Controller\EditDocumentController\localizationRedirect(), TYPO3\CMS\Backend\Controller\LogoutController\logout(), TYPO3\CMS\Backend\Controller\Wizard\ListController\main(), TYPO3\CMS\Backend\Controller\Wizard\AddController\main(), TYPO3\CMS\Backend\Controller\EditDocumentController\preInit(), TYPO3\CMS\Backend\Template\DocumentTemplate\redirectUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesEncodedInvalidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrls(), and TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\start().

◆ setSingletonInstance()

static TYPO3\CMS\Core\Utility\GeneralUtility::setSingletonInstance (   $className,
\TYPO3\CMS\Core\SingletonInterface  $instance 
)
static

Sets the instance of a singleton class to be returned by makeInstance.

If this function is called multiple times for the same $className, makeInstance will return the last set instance.

Warning: This is NOT a public API method and must not be used in own extensions! This methods exists mostly for unit tests to inject a mock of a singleton class. If you use this, make sure to always combine this with getSingletonInstances() and resetSingletonInstances() in setUp() and tearDown() of the test class.

See also
makeInstance
Parameters
string$className
\TYPO3\CMS\Core\SingletonInterface$instance
Returns
void

Definition at line 4567 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Extbase\Tests\Unit\Service\FlexFormServiceTest\convertFlexFormContentToArrayResolvesComplexArrayStructure(), TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest\enqueueFlashMessageCallback(), TYPO3\CMS\Extensionmanager\Tests\Unit\Task\UpdateExtensionListTaskTest\executeCallsPersistAllOnPersistenceManager(), TYPO3\CMS\Extensionmanager\Tests\Unit\Task\UpdateExtensionListTaskTest\executeCallsUpdateExtListOfRepositoryHelper(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\getDriverObjectAcceptsDriverClassName(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\getExtLocalconfCacheIdentifier(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getSingletonInstancesContainsPreviouslySetSingletonInstance(), TYPO3\CMS\Core\Tests\Unit\Resource\FolderTest\getSubfolderCallsFactoryWithCorrectArguments(), TYPO3\CMS\Core\Cache\Cache\initializeCachingFramework(), TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest\persistSessionTokenWritesTokenToSession(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\regeneratePageTitle(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderAssignsSettingsArrayToView(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\resetSingletonInstancesResetsPreviouslySetInstance(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\setSingletonInstanceCalledTwoTimesMakesMakeInstanceReturnLastSetInstance(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\setSingletonInstanceForClassThatIsNoSubclassOfProvidedClassThrowsException(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\setSingletonInstanceForEmptyClassNameThrowsException(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\setSingletonInstanceMakesMakeInstanceReturnThatInstance(), TYPO3\CMS\Core\Tests\Unit\Resource\FileTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceStorageTest\setUp(), typo3\sysext\form\Tests\Unit\Domain\AttributesAttributeTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Resource\Utility\FileExtensionFilterTest\setUp(), TYPO3\CMS\Form\Tests\Unit\PostProcess\PostProcessorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest\setUpBasicFrontendEnvironment(), TYPO3\CMS\Extbase\Tests\Unit\Core\BootstrapTest\tearDown(), TYPO3\CMS\Scheduler\Tests\Unit\Task\CachingFrameworkGarbageCollectionTest\tearDown(), TYPO3\CMS\Core\Core\Bootstrap\unregisterClassLoader(), and TYPO3\CMS\Core\Tests\Unit\Resource\FileTest\updatePropertiesReloadsStorageObjectIfStorageChanges().

◆ shortMD5()

static TYPO3\CMS\Core\Utility\GeneralUtility::shortMD5 (   $input,
  $len = 10 
)
static

◆ slashArray()

static TYPO3\CMS\Core\Utility\GeneralUtility::slashArray ( array  $arr,
  $cmd 
)
static

Either slashes ($cmd=add) or strips ($cmd=strip) array $arr depending on $cmd

Parameters
array$arrMultidimensional input array
string$cmd"add" or "strip", depending on usage you wish.
Returns
array

Definition at line 1743 of file GeneralUtility.php.

◆ slashJS()

static TYPO3\CMS\Core\Utility\GeneralUtility::slashJS (   $string,
  $extended = FALSE,
  $char = '\'' 
)
static

This function is used to escape any ' -characters when transferring text to JavaScript!

Parameters
string$stringString to escape
boolean$extendedIf set, also backslashes are escaped.
string$charThe character to escape, default is ' (single-quote)
Returns
string Processed input string

Definition at line 1063 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\slashJsEscapesSingleQuotesAndSlashes().

◆ split_fileref()

static TYPO3\CMS\Core\Utility\GeneralUtility::split_fileref (   $fileNameWithPath)
static

Splits a reference to a file in 5 parts

Parameters
string$fileNameWithPathFile name with path to be analysed (must exist if open_basedir is set)
Returns
array Contains keys [path], [file], [filebody], [fileext], [realFileext]

Definition at line 876 of file GeneralUtility.php.

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

Referenced by TYPO3\CMS\Core\DataHandling\DataHandler\applyFiltersToValues(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\filelink(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\filelist(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\fileResource(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\findRecycler(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\func_unzip(), TYPO3\CMS\Backend\Template\DocumentTemplate\getFileheader(), TYPO3\CMS\Core\TypoScript\TemplateService\getFileName(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\getTotalFileInfo(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\getUniqueName(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\IMreduceColors(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\procesResources(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowBeforeSaving(), TYPO3\CMS\Frontend\ContentObject\MultimediaContentObject\render(), TYPO3\CMS\Frontend\ContentObject\MediaContentObject\render(), TYPO3\CMS\T3editor\T3editor\setModeByFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\splitFileRefReturnsFileTypeForFilesWithoutPathSite(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\splitFileRefReturnsFileTypeNotForFolders(), and TYPO3\CMS\Impexp\ImportExport\writeFileVerify().

◆ split_tag_attributes()

static TYPO3\CMS\Core\Utility\GeneralUtility::split_tag_attributes (   $tag)
static

Returns an array with the 'components' from an attribute list from an HTML tag. The result is normally analyzed by get_tag_attributes Removes tag-name if found

Parameters
string$tagHTML-tag string (or attributes only)
Returns
array Array with the attribute values.

Definition at line 1926 of file GeneralUtility.php.

◆ splitCalc()

static TYPO3\CMS\Core\Utility\GeneralUtility::splitCalc (   $string,
  $operators 
)
static

This splits a string by the chars in $operators (typical /+-*) and returns an array with them in

Parameters
string$stringInput string, eg "123 + 456 / 789 - 4 @param string $operators Operators to split by, typically "/+-*
Returns
array Array with operators and operands separated.
See also
::calc(), ::calcOffset()

Definition at line 1015 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\calc(), TYPO3\CMS\Frontend\Imaging\GifBuilder\calculateValue(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\splitCalcCorrectlySplitsExpression().

◆ stdAuthCode()

static TYPO3\CMS\Core\Utility\GeneralUtility::stdAuthCode (   $uid_or_record,
  $fields = '',
  $codeLength = 8 
)
static

Standard authentication code (used in Direct Mail, checkJumpUrl and setfixed links computations)

Parameters
mixed$uid_or_recordUid (integer) or record (array)
string$fieldsList of fields from the record if that is given.
integer$codeLengthLength of returned authentication code.
Returns
string MD5 hash of 8 chars.

Definition at line 4078 of file GeneralUtility.php.

References $GLOBALS.

◆ stripHttpHeaders()

static TYPO3\CMS\Core\Utility\GeneralUtility::stripHttpHeaders (   $content)
staticprotected

Strips HTTP headers from the content.

Parameters
string$content
Returns
string

Definition at line 2691 of file GeneralUtility.php.

◆ stripSlashesOnArray()

static TYPO3\CMS\Core\Utility\GeneralUtility::stripSlashesOnArray ( array &  $theArray)
static

StripSlash array This function traverses a multidimensional array and strips slashes to the values. NOTE that the input array is and argument by reference.!! Twin-function to addSlashesOnArray

Parameters
array$theArrayMultidimensional input array, (REFERENCE!)
Returns
array

Definition at line 1724 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\DataHandling\DataHandler\getPlaceholderTitleForTableLabel(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\stripSlashesOnArrayStripsSlashesRecursive().

◆ strtolower()

static TYPO3\CMS\Core\Utility\GeneralUtility::strtolower (   $str)
static

Converts string to lowercase The function converts all Latin characters (A-Z, but no accents, etc) to lowercase. It is safe for all supported character sets (incl. utf-8). Unlike strtolower() it does not honour the locale.

Parameters
string$strInput string
Returns
string Lowercase String

Definition at line 1192 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Rtehtmlarea\Extension\ContextMenu\buildJavascriptConfiguration(), TYPO3\CMS\Rtehtmlarea\Extension\BlockElements\buildJavascriptConfiguration(), TYPO3\CMS\Dbal\Database\SqlParser\compileWhereClause(), TYPO3\CMS\Core\Utility\GeneralUtility\createVersionNumberedFilename(), TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility\fetchExtension(), TYPO3\CMS\Lang\Utility\Connection\Ter\fetchTranslation(), TYPO3\CMS\Lang\Utility\Connection\Ter\fetchTranslationStatus(), TYPO3\CMS\Core\Utility\GeneralUtility\flushOutputBuffers(), TYPO3\CMS\Core\Utility\GeneralUtility\get_tag_attributes(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Backend\Form\FormEngine\getSingleField_typeSelect_multiple(), TYPO3\CMS\Core\Utility\GeneralUtility\gif_compress(), TYPO3\CMS\Core\Utility\GeneralUtility\implodeAttributes(), TYPO3\CMS\Core\Utility\GeneralUtility\isAllowedHostHeaderValue(), TYPO3\CMS\Core\Page\PageRenderer\loadExtJS(), TYPO3\CMS\Core\Utility\GeneralUtility\normalizeIPv6(), TYPO3\CMS\Core\Utility\GeneralUtility\png_to_gif_by_imagemagick(), TYPO3\CMS\Core\Utility\GeneralUtility\read_png_gif(), TYPO3\CMS\Backend\Form\Element\SuggestElement\renderSuggestSelector(), TYPO3\CMS\Core\Utility\GeneralUtility\split_fileref(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\strtolowerConvertsOnlyLatinCharacters().

◆ strtoupper()

static TYPO3\CMS\Core\Utility\GeneralUtility::strtoupper (   $str)
static

Converts string to uppercase The function converts all Latin characters (a-z, but no accents, etc) to uppercase. It is safe for all supported character sets (incl. utf-8). Unlike strtoupper() it does not honour the locale.

Parameters
string$strInput string
Returns
string Uppercase String

Definition at line 1179 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Felogin\Controller\FrontendLoginController\getUserFieldMarkers(), TYPO3\CMS\Core\Utility\GeneralUtility\initSysLog(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\makeSearchForm(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\printResultRow(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\strtoupperConvertsOnlyLatinCharacters().

◆ substUrlsInPlainText()

static TYPO3\CMS\Core\Utility\GeneralUtility::substUrlsInPlainText (   $message,
  $urlmode = '76',
  $index_script_url = '' 
)
static

Takes a clear-text message body for a plain text email, finds all 'http://' links and if they are longer than 76 chars they are converted to a shorter URL with a hash parameter. The real parameter is stored in the database and the hash-parameter/URL will be redirected to the real parameter when the link is clicked. This function is about preserving long links in messages.

Parameters
string$messageMessage content
string$urlmodeURL mode; "76" or "all
string$index_script_urlURL of index script (see makeRedirectUrl())
Returns
string Processed message content
See also
makeRedirectUrl()

Definition at line 4978 of file GeneralUtility.php.

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

Referenced by TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\plainMailEncoded(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\substUrlsInPlainText().

◆ tempnam()

static TYPO3\CMS\Core\Utility\GeneralUtility::tempnam (   $filePrefix,
  $fileSuffix = '' 
)
static

Create temporary filename (Create file with unique file name) This function should be used for getting temporary file names - will make your applications safe for open_basedir = on REMEMBER to delete the temporary files after use! This is done by ::unlink_tempfile()

Parameters
string$filePrefixPrefix for temporary file
string$fileSuffixSuffix for temporary file, for example a special file extension
Returns
string result from PHP function tempnam() with PATH_site . 'typo3temp/' set for temp path.
See also
unlink_tempfile(), upload_to_tempfile()

Definition at line 4056 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Dbal\Tests\Unit\Database\DatabaseConnectionTest\createFakeExtension(), TYPO3\CMS\Impexp\Controller\ImportExportController\exportData(), TYPO3\CMS\Backend\Sprite\SpriteGenerator\generateGraphic(), TYPO3\CMS\Backend\Sprite\SpriteGenerator\generateHighDensityGraphic(), TYPO3\CMS\Core\Utility\DiffUtility\getDiff(), TYPO3\CMS\Core\Resource\Processing\LocalPreviewHelper\getTemporaryFilePath(), TYPO3\CMS\Impexp\ImportExport\import_addFileNameToBeCopied(), TYPO3\CMS\IndexedSearch\Indexer\indexExternalUrl(), TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase\isCaseSensitiveFilesystem(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\main(), TYPO3\CMS\IndexedSearch\FileContentParser\readFileContent(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\spellCheckHandler(), TYPO3\CMS\Core\Service\AbstractService\tempFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\tempnamReturnsAbsolutePathInsideDocumentRoot(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\tempnamReturnsPathStartingWithGivenPrefix(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\tempnamReturnsPathWithoutBackslashes(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\tidyHTML(), and TYPO3\CMS\Impexp\ImportExport\writeTemporaryFileFromData().

◆ trimExplode()

static TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode (   $delim,
  $string,
  $removeEmptyValues = FALSE,
  $limit = 0 
)
static

Explodes a string and trims all values for whitespace in the end. If $onlyNonEmptyValues is set, then all blank ('') values are removed.

Parameters
string$delimDelimiter string to explode with
string$stringThe string to explode
bool$removeEmptyValuesIf set, all empty values will be removed in output
int$limitIf limit is set and positive, the returned array will contain a maximum of limit elements with the last element containing the rest of string. If the limit parameter is negative, all components except the last -limit are returned.
Returns
array Exploded values

Definition at line 1536 of file GeneralUtility.php.

References $result.

Referenced by TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks\__construct(), TYPO3\CMS\Scheduler\CronCommand\CronCommand\__construct(), TYPO3\CMS\Backend\Form\Element\SuggestDefaultReceiver\__construct(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi\addButtonsToToolbar(), TYPO3\CMS\Backend\View\BackendLayoutView\addColPosListLayoutItems(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\addMenuItems(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addModule(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addService(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addToAllTCAtypes(), TYPO3\CMS\Backend\ModuleSettings\addToStoreList(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\addTScomment(), TYPO3\CMS\Core\FrontendEditing\FrontendEditingController\allowedToEdit(), TYPO3\CMS\Core\DataHandling\DataHandler\applyFiltersToValues(), TYPO3\CMS\Rtehtmlarea\Extension\DefinitionList\applyToolbarConstraints(), TYPO3\CMS\Rtehtmlarea\Extension\DefaultClean\applyToolbarConstraints(), TYPO3\CMS\Rtehtmlarea\Extension\Typo3HtmlParser\applyToolbarConstraints(), TYPO3\CMS\Rtehtmlarea\Extension\TableOperations\applyToolbarConstraints(), TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link\applyToolbarConstraints(), TYPO3\CMS\Version\DataHandler\CommandMap\applyWorkspacesSetStageBehaviour(), TYPO3\CMS\Core\DataHandling\DataHandler\assemblePermissions(), TYPO3\CMS\Extensionmanager\Domain\Repository\ConfigurationItemRepository\buildConfigurationArray(), TYPO3\CMS\Backend\Sprite\SpriteGenerator\buildFileInformationCache(), TYPO3\CMS\Rtehtmlarea\Extension\ContextMenu\buildJavascriptConfiguration(), TYPO3\CMS\Rtehtmlarea\Extension\BlockElements\buildJavascriptConfiguration(), TYPO3\CMS\Rtehtmlarea\Extension\SelectFont\buildJavascriptConfiguration(), TYPO3\CMS\Rtehtmlarea\Extension\InlineElements\buildJavascriptConfiguration(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi\buildJavascriptConfiguration(), TYPO3\CMS\Rtehtmlarea\Extension\Acronym\buildJSAcronymArray(), TYPO3\CMS\Rtehtmlarea\Extension\Typo3Color\buildJSColorsConfig(), TYPO3\CMS\Rtehtmlarea\Extension\SelectFont\buildJSFontItemsConfig(), TYPO3\CMS\Frontend\Imaging\GifBuilder\calcOffset(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\calculateLinkVars(), TYPO3\CMS\Frontend\Imaging\GifBuilder\calculateMaximum(), TYPO3\CMS\Core\DataHandling\DataHandler\canDeletePage(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\checkDeniedSuburls(), TYPO3\CMS\Core\Service\AbstractService\checkExec(), TYPO3\CMS\Core\Html\HtmlParser\checkTagTypeCounts(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\checkTrimExplodeKeepsRamainingResultsWithEmptyItemsAfterReachingLimitWithNegativeParameter(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\checkTrimExplodeKeepsRamainingResultsWithoutEmptyItemsAfterReachingLimitWithNegativeParameter(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\checkTrimExplodeKeepsRemainingResultsWithEmptyItemsAfterReachingLimitWithPositiveParameter(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\checkTrimExplodeKeepsRemainingResultsWithoutEmptyItemsAfterReachingLimitWithPositiveParameter(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\checkTrimExplodeKeepsZeroAsString(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\checkTrimExplodeRemovesEmptyElements(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\checkTrimExplodeRemovesNewLines(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\checkTrimExplodeReturnsExactResultsWithoutReachingLimitWithPositiveParameter(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\checkTrimExplodeTrimsSpacesAtElementStartAndEnd(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_check(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_flex_procInData_travDS(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_group_select(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_group_select_explodeSelectGroupValue(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_inline(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_input(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_text(), TYPO3\CMS\Recordlist\RecordList\clearCache(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\clearPageCache(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\clearPageCacheContent_pidList(), TYPO3\CMS\Core\Controller\CommandLineController\cli_validateArgs(), TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher\compareNumber(), TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin(), TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter\convertToLowercaseArray(), TYPO3\CMS\Core\Utility\VersionNumberUtility\convertVersionsStringToVersionNumbers(), TYPO3\CMS\Core\DataHandling\DataHandler\copyRecord_flexFormCallBack(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\crawler_execute_type2(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\createFolder(), TYPO3\CMS\Core\DataHandling\DataHandler\deletePages(), TYPO3\CMS\Core\Html\RteHtmlParser\divideIntoLines(), TYPO3\CMS\Core\DataHandling\DataHandler\doesPageHaveUnallowedTables(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\enableDisableItems(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\enableRegisteredPlugins(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\encaps_lineSplit(), TYPO3\CMS\Frontend\Configuration\TypoScript\ConditionMatching\ConditionMatcher\evaluateCondition(), TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher\evaluateCondition(), TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher\evaluateConditionCommon(), TYPO3\CMS\Linkvalidator\Task\ValidatorTask\execute(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\executePositionedStringInsertion(), TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\executeValueModifier(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\explodeItemList(), TYPO3\CMS\Version\DataHandler\CommandMap\explodeSetStage(), TYPO3\CMS\Backend\Sprite\SpriteGenerator\explodeSizeTag(), TYPO3\CMS\Backend\Utility\BackendUtility\explodeSoftRefParserList(), TYPO3\CMS\Core\Utility\DiffUtility\explodeStringIntoWords(), TYPO3\CMS\Core\TypoScript\ExtendedTemplateService\ext_printFields(), TYPO3\CMS\Backend\Form\Element\InlineElement\extractFlexFormParts(), TYPO3\CMS\Extensionmanager\Domain\Repository\ConfigurationItemRepository\extractInformationForConfigFieldsOfTypeOptions(), TYPO3\CMS\Backend\Search\LiveSearch\LiveSearch\extractSearchableFieldsFromTable(), TYPO3\CMS\Backend\Form\DataPreprocessor\fetchRecord(), TYPO3\CMS\Core\Tests\Unit\Core\SystemEnvironmentBuilderTest\fileDenyPatternMatchesPhpExtensionDataProvider(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\fillInMarkerArray(), TYPO3\CMS\Core\Resource\Index\FileIndexRepository\findOneByCombinedIdentifier(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\findService(), TYPO3\CMS\Core\DataHandling\DataHandler\fixCopyAfterDuplFields(), TYPO3\CMS\SysAction\ActionTask\fixDbMount(), TYPO3\CMS\Core\DataHandling\DataHandler\fixUniqueInPid(), TYPO3\CMS\Backend\Controller\EditDocumentController\fixWSversioningInEditConf(), TYPO3\CMS\IndexedSearch\Domain\Repository\IndexSearchRepository\freeIndexUidWhere(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\freeIndexUidWhere(), TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\generateList(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\getAbsolutePathsToConfiguredDirectories(), TYPO3\CMS\IndexedSearch\Controller\SearchController\getAllAvailableMediaTypesOptions(), TYPO3\CMS\Core\FrontendEditing\FrontendEditingController\getAllowedEditActions(), TYPO3\CMS\Rtehtmlarea\SelectImage\getAllowedItems(), TYPO3\CMS\Backend\Form\FormDataTraverser\getAllowedTableForGroupField(), TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList\getButtons(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\getCategoryMountPoints(), TYPO3\CMS\Backend\Form\FormEngine\getClipboardElements(), TYPO3\CMS\Backend\Utility\BackendUtility\getCommonSelectFields(), TYPO3\CMS\Core\Utility\CommandUtility\getConfiguredApps(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getCurrentPageCacheConfiguration(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getData(), TYPO3\CMS\Backend\ContextMenu\Pagetree\ContextMenuDataProvider\getDisableActions(), TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\getElementStructureForCommands(), TYPO3\CMS\Version\Hook\DataHandlerHook\getEmailsForStageChangeNotification(), TYPO3\CMS\Backend\Form\FormEngine\getExcludeElements(), TYPO3\CMS\Install\Service\SqlSchemaMigrationService\getFieldDefinitions_fileContent(), TYPO3\CMS\Setup\Controller\SetupModuleController\getFieldsFromShowItem(), TYPO3\CMS\Backend\Form\FormEngine\getFieldsToAdd(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getFieldVal(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getFileDenyPatternStatus(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\getFileMountRecords(), TYPO3\CMS\Core\Resource\ResourceFactory\getFileObjectFromCombinedIdentifier(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\getFilePermissions(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\getFirstTimeValueForRecord(), TYPO3\CMS\Backend\Utility\BackendUtility\getFlexFormDS(), TYPO3\CMS\Backend\Form\FlexFormsHelper\getFlexFormNonExcludeFields(), TYPO3\CMS\Core\Resource\ResourceFactory\getFolderObjectFromCombinedIdentifier(), TYPO3\CMS\WizardCrpages\Controller\CreatePagesWizardModuleFunctionController\getFormLine(), TYPO3\CMS\Backend\User\ExtDirect\BackendUserSettingsDataProvider\getFromDottedNotation(), TYPO3\CMS\Core\TypoScript\TemplateService\getFromMPmap(), TYPO3\CMS\Backend\Utility\BackendUtility\getGroupNames(), TYPO3\CMS\Backend\View\BackendLayoutView\getIdentifiersToBeExcluded(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\getImgColumnWidths(), TYPO3\CMS\Rtehtmlarea\SelectImage\getJSCode(), TYPO3\CMS\Core\Html\RteHtmlParser\getKeepTags(), TYPO3\CMS\Rtehtmlarea\Extension\Language\getLanguages(), TYPO3\CMS\Backend\User\ExtDirect\BackendUserSettingsDataProvider\getLastKeyFromDottedNotation(), TYPO3\CMS\Linkvalidator\Task\ValidatorTask\getLinkTypes(), TYPO3\CMS\Backend\Form\FormEngine\getListedFields(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\getMainDictionaryCharacterSet(), TYPO3\CMS\Backend\Form\FormEngine\getMainFields(), TYPO3\CMS\Frontend\MediaWizard\MediaWizardProvider\getMethod(), TYPO3\CMS\Backend\Tree\Pagetree\ExtdirectTreeDataProvider\getNodeTypes(), TYPO3\CMS\Backend\Utility\BackendUtility\getNoRecordTitle(), TYPO3\CMS\Core\Resource\ResourceFactory\getObjectFromCombinedIdentifier(), TYPO3\CMS\Frontend\Page\PageRepository\getPageOverlay(), TYPO3\CMS\Core\Utility\CommandUtility\getPathsInternal(), TYPO3\CMS\Backend\Form\FormEngine\getPlaceholderAttribute(), TYPO3\CMS\Core\DataHandling\DataHandler\getPlaceholderTitleForTableLabel(), TYPO3\CMS\Backend\Form\Element\InlineElement\getPossibleRecords(), TYPO3\CMS\Core\Charset\CharsetConverter\getPreferredClientLanguage(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\getPreserveGetVars(), TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\getRecipientList(), TYPO3\CMS\Core\Utility\RootlineUtility\getRecordArray(), TYPO3\CMS\Install\Updates\TceformsUpdateWizard\getRecordsFromTable(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordTitle(), TYPO3\CMS\Backend\Utility\BackendUtility\getRegisteredFlexForms(), TYPO3\CMS\Backend\Form\FormDataTraverser\getRelatedGroupFieldUids(), TYPO3\CMS\Backend\Form\Element\InlineElement\getRelatedRecordsUidArray(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\getRequiredExtensionListArray(), TYPO3\CMS\Workspaces\Service\StagesService\getResponsibleUser(), TYPO3\CMS\Linkvalidator\Task\ValidatorTask\getSearchField(), TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\getSearchFields(), TYPO3\CMS\Backend\View\PageLayoutView\getSelectedBackendLayoutUid(), TYPO3\CMS\Backend\Form\FormDataTraverser\getSelectedValuesFromSelectItemArray(), TYPO3\CMS\Backend\Form\FormEngine\getSelectItems(), TYPO3\CMS\Backend\Form\FormEngine\getSingleField_typeNone_render(), TYPO3\CMS\Backend\Form\FormEngine\getSingleField_typeSelect_multiple(), TYPO3\CMS\Backend\Form\FormEngine\getSoloField(), TYPO3\CMS\Backend\Utility\BackendUtility\getSpecConfParts(), TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer\getStageActions(), TYPO3\CMS\Core\Resource\ResourceFactory\getStorageObjectFromCombinedIdentifier(), TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\Collector\getTableFields(), TYPO3\CMS\Backend\Utility\BackendUtility\getTCAtypes(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\getTSConfig(), TYPO3\CMS\Core\Database\SoftReferenceIndex\getTypoLinkParts(), TYPO3\CMS\Version\Hook\DataHandlerHook\getUniqueFields(), TYPO3\CMS\Core\DataHandling\DataHandler\getUniqueFields(), TYPO3\CMS\Backend\Form\Element\InlineElement\getUniqueIds(), TYPO3\CMS\IndexedSearch\Indexer\getUrlHeaders(), TYPO3\CMS\SysAction\ActionTask\getUsergroups(), TYPO3\CMS\Backend\Utility\BackendUtility\getUserNames(), TYPO3\CMS\Core\Resource\ResourceStorage\hasFile(), TYPO3\CMS\Core\Html\HtmlParser\HTMLparserConfig(), TYPO3\CMS\Core\TypoScript\TemplateService\includeStaticTypoScriptSources(), TYPO3\CMS\IndexedSearch\Hook\CrawlerHook\indexSingleRecord(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\init(), TYPO3\CMS\Core\Database\QueryGenerator\init(), TYPO3\CMS\Core\TypoScript\TemplateService\init(), TYPO3\CMS\Core\Charset\CharsetConverter\initCharset(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\initCurrentUrl(), TYPO3\CMS\Core\Localization\LanguageStore\initialize(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\initialize(), TYPO3\CMS\Workspaces\Controller\PreviewController\initializeAction(), TYPO3\CMS\Core\Utility\RootlineUtility\initializeObject(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\initLinkAttributes(), TYPO3\CMS\IndexedSearch\FileContentParser\initParser(), TYPO3\CMS\Core\Utility\CommandUtility\initPaths(), TYPO3\CMS\Core\Charset\CharsetConverter\initUnicodeData(), TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper\injectConfigurationManager(), TYPO3\CMS\Core\DataHandling\DataHandler\insertUpdateDB_preprocessBasedOnFieldType(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\INTincScript_includeLibs(), TYPO3\CMS\Backend\Utility\BackendUtility\isModuleSetInTBE_MODULES(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isServiceAvailable(), TYPO3\CMS\Core\DataHandling\DataHandler\isTableAllowedForThisPage(), TYPO3\CMS\Documentation\Controller\DocumentController\listAction(), TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController\listWords(), TYPO3\CMS\Recycler\Domain\Model\DeletedRecords\loadData(), TYPO3\CMS\Backend\Form\FormEngine\loadPaletteElements(), TYPO3\CMS\Backend\Controller\BackendController\loadResourcesForRegisteredNavigationComponents(), TYPO3\CMS\Core\Page\PageRenderer\loadScriptaculous(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\locDataJU(), TYPO3\CMS\Core\Mail\SwiftMailerAdapter\mail(), TYPO3\CMS\Rtehtmlarea\Controller\BrowseLinksController\main(), TYPO3\CMS\Rtehtmlarea\Controller\SelectImageController\main(), TYPO3\CMS\Rtehtmlarea\Extension\Spellchecker\main(), TYPO3\CMS\Rtehtmlarea\Extension\CopyPaste\main(), TYPO3\CMS\Lowlevel\LostFilesCommand\main(), TYPO3\CMS\Backend\Controller\Wizard\AddController\main(), TYPO3\CMS\Backend\Controller\File\CreateFolderController\main(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\main(), TYPO3\CMS\Backend\Controller\NewRecordController\main(), TYPO3\CMS\Rtehtmlarea\BrowseLinks\main_rte(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\main_rte(), TYPO3\CMS\Cshmanual\Controller\HelpModuleController\make_seeAlso(), TYPO3\CMS\Backend\Controller\LoginController\makeInterfaceSelectorBox(), TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\makeQueryArray(), TYPO3\CMS\IndexedSearch\Controller\SearchFormController\makeSearchForm(), TYPO3\CMS\Backend\Form\FormEngine\mergeFieldsWithAddedFields(), TYPO3\CMS\Install\Updates\TtContentUploadsUpdateWizard\migrateRecord(), TYPO3\CMS\Backend\Form\FlexFormsHelper\modifyFlexFormDS(), TYPO3\CMS\Backend\Form\FlexFormsHelper\modifySingleFlexFormSheet(), TYPO3\CMS\Core\FrontendEditing\FrontendEditingController\move(), TYPO3\CMS\Core\DataHandling\DataHandler\moveL10nOverlayRecords(), TYPO3\CMS\Version\Hook\DataHandlerHook\moveRecord_wsPlaceholders(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\newCObj(), TYPO3\CMS\Rtehtmlarea\SelectImage\orderMenuDefinition(), TYPO3\CMS\Extbase\Configuration\FrontendConfigurationManager\overrideStoragePidIfStartingPointIsSet(), TYPO3\CMS\Extbase\Configuration\FrontendConfigurationManager\overrideSwitchableControllerActionsFromFlexForm(), TYPO3\CMS\Frontend\Page\PageGenerator\pagegenInit(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\parseFunc(), TYPO3\CMS\Backend\Module\ModuleLoader\parseModulesArray(), TYPO3\CMS\Core\Utility\RootlineUtility\parseMountPointParameter(), TYPO3\CMS\Backend\Form\Element\InlineElement\parseStructureString(), TYPO3\CMS\Core\DataHandling\DataHandler\placeholderShadowing(), TYPO3\CMS\Core\DataHandling\DataHandler\prepareCacheFlush(), TYPO3\CMS\Backend\Form\Element\SuggestDefaultReceiver\prepareSelectStatement(), TYPO3\CMS\Backend\Form\FormEngine\previewFieldValue(), TYPO3\CMS\Backend\Controller\EditDocumentController\printContent(), TYPO3\CMS\Cshmanual\Controller\HelpModuleController\printImage(), TYPO3\CMS\Core\TimeTracker\TimeTracker\printTSlog(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\procesResources(), TYPO3\CMS\Backend\Form\Element\SuggestElement\processAjaxRequest(), TYPO3\CMS\Version\Hook\DataHandlerHook\processCmdmap(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\processRedirect(), TYPO3\CMS\Core\Database\RelationHandler\readList(), TYPO3\CMS\Backend\Form\FormEngine\rearrange(), TYPO3\CMS\Install\Controller\StepController\redirectToTool(), TYPO3\CMS\Core\Category\CategoryRegistry\registerDefaultCategorizedTables(), TYPO3\CMS\Core\DataHandling\DataHandler\remapListedDBRecords_procDBRefs(), TYPO3\CMS\Install\Controller\Action\Ajax\ExtensionCompatibilityTester\removeCurrentExtensionFromFile(), TYPO3\CMS\Backend\User\ExtDirect\BackendUserSettingsDataProvider\removeFromList(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\removeInvalidElements(), TYPO3\CMS\Frontend\ContentObject\ImageTextContentObject\render(), TYPO3\CMS\Frontend\ContentObject\MediaContentObject\render(), TYPO3\CMS\Frontend\ContentObject\FormContentObject\render(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\render_bullets(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\render_table(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\render_uploads(), TYPO3\CMS\Frontend\Page\PageGenerator\renderContent(), TYPO3\CMS\Backend\Form\Element\InlineElement\renderForeignRecordHeader(), TYPO3\CMS\Frontend\Controller\TranslationStatusController\renderL10nTable(), TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\renderPropertiesAsTable(), TYPO3\CMS\Backend\Form\DataPreprocessor\renderRecord_inlineProc(), TYPO3\CMS\Backend\Form\DataPreprocessor\renderRecord_selectProc(), TYPO3\CMS\Backend\Form\DataPreprocessor\renderRecord_SW(), TYPO3\CMS\Backend\Sprite\SpriteGenerator\resolveSpritePath(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\resourceListForCopy(), TYPO3\CMS\IndexedSearch\FileContentParser\searchTypeMediaTitle(), TYPO3\CMS\Form\Validation\FileAllowedTypesValidator\setAllowedTypes(), TYPO3\CMS\Core\Database\QueryGenerator\setAndCleanUpExternalLists(), TYPO3\CMS\Core\Core\Bootstrap\setCacheHashOptions(), TYPO3\CMS\Recycler\Domain\Model\DeletedRecords\setData(), TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapFactory\setFieldEvaluations(), TYPO3\CMS\Backend\User\ExtDirect\BackendUserSettingsDataProvider\setFromDottedNotation(), TYPO3\CMS\Install\Service\SilentConfigurationUpgradeService\setImageMagickDetailSettings(), TYPO3\CMS\Core\DataHandling\DataHandler\setMirror(), TYPO3\CMS\Reports\Task\SystemStatusUpdateTask\setNotificationEmail(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\setPageCacheContent(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\setPlugins(), TYPO3\CMS\Core\Database\DatabaseConnection\setSqlMode(), TYPO3\CMS\Backend\ModuleSettings\setStoreList(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\settingLanguage(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\setToolbar(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\spellCheckHandler(), TYPO3\CMS\Core\Html\HtmlParser\splitIntoBlock(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\splitString(), TYPO3\CMS\Core\Html\HtmlParser\splitTags(), TYPO3\CMS\Core\Database\RelationHandler\start(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_addPageCacheTags(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrap_editPanel(), TYPO3\CMS\Core\Html\HtmlParser\substituteMarkerAndSubpartArrayRecursive(), TYPO3\CMS\Core\Html\HtmlParser\substituteMarkerArray(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\TCAlookup(), TYPO3\CMS\Core\Html\RteHtmlParser\TS_links_rte(), TYPO3\CMS\Core\Html\HtmlParser\unprotectTags(), TYPO3\CMS\Core\Core\Bootstrap\unsetReservedGlobalVariables(), TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\updateBrokenLinks(), TYPO3\CMS\Lang\Service\UpdateTranslationService\updateTranslation(), TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField\validateAdditionalFields(), TYPO3\CMS\Linkvalidator\Task\ValidatorTaskAdditionalFieldProvider\validateAdditionalFields(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\wizardArray(), and TYPO3\CMS\Install\Controller\Action\Ajax\ExtensionCompatibilityTester\writeCurrentExtensionToFile().

◆ underscoredToLowerCamelCase()

static TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToLowerCamelCase (   $string)
static

Returns a given string with underscores as lowerCamelCase. Example: Converts minimal_value to minimalValue

Parameters
string$stringString to be converted to camel case
Returns
string lowerCamelCasedWord

Definition at line 1349 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapFactory\buildDataMap(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\underscoredToLowerCamelCase().

◆ underscoredToUpperCamelCase()

static TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase (   $string)
static

Returns a given string with underscores as UpperCamelCase. Example: Converts blog_example to BlogExample

Parameters
string$stringString to be converted to camel case
Returns
string UpperCamelCasedWord

Definition at line 1337 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Package\PackageFactory\__construct(), TYPO3\CMS\Extbase\Scheduler\TaskExecutor\execute(), TYPO3\CMS\Core\Page\PageRenderer\loadRequireJs(), TYPO3\CMS\Extbase\Utility\ExtensionUtility\registerModule(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\underscoredToUpperCamelCase().

◆ uniqueList()

static TYPO3\CMS\Core\Utility\GeneralUtility::uniqueList (   $in_list,
  $secondParameter = NULL 
)
static

Takes comma-separated lists and arrays and removes all duplicates If a value in the list is trim(empty), the value is ignored.

Parameters
string$in_listAccept multiple parameters which can be comma-separated lists of values and arrays.
mixed$secondParameterDummy field, which if set will show a warning!
Returns
string Returns the list without any duplicates of values, space around values are trimmed

Definition at line 860 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Resource\ResourceStorage\checkFileExtensionPermission(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\fetchGroupData(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\filelist(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordWSOL(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\init(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\uniqueListUnifiesCommaSeparatedList(), and TYPO3\CMS\Core\Authentication\BackendUserAuthentication\workspaceInit().

◆ unlink_tempfile()

static TYPO3\CMS\Core\Utility\GeneralUtility::unlink_tempfile (   $uploadedTempFileName)
static

Deletes (unlink) a temporary filename in 'PATH_site."typo3temp/"' given as input. The function will check that the file exists, is in PATH_site."typo3temp/" and does not contain back-spaces ("../") so it should be pretty safe. Use this after upload_to_tempfile() or tempnam() from this class!

Parameters
string$uploadedTempFileNameFilepath for a file in PATH_site."typo3temp/". Must be absolute.
Returns
boolean Returns TRUE if the file was unlink()'ed
See also
upload_to_tempfile(), tempnam()

Definition at line 4031 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Backend\Sprite\SpriteGenerator\generateGraphic(), TYPO3\CMS\Backend\Sprite\SpriteGenerator\generateHighDensityGraphic(), TYPO3\CMS\Backend\Tests\Unit\Utility\IconUtilityTest\imagemakeFixesPermissionsOnNewFiles(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\main(), TYPO3\CMS\Form\Request\removeFiles(), TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\spellCheckHandler(), TYPO3\CMS\Core\Tests\Unit\Configuration\ConfigurationManagerTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Utility\ExtensionManagementUtilityTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\unlink_tempfileRemovesHiddenFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\unlink_tempfileRemovesValidFileInTypo3temp(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\unlink_tempfileReturnsNullIfFileDoesNotExist(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\unlink_tempfileReturnsNullIfFileIsNowWithinTypo3temp(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\unlink_tempfileReturnsTrueIfFileWasRemoved(), TYPO3\CMS\Core\Service\AbstractService\unlinkTempFiles(), and TYPO3\CMS\Impexp\ImportExport\unlinkTempFiles().

◆ unQuoteFilenames()

static TYPO3\CMS\Core\Utility\GeneralUtility::unQuoteFilenames (   $parameters,
  $unQuote = FALSE 
)
static

Explode a string (normally a list of filenames) with whitespaces by considering quotes in that string. This is mostly needed by the imageMagickCommand function above.

Parameters
string$parametersThe whole parameters string
boolean$unQuoteIf set, the elements of the resulting array are unquoted.
Returns
array Exploded parameters

Definition at line 5304 of file GeneralUtility.php.

References $parameters.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\explodeAndUnquoteImageMagickCommands(), TYPO3\CMS\Core\Database\SoftReferenceIndex\getTypoLinkParts(), TYPO3\CMS\Core\Utility\CommandUtility\imageMagickCommand(), TYPO3\CMS\Recordlist\Browser\ElementBrowser\initCurrentUrl(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\TCAlookup(), and TYPO3\CMS\Core\Html\RteHtmlParser\TS_links_rte().

◆ upload_copy_move()

static TYPO3\CMS\Core\Utility\GeneralUtility::upload_copy_move (   $source,
  $destination 
)
static

◆ upload_to_tempfile()

static TYPO3\CMS\Core\Utility\GeneralUtility::upload_to_tempfile (   $uploadedFileName)
static

Will move an uploaded file (normally in "/tmp/xxxxx") to a temporary filename in PATH_site."typo3temp/" from where TYPO3 can use it. Use this function to move uploaded files to where you can work on them. REMEMBER to use ::unlink_tempfile() afterwards - otherwise temp-files will build up! They are NOT automatically deleted in PATH_site."typo3temp/"!

Parameters
string$uploadedFileNameThe temporary uploaded filename, eg. $_FILES['[upload field name here]']['tmp_name']
Returns
string If a new file was successfully created, return its filename, otherwise blank string.
See also
unlink_tempfile(), upload_copy_move()

Definition at line 4014 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Extensionmanager\Controller\UploadExtensionFileController\extractAction(), and TYPO3\CMS\Form\Request\storeFiles().

◆ validEmail()

static TYPO3\CMS\Core\Utility\GeneralUtility::validEmail (   $email)
static

Checking syntax of input email address

http://tools.ietf.org/html/rfc3696 International characters are allowed in email. So the whole address needs to be converted to punicode before passing it to filter_var(). We convert the user- and domain part separately to increase the chance of hitting an entry in self::$idnaStringCache.

Also the @ sign may appear multiple times in an address. If not used as a boundary marker between the user- and domain part, it must be escaped with a backslash: @. This mean we can not just explode on the @ sign and expect to get just two parts. So we pop off the domain and then glue the rest together again.

Parameters
string$emailInput string to evaluate
Returns
boolean Returns TRUE if the $email address (input string) is valid

Definition at line 1110 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Install\Controller\Action\Tool\TestSetup\executeAction(), TYPO3\CMS\Linkvalidator\Task\ValidatorTask\getLinkTypes(), TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\getReceipientsOfStage(), TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\getRecipientList(), TYPO3\CMS\Core\Utility\MailUtility\getSystemFromAddress(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\link(), TYPO3\CMS\Frontend\Controller\DataSubmissionController\start(), TYPO3\CMS\Linkvalidator\Task\ValidatorTaskAdditionalFieldProvider\validateAdditionalFields(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\validEmailReturnsFalseForInvalidMailAddress(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\validEmailReturnsTrueForValidMailAddress(), and TYPO3\CMS\SysAction\ActionTask\viewNewBackendUser().

◆ validIP()

static TYPO3\CMS\Core\Utility\GeneralUtility::validIP (   $ip)
static

Validate a given IP address.

Possible format are IPv4 and IPv6.

Parameters
string$ipIP address to be tested
Returns
boolean TRUE if $ip is either of IPv4 or IPv6 format.

Definition at line 606 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\validIpReturnsFalseForInvalidIp(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\validIpReturnsTrueForValidIp().

◆ validIPv4()

static TYPO3\CMS\Core\Utility\GeneralUtility::validIPv4 (   $ip)
static

Validate a given IP address to the IPv4 address format.

Example for possible format: 10.0.45.99

Parameters
string$ipIP address to be tested
Returns
boolean TRUE if $ip is of IPv4 format.

Definition at line 618 of file GeneralUtility.php.

◆ validIPv6()

static TYPO3\CMS\Core\Utility\GeneralUtility::validIPv6 (   $ip)
static

Validate a given IP address to the IPv6 address format.

Example for possible format: 43FB::BB3F:A0A0:0 | ::1

Parameters
string$ipIP address to be tested
Returns
boolean TRUE if $ip is of IPv6 format.

Definition at line 630 of file GeneralUtility.php.

◆ validPathStr()

static TYPO3\CMS\Core\Utility\GeneralUtility::validPathStr (   $theFile)
static

Checks for malicious file paths.

Returns TRUE if no '//', '..', '\' or control characters are found in the $theFile. This should make sure that the path is not pointing 'backwards' and further doesn't contain double/back slashes. So it's compatible with the UNIX style path strings valid for TYPO3 internally.

Parameters
string$theFileFile path to evaluate
Returns
boolean TRUE, $theFile is allowed path string, FALSE otherwise
See also
http://php.net/manual/en/security.filesystem.nullbytes.php
Todo:
Possible improvement: Should it rawurldecode the string first to check if any of these characters is encoded?

Definition at line 3874 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Utility\File\BasicFileUtility\checkPathAgainstMounts(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\clean_directory(), TYPO3\CMS\Core\Html\RteHtmlParser\evalWriteFile(), TYPO3\CMS\Core\Utility\File\ExtendedFileUtility\findRecycler(), TYPO3\CMS\Core\Charset\CharsetConverter\initCharset(), TYPO3\CMS\Core\Charset\CharsetConverter\initUnicodeData(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\is_directory(), TYPO3\CMS\Core\Utility\File\BasicFileUtility\isPathValid(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\validPathStrDetectsInvalidCharacters(), and TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\validPathStrWorksWithUnicodeFileNames().

◆ verifyFilenameAgainstDenyPattern()

static TYPO3\CMS\Core\Utility\GeneralUtility::verifyFilenameAgainstDenyPattern (   $filename)
static

◆ wrapJS()

static TYPO3\CMS\Core\Utility\GeneralUtility::wrapJS (   $string,
  $linebreak = TRUE 
)
static

Wraps JavaScript code XHTML ready with <script>-tags Automatic re-indenting of the JS code is done by using the first line as indent reference. This is nice for indenting JS code with PHP code on the same level.

Parameters
string$stringJavaScript code
boolean$linebreakWrap script element in line breaks? Default is TRUE.
Returns
string The wrapped JS code, ready to put into a XHTML page

Definition at line 1989 of file GeneralUtility.php.

Referenced by TYPO3\CMS\T3editor\T3editor\__construct(), TYPO3\CMS\Core\TypoScript\ConfigurationForm\ext_getForm(), TYPO3\CMS\T3editor\T3editor\getModeSpecificJavascriptCode(), TYPO3\CMS\Core\Page\PageRenderer\renderJqueryScriptTag(), and TYPO3\CMS\Core\Page\PageRenderer\renderMainJavaScriptLibraries().

◆ writeFile()

static TYPO3\CMS\Core\Utility\GeneralUtility::writeFile (   $file,
  $content,
  $changePermissions = FALSE 
)
static

Writes $content to the file $file

Parameters
string$fileFilepath to write to
string$contentContent to write
boolean$changePermissionsIf TRUE, permissions are forced to be set
Returns
boolean TRUE if the file was successfully opened and written to.

Definition at line 2707 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Resource\ResourceCompressor\__construct(), TYPO3\CMS\Lowlevel\AdminCommand\cli_main(), TYPO3\CMS\Dbal\Tests\Unit\Database\DatabaseConnectionTest\createFakeExtension(), TYPO3\CMS\Core\Log\Writer\FileWriter\createHtaccessFile(), TYPO3\CMS\Core\Log\Writer\FileWriter\createLogFile(), TYPO3\CMS\Core\Resource\ResourceCompressor\createMergedFile(), TYPO3\CMS\Install\Service\SessionService\ensureSessionSavePathExists(), TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\extractIncludes(), TYPO3\CMS\Documentation\Service\DocumentationService\fetchDocument(), TYPO3\CMS\Extensionmanager\Utility\Repository\Helper\fetchFile(), TYPO3\CMS\Backend\Sprite\AbstractSpriteHandler\generate(), TYPO3\CMS\Backend\Sprite\SpriteGenerator\generateCSS(), TYPO3\CMS\Core\Utility\DiffUtility\getDiff(), TYPO3\CMS\Documentation\Service\DocumentationService\getOfficialDocuments(), TYPO3\CMS\Core\DataHandling\DataHandler\getPlaceholderTitleForTableLabel(), TYPO3\CMS\Impexp\ImportExport\import_addFileNameToBeCopied(), TYPO3\CMS\IndexedSearch\Indexer\indexExternalUrl(), TYPO3\CMS\Frontend\Page\PageGenerator\inline2TempFile(), TYPO3\CMS\Lowlevel\View\ConfigurationView\main(), TYPO3\CMS\Impexp\ImportExport\processSoftReferences_saveFile_createRelFile(), TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowBeforeSaving(), TYPO3\CMS\Core\Resource\ResourceCompressor\retrieveExternalFile(), TYPO3\CMS\Documentation\Service\DocumentationService\unzipDocumentPackage(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\unzipExtensionFromFile(), TYPO3\CMS\Lang\Utility\Connection\Ter\unzipTranslationFile(), TYPO3\CMS\Lang\Utility\Connection\Ter\updateTranslation(), TYPO3\CMS\Install\Service\SessionService\write(), TYPO3\CMS\Core\Configuration\ConfigurationManager\writeAdditionalConfiguration(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\writeEmConfToFile(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\writeExtensionFiles(), TYPO3\CMS\Core\Resource\ResourceCompressor\writeFileAndCompressed(), TYPO3\CMS\Impexp\ImportExport\writeFileVerify(), TYPO3\CMS\Core\Configuration\ConfigurationManager\writeLocalConfiguration(), and TYPO3\CMS\Impexp\ImportExport\writeTemporaryFileFromData().

◆ writeFileToTypo3tempDir()

static TYPO3\CMS\Core\Utility\GeneralUtility::writeFileToTypo3tempDir (   $filepath,
  $content 
)
static

Writes $content to a filename in the typo3temp/ folder (and possibly one or two subfolders...) Accepts an additional subdirectory in the file path!

Parameters
string$filepathAbsolute file path to write to inside "typo3temp/". First part of this string must match PATH_site."typo3temp/
string$contentContent string to write
Returns
string Returns NULL on success, otherwise an error string telling about the problem.

Definition at line 2796 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\copyDirectoryCopiesFilesAndDirectoriesWithAbsolutePaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\copyDirectoryCopiesFilesAndDirectoriesWithRelativePaths(), TYPO3\CMS\Extensionmanager\Utility\UpdateScriptUtility\determineUpdateClassName(), TYPO3\CMS\Extensionmanager\Controller\ActionController\downloadExtensionDataAction(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsCorrectlySetsPermissionsRecursive(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsDefaultPermissionsToFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsGroup(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToHiddenFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsWithRelativeFileReference(), TYPO3\CMS\Core\Localization\Parser\LocallangArrayParser\generateCacheFile(), TYPO3\CMS\Backend\Controller\BackendController\getLocalLangFileName(), TYPO3\CMS\Core\Charset\CharsetConverter\initCaseFolding(), TYPO3\CMS\Core\Charset\CharsetConverter\initCharset(), TYPO3\CMS\Core\Charset\CharsetConverter\initToASCII(), TYPO3\CMS\Core\Charset\CharsetConverter\initUnicodeData(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileIfPathIsGiven(), and TYPO3\CMS\Version\Hook\DataHandlerHook\versionizePages().

◆ xml2array()

static TYPO3\CMS\Core\Utility\GeneralUtility::xml2array (   $string,
  $NSprefix = '',
  $reportDocTag = FALSE 
)
static

Converts an XML string to a PHP array. This is the reverse function of array2xml() This is a wrapper for xml2arrayProcess that adds a two-level cache

Parameters
string$stringXML content to convert into an array
string$NSprefixThe tag-prefix resolve, eg. a namespace like "T3:"
boolean$reportDocTagIf set, the document tag will be set in the key "_DOCUMENT_TAG" of the output array
Returns
mixed If the parsing had errors, a string with the error message is returned. Otherwise an array with the content.
See also
array2xml(),xml2arrayProcess()

Definition at line 2232 of file GeneralUtility.php.

References TYPO3\CMS\Frontend\Page\PageRepository\getHash(), and TYPO3\CMS\Frontend\Page\PageRepository\storeHash().

Referenced by TYPO3\CMS\Install\Updates\MediaFlexformUpdate\checkForUpdate(), TYPO3\CMS\Core\DataHandling\DataHandler\checkValue_flex(), TYPO3\CMS\Extbase\Service\FlexFormService\convertFlexFormContentToArray(), TYPO3\CMS\Core\Resource\ResourceFactory\convertFlexFormDataToConfigurationArray(), TYPO3\CMS\Backend\Utility\BackendUtility\getFlexFormDS(), TYPO3\CMS\Backend\Utility\BackendUtility\getRegisteredFlexForms(), TYPO3\CMS\Core\Database\ReferenceIndex\getRelations(), TYPO3\CMS\Core\DataHandling\DataHandler\insertNewCopyVersion(), TYPO3\CMS\Impexp\ImportExport\loadFile(), TYPO3\CMS\Backend\Controller\Wizard\AddController\main(), TYPO3\CMS\Install\Updates\FileIdentifierHashUpdate\performUpdate(), TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\readFlexformIntoConf(), TYPO3\CMS\Core\DataHandling\DataHandler\remapListedDBRecords(), TYPO3\CMS\Impexp\ImportExport\remapListedDBRecords_flexFormCallBack(), TYPO3\CMS\Frontend\ContentObject\MediaContentObject\render(), TYPO3\CMS\Backend\Form\DataPreprocessor\renderRecord_flexProc(), TYPO3\CMS\Impexp\ImportExport\setFlexFormRelations(), TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools\traverseFlexFormXMLData(), TYPO3\CMS\Core\DataHandling\DataHandler\updateFlexFormData(), and TYPO3\CMS\Core\DataHandling\DataHandler\versionizeRecord().

◆ xml2arrayProcess()

static TYPO3\CMS\Core\Utility\GeneralUtility::xml2arrayProcess (   $string,
  $NSprefix = '',
  $reportDocTag = FALSE 
)
staticprotected

Converts an XML string to a PHP array. This is the reverse function of array2xml()

Parameters
string$stringXML content to convert into an array
string$NSprefixThe tag-prefix resolve, eg. a namespace like "T3:"
boolean$reportDocTagIf set, the document tag will be set in the key "_DOCUMENT_TAG" of the output array
Returns
mixed If the parsing had errors, a string with the error message is returned. Otherwise an array with the content.
See also
array2xml()

Definition at line 2261 of file GeneralUtility.php.

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

◆ xml2tree()

static TYPO3\CMS\Core\Utility\GeneralUtility::xml2tree (   $string,
  $depth = 999 
)
static

Parses XML input into a PHP array with associative keys

Parameters
string$stringXML data input
integer$depthNumber of element levels to resolve the XML into an array. Any further structure will be set as XML.
Returns
mixed The array with the parsed structure unless the XML parser returns with an error in which case the error message string is returned.
Author
bisqwit at iki dot fi dot not dot for dot ads dot invalid / http://dk.php.net/xml_parse_into_struct + kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 2017 of file GeneralUtility.php.

Referenced by TYPO3\CMS\IndexedSearch\FileContentParser\readFileContent().

◆ xmlGetHeaderAttribs()

static TYPO3\CMS\Core\Utility\GeneralUtility::xmlGetHeaderAttribs (   $xmlData)
static

Extracts the attributes (typically encoding and version) of an XML prologue (header).

Parameters
string$xmlDataXML data
Returns
array Attributes of the xml prologue (header)

Definition at line 2411 of file GeneralUtility.php.

Referenced by TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools\traverseFlexFormXMLData().

◆ xmlRecompileFromStructValArray()

static TYPO3\CMS\Core\Utility\GeneralUtility::xmlRecompileFromStructValArray ( array  $vals)
static

This implodes an array of XML parts (made with xml_parse_into_struct()) into XML again.

Parameters
array$valsAn array of XML parts, see xml2tree
Returns
string Re-compiled XML data.

Definition at line 2368 of file GeneralUtility.php.

Member Data Documentation

◆ $allowHostHeaderValue

TYPO3\CMS\Core\Utility\GeneralUtility::$allowHostHeaderValue = FALSE
staticprotected

◆ $applicationContext

◆ $finalClassNameCache

TYPO3\CMS\Core\Utility\GeneralUtility::$finalClassNameCache = array()
staticprotected

Definition at line 71 of file GeneralUtility.php.

◆ $idnaConverter

TYPO3\CMS\Core\Utility\GeneralUtility::$idnaConverter = NULL
staticprotected

Definition at line 92 of file GeneralUtility.php.

◆ $idnaStringCache

TYPO3\CMS\Core\Utility\GeneralUtility::$idnaStringCache = array()
staticprotected

Definition at line 85 of file GeneralUtility.php.

◆ $nonSingletonInstances

TYPO3\CMS\Core\Utility\GeneralUtility::$nonSingletonInstances = array()
staticprotected

Definition at line 64 of file GeneralUtility.php.

◆ $singletonInstances

TYPO3\CMS\Core\Utility\GeneralUtility::$singletonInstances = array()
staticprotected

Definition at line 57 of file GeneralUtility.php.

◆ $supportedCgiServerApis

TYPO3\CMS\Core\Utility\GeneralUtility::$supportedCgiServerApis
staticprotected
Initial value:
= array(
'fpm-fcgi',
'cgi',
'isapi',
'cgi-fcgi',
'srv',
)

Definition at line 99 of file GeneralUtility.php.

◆ ENV_TRUSTED_HOSTS_PATTERN_ALLOW_ALL

const TYPO3\CMS\Core\Utility\GeneralUtility::ENV_TRUSTED_HOSTS_PATTERN_ALLOW_ALL = '.*'

◆ ENV_TRUSTED_HOSTS_PATTERN_SERVER_NAME

const TYPO3\CMS\Core\Utility\GeneralUtility::ENV_TRUSTED_HOSTS_PATTERN_SERVER_NAME = 'SERVER_NAME'

◆ SYSLOG_SEVERITY_ERROR

const TYPO3\CMS\Core\Utility\GeneralUtility::SYSLOG_SEVERITY_ERROR = 3

◆ SYSLOG_SEVERITY_FATAL

◆ SYSLOG_SEVERITY_INFO

const TYPO3\CMS\Core\Utility\GeneralUtility::SYSLOG_SEVERITY_INFO = 0

◆ SYSLOG_SEVERITY_NOTICE

◆ SYSLOG_SEVERITY_WARNING