TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
GeneralUtility Class Reference
Inheritance diagram for GeneralUtility:
GeneralUtilityFixture GeneralUtilityFilesystemFixture GeneralUtilityFixture GeneralUtilityMinifyJavaScriptFixture 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 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 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 isFirstPartOfStr ($str, $partStr)
 
static formatSize ($sizeInBytes, $labels= '', $base=0)
 
static convertMicrotime ($microtime)
 
static splitCalc ($string, $operators)
 
static deHSCentities ($str)
 
static slashJS ($string, $extended=false, $char= '\'')
 
static rawUrlEncodeJS ($str)
 
static rawUrlEncodeFP ($str)
 
static validEmail ($email)
 
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 intExplode ($delimiter, $string, $removeEmptyValues=false, $limit=0)
 
static revExplode ($delimiter, $string, $count=0)
 
static trimExplode ($delim, $string, $removeEmptyValues=false, $limit=0)
 
static implodeArrayForUrl ($name, array $theArray, $str= '', $skipBlank=false, $rawurlencodeParamName=false)
 
static explodeUrl2Array ($string, $multidim=false)
 
static compileSelectedGetVarsFromArray ($varList, array $getArray, $GPvarAlt=true)
 
static csvValues (array $row, $delim= ',', $quote= '"')
 
static removeDotsFromTS (array $ts)
 
static get_tag_attributes ($tag)
 
static split_tag_attributes ($tag)
 
static implodeAttributes (array $arr, $xhtmlSafe=false, $dontOmitBlankAttribs=false)
 
static wrapJS ($string, $_=null)
 
static xml2tree ($string, $depth=999, $parserOptions=[])
 
static array2xml_cs (array $array, $docTag= 'phparray', array $options=[], $charset= '')
 
static array2xml (array $array, $NSprefix= '', $level=0, $docTag= 'phparray', $spaceInd=0, array $options=[], array $stackData=[])
 
static xml2array ($string, $NSprefix= '', $reportDocTag=false)
 
static xmlRecompileFromStructValArray (array $vals)
 
static xmlGetHeaderAttribs ($xmlData)
 
static minifyJavaScript ($script, &$error= '')
 
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 ()
 
static getBytesFromSizeMeasurement ($measurement)
 
static getMaximumPathLength ()
 
static createVersionNumberedFilename ($file)
 
static linkThisScript (array $getParams=[])
 
static linkThisUrl ($url, array $getParams=[])
 
static getIndpEnv ($getEnvName)
 
static isAllowedHostHeaderValue ($hostHeaderValue)
 
static hostHeaderValueMatchesTrustedHostsPattern ($hostHeaderValue)
 
static milliseconds ()
 
static clientInfo ($useragent= '')
 
static getHostname ($requestHost=true)
 
static getFileAbsFileName ($filename, $_=null, $_2=null)
 
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 resolveSheetDefInDS ($dataStructArray, $sheet= 'sDEF')
 
static resolveAllSheetsInDS (array $dataStructArray)
 
static callUserFunction ($funcName, &$params, &$ref, $_= '', $errorMode=0)
 
static getUserObj ($classRef)
 
static makeInstance ($className,...$constructorArguments)
 
static setSingletonInstance ($className, SingletonInterface $instance)
 
static removeSingletonInstance ($className, SingletonInterface $instance)
 
static resetSingletonInstances (array $newSingletonInstances)
 
static getSingletonInstances ()
 
static addInstance ($className, $instance)
 
static purgeInstances ()
 
static flushInternalRuntimeCaches ()
 
static makeInstanceService ($serviceType, $serviceSubType= '', $excludeServiceKeys=[])
 
static requireOnce ($requireFile)
 
static requireFile ($requireFile)
 
static makeRedirectUrl ($inUrl, $l=0, $index_script_url= '')
 
static freetypeDpiComp ($fontSize)
 
static initSysLog ()
 
static devLog ($msg, $extKey, $severity=0, $dataVar=false)
 
static deprecationLog ($msg)
 
static getDeprecationLogFileName ()
 
static logDeprecatedFunction ()
 
static arrayToLogString (array $arr, $valueList=[], $valueLength=20)
 
static imageMagickCommand ($command, $parameters, $path= '')
 
static unQuoteFilenames ($parameters, $unQuote=false)
 
static quoteJSvalue ($value)
 
static flushOutputBuffers ()
 
static presetApplicationContext (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 xml2arrayProcess ($string, $NSprefix= '', $reportDocTag=false)
 
static createDirectoryPath ($fullDirectoryPath)
 
static isInternalRequestType ()
 
static getClassName ($className)
 
static getImplementationForClass ($className)
 
static classHasImplementation ($className)
 
static checkInstanceClassName ($className, $instance)
 

Static Protected Attributes

static $allowHostHeaderValue = false
 
static $singletonInstances = []
 
static $nonSingletonInstances = []
 
static $finalClassNameCache = []
 
static $applicationContext = null
 
static $idnaStringCache = []
 
static $idnaConverter = null
 
static $supportedCgiServerApis
 
static $indpEnvCache = []
 

Detailed Description

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()'

Definition at line 39 of file GeneralUtility.php.

Member Function Documentation

static _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! This function was previously used to normalize between magic quotes logic, which was removed from PHP 5.5

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 185 of file GeneralUtility.php.

Referenced by DocumentTemplate\__construct(), WidgetRequestBuilder\build(), UriBuilder\buildBackendUri(), BackendUtility\buildScriptUrl(), TypoScriptFrontendController\calculateLinkVars(), WidgetRequestHandler\canHandleRequest(), GeneralUtilityTest\canRetrieveGlobalInputsThroughGet(), AdminPanelView\display(), UninstallExtension\executeAction(), ExtensionCompatibilityTester\executeAction(), SecurityStatusReport\executeAdminCommand(), ConfigurationStatus\executeAdminCommand(), ServerRequestFactory\fromGlobals(), ElementInformationController\getBackButton(), TypoScriptFrontendController\getConfigArray(), ContentObjectRenderer\getData(), ExtDirectApi\getExtDirectApi(), ToolController\getLastError(), FrontendLoginController\getPreserveGetVars(), PreviewHook\getPreviewConfiguration(), AbstractCoreUpdate\getVersionToHandle(), BackendController\handlePageEditing(), ElementInformationController\init(), ReportController\initializeAction(), AdministrationController\initializeAction(), TemplateAnalyzerModuleFunctionController\main(), TypoScriptTemplateObjectBrowserModuleFunctionController\main(), TypoScriptFrontendController\makeCacheHash(), DocumentTemplate\makeShortcutIcon(), ModuleTemplate\makeShortcutIcon(), DocumentTemplate\makeShortcutUrl(), ModuleTemplate\makeShortcutUrl(), TypoScriptFrontendController\mergingWithGetVars(), TypoScriptTemplateObjectBrowserModuleFunctionController\modMenu(), EditDocumentController\preInit(), TypoScriptTemplateInfoHook\preStartPageHook(), FileEditHook\preStartPageHook(), AdministrationController\processRequest(), Bootstrap\run(), BackendController\setStartupModule(), AbstractLinkHandler\setTemporaryDbMounts(), DatabaseBrowser\setTemporaryDbMounts(), PageLinkHandler\setTemporaryDbMounts(), and AbstractUserAuthentication\start().

static _GETset (   $inputGet,
  $key = '' 
)
static

Writes input value to $_GET.

Parameters
mixed$inputGet
string$key
Returns
void

Definition at line 220 of file GeneralUtility.php.

References $GLOBALS, and ArrayUtility\mergeRecursiveWithOverrule().

Referenced by UriBuilderTest\buildBackendUriConvertsDomainObjectsAfterArgumentsHaveBeenMerged(), UriBuilderTest\buildBackendUriCreatesAbsoluteUrisIfSpecified(), UriBuilderTest\buildBackendUriKeepsModuleQueryParametersIfAddQueryStringIsNotSet(), UriBuilderTest\buildBackendUriKeepsQueryParametersIfAddQueryStringIsSet(), UriBuilderTest\buildBackendUriKeepsQueryParametersIfAddQueryStringMethodIsNotSet(), UriBuilderTest\buildBackendUriMergesAndOverrulesQueryParametersWithArguments(), UriBuilderTest\buildBackendUriRemovesSpecifiedQueryParametersIfArgumentsToBeExcludedFromQueryStringIsSet(), UriBuilderTest\buildBackendUriRespectsSection(), GeneralUtilityTest\canSetNewGetInputValues(), TypoScriptFrontendController\getConfigArray(), BackendConfigurationManagerTest\getCurrentPageIdReturnsPageIdFromGet(), BackendConfigurationManagerTest\getCurrentPageIdReturnsPageIdFromPost(), PreviewHook\getPreviewConfiguration(), GeneralUtilityTest\getSetAssignsOneValueToOneKey(), GeneralUtilityTest\getSetCanAssignAnArrayToASpecificArrayChildElement(), GeneralUtilityTest\getSetCanAssignAStringValueToASpecificArrayChildElement(), GeneralUtilityTest\getSetCanAssignsAnArrayToASpecificArrayElement(), GeneralUtilityTest\getSetForArrayDropsExistingValues(), GeneralUtilityTest\getSetForOneValueDoesNotDropUnrelatedValues(), GeneralUtilityTest\getSetWritesArrayToGetSystemVariable(), GeneralUtilityTest\getSetWritesArrayToGlobalsHttpGetVars(), and TypoScriptFrontendController\mergingWithGetVars().

static _GP (   $var)
static

Returns the 'GLOBAL' value of incoming data from POST or GET, with priority to POST (that is equalent to 'GP' order) To enhance security in your scripts, please consider using GeneralUtility::_GET or GeneralUtility::_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 142 of file GeneralUtility.php.

Referenced by ContextService\__construct(), RecyclerAjaxController\__construct(), ListController\__construct(), UriBuilder\buildBackendUri(), SelectImageController\buildImageMarkup(), BackendUtility\buildScriptUrl(), GeneralUtilityTest\canRetrieveValueWithGP(), AbstractUserAuthentication\checkAuthentication(), AbstractFunctionModule\checkExtObj(), BaseScriptClass\checkExtObj(), PreviewHook\checkForPreview(), LoginController\checkRedirect(), ImportExportController\checkUpload(), DataHandler\checkValueForFlex(), LoginController\detectLoginProvider(), TypoScriptFrontendController\determineId(), ConditionMatcher\determinePageId(), AbstractElementBrowser\determineScriptUrl(), AbstractRecordList\determineScriptUrl(), AbstractTreeView\determineScriptUrl(), FrontendEditPanel\editIcons(), FrontendEditPanel\editPanelLinkWrap(), FolderTreeView\evaluateExpandCollapseParameter(), ExtendedTemplateService\ext_getObjTree(), TypoScriptFrontendController\fetch_the_id(), ReviewController\fullIndexAction(), DatabaseIntegrityView\func_refindex(), PageTsBackendLayoutDataProvider\generatePageTsConfig(), AbstractController\getAction(), RecordHistory\getArgument(), FileBrowser\getBulkSelector(), AddImageHandler\getBulkSelector(), ElementHistoryController\getButtons(), ImportExportController\getButtons(), AbstractAction\getContext(), BackendConfigurationManager\getCurrentPageIdFromGetPostData(), AdminPanelView\getEditModule(), RecyclerModuleController\getJavaScriptConfiguration(), LinkAnalyzer\getLinkStatistics(), FrontendUserAuthentication\getLoginFormData(), AbstractUserAuthentication\getLoginFormData(), SchedulerModuleController\getModuleContent(), ActionTask\getOverview(), PreviewHook\getPreviewConfiguration(), ViewModuleController\getPreviewFrameWidths(), PreviewHook\getPreviewInputCode(), ViewModuleController\getPreviewLanguages(), ActionTask\getTask(), AbstractConditionMatcher\getVariableCommon(), AbstractFunctionModule\handleExternalFunctionValue(), BackendUserController\indexAction(), UserElementsController\init(), EditController\init(), ParseHtmlController\init(), ElementBrowserController\init(), FileUploadController\init(), RenameFileController\init(), RteController\init(), ReplaceFileController\init(), FileSystemNavigationFrameController\init(), MoveElementController\init(), EditFileController\init(), CreateFolderController\init(), AddController\init(), FileController\init(), TableController\init(), SimpleDataHandlerController\init(), TypoScriptTemplateModuleController\init(), ColorpickerController\init(), NewContentElementController\init(), ClickMenu\init(), NewRecordController\init(), ImportExportController\init(), BaseScriptClass\init(), RecordList\init(), PageLayoutController\init(), EditDocumentController\init(), FrontendEditingController\initConfigOptions(), TypoScriptFrontendController\initFEuser(), BackendUserHandler\initialize(), FrontendUserHandler\initialize(), AdminPanelView\initialize(), AddImageHandler\initialize(), WebInfoController\initializeAction(), AbstractController\initializeAction(), RecyclerModuleController\initializeAction(), PermissionController\initializeAction(), ReviewController\initializeAction(), RequestHandler\initializeController(), AbstractTreeView\initializePositionSaving(), DatabaseBrowser\initVariables(), FolderBrowser\initVariables(), FileBrowser\initVariables(), SelectImageController\initVariables(), AbstractElementBrowser\initVariables(), BrowseLinksController\initVariables(), RichTextElement\isInFullScreenMode(), LoginController\isLoginInProgress(), ActionList\listURL(), EditDocumentController\localizationRedirect(), Clickmenu\main(), ElementBrowserFramesetController\main(), InfoPageTyposcriptConfigController\main(), TypoScriptTemplateConstantEditorModuleFunctionController\main(), FrontendLoginController\main(), LinkValidatorReport\main(), TypoScriptTemplateObjectBrowserModuleFunctionController\main(), VersionModuleController\main(), ImportExportController\main(), ColorpickerController\main(), ParseHtmlController\main_parse_html(), UserElementsController\main_user(), DatabaseIntegrityView\menuConfig(), ConfigurationView\menuConfig(), VersionModuleController\menuConfig(), BaseScriptClass\menuConfig(), RecordList\menuConfig(), FileListController\menuConfig(), PageLayoutController\menuConfig(), PageLayoutView\newLanguageButton(), Compatibility6ExtractionUpdate\performUpdate(), DbalAndAdodbExtractionUpdate\performUpdate(), EditDocumentController\preInit(), ClickMenu\printNewDBLevel(), PageTreeView\printTree(), QueryView\procesStoreControl(), AbstractController\redirect(), DocumentTemplate\redirectUrls(), ModuleTemplate\redirectUrls(), ToolController\registerExtensionConfigurationErrorHandler(), UsernamePasswordLoginProvider\render(), PagePathViewHelper\renderStatic(), TypoScriptTemplateInfoHook\save(), AdminPanelView\saveConfigOptions(), DatabaseRowInitializeNew\setDefaultsFromDevVals(), FrontendLoginController\showLogin(), SetupModuleController\simulateUser(), ReviewController\singleIndexAction(), AbstractDatabaseRecordList\start(), TypoScriptTemplateModuleController\templateMenu(), ArrayBrowser\tree(), LinkValidatorReport\updateBrokenLinks(), ActionTask\viewNewBackendUser(), ActionTask\viewRecordList(), and ArrayBrowser\wrapArrayKey().

static _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 167 of file GeneralUtility.php.

References ArrayUtility\mergeRecursiveWithOverrule().

Referenced by SchedulerModuleController\getModuleContent(), AbstractConditionMatcher\getVariableCommon(), and GeneralUtilityTest\gpMergedWillMergeArraysFromGetAndPost().

static _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 203 of file GeneralUtility.php.

Referenced by PermissionAjaxController\__construct(), ShortcutToolbarItem\addShortcut(), WidgetRequestBuilder\build(), UriBuilder\buildBackendUri(), GeneralUtilityTest\canRetrieveGlobalInputsThroughPost(), FrontendLoginController\changePassword(), SchedulerModuleController\executeTasks(), ServerRequestFactory\fromGlobals(), TypoScriptTemplateModuleController\getButtons(), ContentObjectRenderer\getData(), FrontendUserAuthentication\getLoginFormData(), AbstractUserAuthentication\getLoginFormData(), AbstractController\getPostValues(), PreviewHook\getPreviewConfiguration(), TypoScriptTemplateConstantEditorModuleFunctionController\main(), TypoScriptTemplateObjectBrowserModuleFunctionController\main(), TypoScriptTemplateInformationModuleFunctionController\main(), ImportExportController\main(), QueryGenerator\procesData(), SpellCheckingController\processRequest(), TypoScriptTemplateInfoHook\save(), SpellCheckingController\setPersonalDictionaryPath(), FrontendLoginController\showForgot(), ShortcutToolbarItem\tryAddingTheShortcut(), VersionModuleController\versioningMgm(), and ActionTask\viewNewBackendUser().

static 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
InvalidArgumentException if class extends
Parameters
string$className
object$instance
Returns
void

Definition at line 4056 of file GeneralUtility.php.

Referenced by DatabaseSystemLanguageRowsTest\addDataResolvesLanguageIsocodeFromDatabaseField(), TcaInputPlaceholdersTest\addDataReturnsValueFromRelationsRecursively(), DatabaseSystemLanguageRowsTest\addDataSetsDefaultLanguageAndAllEntries(), DatabaseSystemLanguageRowsTest\addDataSetsDefaultLanguageFlagFromPageTsConfig(), DatabaseSystemLanguageRowsTest\addDataSetsDefaultLanguageTitleFromPageTsConfig(), GeneralUtilityTest\addInstanceCalledTwoTimesMakesMakeInstanceReturnBothInstancesInAddingOrder(), GeneralUtilityTest\addInstanceForClassThatIsNoSubclassOfProvidedClassThrowsException(), GeneralUtilityTest\addInstanceForEmptyClassNameThrowsException(), GeneralUtilityTest\addInstanceMakesMakeInstanceReturnThatInstance(), GeneralUtilityTest\addInstanceWithSingletonInstanceThrowsException(), AbstractRepositoryTest\createDatabaseMock(), DataHandlerTest\doesCheckFlexFormValueHookGetsCalled(), DataHandlerTest\doesCheckModifyAccessListHookGetsCalled(), TemplateServiceTest\extensionStaticFilesAreNotProcessedIfNotExplicitlyRequested(), TemplateServiceTest\extensionStaticsAreProcessedIfExplicitlyRequested(), Typo3DatabaseBackendTest\flushByTagCallsDeleteOnConnection(), Typo3DatabaseBackendTest\flushByTagsCallsDeleteOnConnection(), Typo3DatabaseBackendTest\flushRemovesAllCacheEntries(), ContentObjectRendererTest\getContentObjectCallsMakeInstanceForNewContentObjectInstance(), FlexFormToolsTest\getDataStructureIdentifierReturnsValidIdentifierForParentLookup(), FlexFormToolsTest\getDataStructureIdentifierReturnsValidIdentifierForParentLookupAndBreaksLoop(), FlexFormToolsTest\getDataStructureIdentifierReturnsValidIdentifierForParentLookupAndPrefersSubField(), FlexFormToolsTest\getDataStructureIdentifierReturnsValidIdentifierForTableAndFieldPointerWithParentLookup(), FlexFormToolsTest\getDataStructureIdentifierThrowsExceptionIfNoValidPointerFoundUntilRoot(), FlexFormToolsTest\getDataStructureIdentifierThrowsExceptionIfParentRowLookupFails(), FlexFormToolsTest\getDataStructureIdentifierThrowsExceptionIfParentRowsFormALoop(), ResourceFactoryTest\getDriverObjectAcceptsDriverClassName(), ContentObjectRendererTest\getImageSourceCollectionHookCalled(), ExtensionServiceTest\getMockDatabaseConnection(), PageRepositoryTest\isGetPageHookCalled(), GeneralUtilityTest\makeInstanceCalledTwoTimesAfterAddInstanceReturnTwoDifferentInstances(), FlexFormToolsTest\parseDataStructureByIdentifierResolvesRecordSyntaxPointer(), TcaSelectItemsTest\processSelectFieldValueAddsInvalidValuesToItemsForSingleSelects(), TcaSelectItemsTest\processSelectFieldValueDoesNotCallRelationManagerForStaticOnlyItems(), GeneralUtilityTest\purgeInstancesDropsAddedInstance(), AbstractPluginTest\registeredResultBrowsersAreUsed(), IconViewHelperTest\renderCallsIconFactoryWithDefaultSizeAndDefaultStateAndReturnsResult(), IconViewHelperTest\renderCallsIconFactoryWithGivenOverlayAndReturnsResult(), IconViewHelperTest\renderCallsIconFactoryWithGivenSizeAndReturnsResult(), IconViewHelperTest\renderCallsIconFactoryWithGivenStateAndReturnsResult(), TypolinkViewHelperTest\renderReturnsResultOfContentObjectRenderer(), CropViewHelperTest\respectHtmlCanBeDisabled(), CropViewHelperTest\respectWordBoundariesCanBeDisabled(), IconForRecordViewHelperTest\setUp(), StandaloneViewTest\setUp(), DatabaseTreeDataProviderTest\setupDatabaseMock(), ServicesListReportTest\standaloneViewProphecy(), CropViewHelperTest\viewHelperCallsCropHtmlByDefault(), CropViewHelperTest\viewHelperCallsCropHtmlByDefault2(), and DatabaseWriterTest\writeLogInsertsToSpecifiedTable().

static array2xml ( array  $array,
  $NSprefix = '',
  $level = 0,
  $docTag = 'phparray',
  $spaceInd = 0,
array  $options = [],
array  $stackData = [] 
)
static

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:"
int$levelCurrent recursion level. Don't change, stay at zero!
string$docTagAlternative document tag. Default is "phparray".
int$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 1672 of file GeneralUtility.php.

References MathUtility\canBeInterpretedAsInteger().

Referenced by SetupCheck\checkLibXmlBug(), ResourceStorageTest\convertConfigurationArrayToFlexformXml(), Export\createXML(), FlexFormTools\flexArray2Xml(), and GeneralUtilityTest\xml2ArrayConvertsEmptyArraysToElementWithoutContent().

static array2xml_cs ( array  $array,
  $docTag = 'phparray',
array  $options = [],
  $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()
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9.

Definition at line 1643 of file GeneralUtility.php.

static arrayToLogString ( array  $arr,
  $valueList = [],
  $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.
int$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 4472 of file GeneralUtility.php.

Referenced by AbstractUserAuthentication\checkAuthentication(), ListSysLogCommand\execute(), FrontendUserAuthentication\fetchGroupData(), AuthenticationService\getUser(), and AbstractUserAuthentication\processLoginData().

static callUserFunction (   $funcName,
$params,
$ref,
  $_ = '',
  $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". However, using file references has been marked as deprecated and should be avoided, instead use the autoloading mechanism in place directly. 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$_Not used anymore since 6.0
int$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 3711 of file GeneralUtility.php.

References $GLOBALS, and debug().

Referenced by TypoScriptFrontendController\__construct(), TcaRecordTitle\addData(), DatabaseUserPermissionCheck\addData(), DataHandler\applyFiltersToValues(), ValidatorTask\buildMail(), BackendUserAuthentication\calcPerms(), GeneralUtilityTest\callUserFunctionAcceptsClosures(), GeneralUtilityTest\callUserFunctionCanCallFunction(), GeneralUtilityTest\callUserFunctionCanCallMethod(), GeneralUtilityTest\callUserFunctionCanPersistObjectsBetweenCalls(), GeneralUtilityTest\callUserFunctionCanPrefixFuncNameWithFilePath(), GeneralUtilityTest\callUserFunctionTrimsSpaces(), GeneralUtilityTest\callUserFunctionWillReturnFalseForInvalidParameters(), GeneralUtilityTest\callUserFunctionWillThrowExceptionForInvalidParameters(), FrontendLoginController\changePassword(), TypoScriptFrontendController\checkAlternativeIdMethods(), AbstractUserAuthentication\checkAuthentication(), TypoScriptFrontendController\checkEnableFields(), DataHandler\clear_cacheCmd(), TypoScriptFrontendController\connectToDB(), TypoScriptFrontendController\contentStrReplace(), TypoScriptFrontendController\createHashBase(), TypoScriptFrontendController\determineId(), PageRenderer\doCompressCss(), PageRenderer\doCompressJavaScript(), PageRenderer\doConcatenateCss(), PageRenderer\doConcatenateJavaScript(), FrontendEditingController\editAction(), PageRepository\enableFields(), BackendController\executeHook(), PageRenderer\executePostRenderHook(), PageRenderer\executePreRenderHook(), PageRenderer\executeRenderPostTransformHook(), TypoScriptParser\executeValueModifier(), TypoScriptFrontendController\fetch_the_id(), BackendUserAuthentication\fetchGroups(), WorkspaceService\fetchPagesWithVersionsInTable(), AbstractFrontend\flushByTag(), NoneElement\formatValue(), FrontendLoginController\generateAndSendHash(), TypoScriptFrontendController\generatePage_postProcessing(), ClientUtility\getBrowserInfo(), ButtonBar\getButtons(), TypoScriptFrontendController\getConfigArray(), ClientUtility\getDeviceType(), ContextMenuDataProvider\getDisableActions(), DocumentTemplate\getDocHeaderButtons(), TypoScriptFrontendController\getFromCache(), SetupModuleController\getJavaScript(), FileInfo\getMimeType(), BackendUserAuthentication\getPagePermsClause(), QueryView\getQueryResultCode(), BackendUtility\getRecordTitle(), AbstractDatabaseRecordList\getSearchFields(), BackendUtility\getUpdateSignalCode(), WorkspaceService\hasPageRecordVersions(), TypoScriptFrontendController\headerNoCache(), TypoScriptFrontendController\hook_eofe(), TemplateService\includeStaticTypoScriptSources(), TypoScriptFrontendController\initFEuser(), TypoScriptFrontendController\isOutputting(), ElementBrowserRecordList\isRowListingConditionFulfilled(), TemplateService\linkData(), AbstractUserAuthentication\logoff(), PageInformationController\main(), FrontendLoginController\main(), MoveElementController\main(), EditFileController\main(), TypoScriptTemplateInformationModuleFunctionController\main(), NewContentElementController\main(), PageLayoutController\main(), DatabaseRecordList\makeControl(), IconFactory\mapRecordTypeToIconIdentifier(), EvaluateDisplayConditions\matchUserCondition(), DocumentTemplate\moduleBody(), TypoScriptTemplateModuleController\noTemplate(), TypoScriptFrontendController\pageErrorHandler(), DataHandler\prepareCacheFlush(), TypoScriptFrontendController\previewInfo(), PagePositionMap\printRecordMap(), TypoScriptFrontendController\processOutput(), FrontendLoginController\processRedirect(), BackendUserAuthentication\recordEditAccessInternals(), UserElement\render(), SuggestWizardDefaultReceiver\renderRecord(), SetupModuleController\renderUserSetup(), VariableFrontend\set(), TypoScriptFrontendController\settingLanguage(), FrontendLoginController\showLogin(), AbstractUserAuthentication\start(), DocumentTemplate\startPage(), PageLayoutView\tt_content_drawHeader(), WorkspaceService\viewSingleRecord(), and PageTreeView\wrapTitle().

static camelCaseToLowerCaseUnderscored (   $string)
static

Returns a given CamelCasedString as an lowercase string with underscores. Example: Converts BlogExample to blog_example, and minimalValue to minimal_value

Parameters
string$stringString to be converted to lowercase underscore
Returns
string lowercase_and_underscored_string

Definition at line 1137 of file GeneralUtility.php.

Referenced by Command\__construct(), GeneralUtilityTest\camelCaseToLowerCaseUnderscored(), ExtensionUtility\registerPlugin(), and ResourceViewHelper\renderStatic().

static checkInstanceClassName (   $className,
  $instance 
)
staticprotected

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

Exceptions
InvalidArgumentException if $className is empty or if $instance is no instance of $className
Parameters
string$classNamea class name
object$instancean object
Returns
void

Definition at line 4077 of file GeneralUtility.php.

static classHasImplementation (   $className)
staticprotected

Checks if a class has a configured implementation

Parameters
string$className
Returns
bool

Definition at line 3938 of file GeneralUtility.php.

References $GLOBALS.

static 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 3159 of file GeneralUtility.php.

Referenced by AbstractUserAuthentication\start().

static 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
bool TRUE if a domain name mask from $list matches $baseIP

Definition at line 556 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\cmpFqdnReturnsFalse(), GeneralUtilityTest\cmpFqdnReturnsTrue(), and AbstractConditionMatcher\evaluateConditionCommon().

static 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
bool TRUE if an IP-mask from $list matches $baseIP

Definition at line 294 of file GeneralUtility.php.

Referenced by TypoScriptFrontendController\beLoginLinkIPList(), FrontendBackendUserAuthentication\checkBackendAccessSettingsFromInitPhp(), Bootstrap\checkBackendIpOrDie(), BackendUserAuthentication\checkLockToIP(), TypoScriptFrontendController\checkPageUnavailableHandler(), AbstractConditionMatcher\evaluateConditionCommon(), AuthenticationService\getGroups(), and Bootstrap\initializeErrorHandling().

static 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
bool TRUE if an IP-mask from $list matches $baseIP

Definition at line 316 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\cmpIPv4ReturnsFalseForNotMatchingAddress(), and GeneralUtilityTest\cmpIPv4ReturnsTrueForMatchingAddress().

static 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
bool TRUE If an baseIP matches any prefix

Definition at line 363 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\cmpIPv6ReturnsFalseForNotMatchingAddress(), and GeneralUtilityTest\cmpIPv6ReturnsTrueForMatchingAddress().

static 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
bool Returns TRUE if this setup is compatible with the provided version number
Todo:
Still needs a function to convert versions to branches
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9

Definition at line 702 of file GeneralUtility.php.

References VersionNumberUtility\convertVersionNumberToInteger().

static 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
bool$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 1371 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\compileSelectedGetVarsFromArrayFiltersIncomingData(), GeneralUtilityTest\compileSelectedGetVarsFromArrayUsesGetPostDataFallback(), EditDocumentController\compileStoreDat(), DocumentTemplate\makeShortcutUrl(), and ModuleTemplate\makeShortcutUrl().

static 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 505 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\compressIPv6CorrectlyCompressesAdresses(), and GeneralUtilityTest\compressIPv6CorrectlyCompressesAdressWithSomeAddressOnRightSide().

static convertMicrotime (   $microtime)
static

Returns microtime input to milliseconds

Parameters
string$microtimeMicrotime
Returns
int Microtime input string converted to an integer (milliseconds)
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9

Definition at line 901 of file GeneralUtility.php.

static copyDirectory (   $source,
  $destination 
)
static

Low level utility function to copy directories and content recursive

Parameters
string$sourcePath to source directory, relative to document root or absolute
string$destinationPath to destination directory, relative to document root or absolute

Definition at line 3372 of file GeneralUtility.php.

Referenced by ExtensionManagementService\copyDependencies(), GeneralUtilityTest\copyDirectoryCopiesFilesAndDirectoriesWithAbsolutePaths(), GeneralUtilityTest\copyDirectoryCopiesFilesAndDirectoriesWithRelativePaths(), UploadExtensionFileController\copyExtensionFolderToTempFolder(), InstallUtility\importInitialFiles(), Import\loadFile(), and UploadExtensionFileController\removeExtensionAndRestoreFromBackup().

static 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
RuntimeException If directory could not be created

Definition at line 2311 of file GeneralUtility.php.

References $GLOBALS, and GeneralUtility\mkdir().

static createVersionNumberedFilename (   $file)
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)
Returns
string Relative path with version filename including the timestamp

Definition at line 2673 of file GeneralUtility.php.

References $GLOBALS, and GeneralUtility\strtolower().

Referenced by RichTextElement\getRteInitJsCode(), PageRenderer\getStreamlinedFileName(), and PageRenderer\processJsFile().

static 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 1393 of file GeneralUtility.php.

Referenced by DatabaseRecordList\setCsvRow().

static 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.
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9

Definition at line 940 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\deHSCentitiesReturnsDecodedString().

static 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)
int$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 4375 of file GeneralUtility.php.

References $GLOBALS.

Referenced by AuthenticationService\authUser(), AbstractUserAuthentication\checkAuthentication(), AbstractUserAuthentication\createUserSession(), ValidatorResolver\createValidator(), DatabaseConnection\debug_check_recordset(), AbstractService\devLog(), DocumentTemplate\endPage(), FrontendUserAuthentication\fetchGroupData(), AbstractUserAuthentication\fetchUserSession(), AuthenticationService\getGroups(), CssStyledContentController\getImgColumnRelations(), AuthenticationService\getUser(), TypoScriptFrontendController\initUserGroups(), Container\log(), AbstractUserAuthentication\logoff(), RsaAuthService\processLoginData(), AbstractUserAuthentication\processLoginData(), AbstractUserAuthentication\setAndSaveSessionData(), AbstractUserAuthentication\setSessionCookie(), AbstractUserAuthentication\start(), SaltedPasswordService\updatePassword(), AbstractExceptionHandler\writeLogEntries(), and AbstractUserAuthentication\writeUC().

static 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 827 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\dirnameWithDataProvider(), and GeneralUtility\getIndpEnv().

static 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 671 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\expandListExpandsForTwoThousandElementsExpandsOnlyToThousandElementsMaximum(), GeneralUtilityTest\expandListExpandsIntegerRanges(), and ContentObjectRenderer\stdWrap_expandList().

static explodeUrl2Array (   $string,
  $multidim = false 
)
static

Explodes a string with GETvars (eg. "&id=1&type=2&ext[mykey]=3") into an array

Parameters
string$stringGETvars string
bool$multidimIf set, the string will be parsed into a multidimensional array if square brackets are used in variable names (using PHP function parse_str())
Returns
array Array of values. All values AND keys are rawurldecoded() as they properly should be. But this means that any implosion of the array again must rawurlencode it!
See also
implodeArrayForUrl()

Definition at line 1345 of file GeneralUtility.php.

Referenced by UriBuilder\buildBackendUri(), ShortcutToolbarItem\createShortcutAction(), GeneralUtilityTest\explodeUrl2ArrayTransformsParameterStringToFlatArray(), GeneralUtilityTest\explodeUrl2ArrayTransformsParameterStringToNestedArray(), FrontendLoginController\getPreserveGetVars(), RenameFileController\init(), ReplaceFileController\init(), ShortcutToolbarItem\initShortcuts(), TemplateService\linkData(), NewContentElementController\removeInvalidElements(), and EditRecordViewHelper\renderStatic().

static 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
bool$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 2138 of file GeneralUtility.php.

References $GLOBALS.

Referenced by FileLockStrategy\acquire(), SimpleLockStrategy\acquire(), LocalDriver\addFile(), GraphicalFunctions\combineExec(), LocalDriver\copyFileWithinStorage(), LocalDriverTest\copyFolderWithinStorageCopiesFileInSingleSubFolderToNewFolderName(), LocalDriver\createFile(), EnableFileService\createInstallToolEnableFile(), GeneralUtilityTest\fixPermissionsCorrectlySetsPermissionsRecursive(), GeneralUtilityTest\fixPermissionsDoesNotSetPermissionsToNotAllowedPath(), GeneralUtilityTest\fixPermissionsSetsDefaultPermissionsToDirectory(), GeneralUtilityTest\fixPermissionsSetsDefaultPermissionsToFile(), GeneralUtilityTest\fixPermissionsSetsGroup(), GeneralUtilityTest\fixPermissionsSetsPermissionsToDirectory(), GeneralUtilityTest\fixPermissionsSetsPermissionsToDirectoryWithTrailingSlash(), GeneralUtilityTest\fixPermissionsSetsPermissionsToFile(), GeneralUtilityTest\fixPermissionsSetsPermissionsToHiddenDirectory(), GeneralUtilityTest\fixPermissionsSetsPermissionsToHiddenFile(), GeneralUtilityTest\fixPermissionsSetsPermissionsWithRelativeFileReference(), YouTubeHelper\getPreviewImage(), VimeoHelper\getPreviewImage(), GraphicalFunctions\gifCompress(), GraphicalFunctions\imageMagickExec(), GraphicalFunctions\ImageWrite(), GraphicalFunctions\readPngGif(), LocalDriver\replaceFile(), MboxTransport\send(), FileBackend\set(), SimpleFileBackend\set(), and SessionService\write().

static 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
bool Whether the action was successful

Definition at line 2386 of file GeneralUtility.php.

References StringUtility\getUniqueId().

Referenced by ClearCacheService\clearAll(), and SimpleFileBackend\flush().

static flushOutputBuffers ( )
static

Ends and flushes all output buffers

Returns
void
Deprecated:
since TYPO3 CMS 8, will be removed in TYPO3 CMS 9.

Definition at line 4569 of file GeneralUtility.php.

References GeneralUtility\strtolower().

static formatSize (   $sizeInBytes,
  $labels = '',
  $base = 0 
)
static

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

Parameters
int$sizeInBytesNumber of bytes to format.
string$labelsBinary unit name "iec", decimal unit name "si" or labels for bytes, kilo, mega, giga, and so on separated by vertical bar (|) and possibly encapsulated in "". Eg: " | K| M| G". Defaults to "iec".
int$baseThe unit base if not using a unit name. Defaults to 1024.
Returns
string Formatted representation of the byte number, for output.

Definition at line 853 of file GeneralUtility.php.

References $GLOBALS.

Referenced by SearchController\compileSingleResultRow(), ImportExport\displayContentOverview(), Export\export_addFile(), Export\export_addRecord(), Export\export_addSysFile(), FileList\formatFileList(), GeneralUtilityTest\formatSizeTranslatesBytesToHigherOrderRepresentation(), NoneElement\formatValue(), Clipboard\getContentFromTab(), ConfigurationStatus\getDeprecationLogStatus(), FileList\getFolderInfo(), FileFacade\getSize(), UserElementsController\main_user(), SearchFormController\makeInfo(), AbstractContainer\previewFieldValue(), MemoryPeakUsageProcessor\processLogRecord(), MemoryUsageProcessor\processLogRecord(), FileBrowser\renderFilesInFolder(), AddImageHandler\renderFilesInFolder(), FileLinkHandler\renderItem(), SizeViewHelper\renderStatic(), and ContentObjectRenderer\stdWrap_bytes().

static freetypeDpiComp (   $fontSize)
static

Function to compensate for DPI resolution.

Parameters
float$fontSizefont size for freetype function call
Returns
float compensated font size based on 96 dpi

Definition at line 4246 of file GeneralUtility.php.

Referenced by GraphicalFunctions\ImageTTFBBoxWrapper(), and GraphicalFunctions\ImageTTFTextWrapper().

static generateRandomBytes (   $bytesToReturn)
static

Returns a string of highly randomized bytes (over the full 8-bit range).

Parameters
int$bytesToReturnNumber of bytes to return
Returns
string Random Bytes
Deprecated:
since TYPO3 CMS 8, this method will be removed in TYPO3 CMS 9. Use ->generateRandomBytes() instead

Definition at line 1068 of file GeneralUtility.php.

static 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 2414 of file GeneralUtility.php.

Referenced by CrawlerHook\crawler_execute_type2(), GeneralUtilityTest\getDirsReturnsArrayOfDirectoriesFromGivenDirectory(), GeneralUtilityTest\getDirsReturnsStringErrorOnPathFailure(), and DependencyUtility\getExtensionFromInExtensionRepository().

static 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 1437 of file GeneralUtility.php.

References GeneralUtility\strtolower().

Referenced by ContentObjectRenderer\_parseFunc(), ContentObjectRenderer\addParams(), ContentObjectRenderer\encaps_lineSplit(), BrowseLinksController\initVariables(), AbstractPlugin\pi_openAtagHrefInJSwindow(), AccessibilityLinkController\removeAccessibilityIcon(), and Indexer\splitHTMLContent().

static 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.
bool$regDirsIf set, directories are also included in output.
int$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 2506 of file GeneralUtility.php.

Referenced by AbstractItemProvider\addItemsFromFolder(), CrawlerHook\crawler_execute_type2(), FileHandlingUtility\createZipFileFromExtension(), RteImagesCommand\findAllRteFilesInDirectory(), LostFilesCommand\findLostFiles(), GeneralUtilityTest\getAllFilesAndFoldersInPathReturnsArrayWithMd5Keys(), and TypoScriptParser\includeDirectory().

static getBytesFromSizeMeasurement (   $measurement)
static

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

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

Definition at line 2632 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\getBytesFromSizeMeasurementCalculatesCorrectByteValue().

static 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 3911 of file GeneralUtility.php.

References ClassLoadingInformation\getClassNameForAlias().

static getDeprecationLogFileName ( )
static

Gets the absolute path to the deprecation log file.

Returns
string Absolute path to the deprecation log file

Definition at line 4430 of file GeneralUtility.php.

References $GLOBALS.

Referenced by ConfigurationStatus\getDeprecationLogFileLink(), and ConfigurationStatus\getDeprecationLogStatus().

static getFileAbsFileName (   $filename,
  $_ = null,
  $_2 = null 
)
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
bool$_- obsolete, will be removed in TYPO3 CMS 9
bool$_2- obsolete, will be removed in TYPO3 CMS 9
Returns
string Returns the absolute filename of $filename if valid, otherwise blank string.

Definition at line 3272 of file GeneralUtility.php.

References ExtensionManagementUtility\extPath(), and ExtensionManagementUtility\isLoaded().

Referenced by AbstractItemProvider\addItemsFromFolder(), AbstractItemProvider\addItemsFromPageTsConfig(), AdditionalResourceService\addLocalizationResource(), ExtensionManagementUtility\addModule(), DocumentTemplate\addStyleSheetDirectory(), FluidTemplateContentObject\applyStandardWrapToFluidPaths(), AbstractDataHandlerActionTestCase\assertAssertionDataSet(), MicroDataSchema\buildJavascriptConfiguration(), Typo3Link\buildJSClassesAnchorArray(), Import\checkOrCreateDir(), PageRenderer\computeRequireJsConfig(), ExtensionManagementUtility\configureModule(), FilesWithMultipleReferencesCommand\copyMultipleReferencedFiles(), RteImagesCommand\copyMultipleReferencedRteImages(), CrawlerHook\crawler_execute_type2(), FormManagerController\createAction(), LostFilesCommand\deleteLostFiles(), RteImagesCommand\deleteLostFiles(), TaskModuleController\description(), UpdateScriptUtility\determineUpdateClassName(), TemplatePaths\ensureAbsolutePath(), ValidatorTask\execute(), FormPersistenceManager\exists(), Export\export_addFile(), Export\export_addFilesFromRelations(), TypoScriptParser\extractIncludes(), Indexer\extractLinks(), ExtensionRepository\findAllLoaded(), SoftReferenceIndex\findRef_images(), BitmapIconProvider\generateInlineMarkup(), SvgIconProvider\generateInlineMarkup(), BitmapIconProvider\generateMarkup(), SvgIconProvider\generateMarkup(), FileHandlingUtility\getAbsolutePath(), FormPersistenceManager\getAccessibleExtensionFolders(), RichTextElement\getContentCssFileNames(), ConfigurationUtility\getDefaultConfigurationRawString(), OpendocsToolbarItem\getDropDown(), TemplateService\getFileName(), ResourceCompressor\getFilenameFromMainDir(), BackendUtility\getFlexFormDS(), ImageManipulationWizard\getFluidTemplateObject(), BackendController\getFluidTemplateObject(), PageLayoutController\getHeaderFlashMessagesForCurrentPid(), YamlSourceTest\getHeaderFromFileReturnsHeaderPart(), T3editorElement\getHTMLCodeForEditor(), DocumentTemplate\getHtmlTemplate(), FormEngineUtility\getIconHtml(), TableManualRepository\getImages(), ImageViewHelper\getImageUri(), CliRequestHandler\getIncludeScriptByCommandLineKey(), OpendocsToolbarItem\getItem(), DocumentationService\getOfficialDocuments(), LocallangXmlParser\getParsedData(), AbstractXmlParser\getParsedData(), T3editor\getPreparedTemplate(), ServicesListReport\getReport(), RichTextElement\getRteInitJsCode(), TableManualRepository\getSeeAlsoLinks(), PageRenderer\getStreamlinedFileName(), PageRenderer\getTemplateForPart(), LoginController\getUriForFileName(), DocumentTemplate\getUriForFileName(), GraphicalFunctions\ImageTTFBBoxWrapper(), GraphicalFunctions\ImageTTFTextWrapper(), AbstractDataHandlerActionTestCase\importScenarioDataSet(), TypoScriptParser\includeDirectory(), TypoScriptParser\includeFile(), BackendController\includeLegacyBackendItems(), Indexer\indexRegularDocument(), ColorpickerController\init(), CharsetConverter\initCaseFolding(), CharsetConverter\initCharset(), AbstractLinkHandler\initialize(), AbstractAction\initializeHandle(), CharsetConverter\initToASCII(), CharsetConverter\initUnicodeData(), FormManagerController\isValidTemplatePath(), YamlSource\load(), LocalizationFactory\localizationOverride(), TypoScriptTemplateConstantEditorModuleFunctionController\main(), TemplateAnalyzerModuleFunctionController\main(), MoveElementController\main(), RenameFileController\main(), EditFileController\main(), TypoScriptTemplateObjectBrowserModuleFunctionController\main(), ReplaceFileController\main(), TypoScriptTemplateInformationModuleFunctionController\main(), CreateFolderController\main(), DatabaseIntegrityView\main(), ElementInformationController\main(), PageLayoutController\main(), SearchFormController\makeItemTypeIcon(), GraphicalFunctions\makeText(), UploadedFile\moveTo(), TypoScriptFrontendController\pageErrorHandler(), FlexFormTools\parseDataStructureByIdentifier(), XmlnsNamespaceTemplatePreProcessorTest\preProcessSourceExtractsNamespacesAndRemovesTagsAndAttributesDataProvider(), AbstractContainer\previewFieldValue(), Import\processSoftReferences_saveFile(), Import\processSoftReferences_saveFile_createRelFile(), LanguageController\removeLanguageAction(), UsernamePasswordLoginProvider\render(), OuterWrapContainer\render(), RichTextElement\render(), BackendController\render(), TaskModuleController\renderInformationContent(), TaskModuleController\renderListMenu(), PageRenderer\renderMainJavaScriptLibraries(), ResourceViewHelper\renderStatic(), IconViewHelper\renderStatic(), AdditionalResourceService\resolvePath(), AbstractBackendController\resolveResourcePaths(), ResourceFactory\retrieveFileOrFolderObject(), FormPersistenceManager\save(), LanguageStore\setConfiguration(), FluidTemplateContentObject\setLayoutRootPath(), FileWriter\setLogFile(), FluidTemplateContentObject\setPartialRootPath(), ServicesListReportTest\standaloneViewProphecy(), DocumentTemplate\startPage(), DocumentationService\unzipDocumentPackage(), TerService\unzipTranslationFile(), TerService\updateTranslation(), TaskModuleController\urlInIframe(), and Import\writeFileVerify().

static 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.
bool$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 2444 of file GeneralUtility.php.

Referenced by DocumentTemplate\addStyleSheetDirectory(), GeneralUtilityTest\getFilesInDirByExtensionDoesNotFindFilesWithOtherExtensions(), GeneralUtilityTest\getFilesInDirByExtensionFindsFiles(), GeneralUtilityTest\getFilesInDirCanOrderByMtime(), GeneralUtilityTest\getFilesInDirCanPrependPath(), GeneralUtilityTest\getFilesInDirDoesNotFindDirectories(), GeneralUtilityTest\getFilesInDirDoesNotFindDotfiles(), GeneralUtilityTest\getFilesInDirDoesSortAlphabeticallyByDefault(), GeneralUtilityTest\getFilesInDirExcludesFilesMatchingPattern(), GeneralUtilityTest\getFilesInDirFindsHiddenFile(), GeneralUtilityTest\getFilesInDirFindsRegularFile(), GeneralUtilityTest\getFilesInDirReturnsArrayWithMd5OfElementAndPathAsArrayKey(), CleanUp\getTypo3TempStatistics(), BackendController\loadResourcesForRegisteredNavigationComponents(), and UserElementsController\main_user().

static getHostname (   $requestHost = true)
static

Get the fully-qualified domain name of the host.

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

Definition at line 3224 of file GeneralUtility.php.

static getImplementationForClass (   $className)
staticprotected

Returns the configured implementation of the class

Parameters
string$className
Returns
string

Definition at line 3927 of file GeneralUtility.php.

References $GLOBALS.

static 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
UnexpectedValueException

Definition at line 2778 of file GeneralUtility.php.

References $GLOBALS, GeneralUtility\dirname(), PathUtility\stripPathSitePrefix(), and GeneralUtility\strtolower().

Referenced by SessionService\__construct(), TypoScriptFrontendController\__construct(), VersionModuleController\adminLinks(), GeneralUtilityTest\allGetIndpEnvCallsRelatedToHostNamesCallIsAllowedHostHeaderValue(), BackendUserAuthentication\backendCheckLogin(), TypoScriptFrontendController\beLoginLinkIPList(), WidgetRequestBuilder\build(), UriBuilder\buildBackendUri(), SelectImageController\buildImageMarkup(), WidgetRequestBuilderTest\buildSetsBaseUri(), RequestBuilderTest\buildSetsRequestBaseUri(), RequestBuilderTest\buildSetsRequestRequestUri(), WidgetRequestBuilderTest\buildSetsRequestUri(), UriBuilder\buildUri(), TypoScriptFrontendController\checkAlternativeIdMethods(), AbstractUserAuthentication\checkAuthentication(), FrontendBackendUserAuthentication\checkBackendAccessSettingsFromInitPhp(), Bootstrap\checkBackendIpOrDie(), GeneralUtilityTest\checkisOnCurrentHostInvalidHosts(), BackendUserAuthentication\checkLockToIP(), TypoScriptFrontendController\checkPageUnavailableHandler(), Bootstrap\checkSslBackendAndRedirectIfNeeded(), ImportExportController\checkUpload(), RichTextElement\clientInfo(), StandaloneViewTest\constructorSetsBaseUri(), StandaloneViewTest\constructorSetsRequestUri(), Indexer\createLocalPathUsingDomainURL(), ResourceCompressor\createMergedFile(), AbstractElementBrowser\determineScriptUrl(), AbstractRecordList\determineScriptUrl(), AbstractLinkBrowserController\determineScriptUrl(), AbstractTreeView\determineScriptUrl(), AdminPanelView\display(), RecordHistory\displaySettings(), TypoScriptFrontendController\domainNameMatchesCurrentRequest(), DebugExceptionHandler\echoExceptionWeb(), BackendUtility\editOnClick(), FrontendEditPanel\editPanel(), RsaEncryptionEncoder\enableRsaEncryption(), AbstractConditionMatcher\evaluateConditionCommon(), LoadExtensions\executeAction(), IndexerTest\extractHyperLinksRecurnsCorrectPathWithBaseUrl(), TypoScriptFrontendController\fetch_the_id(), BackendUserAuthentication\fetchGroups(), TypoScriptFrontendController\findDomainRecord(), ServerRequestFactory\fromGlobals(), PreviewController\generateJavascript(), BackendController\generateJavascript(), ConditionMatcherTest\genericGetVariablesSucceedsWithNamespaceIENV(), PathUtility\getAbsoluteWebPath(), ActionTask\getActions(), AbstractUserAuthentication\getAuthInfoArray(), FileLinktype\getBrokenUrl(), InternalLinktype\getBrokenUrl(), VersionModuleController\getButtons(), AbstractUserAuthentication\getCookieDomain(), AbstractStandaloneMessage\getDefaultMarkers(), ConfigurationStatus\getDeprecationLogStatus(), ExtDirectApi\getExtDirectApi(), PageRepository\getExtURL(), ResourceCompressor\getFilenameFromMainDir(), ImageService\getImageUri(), GeneralUtilityTest\getIndpEnvForHostAllowsAllHostnameValuesIfHostPatternIsSetToAllowAll(), GeneralUtilityTest\getIndpEnvForHostThrowsExceptionForNotAllowedHostnameValues(), GeneralUtilityTest\getIndpEnvTypo3HostOnlyParsesHostnamesAndIpAdresses(), GeneralUtilityTest\getIndpEnvTypo3PortParsesHostnamesAndIpAdresses(), GeneralUtilityTest\getIndpEnvTypo3SitePathReturnNonEmptyString(), GeneralUtilityTest\getIndpEnvTypo3SitePathReturnsStringEndingWithSlash(), GeneralUtilityTest\getIndpEnvTypo3SitePathReturnsStringStartingWithDrive(), GeneralUtilityTest\getIndpEnvTypo3SitePathReturnsStringStartingWithSlash(), SecurityStatusReport\getInstallToolProtectionStatus(), RecyclerModuleController\getJavaScriptConfiguration(), BackendUtility\getLinkToDataHandlerAction(), PreviewHook\getPreviewConfiguration(), ElementInformationController\getRecordActions(), PageLayoutView\getTable_pages(), LoginController\getUriForFileName(), DocumentTemplate\getUriForFileName(), AbstractConditionMatcher\getVariableCommon(), RequestHandler\handleRequest(), AbstractUserAuthentication\hashLockClause_getHashInt(), TypoScriptFrontendControllerHook\hook_eofe(), UserElementsController\init(), Bootstrap\initializeErrorHandling(), BrowseLinksController\initVariables(), AbstractUserAuthentication\ipLockClause_remoteIPNumber(), FrontendLoginController\isInCurrentDomain(), GeneralUtilityTest\isOnCurrentHostReturnsTrueWithCurrentHost(), FrontendLoginController\isRelativeUrl(), PageLayoutView\languageSelector(), PageLayoutView\linkEditContent(), SearchController\linkPage(), SearchFormController\linkPage(), ListController\main(), InfoPageTyposcriptConfigController\main(), FileController\main(), VersionModuleController\main(), TableController\main(), TypoScriptTemplateInformationModuleFunctionController\main(), SimpleDataHandlerController\main(), PageLayoutController\makeButtons(), PageLayoutView\makeOrdinaryList(), DatabaseRecordList\makeReturnUrl(), DocumentTemplate\makeShortcutIcon(), ModuleTemplate\makeShortcutIcon(), PageLayoutView\newContentElementOnClick(), PagePositionMap\onClickEvent(), TypoScriptFrontendController\pageErrorHandler(), PageLayoutView\pages_drawItem(), AbstractPlugin\pi_getEditIcon(), EditDocumentController\preInit(), SearchFormController\printResultSectionLinks(), WebProcessor\processLogRecord(), NewRecordController\regularNew(), AccessibilityLinkController\removeAccessibilityIcon(), AbstractUserAuthentication\removeCookie(), UsernamePasswordLoginProvider\render(), YouTubeRenderer\render(), InlineRecordContainer\render(), FileBrowser\renderFilesInFolder(), AddImageHandler\renderFilesInFolder(), TranslationStatusController\renderL10nTable(), DatabaseRecordList\renderListHeader(), EditLinkViewHelper\renderStatic(), DeleteLinkViewHelper\renderStatic(), EditSysFileMetadataRecordViewHelper\renderStatic(), LinkValidatorReport\renderTableRow(), ResourceCompressor\returnFileReference(), EditDocumentController\setDocument(), AbstractUserAuthentication\setSessionCookie(), FrontendLoginController\showLogin(), ReviewController\singleIndexAction(), AbstractUserAuthentication\start(), TypoScriptTemplateInformationModuleFunctionController\tableRowData(), TypoScriptFrontendController\tempPageCacheContent(), RteHtmlParser\TS_AtagToAbs(), RteHtmlParser\TS_images_rte(), RteHtmlParser\TS_links_db(), RteHtmlParser\TS_links_rte(), PageLayoutView\tt_content_drawHeader(), FrontendLoginControllerTest\typo3SitePathEqualsStubSitePath(), FrontendLoginControllerTest\typo3SitePathEqualsStubSitePathAfterChangingInTest(), FrontendLoginControllerTest\typo3SiteUrlEqualsStubSiteUrl(), FrontendLoginControllerTest\typo3SiteUrlEqualsStubSiteUrlAfterChangingInTest(), RteHtmlParser\urlInfoForLinkTags(), VersionModuleController\versioningMgm(), DocumentTemplate\viewPageIcon(), ActionTask\viewRecordList(), ActionTask\viewSqlQuery(), WebProcessorTest\webProcessorAddsWebDataToLogRecord(), AbstractExceptionHandler\writeLog(), ErrorHandler\writeLog(), BackendUserAuthentication\writelog(), AbstractExceptionHandler\writeLogEntries(), SearchController\writeSearchStat(), and SearchFormController\writeSearchStat().

static getMaximumPathLength ( )
static

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

Returns
int The maximum available path length
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9

Definition at line 2651 of file GeneralUtility.php.

static getMaxUploadFileSize ( )
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.

Returns
int The maximum size of uploads that are allowed (measured in kilobytes)

Definition at line 2614 of file GeneralUtility.php.

Referenced by ResourceStorage\assureFileUploadPermissions(), and InlineControlContainer\renderPossibleRecordsSelectorTypeGroupDB().

static getRandomHexString (   $count)
static

Returns a hex representation of a random byte string.

Parameters
int$countNumber of hex characters to return
Returns
string Random Bytes
Deprecated:
since TYPO3 CMS 8, this method will be removed in TYPO3 CMS 9. Use ::generateRandomHexString() instead

Definition at line 1100 of file GeneralUtility.php.

static getUserObj (   $classRef)
static

This method should be avoided, as it will be deprecated completely in TYPO3 v9, and will be removed in TYPO3 v10. Instead use makeInstance() directly.

Creates and returns reference to a user defined object. This function can return an object reference if you like.

Parameters
string$classRefClass reference, '[file-reference":"]class-name'. You can prefix the class name with "[file-reference]:" and GeneralUtility::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". However, the file reference part is marked as deprecated as the class loading mechanism via composer or the autoloading part of TYPO3 should be used instead.
Returns
object The instance of the class asked for. Instance is created with GeneralUtility::makeInstance
See also
callUserFunction()

Definition at line 3827 of file GeneralUtility.php.

Referenced by ClearCacheToolbarItem\__construct(), ActionTask\__construct(), LinkAnalyzer\__construct(), ExtensionManagerConfigurationUtility\buildHashMethodSelector(), AbstractDatabaseRecordList\buildQueryParameters(), DataHandler\checkValueForFlex(), CleanerCommand\cli_main(), DatabaseConnection\connectDB(), CrawlerHook\crawler_execute(), CrawlerHook\crawler_init(), MediaItemHooks\customMediaParams(), MediaItemHooks\customMediaRenderTypes(), DataHandler\deleteAction(), SaltFactory\determineSaltingHashingMethod(), AdminPanelView\display(), FrontendEditingController\displayEditIcons(), FrontendEditingController\displayEditPanel(), FileDumpController\dumpAction(), BackendUserAuthentication\fetchGroups(), AbstractMenuContentObject\filterMenuPages(), ExtDirectApi\generateAPI(), TypoScriptFrontendController\generatePage_postProcessing(), DataHandler\getCheckModifyAccessListHookObjects(), ContentObjectRenderer\getData(), BackendUtility\getFlexFormDS(), ContentObjectRenderer\getGetImgResourceHookObjects(), ContentObjectRenderer\getImageSourceCollection(), SystemStatus\getMissingPhpModulesOfExtensions(), PageRepository\getPage(), PageRepository\getPagesOverlay(), PageRepository\getRecordOverlay(), SaltFactory\getSaltingInstance(), StorageFactory\getStorage(), TypoScriptFrontendController\handleDataSubmission(), CssStyledContentController\hookRequest(), IndexSearchRepository\hookRequest(), SearchController\hookRequest(), SearchFormController\hookRequest(), ModulesController\indexAction(), Indexer\init(), InlineRecordContainer\initHookObjects(), SearchFormController\initialize(), LinkValidatorReport\initialize(), Indexer\initializeExternalParsers(), SearchController\initializeExternalParsers(), FrontendBackendUserAuthentication\initializeFrontendEdit(), ElementBrowserController\main(), NewContentElementController\main(), ElementInformationController\main(), ParseHtmlController\main_parse_html(), DatabaseRecordList\makeClip(), DatabaseRecordList\makeControl(), FileList\makeEdit(), AbstractDatabaseRecordList\makeQueryArray(), IconFactory\mapRecordTypeToOverlayIdentifier(), DataHandler\moveRecord(), DataHandler\moveRecord_raw(), ExtendedFileUtility\processData(), ExtDirectRouter\processRpc(), SearchController\procSearchWordsByLexer(), TypoScriptFrontendController\realPageCacheContent(), DatabaseRecordList\renderListHeader(), RteHtmlParser\RTE_transform(), SaltFactory\setPreferredHashingMethod(), BackendUtility\softRefParserObj(), ContentObjectRenderer\start(), RteHtmlParser\TS_links_db(), RteHtmlParser\TS_links_rte(), PageLayoutView\tt_content_drawFooter(), and BackendUtility\viewOnClick().

static hideIfDefaultLanguage (   $localizationConfiguration)
static

Returns true if the "l18n_cfg" field value is not set to hide pages in the default language

Parameters
int$localizationConfiguration
Returns
bool

Definition at line 3578 of file GeneralUtility.php.

Referenced by AbstractMenuContentObject\filterMenuPages(), AbstractMenuContentObject\isSubMenu(), AbstractMenuContentObject\prepareMenuItemsForLanguageMenu(), TranslationStatusController\renderL10nTable(), and TypoScriptFrontendController\settingLanguage().

static 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
int$l18n_cfg_fieldValueValue from "l18n_cfg" field of a page record
Returns
bool TRUE if the page should be hidden

Definition at line 3566 of file GeneralUtility.php.

References $GLOBALS.

Referenced by AbstractMenuContentObject\filterMenuPages(), AbstractMenuContentObject\isSubMenu(), AbstractMenuContentObject\prepareMenuItemsForLanguageMenu(), TranslationStatusController\renderL10nTable(), and TypoScriptFrontendController\settingLanguage().

static 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 being used in a different context
Returns
string resulting (hexadecimal) HMAC currently with a length of 40 (HMAC-SHA-1)

Definition at line 738 of file GeneralUtility.php.

References $GLOBALS.

Referenced by FormInlineAjaxController\addFlexFormDataStructurePointersFromAjaxContext(), LinkBrowserController\areFieldChangeFunctionsValid(), ColorpickerController\areFieldChangeFunctionsValid(), PageRenderer\computeRequireJsConfig(), FileDumpController\dumpAction(), AbstractFormProtection\generateToken(), LinkBrowserController\getBodyTagAttributes(), FileWriter\getDefaultLogFileName(), ResourceStorage\getPublicUrl(), SessionService\getSessionSavePath(), GeneralUtilityTest\hmacReturnsEqualHashesForEqualInput(), GeneralUtilityTest\hmacReturnsHashOfProperLength(), GeneralUtilityTest\hmacReturnsNoEqualHashesForNonEqualInput(), ContentObjectRenderer\imageLinkWrap(), FileSystemNavigationFrameController\init(), ShowImageController\initialize(), InlineStackProcessor\injectAjaxConfiguration(), ImageManipulationWizard\isValidToken(), FolderTreeView\PMiconATagWrap(), SuggestWizard\renderSuggestSelector(), SuggestWizardController\searchAction(), InstallToolFormProtectionTest\tokenFromSessionDataIsAvailableForValidateToken(), BackendFormProtectionTest\tokenFromSessionDataIsAvailableForValidateToken(), and AbstractFormProtection\validateToken().

static hostHeaderValueMatchesTrustedHostsPattern (   $hostHeaderValue)
static

Checks if the provided host header value matches the trusted hosts pattern without any preprocessing.

Parameters
string$hostHeaderValue
Returns
bool

Definition at line 3107 of file GeneralUtility.php.

References $GLOBALS, and GeneralUtility\strtolower().

Referenced by SetupCheck\checkTrustedHostPattern().

static idnaEncode (   $value)
static

Returns an ASCII string (punicode) representation of $value

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

Definition at line 1080 of file GeneralUtility.php.

Referenced by DataHandler\checkValue_input_Eval(), MailMessage\idnaEncodeAddress(), and GeneralUtilityTest\idnaEncodeConvertsUnicodeCharsToASCIIString().

static 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 ImageMagick & GraphicsMagick
Deprecated:
since TYPO3 CMS 8, will be removed in TYPO3 CMS 9. - use CommandUtility directly

Definition at line 4496 of file GeneralUtility.php.

References CommandUtility\imageMagickCommand().

static 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)
bool$skipBlankIf set, parameters which were blank strings would be removed.
bool$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 1322 of file GeneralUtility.php.

Referenced by Indexer\backend_initIndexer(), BackendUtility\buildScriptUrl(), UriBuilder\buildTypolinkConfiguration(), UriBuilder\buildUri(), TypoScriptFrontendController\calculateLinkVars(), EditDocumentController\compileStoreDat(), FolderUtilityRenderer\createFolder(), EditDocumentController\generatePreviewCode(), WorkspaceService\generateWorkspacePreviewLink(), LinkBrowserController\getBodyTagAttributes(), AbstractLinkBrowserController\getBodyTagAttributes(), FileBrowser\getBulkSelector(), AddImageHandler\getBulkSelector(), FolderUtilityRenderer\getFileSearchField(), FrontendLoginController\getPreserveGetVars(), DocumentTemplate\getTabMenu(), GeneralUtilityTest\implodeArrayForUrlBuildsValidParameterString(), GeneralUtilityTest\implodeArrayForUrlCanSkipEmptyParameters(), GeneralUtilityTest\implodeArrayForUrlCanUrlEncodeKeyNames(), EditDocumentController\init(), TemplateService\linkData(), SearchController\linkPage(), SearchFormController\linkPage(), TypoScriptFrontendController\makeCacheHash(), DocumentTemplate\makeShortcutUrl(), ModuleTemplate\makeShortcutUrl(), AbstractPlugin\pi_linkTP(), ElementBrowserFolderTreeView\PM_ATagWrap(), ElementBrowserPageTreeView\PM_ATagWrap(), ElementBrowserPageTreeView\printTree(), NewContentElementController\removeInvalidElements(), FolderUtilityRenderer\uploadForm(), ElementBrowserFolderTreeView\wrapIcon(), ElementBrowserPageTreeView\wrapTitle(), and ElementBrowserFolderTreeView\wrapTitle().

static 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
bool$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!
bool$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 1509 of file GeneralUtility.php.

References GeneralUtility\strtolower().

Referenced by ContentObjectRenderer\addParams(), ContentObjectRenderer\encaps_lineSplit(), CustomAttributeController\render_clickenlarge(), CssStyledContentController\render_table(), ImageRenderingController\renderImageAttributes(), AbstractMenuContentObject\setATagParts(), RteHtmlParser\transformStyledATags(), RteHtmlParser\TS_AtagToAbs(), RteHtmlParser\TS_images_rte(), RteHtmlParser\TS_links_db(), BackendUtility\wrapClickMenuOnIcon(), PageTreeView\wrapTitle(), and FolderTreeView\wrapTitle().

static initSysLog ( )
static

Initialize the system log.

Returns
void
See also
sysLog()

Definition at line 4259 of file GeneralUtility.php.

References $GLOBALS, MathUtility\forceIntegerInRange(), and GeneralUtility\strtoupper().

static 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
bool TRUE if $item is in $list

Definition at line 638 of file GeneralUtility.php.

Referenced by ContentObjectRenderer\_parseFunc(), DatabaseRowDefaultValues\addData(), AbstractTreeView\addField(), AbstractItemProvider\addItemsFromFolder(), ExtensionManagementUtility\addModule(), CategoryRegistry\addTcaColumn(), ExtensionManagementUtility\addToAllTCAtypes(), UserSettingsController\addToList(), BackendUtility\blindUserNames(), SelectFont\buildJSFontItemsConfig(), AbstractDatabaseRecordList\buildQueryParameters(), WorkspaceService\canCreatePreviewLink(), BackendUserAuthentication\check(), BackendUserAuthentication\checkAuthMode(), ResourceStorage\checkFileExtensionPermission(), ContentObjectRenderer\checkIf(), ModuleLoader\checkModWorkspace(), DataHandler\checkValue(), DataHandler\checkValue_SW(), BackendUserAuthentication\checkWorkspace(), DataHandler\compareFieldArrayWithCurrentAndUnset(), GraphicalFunctions\copyImageOntoImage(), ClickMenu\enableDisableItems(), ConditionMatcher\evaluateCondition(), Export\export_addFile(), BackendUserAuthentication\fetchGroups(), StagesService\fetchGroupsRecursive(), AddImageHandler\fileIsSelectableInFileList(), ContentObjectRenderer\filelist(), AbstractMenuContentObject\filterMenuPages(), FileController\flattenResultDataValue(), ExtendedFileUtility\func_edit(), JavaScriptMenuContentObject\generate_level(), AbstractDatabaseRecordList\generateList(), PageLayoutView\generateTtContentDataArray(), Clipboard\getContentFromTab(), SqlSchemaMigrationService\getDatabaseExtra(), GraphicalFunctions\getImageDimensions(), FileFacade\getIsEditable(), FileFacade\getIsImage(), BackendUtility\getModuleData(), XmlParserFactory\getParserInstance(), TcaRecordTitle\getRecordTitleForInputType(), BackendUtility\getRecordWSOL(), TemplateService\getRootlineLevel(), AuthenticationService\getSubGroups(), ImportExportController\getTableSelectOptions(), SelectTreeElement\getTreeOnChangeJs(), ActionTask\getUsergroups(), AbstractUserAuthentication\hashLockClause_getHashInt(), GraphicalFunctions\imageMagickConvert(), SearchFormController\initialize(), GeneralUtilityTest\inListForItemContainedReturnsTrue(), GeneralUtilityTest\inListForItemNotContainedReturnsFalse(), BasicFileUtility\is_allowed(), AbstractTableConfigurationTreeDataProvider\isExpanded(), FileList\isImage(), CronCommand\isInCommandList(), FileList\isMediaFile(), BackendUserAuthentication\isMemberOfGroup(), AbstractMenuContentObject\isSubMenu(), NewRecordController\isTableAllowedForThisPage(), ParseHtmlController\keepSpanTagsWithId(), ActionList\listURL(), EditFileController\main(), PageLayoutController\makeActionMenu(), FileList\makeEdit(), AbstractMenuContentObject\makeMenu(), QueryGenerator\makeOptionList(), LiveSearch\makeQuerySearchByTable(), AbstractDatabaseRecordList\makeSearchString(), GraphicalFunctions\maskImageOntoImage(), EvaluateDisplayConditions\matchFieldCondition(), BaseScriptClass\mergeExternalItems(), BackendUserAuthentication\modAccess(), AbstractPlugin\pi_exec_query(), ClickMenu\printFileClickMenu(), TemplateService\processTemplate(), UserSettingsController\removeFromList(), AbstractItemProvider\removeItemsByDoktypeUserRestriction(), FlexFormElementContainer\render(), FileBrowser\renderFilesInFolder(), AddImageHandler\renderFilesInFolder(), StagesService\resolveBackendUserIds(), SetupModuleController\setAvatarFileUid(), FrontendLoginController\showLogin(), RteHtmlParser\TS_transform_rte(), and BackendUserAuthentication\workspaceCheckStageForCurrent().

static 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
bool$removeEmptyValuesIf set, all empty values (='') will NOT be set in output
int$limitIf positive, the result will contain a maximum of limit elements,
Returns
array Exploded values, all converted to integers

Definition at line 1221 of file GeneralUtility.php.

Referenced by GraphicalFunctions\adjust(), Abbreviation\buildJSAbbreviationArray(), GraphicalFunctions\calcTextCordsForMap(), QueryGenerator\cleanInputVal(), DatabaseConnection\cleanIntList(), CategoryMenuUtility\collectPages(), RecordsContentObject\collectRecordsFromCategories(), VersionNumberUtility\convertVersionStringToArray(), GraphicalFunctions\copyGifOntoGif(), DatabaseIntegrityCheck\countRecords(), QueryFactory\create(), BackendUtility\createPreviewUrl(), GraphicalFunctions\crop(), Backend\determineStoragePageIdForNewRecord(), SearchFormController\doSearch(), IndexSearchRepository\execFinalQuery(), SearchFormController\execFinalQuery(), Bootstrap\expectOutput(), ExtendedTemplateService\ext_getTypeData(), BackendUserAuthentication\fetchGroupData(), BackendUserAuthentication\fetchGroups(), StagesService\fetchGroupsRecursive(), FilesContentObject\findAndSortFiles(), SysNoteRepository\findByPidsAndAuthor(), SectionViewHelper\findBySection(), GraphicalMenuContentObject\findLargestDims(), ActionTask\getActions(), SearchController\getAllAvailableIndexConfigurationsOptions(), LocalizationRepository\getAllowedLanguageConstraintsForBackendUser(), LocalizationRepository\getAllowedLanguagesForBackendUser(), AbstractUserAuthentication\getAuthInfoArray(), StagesService\getBackendUsers(), AbstractMenuContentObject\getBannedUids(), NewRecordController\getButtons(), EditDocumentController\getButtons(), DatabaseTreeDataProvider\getChildrenUidsFromChildrenRelation(), AbstractConfigurationManager\getConfiguration(), DataMapper\getConstraint(), BackendUserAuthentication\getFileMountRecords(), RelationHandler\getFromDB(), AdministrationRepository\getGeneralSearchStatistic(), LinkAnalyzer\getLinkCounts(), LinkAnalyzer\getLinkStatistics(), WorkspaceService\getMoveToPlaceHolderFromPages(), PageRepository\getMultipleGroupsWhereClause(), VersionNumberUtility\getNumericTypo3Version(), LinkValidatorReport\getPageList(), BackendUserAuthentication\getPagePermsClause(), TypoScriptFrontendController\getPageShortcut(), BackendUtility\getRecordsByField(), PageRepository\getRecordsByField(), FrontendConfigurationManager\getRecursiveStoragePids(), BackendConfigurationManager\getRecursiveStoragePids(), IndexSearchRepository\getSearchRootPageIdList(), QueryGenerator\getSelectQuery(), ContentObjectRenderer\getSlidePids(), AuthenticationService\getSubGroups(), ContentObjectRenderer\imageLinkWrap(), GraphicalFunctions\IMparams(), TemplateService\includeStaticTypoScriptSources(), FormEditorController\indexAction(), BrowseTreeView\init(), NewRecordController\init(), TypoScriptFrontendController\initFEuser(), SearchController\initialize(), SearchFormController\initialize(), ActionToolbarItem\initializeActionEntries(), BackendUserAuthentication\initializeDbMountpointsInWorkspace(), GeneralUtilityTest\intExplodeConvertsStringsToInteger(), FormResultCompiler\JSbottom(), DatabaseIntegrityCheck\lostRecords(), PageLayoutController\main(), GraphicalFunctions\makeBox(), GraphicalFunctions\makeEllipse(), GraphicalFunctions\makeEmboss(), GraphicalMenuContentObject\makeGifs(), QueryGenerator\makeOptionList(), PageLayoutController\makeQuickEditMenu(), QueryGenerator\makeSelectorTable(), GraphicalFunctions\makeShadow(), GraphicalFunctions\objPosition(), RootlineUtility\parseMountPointParameter(), AbstractPlugin\pi_exec_query(), AbstractPlugin\pi_getCategoryTableContents(), AbstractMenuContentObject\prepareMenuItemsForBrowseMenu(), AbstractMenuContentObject\prepareMenuItemsForDirectoryMenu(), AbstractMenuContentObject\prepareMenuItemsForKeywordsMenu(), AbstractMenuContentObject\prepareMenuItemsForLanguageMenu(), AbstractMenuContentObject\prepareMenuItemsForUpdatedMenu(), SplitProcessor\process(), AbstractItemProvider\processForeignTableClause(), TemplateService\processTemplate(), VersionNumberUtility\raiseVersionNumber(), PagesViewHelper\renderStatic(), SysLanguageViewHelper\renderStatic(), SysFileMountsViewHelper\renderStatic(), SuggestWizardController\searchAction(), SearchController\searchAction(), IndexSearchRepository\sectionTableWhere(), SearchFormController\sectionTableWhere(), WorkspaceService\selectAllVersionsFromPages(), AbstractLinkHandler\setTemporaryDbMounts(), DatabaseBrowser\setTemporaryDbMounts(), PageLinkHandler\setTemporaryDbMounts(), TypoScriptFrontendController\settingLanguage(), BackendUserAuthentication\setWebmounts(), DataProvider\setWhereClause(), GraphicalFunctions\setWorkArea(), FrontendLoginController\showForgot(), RelationHandler\sortList(), GraphicalFunctions\splitString(), AbstractMenuContentObject\start(), AbstractDatabaseRecordList\start(), ContentObjectRenderer\substring(), BackendUtility\titleAttribForPages(), and GraphicalFunctions\txtPosition().

static 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 429 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\IPv6Bin2HexCorrectlyConvertsAddresses().

static 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 417 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\IPv6Hex2BinCorrectlyConvertsAddresses().

static isAbsPath (   $path)
static

Checks if the $path is absolute or relative (detecting either '/' or 'x:/' as first part of string) and returns TRUE if so.

Parameters
string$pathFile path to evaluate
Returns
bool

Definition at line 3329 of file GeneralUtility.php.

Referenced by ContentObjectRenderer\clean_directory(), CrawlerHook\crawler_execute_type2(), BackendWarnings\displayWarningMessages_postProcess(), DocumentTemplate\getHtmlTemplate(), Indexer\indexRegularDocument(), and GraphicalFunctions\prependAbsolutePath().

static isAllowedAbsPath (   $path)
static

Returns TRUE if the path is absolute, without backpath '..' and within the PATH_site OR within the lockRootPath

Parameters
string$pathFile path to evaluate
Returns
bool

Definition at line 3340 of file GeneralUtility.php.

References $GLOBALS.

Referenced by AbstractService\checkInputFile(), CrawlerHook\crawler_execute_type2(), Indexer\extractLinks(), DocumentTemplate\getHtmlTemplate(), PathUtility\getRelativePath(), InstallUtility\importInitialFiles(), Indexer\indexRegularDocument(), Import\loadFile(), SimpleLockStrategy\release(), and AbstractService\writeFile().

static 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. The result is saved, so the check needs to be executed only once.

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

Definition at line 3076 of file GeneralUtility.php.

References $GLOBALS.

static 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
bool TRUE if $partStr was found to be equal to the first part of $str

Definition at line 840 of file GeneralUtility.php.

Referenced by ActionTask\action_getUserMainDir(), LocalDriver\addFile(), ConfigurationItemRepository\buildConfigurationArray(), ResourceCompressor\checkBaseDirectory(), CrawlerHook\checkDeniedSuburls(), CrawlerHook\checkUrl(), DataHandler\clear_cacheCmd(), ReferenceIndex\createEntryData_fileRels(), ResourceCompressor\createMergedFile(), GraphicalFunctions\createTempSubDir(), LocalDriver\determineBaseUrl(), Export\export_addFile(), DocumentationService\fetchNearestDocument(), ContentObjectRenderer\filelist(), LostFilesCommand\findLostFiles(), ExtDirectApi\findNamespace(), SoftReferenceIndex\findRef_images(), Export\fixFileIDsInRelations(), BackendLayoutView\getColumnName(), TemplateService\getFileName(), ResourceFactory\getFolderObjectFromCombinedIdentifier(), DocumentTemplate\getHtmlTemplate(), ListUtility\getInstallTypeForPackage(), DocumentRepository\getMetadata(), TableManualRepository\getSections(), MailUtility\getSystemFromAddress(), GeneralUtilityTest\isFirstPartOfStrReturnsFalseForNotMatchingFirstPart(), GeneralUtilityTest\isFirstPartOfStrReturnsTrueForMatchingFirstPart(), FrontendLoginController\isInLocalDomain(), FrontendLoginController\isRelativeUrl(), BulkUpdateTask\isSaltedHash(), FileHandlingUtility\isValidExtensionPath(), ConfigurationManager\isValidLocalConfigurationPath(), LocalDriver\isWithin(), EvaluatorTest\md5HashIsUpdatedToTemporarySaltedString(), TypoScriptFrontendController\pageErrorHandler(), Import\processSoftReferences_saveFile(), Import\processSoftReferences_saveFile_createRelFile(), BackendUtility\referenceCount(), SimpleLockStrategy\release(), AccessibilityLinkController\removeAccessibilityIcon(), CustomAttributeController\render_clickenlarge(), ResourceFactory\retrieveFileOrFolderObject(), SimpleFileBackend\setCacheDirectory(), LocalizationUtility\translate(), TranslationService\translate(), and Import\unlinkTempFiles().

static 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 Additionally, allows requests when no REQUESTTYPE is set, which can happen quite early in the Bootstrap. See Application.php in EXT:backend/Classes/Http/.

Returns
bool

Definition at line 3138 of file GeneralUtility.php.

static 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
bool Whether the URL matches the TYPO3 request host

Definition at line 625 of file GeneralUtility.php.

Referenced by ResourceCompressor\createMergedFile(), and GeneralUtilityTest\isOnCurrentHostReturnsTrueWithCurrentHost().

static isRunningOnCgiServerApi ( )
static

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

Returns
bool

Definition at line 4625 of file GeneralUtility.php.

static 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
bool Whether the given URL is valid

Definition at line 1181 of file GeneralUtility.php.

References HttpUtility\buildUrl().

Referenced by ResourceCompressor\createMergedFile(), LocalDriver\determineBaseUrl(), ResourceStorage\getPublicUrl(), LocalDriverTest\getPublicUrlReturnsValidUrlContainingSpecialCharacters(), Image\getUrl(), FrontendLoginController\isInLocalDomain(), GeneralUtilityTest\validURLReturnsFalseForInvalidRessoure(), and GeneralUtilityTest\validURLReturnsTrueForValidResource().

static 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
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9

Definition at line 1151 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\lcFirst(), and GeneralUtility\underscoredToLowerCamelCase().

static linkThisScript ( array  $getParams = [])
static
static linkThisUrl (   $url,
array  $getParams = [] 
)
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 2756 of file GeneralUtility.php.

References ArrayUtility\mergeRecursiveWithOverrule().

Referenced by DatabaseRecordList\getButtons(), and DatabaseRecordList\getDocHeaderButtons().

static 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 3591 of file GeneralUtility.php.

Referenced by LocallangXmlParser\getParsedData(), and AbstractXmlParser\getParsedData().

static 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

Definition at line 2594 of file GeneralUtility.php.

Referenced by RedirectFinisher\addBaseUriIfNecessary(), Typo3Link\buildJSClassesAnchorArray(), AdminPanelView\display(), FrontendLoginController\generateAndSendHash(), AdminPanelView\getAdminPanelHeaderData(), ImageService\getImageUri(), OnlineMediaController\mainAction(), FileController\mainAction(), SimpleDataHandlerController\mainAction(), and HttpUtility\redirect().

static logDeprecatedFunction ( )
static

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

Returns
void

Definition at line 4441 of file GeneralUtility.php.

References $GLOBALS, DebugUtility\debugTrail(), and PathUtility\stripPathSitePrefix().

Referenced by ErrorpageMessage\__construct(), CacheFactory\__construct(), AbstractStandaloneMessage\__construct(), PreparedStatement\__construct(), LanguageService\addModuleLabels(), ArrayUtility\array_reduce(), ArrayUtility\arrayMergeRecursiveOverrule(), UriBuilder\buildUriFromAjaxId(), ArrayUtility\containsMultipleTypes(), CharsetConverter\conv_case(), CharsetConverter\convCapitalize(), ArrayUtility\convertObjectToArray(), ClickMenu\DB_editPageProperties(), DocumentTemplate\divider(), Bootstrap\ensureClassLoadingInformationExists(), CharsetConverter\euc_char2byte_pos(), CharsetConverter\euc_strlen(), CharsetConverter\euc_strtrunc(), CharsetConverter\euc_substr(), ExtensionManagementUtility\extRelPath(), TemplateService\fileContent(), DocumentTemplate\funcMenu(), LocalizationRepository\getAllowedLanguagesForBackendUser(), AbstractFunctionModule\getBackPath(), AbstractContentObject\getContentObject(), DocumentTemplate\getContextMenuCode(), FunctionalTestCase\getDatabaseConnection(), AbstractFunctionModule\getDatabaseConnection(), BaseScriptClass\getDatabaseConnection(), IconRegistry\getDeprecationSettings(), DocumentTemplate\getDragDropCode(), LocalizationRepository\getExcludeQueryPart(), BackendUtility\getFlexFormDS(), DocumentTemplate\getHeader(), Category\getIcon(), Comparison\getParameterIdentifier(), LanguageService\getParserFactory(), PageRepository\getPathFromRootline(), LocalizationController\getRecordUidsToCopy(), DocumentTemplate\getResourceHeader(), BackendUtility\getSQLselectableList(), DocumentTemplate\getTabMenu(), Typo3QuerySettings\getUsePreparedStatement(), Typo3QuerySettings\getUseQueryCache(), ArrayUtility\getValueByPath(), DocumentTemplate\getVersionSelector(), DocumentTemplate\header(), DocumentTemplate\icons(), Indexer\includeCrawlerClass(), TypoScriptFrontendController\includeLibraries(), ArrayUtility\integerExplode(), AbstractUserAuthentication\ipLockClause(), FormResultCompiler\JStop(), DocumentTemplate\loadJavascriptLib(), SpellCheckingController\main(), BackendUtility\makeConfigForm(), LanguageService\makeEntities(), AbstractDatabaseRecordList\makeQueryArray(), LanguageService\overrideLL(), PageLayoutView\pages_getTree(), GraphicalFunctions\prependAbsolutePath(), BackendUtility\processParams(), ExtendedFileUtility\pushErrorMessagesToFlashMessageQueue(), ArrayUtility\randomizeArrayOrder(), ExtensionManagementUtility\registerAjaxHandler(), ContentObjectRenderer\removeBadHTML(), ArrayUtility\removeEmptyElementsRecursively(), TemplateService\removeQueryString(), SoloFieldContainer\render(), DocumentTemplate\section(), DocumentTemplate\sectionBegin(), DocumentTemplate\sectionEnd(), DocumentTemplate\sectionHeader(), Category\setIcon(), Comparison\setParameterIdentifier(), ArrayUtility\setValueByPath(), ArrayUtility\sortArrayWithIntegerKeys(), TemplateService\sortedKeyList(), ArrayUtility\sortKeysRecursively(), NullTimeTracker\start(), ContentObjectRenderer\stdWrap_fontTag(), CharsetConverter\strlen(), CharsetConverter\substr(), DocumentTemplate\t3Button(), BackendUtility\titleAltAttrib(), ArrayUtility\trimExplode(), ArrayUtility\unsetValueByPath(), Typo3QuerySettings\usePreparedStatement(), Typo3QuerySettings\useQueryCache(), AbstractUserAuthentication\user_where_clause(), CharsetConverter\utf8_byte2char_pos(), CharsetConverter\utf8_strlen(), CharsetConverter\utf8_strpos(), CharsetConverter\utf8_strrpos(), CharsetConverter\utf8_strtrunc(), CharsetConverter\utf8_substr(), SearchFormController\utf8_to_currentCharset(), DocumentTemplate\viewPageIcon(), DocumentTemplate\wrapInCData(), and DocumentTemplate\wrapScriptTags().

static makeInstance (   $className,
  $constructorArguments 
)
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(::class, $arg1, $arg2, ..., $argN)

You may want to use ::get() if you want TYPO3 to take care about injecting dependencies of the class to be created. Therefore create an instance of ObjectManager via GeneralUtility::makeInstance() first and call its get() method to get the instance of a specific class.

Parameters
string$classNamename of the class to instantiate, must not be empty and not start with a backslash
mixed$constructorArgumentsArguments for the constructor
Returns
object the created instance
Exceptions
InvalidArgumentException if $className is empty or starts with a backslash

Definition at line 3867 of file GeneralUtility.php.

Referenced by DataProvider\__construct(), ObjectManagerException\__construct(), ObjectManager\__construct(), TableManualRepository\__construct(), SqlExpectedSchemaService\__construct(), VersionClickMenu\__construct(), TcaMigrationsCheck\__construct(), Clickmenu\__construct(), BackendModuleRepository\__construct(), LiveSearchToolbarItem\__construct(), SqlReader\__construct(), ActionHandler\__construct(), UserToolbarItem\__construct(), DeletedRecordsController\__construct(), Configuration\__construct(), AbstractModule\__construct(), ExtdirectTreeDataProvider\__construct(), SchedulerCliController\__construct(), FluidTemplateContentObject\__construct(), TcaExtTablesCheck\__construct(), CoreVersionService\__construct(), InfoPageTyposcriptConfigController\__construct(), TranslationStatusController\__construct(), LinkService\__construct(), ActionToolbarItem\__construct(), ErrorPageController\__construct(), AbstractTemplateView\__construct(), PermissionAjaxController\__construct(), FileFacade\__construct(), ClearCacheToolbarItem\__construct(), FieldProvider\__construct(), LogManager\__construct(), CrawlerHook\__construct(), AbstractPreset\__construct(), DocHeaderComponent\__construct(), LocalizationController\__construct(), ElementBrowserController\__construct(), AbstractCoreUpdate\__construct(), Task\__construct(), TaskModuleController\__construct(), JavaScriptEncoder\__construct(), DatabaseQueryProcessor\__construct(), AbstractRepository\__construct(), ExtensionStatus\__construct(), TableBuilder\__construct(), Lexer\__construct(), FrontendEditPanel\__construct(), ActionTask\__construct(), IconFactory\__construct(), AbstractDatabaseSchemaUpdate\__construct(), QueryBuilder\__construct(), ConnectionMigrator\__construct(), Connection\__construct(), InfoModuleController\__construct(), InlineControlContainer\__construct(), PageFunctionsController\__construct(), RteController\__construct(), DatabaseIntegrityView\__construct(), InlineRecordContainer\__construct(), CoreUpdateService\__construct(), AbstractFormElement\__construct(), ReplaceFileController\__construct(), ResourceFactory\__construct(), AbstractTask\__construct(), LiveSearch\__construct(), AbstractElementBrowser\__construct(), LanguageRepository\__construct(), ShortcutToolbarItem\__construct(), ConfigurationView\__construct(), QueryView\__construct(), SilentConfigurationUpgradeService\__construct(), FolderTreeView\__construct(), SuggestWizardDefaultReceiver\__construct(), ProcessingRule\__construct(), SchedulerModuleController\__construct(), SystemInformationToolbarItem\__construct(), Clipboard\__construct(), FrontendUserImageUpdateWizard\__construct(), BackendController\__construct(), LanguageService\__construct(), ElementInformationController\__construct(), RecordHistory\__construct(), TypoScriptTemplateModuleController\__construct(), ProcessedFile\__construct(), PagePositionMap\__construct(), RootlineUtility\__construct(), Typo3DbBackend\__construct(), VersionModuleController\__construct(), ReferenceIndex\__construct(), ClickMenu\__construct(), Backend\__construct(), ImportExportController\__construct(), AbstractRecordList\__construct(), FileList\__construct(), DatabaseRecordList\__construct(), PageLayoutView\__construct(), MenuProcessor\__construct(), Indexer\__construct(), ModuleTemplate\__construct(), ImportExport\__construct(), DocumentTemplate\__construct(), PageRenderer\__construct(), ContentObjectRenderer\__construct(), TypoScriptFrontendController\__construct(), Task\__wakeup(), QueryResult\__wakeup(), Query\__wakeup(), TypoScriptFrontendController\acquireLock(), AcronymVisibleFieldsTest\acronymFormContainsExpectedFields(), ActionVisibleFieldsTest\actionFormContainsExpectedFields(), DataProviderCollection\add(), ProcessedFileRepository\add(), TcaSelectTreeItems\addData(), DataHandler\addDefaultPermittedLanguageIfNotSet(), DataHandler\addDeleteRestriction(), ResourceStorage\addFile(), AbstractController\addFlashMessage(), ModuleTemplate\addFlashMessage(), TableBuilder\addIndex(), GeneralUtilityTest\addInstanceCalledTwoTimesMakesMakeInstanceReturnBothInstancesInAddingOrder(), GeneralUtilityTest\addInstanceMakesMakeInstanceReturnThatInstance(), AbstractItemProvider\addItemsFromPageTsConfig(), JavaScriptService\addJavaScript(), ActionTask\addMessage(), ExtendedFileUtility\addMessageToFlashMessageQueue(), ExtensionManagementUtility\addModule(), AbstractExportTestCase\addRecordsForPid(), ShortcutToolbarItem\addShortcut(), Import\addSingle(), Scheduler\addTask(), SystemInformationController\appendMessage(), PlainDataResolver\applyLiveIds(), AutoPublishService\autoPublishWorkspaces(), Indexer\backend_initIndexer(), BackendGroupsVisibleFieldsTest\backendGroupsFormContainsExpectedFields(), BackendLayoutVisibleFieldsTest\backendLayoutsFormContainsExpectedFields(), BackendUsersVisibleFieldsTest\backendUsersFormContainsExpectedFields(), BackendUsersVisibleFieldsTest\backendUsersFormContainsExpectedFieldsForAdmins(), ArrayFormFactory\build(), UriBuilder\buildBackendUri(), ExtensionManagementUtility\buildBaseTcaFromSingleFiles(), AbstractItemProvider\buildForeignTableQueryBuilder(), SelectImageController\buildImageMarkup(), Abbreviation\buildJSAbbreviationArray(), RenderingContext\buildParserConfiguration(), AbstractDatabaseRecordList\buildQueryParameters(), BackendUtility\buildScriptUrl(), UriBuilder\buildUri(), Connection\bulkInsert(), CategoryVisibleFieldsTest\categoryFormContainsExpectedFields(), FrontendLoginController\changePassword(), SetupModuleController\checkAccess(), InternalLinktype\checkContent(), Indexer\checkContentHash(), DatabaseSelect\checkExistingDatabase(), Indexer\checkExternalDocContentHash(), AbstractFunctionModule\checkExtObj(), BaseScriptClass\checkExtObj(), PreviewHook\checkForPreview(), FileListIsStartModuleUpdate\checkForUpdate(), BackendUserStartModuleUpdate\checkForUpdate(), MigrateShortcutUrlsAgainUpdate\checkForUpdate(), WizardDoneToRegistry\checkForUpdate(), MigrateMediaToAssetsForTextMediaCe\checkForUpdate(), TableFlexFormToTtContentFieldsUpdate\checkForUpdate(), ContentTypesToTextMediaUpdate\checkForUpdate(), WorkspacesNotificationSettingsUpdate\checkForUpdate(), LanguageIsoCodeUpdate\checkForUpdate(), ProcessedFileChecksumUpdate\checkForUpdate(), PageShortcutParentUpdate\checkForUpdate(), FilesReplacePermissionUpdate\checkForUpdate(), FinalDatabaseSchemaUpdate\checkForUpdate(), OpenidExtractionUpdate\checkForUpdate(), MediaceExtractionUpdate\checkForUpdate(), ExtensionManagerTables\checkForUpdate(), NewRecordController\checkIfLanguagesExist(), StatusReportConflictsCheckHook\checkIfNoConflictingExtensionIsInstalled(), SaltedPasswordServiceTest\checkIfServiceUpdatesBackendUserPassword(), AbstractUpdate\checkIfTableExists(), PageLayoutView\checkIfTranslationsExistInLanguage(), FileLinktype\checkLink(), Indexer\checkMtimeTstamp(), InternalLinktype\checkPage(), PageRepository\checkRecord(), IndexSearchRepository\checkResume(), TypoScriptFrontendController\checkRootlineForIncludeSection(), FileUpload\checkSaveFileMountAccess(), SchedulerModuleController\checkSchedulerUser(), SetupCheck\checkSomePhpOpcodeCacheIsLoaded(), DataHandler\checkStoredRecord(), TcaExtTablesCheck\checkTcaChangesInExtTables(), TcaMigrationsCheck\checkTcaMigrations(), GifBuilder\checkTextObj(), UpdateScriptUtility\checkUpdateScriptExists(), ImportExportController\checkUpload(), PageRepository\checkValidShortcutOfPage(), DataHandler\checkValue_input_Eval(), DataHandler\checkValue_text_Eval(), DataHandler\checkValueForFlex(), DataHandlerTest\checkValueForInputConvertsNullToEmptyString(), DataHandler\checkValueForRadio(), Indexer\checkWordList(), BackendUserAuthentication\checkWorkspace(), PageRepository\checkWorkspaceAccess(), Scheduler\cleanExecutionArrays(), BasicFileUtility\cleanFileName(), CleanFlexFormsCommand\cleanFlexFormRecords(), FlexFormTools\cleanFlexFormXML(), CleanerTask\cleanTable(), ProcessedFileRepository\cleanUnavailableColumns(), FileDeletionAspect\cleanupCategoryReferences(), CrawlerHook\cleanUpOldRunningConfigurations(), AcceptanceCoreEnvironment\cleanupTypo3Environment(), DataHandler\clear_cacheCmd(), ClearCacheService\clearAll(), RecordList\clearCache(), PageLayoutController\clearCache(), TreelistCacheUpdateHooks\clearCacheForAllParents(), ExtdirectTreeCommands\clearCacheOfPage(), TreelistCacheUpdateHooks\clearCacheWhereUidInTreelist(), ImportantActions\clearOpcodeCache(), Typo3DbBackend\clearPageCache(), TcaCacheClearing\clearTcaCache(), Typo3DatabaseBackend\collectGarbage(), CollectionVisibleFieldsTest\collectionFormContainsExpectedFields(), CleanFlexFormsCommand\compareAllFlexFormsInRecord(), DataHandler\compareFieldArrayWithCurrentAndUnset(), PreviewHook\compilePreviewKeyword(), ExtensionManagementUtility\configureModule(), Bootstrap\configureObjectManager(), PdoBackend\connect(), TypoScriptFrontendController\connectToDB(), ContentVisibleFieldsTest\contentFormContainsExpectedFields(), ResourceFactory\convertFlexFormDataToConfigurationArray(), FilesWithMultipleReferencesCommand\copyMultipleReferencedFiles(), RteImagesCommand\copyMultipleReferencedRteImages(), DataHandler\copyRecord_procBasedOnFieldType(), DataHandler\copySpecificPage(), DatabaseIntegrityCheck\countRecords(), AdministrationRepository\countUniqueTypes(), CrawlerFilesHook\crawler_execute(), CrawlerHook\crawler_execute(), CrawlerHook\crawler_execute_type1(), CrawlerHook\crawler_execute_type2(), CrawlerHook\crawler_execute_type4(), CrawlerHook\crawler_init(), ConnectionMigrator\create(), TableBuilder\create(), BackendUserHandler\createBackendUser(), RecordHistory\createChangeLog(), AbstractRepositoryTest\createDatabaseMock(), Testbase\createDatabaseStructure(), ActionService\createDataHandler(), BackendLayoutView\createDataProviderContext(), ProcessedFileRepository\createDomainObject(), AbstractSection\createElement(), ContentObjectRenderer\createExceptionHandler(), ExtractorRegistry\createExtractorInstance(), ResourceFactory\createFolderObject(), PreviewHook\createFrontendBackendUser(), IconFactory\createIcon(), FormProtectionFactory\createInstance(), MetaDataRepository\createMetaDataRecord(), DatabaseSelect\createNewDatabase(), ProcessedFileRepository\createNewProcessedFileObject(), FormTestService\createNewRecordForm(), BackendUtility\createPreviewUrl(), Connection\createQueryBuilder(), DatabaseRecordList\createReferenceHtml(), DataHandlerHook\createRelationHandlerInstance(), DataHandler\createRelationHandlerInstance(), RendererRegistry\createRendererInstance(), AbstractRestrictionContainer\createRestriction(), AbstractUserAuthentication\createSessionId(), ResourceFactory\createStorageObject(), TextExtractorRegistry\createTextExtractorInstance(), TypolinkViewHelper\createTypolinkParameterArrayFromArguments(), TypolinkViewHelper\createTypolinkParameterFromArguments(), AbstractUserAuthentication\createUserSession(), AbstractRenderable\createValidator(), TreeNodeCollection\dataFromArray(), TreeNode\dataFromArray(), RecordCollectionRepository\deleteByUid(), BackendUtility\deleteClause(), CleanerTask\deleteFilesForTable(), CrawlerHook\deleteFromIndex(), DataHandler\deleteRecord(), OrphanRecordsCommand\deleteRecords(), DeletedRecordsCommand\deleteRecords(), DataHandler\deleteSpecificPage(), SchedulerModuleController\deleteTask(), ActionTask\deleteUser(), TaskModuleController\description(), DataHandler\destNotInsideSelf(), ReportController\detailAction(), TypoScriptFrontendController\determineId(), TypoScriptFrontendController\determineIdIsHiddenPage(), BackendLayoutView\determinePageId(), AbstractElementBrowser\determineScriptUrl(), AbstractRecordList\determineScriptUrl(), AbstractLinkBrowserController\determineScriptUrl(), AbstractTreeView\determineScriptUrl(), Comparator\diffTable(), AjaxDispatcher\dispatch(), RecyclerAjaxController\dispatch(), DataHandler\doesBranchExist(), DataHandler\doesPageHaveUnallowedTables(), DataHandler\doesRecordExist(), DataHandler\doesRecordExist_pageLookUp(), DomainVisibleFieldsTest\domainFormContainsExpectedFields(), FileDumpController\dumpAction(), ImportantActions\dumpAutoload(), DatabaseUtility\dumpTableContent(), ProductionExceptionHandler\echoExceptionWeb(), PageRepository\enableFields(), PageRepositoryTest\enableFieldsDoesFilterToCurrentAndLiveWorkspaceForRecordsInPreview(), PageRepositoryTest\enableFieldsDoesNotHidePlaceholdersInPreview(), PageRepositoryTest\enableFieldsDoesNotHideVersionedRecordsWhenCheckingVersionOverlays(), PageRepositoryTest\enableFieldsHidesVersionedRecordsAndPlaceholders(), RsaEncryptionEncoder\enableRsaEncryption(), LinkBrowserController\encodeTypoLink(), SetupModuleController\enqueueFlashMessages(), IndexSearchRepository\execFinalQuery(), IndexSearchRepository\execPHashListQuery(), CleanupPreviewLinkTask\execute(), AutoPublishTask\execute(), CachingFrameworkGarbageCollectionTask\execute(), DatabaseSelect\execute(), OptimizeDatabaseTableTask\execute(), RecyclerGarbageCollectionTask\execute(), ListSysLogCommand\execute(), OrphanRecordsCommand\execute(), ValidatorTask\execute(), SaveToDatabaseFinisher\executeInternal(), UpdateScriptUtility\executeUpdateIfNeeded(), Bootstrap\expectOutput(), Export\export_addFile(), Export\export_addRecord(), QueryBuilderTest\exprReturnsExpressionBuilderForConnection(), ConfigurationForm\ext_mergeIncomingWithExisting(), ExtendedTemplateService\ext_outputTS(), ExportPageTreeView\ext_tree(), LinkAnalyzer\extGetTreeList(), AdministrationRepository\extGetTreeList(), Indexer\extractBaseHref(), Indexer\extractHyperLinks(), Indexer\extractLinks(), Indexer\extractRequiredMetaData(), AbstractRecord\fetch(), TypoScriptFrontendController\fetch_the_id(), SelectTreeController\fetchDataAction(), BackendUserAuthentication\fetchGroupData(), BackendUserAuthentication\fetchGroups(), StagesService\fetchGroupsFromDB(), ExtensionRepository\fetchMaximalVersionsForAllExtensions(), WorkspaceService\fetchPagesWithVersionsInTable(), FrontendUserAuthentication\fetchSessionData(), Import\fetchStorageRecords(), AbstractUserAuthentication\fetchUserRecord(), AbstractUserAuthentication\fetchUserSession(), AbstractUserAuthentication\fetchUserSessionFromDB(), FileCollectionVisibleFieldsTest\fileCollectionFormContainsExpectedFields(), FileMetadataVisibleFieldsTest\fileMetadataFormContainsExpectedFields(), FilemountsVisibleFieldsTest\filemountsFormContainsExpectedFields(), FileStorageVisibleFieldsTest\fileStorageFormContainsExpectedFields(), AbstractRepository\findAll(), BackendUserSessionRepository\findAllActive(), ProcessedFileRepository\findAllByOriginalFile(), OrphanRecordsCommand\findAllConnectedRecordsInPage(), CleanFlexFormsCommand\findAllDirtyFlexformsInPage(), RteImagesCommand\findAllReferencedRteImagesWithOriginals(), BackendUserSessionRepository\findByBackendUser(), FileIndexRepository\findByContentHash(), MetaDataRepository\findByFile(), MetaDataRepository\findByFileUid(), FileIndexRepository\findByFolder(), FileIndexRepository\findByFolders(), ProcessedFileRepository\findByStorageAndIdentifier(), LiveSearch\findByTable(), RecordCollectionRepository\findByTableName(), ExtensionRepository\findByTitleOrAuthorNameOrExtensionKey(), RecordCollectionRepository\findByType(), RecordCollectionRepository\findByTypeAndTableName(), RecordCollectionRepository\findByUid(), AbstractRepository\findByUid(), BackendUserRepository\findDemanded(), Typo3DatabaseBackend\findIdentifiersByTag(), FileBackend\findIdentifiersByTag(), FileIndexRepository\findInStorageAndNotInUidList(), FileIndexRepository\findInStorageWithIndexOutstanding(), GraphicalMenuContentObject\findLargestDims(), LostFilesCommand\findLostFiles(), MissingFilesCommand\findMissingReferencedFiles(), MissingFilesCommand\findMissingSoftReferencedFiles(), FilesWithMultipleReferencesCommand\findMultipleReferencedFiles(), ProcessedFileRepository\findOneByOriginalFileAndTaskTypeAndConfiguration(), FileIndexRepository\findOneByStorageUidAndIdentifierHash(), FileIndexRepository\findOneByUid(), BackendUserRepository\findOnline(), DataHandlerHook\findPageElementsForVersionStageChange(), DataHandlerHook\findPageElementsForVersionSwap(), DataHandlerHook\findPageIdsForVersionStateChange(), SoftReferenceIndex\findRef_images(), SoftReferenceHook\findRef_rtehtmlarea_images(), SoftReferenceIndex\findRef_typolink_tag(), MissingRelationsCommand\findRelationsToNonExistingRecords(), BulkUpdateTask\findUsersToUpdate(), DatabaseIntegrityCheck\fixLostRecord(), FileController\flattenResultDataValue(), Typo3DatabaseBackend\flush(), DataHandlerHook\flushWorkspaceCacheEntriesByWorkspaceId(), DataHandlerHook\flushWorkspaceElements(), FileList\formatFileList(), IndexSearchRepository\freeIndexUidWhere(), FrontendGroupsVisibleFieldsTest\frontendGroupsFormContainsExpectedFields(), FrontendUsersVisibleFieldsTest\frontendUsersFormContainsExpectedFields(), ReviewController\fullIndexAction(), DatabaseIntegrityView\func_refindex(), DatabaseIntegrityView\func_relations(), DatabaseIntegrityView\func_search(), FrontendUserAuthentication\gc(), AbstractUserAuthentication\gc(), FrontendLoginController\generateAndSendHash(), SilentConfigurationUpgradeService\generateEncryptionKeyIfNeeded(), AbstractDatabaseRecordList\generateList(), PreparedStatement\generateParameterWrapToken(), AbstractFormProtection\generateSessionToken(), WorkspaceService\generateWorkspacePreviewLink(), DatabaseIntegrityCheck\genTree(), CleanerCommand\genTree(), DatabaseIntegrityCheck\genTree_records(), CleanerCommand\genTree_traverse(), SplitStorage\get(), Typo3DatabaseBackend\get(), ActionTask\getActions(), AbstractDataHandlerActionTestCase\getActionService(), ContextMenuConfiguration\getActionsForNodeArray(), DataStructureIdentifierHook\getAdditionalFinisherSheets(), SearchController\getAllAvailableIndexConfigurationsOptions(), SearchController\getAllAvailableLanguageOptions(), LocalizationRepository\getAllowedLanguageConstraintsForBackendUser(), AbstractUserAuthentication\getAuthInfoArray(), LiveSearch\getAvailablePageIds(), WorkspaceService\getAvailableWorkspaces(), DefaultAvatarProvider\getAvatarFileUid(), SetupModuleController\getAvatarFileUid(), DefaultDataProvider\getBackendLayout(), PageLayoutView\getBackendLayoutView(), FolderLinkHandler\getBodyTagAttributes(), FileLinkHandler\getBodyTagAttributes(), PageLinkHandler\getBodyTagAttributes(), RteController\getButtons(), EditDocumentController\getButtons(), AbstractMenuContentObject\getCache(), TemplateService\getCacheEntry(), SecurityStatus\getCacheFloodingProtectionStatus(), ExtensionManagementUtility\getCacheManager(), DeletedRecordsController\getCacheManager(), DataHandler\getCacheManager(), Dispatcher\getCallableFromTarget(), ConnectionMigrator\getChangedFieldUpdateSuggestions(), ConnectionMigrator\getChangedTableOptions(), AbstractXmlParser\getCharset(), AbstractHierarchicalFilesystemDriver\getCharsetConversion(), ElementEntity\getChildren(), DatabaseTreeDataProvider\getChildrenUidsFromChildrenRelation(), Container\getClassInfoCache(), Container\getClassInfoFactory(), FormProtectionFactory\getClassNameAndConstructorArgumentsByType(), CleanUp\getCleanableTableList(), RequestFactory\getClient(), AbstractFormElement\getClipboardElements(), SqlSchemaMigrationService\getCollationForCharset(), CategoryCollection\getCollectedRecords(), StaticRecordCollection\getCollectedRecords(), CategoryCollection\getCollectedRecordsQueryBuilder(), ResourceFactory\getCollectionObject(), DataHandlerHook\getCommandMap(), Typo3Status\getCompatibility6Status(), PageRenderer\getCompressor(), TemplatePaths\getConfigurationManager(), LocalizationUtility\getConfigurationManager(), TranslationService\getConfigurationManager(), BackendUtility\getConnectionForTable(), RelationHandler\getConnectionForTableName(), ConnectionMigrator\getConnectionNameForTable(), FunctionalTestCase\getConnectionPool(), TranslationStatusController\getContentElementCount(), ContentObjectRenderer\getContentObject(), PageLayoutView\getContentRecordsPerColumn(), DataHandler\getCopyHeader(), AbstractTreeView\getCount(), ConfigurationStatus\getCreatedDirectoriesWorldWritableStatus(), ConfigurationStatus\getCreatedFilesWorldWritableStatus(), ActionTask\getCreatedUsers(), RecordService\getCreateUserIds(), TemplateService\getCurrentPageData(), BackendConfigurationManager\getCurrentPageIdFromCurrentSiteRoot(), BackendConfigurationManager\getCurrentPageIdFromRootTemplate(), ContentObjectRenderer\getData(), SystemInformationToolbarItem\getDatabase(), AbstractDatabaseSchemaUpdate\getDatabaseDefinition(), AbstractDatabaseRecordProvider\getDatabaseRow(), DatabasePageLanguageOverlayRows\getDatabaseRows(), ElementEntityProcessor\getDataHandler(), AbstractTreeView\getDataInit(), FlexFormTools\getDataStructureIdentifier(), FlexFormTools\getDataStructureIdentifierFromRecord(), DatabaseCharsetUpdate\getDefaultDatabaseCharset(), DatabaseSelect\getDefaultDatabaseCharset(), BackendUserAuthentication\getDefaultWorkspace(), DeletedRecords\getDeletedParentPages(), SplitStorageTest\getDeletesKeysOlderThan30Minutes(), CollectionService\getDependencyCallback(), CommandMap\getDependencyCallback(), GridDataService\getDependencyCollectionService(), CollectionService\getDependencyResolver(), ConfigurationStatus\getDeprecationLogStatus(), RemoteServer\getDifferenceHandler(), HistoryService\getDifferencesObject(), PageRepository\getDomainStartPage(), BackendUtility\getDomainStartPage(), OpendocsToolbarItem\getDropDown(), ConnectionMigrator\getDropFieldUpdateSuggestions(), ConnectionMigrator\getDropTableUpdateSuggestions(), ModuleTemplate\getDynamicTabMenu(), ElementBrowserController\getElementBrowserInstance(), CollectionService\getElementEntityProcessor(), CommandMap\getElementEntityProcessor(), SecurityStatus\getEncryptionKeyStatus(), AdministrationRepository\getExternalDocumentsStatistic(), RichTextElement\getExternalPlugins(), DependencyResolver\getFactory(), SqlSchemaMigrationService\getFieldDefinitions_database(), FileCollector\getFileCollectionRepository(), FilesContentObject\getFileCollector(), SecurityStatus\getFileDenyPatternStatus(), FileCollectionRepository\getFileFactory(), ResourceStorage\getFileFactory(), FileDeletionAspect\getFileIndexRepository(), File\getFileIndexRepository(), BackendUserAuthentication\getFileMountRecords(), ResourceStorage\getFileProcessingService(), ResourceFactory\getFileReferenceData(), FileCollector\getFileRepository(), InstallStatusReport\getFileSystemStatus(), SearchController\getFirstSysDomainRecordForPage(), PageRepository\getFirstWebPage(), SetupModuleController\getFlashMessage(), BackendUtility\getFlexFormDS(), ImageManipulationWizard\getFluidTemplateObject(), BackendController\getFluidTemplateObject(), ResourceStorage\getFolder(), AdministrationRepository\getGeneralSearchStatistic(), Md5Salt\getGeneratedSalt(), Pbkdf2Salt\getGeneratedSalt(), PhpassSalt\getGeneratedSalt(), ImageInfo\getGraphicalFunctions(), LocalImageProcessor\getGraphicalFunctionsObject(), PreviewProcessing\getGraphicalFunctionsObject(), RemoteServer\getGridDataService(), AdministrationRepository\getGrlistRecord(), AuthenticationService\getGroups(), PageLayoutController\getHeaderFlashMessagesForCurrentPid(), LocalImageProcessor\getHelperByTaskName(), RecordHistory\getHistoryData(), SecurityStatus\getHtaccessUploadStatus(), AbstractTreeView\getIcon(), FormEngineUtility\getIconHtml(), DefaultAvatarProvider\getImage(), Avatar\getImgTag(), ResourceFactory\getIndexer(), ExtendedFileUtility\getIndexer(), ResourceStorage\getIndexer(), ClassInfoFactory\getInjectProperties(), UserFileInlineLabelService\getInlineLabel(), SecurityStatusReport\getInstallToolPasswordStatus(), SecurityStatusReport\getInstallToolProtectionStatus(), BackendUtilityHook\getInstance(), OnlineMediaHelperRegistry\getInstance(), ResourceFactory\getInstance(), RendererRegistry\getInstance(), ExtractorRegistry\getInstance(), TextExtractorRegistry\getInstance(), CategoryRegistry\getInstance(), FileIndexRepository\getInstance(), TranslationService\getInstance(), MetaDataRepository\getInstance(), GridDataService\getIntegrityService(), OpendocsToolbarItem\getItem(), TranslationStatusController\getLangStatus(), Language\getLanguages(), EditDocumentController\getLanguages(), DefaultDataProvider\getLayoutData(), LikeWildcardTest\getLikeQueryPart(), LikeWildcard\getLikeQueryPart(), LinkAnalyzer\getLinkCounts(), LinkAnalyzer\getLinkStatistics(), LinkValidatorReport\getLinkValidatorBrokenLinks(), SqlSchemaMigrationService\getListOfTables(), PageLayoutController\getLocalizedPageTitle(), DataHandler\getLocalTCE(), ProductionExceptionHandler\getLogger(), AbstractViewHelper\getLogger(), FileCollector\getLogger(), ProcessedFileRepository\getLogger(), UserSetupHook\getLoginScripts(), ConfigurationStatus\getMemcachedConnectionStatus(), MenuContentObjectFactory\getMenuObjectByType(), SearchController\getMenuOfPages(), FlashMessageService\getMessageQueueByIdentifier(), FileDeletionAspect\getMetaDataRepository(), File\getMetaDataRepository(), SystemStatus\getMissingPhpModulesOfExtensions(), BackendModuleRepository\getModuleIcon(), PageRepository\getMountPointInfo(), PageRepository\getMovePlaceholder(), BackendUtility\getMovePlaceholder(), WorkspaceService\getMoveToPlaceHolderFromPages(), PageRepository\getMultipleGroupsWhereClause(), ConnectionMigrator\getNewFieldUpdateSuggestions(), ConnectionMigrator\getNewTableUpdateSuggestions(), Import\getNewTCE(), PageLayoutView\getNonTranslatedTTcontentUids(), SaltedPasswordsUtility\getNumberOfBackendUsersWithInsecurePassword(), ExtensionRepository\getNumberOfCurrentExtensions(), AdministrationRepository\getNumberOfFulltextRecords(), AdministrationRepository\getNumberOfSections(), AdministrationRepository\getNumberOfWords(), AdditionalResourceService\getObjectManager(), ViewHelperResolver\getObjectManager(), Mailer\getObjectManager(), MetaDataRepository\getObjectManager(), RemoteServer\getObjectManager(), DatabaseTreeDataProvider\getObjectManager(), LinkAnalyzer\getObjectManager(), FileIndexRepository\getObjectManager(), GridDataService\getObjectManager(), WorkspaceService\getObjectManager(), ResourceStorage\getObjectManager(), OnlineMediaHelperRegistry\getOnlineMediaHelper(), OptimizeDatabaseTableAdditionalFieldProvider\getOptimizableTables(), InfoPageTyposcriptConfigController\getOverviewOfPagesUsingTSConfig(), PageRepository\getPage(), BackendLayoutView\getPage(), PageRepository\getPage_noCheck(), BackendUtility\getPageForRootline(), AdministrationRepository\getPageHashTypes(), PageRepository\getPageIdFromAlias(), BackendUserAuthentication\getPagePermsClause(), PageLayoutView\getPageRecordsRecursive(), UsernamePasswordProviderSlot\getPageRenderer(), BackendControllerHook\getPageRenderer(), AbstractContentObject\getPageRenderer(), LoginFramesetController\getPageRenderer(), FileEditHook\getPageRenderer(), ElementBrowserFramesetController\getPageRenderer(), LiveSearchToolbarItem\getPageRenderer(), AbstractController\getPageRenderer(), ClearCacheToolbarItem\getPageRenderer(), WorkspaceSelectorToolbarItem\getPageRenderer(), AbstractFunctionModule\getPageRenderer(), FormResultCompiler\getPageRenderer(), T3editor\getPageRenderer(), BaseScriptClass\getPageRenderer(), ColorpickerController\getPageRenderer(), SystemInformationToolbarItem\getPageRenderer(), FormManagerController\getPageRenderer(), RecordList\getPageRenderer(), ShortcutToolbarItem\getPageRenderer(), PageGenerator\getPageRenderer(), PageLayoutController\getPageRenderer(), Typo3DbBackend\getPageRepository(), Typo3DbQueryParser\getPageRepository(), PageRepository\getPagesOverlay(), AdministrationRepository\getPageStatistic(), BackendUtility\getPagesTSconfig(), TypoScriptFrontendController\getPagesTSconfig(), RteAcronymButtonRenamedToAbbreviation\getPagesWithDeprecatedRteProperties(), DeprecatedRteProperties\getPagesWithDeprecatedRteProperties(), ElementEntity\getParents(), XmlParserFactory\getParserInstance(), LanguageStore\getParserInstance(), DataHandler\getPID(), RecyclerUtility\getPidOfUid(), PresetRepository\getPreset(), PresetRepository\getPresets(), ImportExportTask\getPresets(), PreviewHook\getPreviewConfiguration(), ViewModuleController\getPreviewLanguages(), AdminPanelView\getPreviewModule(), DataHandler\getPreviousLocalizedRecordUid(), FileDeletionAspect\getProcessedFileRepository(), ResourceFactory\getProcessedFileRepository(), FormManagerController\getProcessedReferencesRows(), ResourceStorage\getProcessingFolder(), PreviewProcessing\getProcessor(), AbstractDatabaseRecordList\getQueryBuilder(), SuggestWizardDefaultReceiver\getQueryBuilderForTable(), BackendUtility\getQueryBuilderForTable(), Typo3DbQueryParserTest\getQueryBuilderProphetWithQueryBuilderForSubselect(), Typo3DbQueryParserTest\getQueryBuilderWithExpressionBuilderProphet(), LocalizationRepository\getQueryBuilderWithWorkspaceRestriction(), QueryView\getQueryResultCode(), QueryGenerator\getQuerySingle(), PageRepository\getRawRecord(), AbstractUserAuthentication\getRawUserByName(), AbstractUserAuthentication\getRawUserByUid(), BackendUtility\getRecord(), ElementEntity\getRecord(), LiveSearch\getRecordArray(), RootlineUtility\getRecordArray(), PagePositionMap\getRecordHeader(), MetaInformation\getRecordInformation(), BackendUtility\getRecordLocalization(), PageRepository\getRecordOverlay(), RecyclerUtility\getRecordPath(), LinkHandler\getRecordRow(), BackendUtility\getRecordsByField(), PageRepository\getRecordsByField(), StagesService\getRecordService(), FrontendUserImageUpdateWizard\getRecordsFromTable(), AdministrationRepository\getRecordsNumbers(), PageLinkHandler\getRecordsOnExpandedPage(), BackendUtility\getRecordsSortedByTitle(), PermissionController\getRecursiveSelectOptions(), DependencyEntityFactory\getReference(), FileFacade\getReferenceCount(), DatabaseRecordList\getReferenceCount(), ConfigurationStatus\getReferenceIndexStatus(), FormManagerController\getReferences(), AbstractItemProvider\getRegisteredFlexForms(), SchedulerModuleController\getRegisteredTaskGroups(), Typo3Status\getRegisteredXclassStatus(), ReferenceIndex\getRelations(), ReferenceIndex\getRelations_procDB(), ReferenceIndex\getRelations_procFiles(), InstallStatusReport\getRemainingUpdatesStatus(), Status\getReport(), ServicesListReport\getReport(), FolderLinkHandler\getResourceFactory(), FileLinkHandler\getResourceFactory(), LegacyLinkNotationConverter\getResourceFactory(), FileCollector\getResourceFactory(), AbstractTreeView\getRootIcon(), PageRepository\getRootLine(), LinkAnalyzer\getRootLineIsHidden(), UserSetupHook\getRsaEncryptionDecoder(), RsaAuthService\getRsaEncryptionDecoder(), TemplatePaths\getRuntimeCache(), AbstractMenuContentObject\getRuntimeCache(), BackendUtility\getRuntimeCache(), SchemaMigrator\getSchemaDiffs(), TableManualRepository\getSections(), QueryGenerator\getSelectQuery(), ShortcutToolbarItem\getShortcutIcon(), ImportExportUtility\getSignalSlotDispatcher(), ExtensionManagementUtility\getSignalSlotDispatcher(), FileProcessingService\getSignalSlotDispatcher(), EditDocumentController\getSignalSlotDispatcher(), ExtensionManagementService\getSignalSlotDispatcher(), SystemInformationToolbarItem\getSignalSlotDispatcher(), IconFactory\getSignalSlotDispatcher(), SoftReferenceIndex\getSignalSlotDispatcher(), BackendUtility\getSignalSlotDispatcher(), DataHandler\getSortNumber(), WorkspaceRecord\getStages(), ActionHandler\getStageService(), AbstractRecord\getStagesService(), RemoteServer\getStagesService(), DatabaseCheck\getStatus(), Status\getStatusProviders(), AuthenticationService\getSubGroups(), DataProvider\getSubpages(), PageRepository\getSubpagesForPages(), TypoScriptFrontendControllerTest\getSysDomainCacheReturnsCurrentDomainRecord(), TypoScriptFrontendControllerTest\getSysDomainCacheReturnsForcedDomainRecord(), MailUtility\getSystemFromAddress(), TranslationConfigurationProvider\getSystemLanguages(), TranslationStatusController\getSystemLanguages(), RemoteServer\getSystemLanguages(), LoginController\getSystemNews(), TypoScriptTemplateInfoHook\getT3editor(), FileEditHook\getT3editor(), PageLayoutView\getTable_pages(), PageLayoutView\getTableMenu(), ConnectionMigrator\getTableRecordCount(), Tables\getTables(), ExtensionManagerTables\getTableStatements(), ExtensionService\getTargetPidByPlugin(), ActionTask\getTask(), TaskTypeRegistry\getTaskForType(), ExtendedTemplateService\getTemplateQueryBuilder(), ContentObjectArrayInternalContentObject\getTimeTracker(), ContentObjectArrayContentObject\getTimeTracker(), UserContentObject\getTimeTracker(), ContentContentObject\getTimeTracker(), ConditionMatcher\getTimeTracker(), ErrorHandler\getTimeTracker(), RecordsContentObject\getTimeTracker(), TypoScriptParser\getTimeTracker(), IndexSearchRepository\getTimeTracker(), TemplateService\getTimeTracker(), AbstractMenuContentObject\getTimeTracker(), TypoScriptFrontendController\getTimeTracker(), BrowseTreeView\getTitleStr(), AbstractRecordList\getTranslateTools(), FileList\getTranslationsForMetaData(), QueryGenerator\getTreeList(), SecurityStatus\getTrustedHostsPatternStatus(), EidUtility\getTSFE(), CleanUp\getTypo3TempStatistics(), SoftReferenceIndex\getTypoLinkParts(), ClickEnlargeViewHelper\getTypoScriptService(), Typo3DbBackend\getUidOfAlreadyPersistedValueObject(), CrawlerHook\getUidRootLineForClosestTemplate(), GetUniqueTest\getUnique(), DataHandler\getUniqueCountStatement(), GetUniqueTest\getUniqueDataProvider(), ConnectionMigrator\getUnusedFieldUpdateSuggestions(), ConnectionMigrator\getUnusedTableUpdateSuggestions(), UpgradeWizard\getUpdateObjectInstance(), ExtensionManagerTables\getUpdateStatements(), SchemaMigrator\getUpdateSuggestions(), SqlSchemaMigrationService\getUpdateSuggestions(), FrontendUserAuthentication\getUserTSconf(), ActionService\getVersionedId(), DocumentTemplate\getVersionSelector(), BackendUtilityHook\getWorkspaceService(), PagetreeCollectionsProcessor\getWorkspaceService(), ActionService\getWorkspaceService(), PageRepository\getWorkspaceVersionOfRecord(), BackendUtility\getWorkspaceVersionOfRecord(), ProductionExceptionHandler\handle(), RequestHandler\handleRequest(), CliRequestHandler\handleRequest(), TableGarbageCollectionTask\handleTable(), Typo3DatabaseBackend\has(), FileIndexRepository\hasIndexRecord(), DataProvider\hasNodeSubPages(), ContentObjectRenderer\HTMLparser_TSbridge(), ExtensionListUtility\import(), DatabaseData\importDatabaseData(), SchemaMigrator\importStaticData(), InstallUtility\importStaticSql(), AdministrationController\indexAction(), IndexConfigVisibleFieldsTest\indexConfigFormContainsExpectedFields(), IndexConfigVisibleFieldsTest\indexConfigFormContainsExpectedFieldsForMetaConfiguration(), CrawlerHook\indexExtUrl(), CrawlerHook\indexSingleRecord(), UserElementsController\init(), ParseHtmlController\init(), ElementHistoryController\init(), DatabaseIntegrityView\init(), FileSystemNavigationFrameController\init(), EditFileController\init(), FileController\init(), ConfigurationView\init(), FrontendUserImageUpdateWizard\init(), BrowseLinksController\init(), BackendLayoutWizardElement\init(), ElementInformationController\init(), SchedulerModuleController\init(), SimpleDataHandlerController\init(), ColorpickerController\init(), NewContentElementController\init(), NewRecordController\init(), PageRepository\init(), RecordList\init(), PageLayoutController\init(), GraphicalFunctions\init(), Indexer\init(), EditDocumentController\init(), TypoScriptFrontendController\initCaches(), FileController\initClipboard(), SimpleDataHandlerController\initClipboard(), LinkBrowserController\initCurrentUrl(), BrowseLinksController\initCurrentUrl(), ContextMenuConfiguration\initDataProvider(), LinkBrowserController\initDocumentTemplate(), BrowseLinksController\initDocumentTemplate(), AbstractLinkBrowserController\initDocumentTemplate(), TypoScriptFrontendController\initFEuser(), AbstractLinkBrowserController\initHookObjects(), SelectImageController\initHookObjects(), BackendUserHandler\initialize(), FrontendUserHandler\initialize(), LocalizationFactory\initialize(), FileBrowser\initialize(), AbstractLinkHandler\initialize(), AdminPanelView\initialize(), TaskExecutor\initialize(), AddImageHandler\initialize(), SearchController\initialize(), IndexSearchRepository\initialize(), SearchFormController\initialize(), LinkValidatorReport\initialize(), TypoScriptTemplateConstantEditorModuleFunctionController\initialize_editor(), TemplateAnalyzerModuleFunctionController\initialize_editor(), TypoScriptTemplateInformationModuleFunctionController\initialize_editor(), TypoScriptTemplateObjectBrowserModuleFunctionController\initialize_editor(), HelpController\initializeAction(), AbstractController\initializeAction(), PreviewController\initializeAction(), ViewModuleController\initializeAction(), AdministrationController\initializeAction(), ActionToolbarItem\initializeActionEntries(), FrontendBackendUserAuthentication\initializeAdminPanel(), Bootstrap\initializeBackendTemplate(), LocalizationFactory\initializeCache(), Bootstrap\initializeCache(), PageLayoutView\initializeClipboard(), RequestHandler\initializeController(), TemplateService\initializeDatabaseQueryRestrictions(), TcaFlexPrepare\initializeDataStructure(), Bootstrap\initializeErrorHandling(), FormRuntime\initializeFormStateFromRequest(), AbstractAction\initializeHandle(), AbstractRecordList\initializeLanguages(), ClassInfoCache\initializeLevel2Cache(), StorageRepository\initializeLocalCache(), MailMessage\initializeMailer(), ConfigurationService\initializeObject(), Dispatcher\initializeObject(), FormPersistenceManager\initializeObject(), RootlineUtility\initializeObject(), Bootstrap\initializeObjectManager(), RequestHandler\initializeOutputCompression(), Typo3DbQueryParser\initializeQueryBuilder(), FluidTemplateContentObject\initializeStandaloneViewInstance(), FrontendEditingController\initializeTceMain(), Testbase\initializeTestDatabaseAndTruncateTables(), BackendController\initializeToolbarItems(), Mailer\initializeTransport(), DatabaseTreeDataProvider\initializeTreeData(), GridDataService\initializeWorkspacesCachingFramework(), EidUtility\initLanguage(), TemplateService\initMPmap_create(), DocumentTemplate\initPageRenderer(), TypoScriptFrontendController\initPageRenderer(), PageRepositoryTest\initSetsPublicPropertyCorrectlyForLive(), PageRepositoryTest\initSetsPublicPropertyCorrectlyForWorkspacePreview(), ShortcutToolbarItem\initShortcuts(), TypoScriptFrontendController\initTemplate(), DataHandler\insertDB(), FileIndexRepository\insertRecord(), RecordCollectionRepositoryTest\insertTestData(), ConnectionMigrator\install(), SchemaMigrator\install(), NodeFactory\instantiate(), DataHandler\int_pageTreeInfo(), Indexer\is_grlist_set(), DatabaseConnect\isConnectSuccessful(), DatabaseCharsetUpdate\isDefaultConnectionMySQL(), AbstractTask\isExecutionRunning(), FrontendUserAuthentication\isExistingSessionRecord(), AbstractUserAuthentication\isExistingSessionRecord(), DatabaseData\isImportDatabaseDone(), FrontendLoginController\isInLocalDomain(), ConfigurationStatus\isMysqlUsed(), WorkspaceService\isNewPage(), ResourceStorage\isOnline(), RecyclerUtility\isParentPageDeleted(), BackendUserAuthentication\isUserAllowedToLogin(), AbstractUpdate\isWizardDone(), LanguageVisibleFieldsTest\languageFormContainsExpectedFields(), PageLayoutView\languageSelector(), EditDocumentController\languageSwitch(), IndexSearchRepository\languageWhere(), DatabaseTreeDataProvider\listFieldQuery(), LiveSearchController\liveSearchAction(), CategoryCollection\load(), AbstractRecordCollection\load(), UriBuilder\loadBackendRoutes(), CategoryBasedFileCollection\loadContents(), Registry\loadEntriesByNamespace(), LoadTcaService\loadExtensionTablesWithoutMigration(), ExtensionListUtility\loadIntoDatabase(), ValidatorTask\loadModTsConfig(), EditDocumentController\localizationRedirect(), BackendUtility\lockRecords(), AbstractUserAuthentication\logoff(), FileWriterTest\logsToFileDataProvider(), DatabaseIntegrityCheck\lostRecords(), PageInformationController\main(), VersionsCommand\main(), TranslationStatusController\main(), InfoModuleController\main(), InfoPageTyposcriptConfigController\main(), ElementHistoryController\main(), TypoScriptTemplateConstantEditorModuleFunctionController\main(), TemplateAnalyzerModuleFunctionController\main(), PageFunctionsController\main(), MoveElementController\main(), RenameFileController\main(), LinkValidatorReport\main(), EditFileController\main(), TypoScriptTemplateObjectBrowserModuleFunctionController\main(), ReplaceFileController\main(), VersionModuleController\main(), TypoScriptTemplateInformationModuleFunctionController\main(), TypoScriptTemplateModuleController\main(), CreateFolderController\main(), ImportExportController\main(), SearchFormController\main(), NewContentElementController\main(), ElementInformationController\main(), SetupModuleController\main(), PageLayoutController\main(), VersionsCommand\main_autoFix(), ParseHtmlController\main_parse_html(), UserElementsController\main_user(), OnlineMediaController\mainAction(), FramesetRenderer\make(), PageLayoutController\makeActionMenu(), ButtonBar\makeButton(), PageLayoutController\makeButtons(), SearchController\makeDescription(), ButtonBar\makeFullyRenderedButton(), GraphicalMenuContentObject\makeGifs(), ButtonBar\makeHelpButton(), ButtonBar\makeInputButton(), GeneralUtilityTest\makeInstanceCalledTwoTimesAfterAddInstanceReturnTwoDifferentInstances(), GeneralUtilityTest\makeInstanceCalledTwoTimesForNonSingletonClassReturnsDifferentInstances(), GeneralUtilityTest\makeInstanceCalledTwoTimesForSingletonClassReturnsSameInstance(), GeneralUtilityTest\makeInstanceCalledTwoTimesForSingletonClassWithPurgeInstancesInbetweenReturnsDifferentInstances(), GeneralUtilityTest\makeInstanceInstanciatesConfiguredImplementation(), GeneralUtilityTest\makeInstancePassesParametersToConstructor(), GeneralUtilityTest\makeInstanceResolvesConfiguredImplementationsRecursively(), GeneralUtilityTest\makeInstanceReturnsClassInstance(), GeneralUtilityTest\makeInstanceWithBeginningSlashInClassNameThrowsException(), GeneralUtilityTest\makeInstanceWithEmptyArrayThrowsException(), GeneralUtilityTest\makeInstanceWithEmptyClassNameThrowsException(), GeneralUtilityTest\makeInstanceWithNonEmptyArrayThrowsException(), GeneralUtilityTest\makeInstanceWithNullClassNameThrowsException(), GeneralUtilityTest\makeInstanceWithZeroStringClassNameThrowsException(), ButtonBar\makeLinkButton(), MenuRegistry\makeMenu(), Menu\makeMenuItem(), QueryGenerator\makeOptionList(), PageLayoutController\makeQuickEditMenu(), FileList\makeRef(), AbstractDatabaseRecordList\makeSearchString(), ButtonBar\makeShortcutButton(), ButtonBar\makeSplitButton(), QueryView\makeStoreControl(), DataMapper\mapDateTime(), ResourceStorage\markAsPermanentlyOffline(), ResourceStorage\markAsTemporaryOffline(), AbstractTask\markExecution(), ExtensionRepository\markExtensionWithMaximumVersionAsCurrent(), FileIndexRepository\markFileAsMissing(), DatabaseData\markImportDatabaseDone(), SearchController\markupSWpartsOfString(), SearchFormController\markupSWpartsOfString(), AbstractUpdate\markWizardAsDone(), IndexSearchRepository\mediaTypeWhere(), PageLayoutController\menuConfig(), SchemaMigrator\migrate(), FrontendUserImageUpdateWizard\migrateField(), TcaFlexPrepare\migrateFlexformTcaRecursive(), ConnectionMigrator\migrateUnprefixedRemovedFieldsToRenames(), ConnectionMigrator\migrateUnprefixedRemovedTablesToRenames(), TcaSelectItemsTest\mockDatabaseConnection(), BackendUtilityTest\mockDatabaseConnection(), FrontendEditingController\move(), PageRepository\movePlhOL(), DataHandler\moveRecord_raw(), DataHandlerHook\moveRecord_wsPlaceholders(), DatabaseSelect\needsExecution(), DatabaseData\needsExecution(), TypoScriptFrontendController\newCObj(), NewsVisibleFieldsTest\newsFormContainsExpectedFields(), DataHandler\noRecordsFromUnallowedTables(), NoteVisibleFieldsTest\noteFormContainsExpectedFields(), TypoScriptTemplateModuleController\noTemplate(), PageLayoutView\numberOfRecords(), AdvancedPassword\onSubmit(), TypoScriptFrontendController\pageErrorHandler(), DataHandler\pageInfo(), PageLayoutView\pages_getTree(), PagesVisibleFieldsTest\pagesFormContainsExpectedFields(), PagesLanguageOverlayVisibleFieldsTest\pagesLanguageOverlayFormContainsExpectedFields(), VersionModuleController\pageSubContent(), SchemaMigrator\parseCreateTableStatements(), FlexFormTools\parseDataStructureByIdentifier(), DataStructureIdentifierHook\parseDataStructureByIdentifierPostProcess(), ContentObjectRenderer\parseFunc(), RecordHistory\performRollback(), MigrateShortcutUrlsAgainUpdate\performUpdate(), WizardDoneToRegistry\performUpdate(), BackendUserStartModuleUpdate\performUpdate(), DatabaseCharsetUpdate\performUpdate(), TableFlexFormToTtContentFieldsUpdate\performUpdate(), LanguageIsoCodeUpdate\performUpdate(), FileListIsStartModuleUpdate\performUpdate(), MigrateMediaToAssetsForTextMediaCe\performUpdate(), PageShortcutParentUpdate\performUpdate(), WorkspacesNotificationSettingsUpdate\performUpdate(), ContentTypesToTextMediaUpdate\performUpdate(), FilesReplacePermissionUpdate\performUpdate(), ProcessedFileChecksumUpdate\performUpdate(), ExtensionManagerTables\performUpdate(), SqlSchemaMigrationService\performUpdateQueries(), AbstractPlugin\pi_exec_query(), AbstractPlugin\pi_getCategoryTableContents(), AbstractPlugin\pi_getEditPanel(), AbstractPlugin\pi_list_browseresults(), DataHandler\prepareCacheFlush(), AbstractMenuContentObject\prepareMenuItemsForKeywordsMenu(), AbstractContainer\previewFieldValue(), PagePositionMap\printContentElementColumns(), ContentDataProcessor\process(), ProcessingRule\process(), DataHandlerHook\processCmdmap_deleteAction(), CrawlerHook\processDatamap_afterDatabaseOperations(), DecryptionHook\processDatamap_preProcessFieldArray(), AbstractItemProvider\processForeignTableClause(), ClickMenu\processingByExtClassArray(), AbstractProcessorTest\processorRefusesInvalidConfigurationOptions(), FrontendLoginController\processRedirect(), SpellCheckingController\processRequest(), PlainDataResolver\processSorting(), TemplateService\processTemplate(), QueryView\procesStoreControl(), PlainDataResolver\processVersionMovePlaceholders(), PlainDataResolver\processVersionOverlays(), GeneralUtilityTest\purgeInstancesDropsAddedInstance(), ExtendedFileUtility\pushErrorMessagesToFlashMessageQueue(), SplitStorage\put(), SplitStorageTest\putDeletesCurrentKeyIfNullIsGiven(), SplitStorageTest\putDeletesKeysOlderThan30Minutes(), QueryView\queryMaker(), RecordCollectionRepository\queryMultipleRecords(), QueryBuilderTest\queryRestrictionsAreAddedForCountOnExecute(), QueryBuilderTest\queryRestrictionsAreAddedForSelectOnExecute(), QueryBuilderTest\queryRestrictionsAreReevaluatedOnSettingsChangeForExecute(), QueryBuilderTest\queryRestrictionsAreReevaluatedOnSettingsChangeForGetSQL(), DataSet\read(), RelationHandler\readForeignField(), UpgradeWizard\recheckWizards(), DataHandler\recordInfo(), FrontendUserAuthentication\regenerateSessionId(), AbstractUserAuthentication\regenerateSessionId(), AdditionalColumnService\register(), InstallUtility\reloadOpcache(), DataHandler\remapListedDBRecords(), Registry\remove(), Typo3DatabaseBackend\remove(), FileIndexRepository\remove(), ProcessedFileRepository\removeAll(), Registry\removeAllByNamespace(), MetaDataRepository\removeByFileUid(), TreelistCacheUpdateHooks\removeExpiredCacheEntries(), SplitStorage\removeExpiredKeys(), FileDeletionAspect\removeFromRepository(), Indexer\removeOldIndexedFiles(), Indexer\removeOldIndexedPages(), MissingFilesCommand\removeReferencesToMissingFiles(), MissingRelationsCommand\removeReferencesToMissingRecords(), FrontendUserAuthentication\removeSessionData(), ShortcutToolbarItem\removeShortcutAction(), TemplateContentObject\render(), InputColorPickerElement\render(), InputTextElement\render(), RsaInputElement\render(), FlexFormContainerContainer\render(), UsernamePasswordLoginProvider\render(), OuterWrapContainer\render(), TextElement\render(), RemoveExtensionViewHelper\render(), ConfigureExtensionViewHelper\render(), FluidFormRenderer\render(), Avatar\render(), KeywordsViewHelper\render(), UrlLinkHandler\render(), MailLinkHandler\render(), EditImageHandler\render(), AbstractStandaloneMessage\render(), BackendController\render(), PageRenderer\render(), AjaxRequestHandler\renderAsJavascript(), RecordHistory\renderDiff(), FileBrowser\renderFilesInFolder(), AddImageHandler\renderFilesInFolder(), ActionTask\renderFlashMessages(), TaskModuleController\renderInformationContent(), FolderLinkHandler\renderItem(), FileLinkHandler\renderItem(), TaskModuleController\renderListMenu(), PageRenderer\renderPageWithUncachedObjects(), FormView\renderRenderable(), SetupModuleController\renderStartModuleSelect(), PagesViewHelper\renderStatic(), SysFileMountsViewHelper\renderStatic(), SysLanguageViewHelper\renderStatic(), SwitchUserViewHelper\renderStatic(), RenderContentElementPreviewViewHelper\renderStatic(), ErrorIconViewHelper\renderStatic(), TypolinkViewHelper\renderStatic(), ShortcutViewHelper\renderStatic(), HtmlViewHelper\renderStatic(), CaseViewHelper\renderStatic(), AbstractContainer\renderTabMenu(), SetupModuleController\renderUserSetup(), ValueSliderWizard\renderWizard(), ResourceStorage\replaceFile(), Typo3DbQueryParser\replaceTableNameWithAlias(), PhpFrontendTest\requireOnceCallsTheBackendsRequireOnceMethod(), QueryBuilder\resetRestrictions(), DataHandlerHook\resetStageOfElements(), LinkService\resolve(), DataHandler\resolvePid(), RecordHistory\resolveShUid(), DataHandler\resorting(), ExtDirectRouter\routeAction(), Bootstrap\run(), TemplateService\runThroughTemplates(), TypoScriptTemplateInfoHook\save(), ShortcutToolbarItem\saveFormAction(), AdministrationRepository\saveKeywords(), ActionTask\saveNewBackendUser(), AdministrationRepository\saveStopWords(), SuggestWizardController\searchAction(), SearchController\searchAction(), IndexSearchRepository\searchDistinct(), IndexSearchRepository\searchMetaphone(), IndexSearchRepository\searchSentence(), IndexSearchRepository\sectionTableWhere(), WorkspaceService\selectAllVersionsFromPages(), DatabaseIntegrityCheck\selectNonEmptyRecordsWithFkeys(), BackendUtility\selectVersionsOfRecord(), MboxTransport\send(), ActionHandler\sendPageToNextStage(), ActionHandler\sendPageToPreviousStage(), TypoScriptFrontendController\sendRedirect(), Registry\set(), Typo3DatabaseBackend\set(), FileBackend\set(), SimpleFileBackend\set(), AbstractUserAuthentication\setAndSaveSessionData(), SetupModuleController\setAvatarFileUid(), BackendUserAuthentication\setCachedList(), TemplateService\setCacheEntry(), TreelistCacheUpdateHooks\setCacheExpiration(), DeletedRecords\setData(), Import\setFlexFormRelations(), DataHandler\setHistory(), FileWriterTest\setLogFileAcceptsAbsolutePath(), FileWriterTest\setLogFileSetsLogFile(), PhpFrontendTest\setPassesPhpSourceCodeTagsAndLifetimeToBackend(), ReferenceIndex\setReferenceValue(), ReferenceIndex\setReferenceValue_dbRels(), ReferenceIndex\setReferenceValue_fileRels(), ReferenceIndex\setReferenceValue_softreferences(), AbstractTask\setScheduler(), GeneralUtilityTest\setSingletonInstanceCalledTwoTimesMakesMakeInstanceReturnLastSetInstance(), GeneralUtilityTest\setSingletonInstanceMakesMakeInstanceReturnThatInstance(), Icon\setSize(), TypoScriptFrontendController\setSysLastChanged(), TypoScriptFrontendController\setSysPageWhereClause(), AbstractDatabaseRecordList\setTotalItems(), TimeTracker\setTSlogMessage(), SoftReferenceIndex\setTypoLinkPartsElement(), LogManagerTest\setUp(), MailMessageTest\setUp(), GetUniqueTest\setUp(), MarkerBasedTemplateServiceTest\setUp(), LocalesTest\setUp(), ContentObjectRendererTest\setUp(), DataMapperTest\setUp(), SqlReaderTest\setUp(), ConditionMatcherTest\setUp(), BitmapIconProviderTest\setUp(), FontawesomeIconProviderTest\setUp(), WorkspaceStageVisibleFieldsTest\setUp(), RecordCollectionRepositoryTest\setUp(), AbstractExportTestCase\setUp(), TableBuilderTest\setUp(), QueryParserTest\setUp(), SaltedPasswordServiceTest\setUp(), RelationTest\setUp(), XliffParserTest\setUp(), SvgIconProviderTest\setUp(), LocallangXmlParserTest\setUp(), TranslationTest\setUp(), AbstractImportTestCase\setUp(), InTest\setUp(), SchemaColumnDefinitionListenerTest\setUp(), OperatorTest\setUp(), AddTest\setUp(), ConnectionTest\setUp(), QueryBuilderTest\setUp(), BulkUpdateTaskTest\setUp(), WorkspaceVisibleFieldsTest\setUp(), CountTest\setUp(), CategoryCollectionTest\setUp(), SchemaMigratorTest\setUp(), SplitStorageTest\setUp(), PdoBackendTest\setUpBackend(), FunctionalTestCase\setUpFrontendRootPage(), BackendUserAuthentication\setWorkspace(), BackendUserAuthentication\setWorkspacePreview(), ShortcutToolbarItem\shortcutExists(), FrontendLoginController\showForgot(), UpgradeWizard\silentCacheFrameworkTableSchemaMigration(), FrontendSimulatorUtility\simulateFrontendEnvironment(), HtmlViewHelper\simulateFrontendEnvironment(), SetupModuleController\simulateUser(), ReviewController\singleIndexAction(), PackageManager\sortAndSavePackageStates(), AbstractMenuContentObject\start(), AbstractDatabaseRecordList\start(), AdministrationController\statisticDetailsAction(), AbstractTask\stop(), PageRepository\storeHash(), FrontendUserAuthentication\storeSessionData(), Indexer\submit_grlist(), Indexer\submit_section(), Indexer\submitFile_grlist(), Indexer\submitFile_section(), Indexer\submitFilePage(), Indexer\submitPage(), Indexer\submitWords(), SwitchBackUserHook\switchBack(), BackendUserSessionRepository\switchBackToOriginalUser(), BackendUserController\switchUser(), ConnectionMigratorTest\tableNamesStickToTheMaximumCharactersWhenPrefixedForRemoval(), TaskGroupVisibleFieldsTest\taskGroupFormContainsExpectedFields(), LogManagerTest\tearDown(), RecordCollectionRepositoryTest\tearDown(), LocallangXmlParserTest\tearDown(), XliffParserTest\tearDown(), TemplateVisibleFieldsTest\templateFormContainsExpectedFields(), TypoScriptTemplateModuleController\templateMenu(), BackendUserController\terminateBackendUserSessionAction(), DatabaseIntegrityCheck\testDBRefs(), BulkUpdateTaskTest\testIfPasswordsAreUpdatedWithSaltedHashesForGivenUserList(), RecordHistory\toggleHighlight(), DeletedRecordsController\transform(), ExtendedFileUtility\transformFileReferenceToRecordReference(), DataHandler\transformRichtextContentToDatabase(), ConnectionMigrator\transformTablesForDatabasePlatform(), BackendUtility\translationCount(), TranslationConfigurationProvider\translationInfo(), RteHtmlParser\TS_links_db(), RteHtmlParser\TS_links_rte(), ContentObjectRendererTest\typolinkReturnsCorrectLinksForPages(), DeletedRecords\undeleteData(), AbstractTask\unmarkAllExecutions(), AbstractTask\unmarkExecution(), ProcessedFileRepository\update(), MetaDataRepository\update(), FileIndexRepository\update(), Indexer\update_grlist(), PermissionController\updateAction(), DataHandler\updateDB(), InstallUtility\updateDbWithExtTablesSql(), Helper\updateExtList(), FileIndexRepository\updateIndexingTime(), TypoScriptFrontendController\updateMD5paramsRecord(), RteAcronymButtonRenamedToAbbreviation\updatePages(), DeprecatedRteProperties\updatePages(), Indexer\updateParsetime(), SaltedPasswordService\updatePassword(), FilesWithMultipleReferencesCommand\updateReferenceIndex(), MissingFilesCommand\updateReferenceIndex(), LostFilesCommand\updateReferenceIndex(), RteImagesCommand\updateReferenceIndex(), MissingRelationsCommand\updateReferenceIndex(), ReferenceIndex\updateRefIndexTable(), Indexer\updateRootline(), LanguageRepository\updateSelectedLanguages(), Indexer\updateSetId(), LanguageController\updateTranslationAction(), Indexer\updateTstamp(), TaskModuleController\urlInIframe(), AbstractUserAuthentication\userConstraints(), Avatar\validateSortAndInitiateAvatarProviders(), DataHandlerHook\version_clearWSID(), DataHandlerHook\version_setStage(), VersionModuleController\versioningMgm(), DataHandler\versionizeRecord(), ActionTask\viewEditRecord(), BackendUtility\viewOnClick(), ActionTask\viewRecordList(), ActionTask\viewSqlQuery(), DatabaseIntegrityCheck\whereIsFileReferenced(), DatabaseIntegrityCheck\whereIsRecordReferenced(), TypoScriptFrontendController\whichWorkspace(), NewContentElementController\wizard_appendWizards(), NewContentElementController\wizardArray(), AdministrationController\wordDetailAction(), WorkspaceVisibleFieldsTest\workspaceFormContainsExpectedFields(), WorkspaceStageVisibleFieldsTest\workspaceStageFormContainsExpectedFields(), ElementBrowserPageTreeView\wrapTitle(), ConfigurationManager\writeLocalConfiguration(), DatabaseWriter\writeLog(), AbstractExceptionHandler\writeLog(), ErrorHandler\writeLog(), BackendUserAuthentication\writelog(), SearchController\writeSearchStat(), and AbstractUserAuthentication\writeUC().

static makeInstanceService (   $serviceType,
  $serviceSubType = '',
  $excludeServiceKeys = [] 
)
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|string[] The service object or an array with error infos.

Definition at line 4127 of file GeneralUtility.php.

References $GLOBALS, ExtensionManagementUtility\deactivateService(), ExtensionManagementUtility\findService(), and DebugUtility\viewArray().

Referenced by AbstractUserAuthentication\checkAuthentication(), FrontendUserAuthentication\fetchGroupData(), and AbstractUserAuthentication\processLoginData().

static makeRedirectUrl (   $inUrl,
  $l = 0,
  $index_script_url = '' 
)
static

Create a shortened "redirect" URL with specified length from an incoming URL

Parameters
string$inUrlInput URL
int$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 4213 of file GeneralUtility.php.

References $GLOBALS.

static md5int (   $str)
static

Makes a positive integer hash out of the first 7 chars from the md5 hash of the input

Parameters
string$strString to md5-hash
Returns
int Returns 28bit integer-hash

Definition at line 714 of file GeneralUtility.php.

Referenced by CrawlerHook\crawler_init(), FolderTreeView\generateExpandCollapseParameter(), TemplateService\getCurrentPageData(), FolderTreeView\getId(), FolderTreeView\getShortHashNumberForStorage(), AbstractUserAuthentication\hashLockClause_getHashInt(), and FileList\linkWrapDir().

static minifyJavaScript (   $script,
$error = '' 
)
static
static mkdir (   $newFolder)
static

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

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

Definition at line 2263 of file GeneralUtility.php.

References $GLOBALS.

Referenced by FileLockStrategy\__construct(), SemaphoreLockStrategy\__construct(), SimpleLockStrategy\__construct(), ActionTask\action_createDir(), FileHandlingUtility\addDirectory(), Import\checkOrCreateDir(), ExtensionManagementService\copyDependencies(), GeneralUtilityTest\copyDirectoryCopiesFilesAndDirectoriesWithAbsolutePaths(), GeneralUtilityTest\copyDirectoryCopiesFilesAndDirectoriesWithRelativePaths(), UploadExtensionFileController\copyExtensionFolderToTempFolder(), GeneralUtility\createDirectoryPath(), FileHandlingUtilityTest\createFakeExtension(), InstallUtilityTest\createFakeExtension(), LocalDriver\createFolder(), FileHandlingUtility\createZipFileFromExtension(), GeneralUtilityTest\fixPermissionsCorrectlySetsPermissionsRecursive(), GeneralUtilityTest\fixPermissionsSetsDefaultPermissionsToDirectory(), GeneralUtilityTest\fixPermissionsSetsPermissionsToDirectory(), GeneralUtilityTest\fixPermissionsSetsPermissionsToDirectoryWithTrailingSlash(), GeneralUtilityTest\fixPermissionsSetsPermissionsToHiddenDirectory(), InstallStatusReport\getFileSystemStatus(), InstallUtility\importInitialFiles(), InstallUtilityTest\importT3DFileDoesNotImportFileIfAlreadyImported(), GeneralUtilityTest\mkdirCreatesDirectory(), GeneralUtilityTest\mkdirCreatesDirectoryWithTrailingSlash(), GeneralUtilityTest\mkdirCreatesHiddenDirectory(), GeneralUtilityTest\mkdirSetsGroupOwnershipOfCreatedDirectory(), GeneralUtilityTest\mkdirSetsPermissionsOfCreatedDirectory(), InstallUtilityTest\processDatabaseUpdatesCallsImportFile(), Import\processSoftReferences_saveFile_createRelFile(), and UploadExtensionFileController\removeExtensionAndRestoreFromBackup().

static 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
InvalidArgumentException If $directory or $deepDirectory are not strings
RuntimeException If directory could not be created

Definition at line 2282 of file GeneralUtility.php.

Referenced by ResourceCompressor\__construct(), LocalDriverTest\copyFolderWithinStorageCopiesFileInSingleSubFolderToNewFolderName(), LocalDriverTest\copyFolderWithinStorageCopiesSingleSubFolderToNewFolderName(), SimpleFileBackend\createFinalCacheDirectory(), LocalDriver\createFolder(), FileWriter\createLogFile(), ExtensionManagementUtilityTest\createMockPackageManagerWithMockPackage(), FileHandlingUtility\createNestedDirectory(), GraphicalFunctions\createTempSubDir(), ClassLoadingInformation\ensureAutoloadInfoDirExists(), SessionService\ensureSessionSavePathExists(), TestSetup\getImagesPath(), ResourceStorageTest\getNestedProcessingFolderTest(), AbstractOnlineMediaHelper\getTempFolderPath(), FolderStructureTestCase\getVirtualTestDir(), GeneralUtilityTest\getVirtualTestDir(), ResourceStorageTest\isWithinFileMountBoundariesRespectsReadOnlyFileMounts(), FrontendUserImageUpdateWizard\migrateField(), GeneralUtilityTest\mkdirDeepCreatesDirectory(), GeneralUtilityTest\mkdirDeepCreatesDirectoryInVfsStream(), GeneralUtilityTest\mkdirDeepCreatesDirectoryWithDoubleSlashes(), GeneralUtilityTest\mkdirDeepCreatesSubdirectoriesRecursive(), GeneralUtilityTest\mkdirDeepDoesNotChangePermissionsOfExistingSubDirectories(), GeneralUtilityTest\mkdirDeepFixesPermissionsOfCreatedDirectory(), GeneralUtilityTest\mkdirDeepFixesPermissionsOnNewParentDirectory(), GeneralUtilityTest\mkdirDeepSetsGroupOwnershipOfCreatedDirectory(), GeneralUtilityTest\mkdirDeepSetsGroupOwnershipOfCreatedParentDirectory(), GeneralUtilityTest\mkdirDeepSetsGroupOwnershipOnNewSubDirectory(), GeneralUtilityTest\mkdirDeepThrowsExceptionIfBaseDirectoryIsNotOfTypeString(), GeneralUtilityTest\mkdirDeepThrowsExceptionIfDeepDirectoryIsNotOfTypeString(), GeneralUtilityTest\mkdirDeepThrowsExceptionIfDirectoryCreationFails(), GraphicalFunctions\readPngGif(), ResourceStorageTest\replaceFileFailsIfLocalFileDoesNotExist(), CoreUpdateService\setDownloadTargetPath(), DocumentationService\unzipDocumentPackage(), FileHandlingUtility\unzipExtensionFromFile(), TerService\unzipTranslationFile(), and TerService\updateTranslation().

static 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 441 of file GeneralUtility.php.

References GeneralUtility\strtolower().

Referenced by GeneralUtilityTest\normalizeIPv6CorrectlyNormalizesAddresses().

static presetApplicationContext ( 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
RuntimeException if applicationContext is overriden

Definition at line 4602 of file GeneralUtility.php.

References GeneralUtility\$applicationContext.

Referenced by Bootstrap\baseSetup().

static 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 4098 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\makeInstanceCalledTwoTimesForSingletonClassWithPurgeInstancesInbetweenReturnsDifferentInstances(), GeneralUtilityTest\purgeInstancesDropsAddedInstance(), FileReferenceTest\setUp(), BootstrapTest\tearDown(), TcaCheckboxItemsTest\tearDown(), TcaRadioItemsTest\tearDown(), Typo3DbQueryParserTest\tearDown(), DatabaseSystemLanguageRowsTest\tearDown(), TcaSelectTreeItemsTest\tearDown(), TcaFlexPrepareTest\tearDown(), TcaSelectItemsTest\tearDown(), FrontendLoginControllerTest\tearDown(), and StandaloneViewTest\tearDown().

static 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 4547 of file GeneralUtility.php.

Referenced by BackendController\__construct(), SetupModuleController\addAvatarButtonJs(), RichTextElement\addOnSubmitJavaScriptCode(), VersionModuleController\adminLinks(), UserElements\buildJavascriptConfiguration(), Typo3HtmlParser\buildJavascriptConfiguration(), Typo3Link\buildJavascriptConfiguration(), Typo3Image\buildJavascriptConfiguration(), Typo3Link\buildJSClassesAnchorArray(), CheckboxElement\checkBoxParams(), SearchFormController\compileResult(), SearchController\compileResultRows(), DatabaseRecordList\createReferenceHtml(), ClickMenu\DB_changeFlag(), ClickMenu\DB_copycut(), ClickMenu\DB_db_list(), ClickMenu\DB_delete(), ClickMenu\DB_edit(), ClickMenu\DB_info(), ClickMenu\DB_new(), ClickMenu\DB_paste(), DebugUtility\debug(), DebugUtility\debugInPopUpWindow(), RecordHistory\displaySettings(), ClickMenu\dragDrop_copymovefolder(), ClickMenu\dragDrop_copymovepage(), BackendUtility\editOnClick(), FrontendEditPanel\editPanelLinkWrap(), RsaEncryptionEncoder\enableRsaEncryption(), ConfigurationForm\ext_getForm(), ClickMenu\FILE_copycut(), ClickMenu\FILE_delete(), ClickMenu\FILE_launch(), ClickMenu\FILE_paste(), JavaScriptMenuContentObject\generate_level(), DatabaseRecordList\getButtons(), EditFileController\getButtons(), RteController\getButtons(), EditDocumentController\getButtons(), SchedulerModuleController\getButtons(), RichTextElement\getCkEditorRequireJsModuleCode(), Clipboard\getContentFromTab(), DatabaseRecordList\getDocHeaderButtons(), BackendUtility\getDropdownMenu(), AdminPanelView\getEditModule(), BackendUtility\getFuncCheck(), BackendUtility\getFuncInput(), BackendUtility\getFuncMenu(), InlineControlContainer\getLevelInteractionLink(), BackendUtility\getLinkToDataHandlerAction(), OpendocsToolbarItem\getMenuEntry(), BrowseLinksController\getPageConfigLabel(), TableController\getTableHTML(), BackendController\handlePageEditing(), ContentObjectRenderer\imageLinkWrap(), UserElementsController\init(), CreateFolderController\init(), EditDocumentController\init(), BrowseLinksController\initDocumentTemplate(), ShortcutToolbarItem\initShortcuts(), FormResultCompiler\JSbottom(), PageLayoutView\languageSelector(), AbstractMenuContentObject\link(), FileList\linkClipboardHeaderIcon(), DatabaseRecordList\linkClipboardHeaderIcon(), ElementBrowserFramesetController\main(), MoveElementController\main(), TypoScriptTemplateModuleController\main(), NewContentElementController\main(), PageLayoutController\main(), UserElementsController\main_user(), PageLayoutController\makeButtons(), DatabaseRecordList\makeClip(), DatabaseRecordList\makeControl(), PageBrowsingViewHelper\makecurrentPageSelector_link(), FileList\makeEdit(), SearchFormController\makePointerSelector_link(), FileList\makeRef(), DocumentTemplate\makeShortcutIcon(), ModuleTemplate\makeShortcutIcon(), PageLayoutView\newContentElementOnClick(), PageMovingPagePositionMap\onClickEvent(), PagePositionMap\onClickEvent(), ContentCreationPagePositionMap\onClickInsertRecord(), ContentLayoutPagePositionMap\onClickInsertRecord(), PagePositionMap\onClickInsertRecord(), EditDocumentController\openInNewWindowLink(), AbstractPlugin\pi_openAtagHrefInJSwindow(), ElementBrowserFolderTreeView\PM_ATagWrap(), ElementBrowserPageTreeView\PM_ATagWrap(), FolderTreeView\PMiconATagWrap(), PageTreeView\PMiconATagWrap(), Clipboard\printClipboard(), ClickMenu\printDBClickMenu(), ElementBrowserPageTreeView\printTree(), SpellCheckingController\processRequest(), GeneralUtilityTest\quoteJsValueTest(), DocumentTemplate\redirectUrls(), ModuleTemplate\redirectUrls(), InputColorPickerElement\render(), RsaInputElement\render(), InputTextElement\render(), SelectCheckBoxElement\render(), T3editorElement\render(), TranslationStatusController\renderL10nTable(), DatabaseRecordList\renderListHeader(), DatabaseRecordList\renderListNavigation(), DatabaseRecordList\renderListRow(), InlineControlContainer\renderPossibleRecordsSelectorTypeGroupDB(), InlineControlContainer\renderPossibleRecordsSelectorTypeSelect(), SelectSingleBoxElement\renderResetButtonElement(), BackendController\setStartupModule(), SetupModuleController\simulateUser(), ReviewController\singleIndexAction(), ContentObjectRenderer\stdWrap_encodeForJavaScriptValue(), PageLayoutView\tt_content_drawHeader(), ClickMenu\urlRefForCM(), BackendUtility\viewOnClick(), BackendUtilityTest\viewOnClickReturnsOnClickCodeWithAlternativeUrl(), ActionTask\viewRecordList(), ContentLayoutPagePositionMap\wrapColumnHeader(), ElementBrowserFolderTreeView\wrapIcon(), BrowseTreeView\wrapIcon(), FolderTreeView\wrapIcon(), ContentLayoutPagePositionMap\wrapRecordTitle(), ElementBrowserPageTreeView\wrapTitle(), ElementBrowserFolderTreeView\wrapTitle(), PageTreeView\wrapTitle(), FolderTreeView\wrapTitle(), AbstractTreeView\wrapTitle(), JavaScriptMenuContentObject\writeMenu(), and GraphicalMenuContentObject\writeMenu().

static 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
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9, use the PHP methods directly instead

Definition at line 986 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\rawUrlEncodeFpPreservesSlashes().

static 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.
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9, implement directly via PHP instead

Definition at line 972 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\rawUrlEncodeJsPreservesWhitespaces().

static removeDotsFromTS ( array  $ts)
static

Removes dots "." from end of a key identifier of TypoScript styled array. array('key.' => array('property.' => 'value')) –> array('key' => array('property' => 'value'))

Parameters
array$tsTypoScript configuration array
Returns
array TypoScript configuration array without dots at the end of all keys

Definition at line 1410 of file GeneralUtility.php.

Referenced by BackendUserAuthentication\backendSetUC(), ContextMenu\buildNestedJSArray(), RichTextElement\buildNestedJSArray(), TypoScriptFrontendController\getConfigArray(), TemplatePaths\getContextSpecificViewConfiguration(), FormEngineUtility\overrideFieldConf(), GeneralUtilityTest\removeDotsFromTypoScriptOverridesSubArray(), GeneralUtilityTest\removeDotsFromTypoScriptOverridesWithScalar(), and GeneralUtilityTest\removeDotsFromTypoScriptSucceedsWithDottedArray().

static 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 2530 of file GeneralUtility.php.

Referenced by AbstractItemProvider\addItemsFromFolder(), CrawlerHook\crawler_execute_type2(), FileHandlingUtility\createZipFileFromExtension(), RteImagesCommand\findAllRteFilesInDirectory(), and LostFilesCommand\findLostFiles().

static removeSingletonInstance (   $className,
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
InvalidArgumentException
Parameters
string$className
\TYPO3\CMS\Core\SingletonInterface$instance
Returns
void

Definition at line 3990 of file GeneralUtility.php.

static 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
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9

Definition at line 255 of file GeneralUtility.php.

static 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
Deprecated:
since TYPO3 CMS 8, this file will be removed in TYPO3 CMS 9

Definition at line 4197 of file GeneralUtility.php.

static 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
Deprecated:
since TYPO3 CMS 8, this file will be removed in TYPO3 CMS 9

Definition at line 4180 of file GeneralUtility.php.

static 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 4016 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\resetSingletonInstancesResetsPreviouslySetInstance(), GeneralUtilityTest\resetSingletonInstancesSetsGivenInstance(), MailUtilityTest\tearDown(), FileReferenceTest\tearDown(), BootstrapTest\tearDown(), FolderTest\tearDown(), CachingFrameworkGarbageCollectionTest\tearDown(), FlexFormServiceTest\tearDown(), ResourceFactoryTest\tearDown(), FileTest\tearDown(), DataStructureIdentifierHookTest\tearDown(), TcaGroupTest\tearDown(), FormEditorControllerTest\tearDown(), UpdateExtensionListTaskTest\tearDown(), ProcessingRuleTest\tearDown(), TcaCheckboxItemsTest\tearDown(), TcaRadioItemsTest\tearDown(), ExtensionManagementUtilityTest\tearDown(), FormManagerControllerTest\tearDown(), ResourceStorageTest\tearDown(), Typo3DbQueryParserTest\tearDown(), DatabaseSystemLanguageRowsTest\tearDown(), TcaSelectTreeItemsTest\tearDown(), TcaFlexPrepareTest\tearDown(), DataHandlerTest\tearDown(), TcaSelectItemsTest\tearDown(), FileExtensionFilterTest\tearDown(), GeneralUtilityTest\tearDown(), FluidTemplateContentObjectTest\tearDown(), FrontendLoginControllerTest\tearDown(), ContentObjectRendererTest\tearDown(), and StandaloneViewTest\tearDown().

static 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.
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9. This is now integrated in FlexFormTools->parseDataStructureByIdentifier()

Definition at line 3681 of file GeneralUtility.php.

static 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!
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9. This is now integrated in FlexFormTools->parseDataStructureByIdentifier()

Definition at line 3641 of file GeneralUtility.php.

static revExplode (   $delimiter,
  $string,
  $count = 0 
)
static

Reverse explode which explodes the string counting from behind.

Note: The delimiter has to given in the reverse order as it is occurring within the string.

GeneralUtility::revExplode('[]', '[my][words][here]', 2) ==> array('[my][words', 'here]')

Parameters
string$delimiterDelimiter string to explode with
string$stringThe string to explode
int$countNumber of array entries
Returns
array Exploded values

Definition at line 1258 of file GeneralUtility.php.

Referenced by ContentObjectRenderer\encaps_lineSplit(), FolderTreeView\evaluateExpandCollapseParameter(), FileExtensionFilter\filterInlineChildren(), IndexSearchRepository\freeIndexUidWhere(), SearchFormController\freeIndexUidWhere(), DataHandlerHook\getEmailsForStageChangeNotification(), SystemEnvironmentBuilder\getPathSite(), GeneralUtilityTest\revExplodeCorrectlyExplodesStringForGivenPartsCount(), and GeneralUtilityTest\revExplodeRespectsLimitThreeWhenExploding().

static 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.
bool$removeNonEmptyAllow deletion of non-empty directories
Returns
bool TRUE if went well!

Definition at line 2338 of file GeneralUtility.php.

Referenced by FileLockStrategyTest\constructorCreatesLockDirectoryIfNotExisting(), SimpleLockStrategyTest\constructorCreatesLockDirectoryIfNotExisting(), LocalDriver\deleteFolder(), PackageManager\deletePackage(), GeneralUtilityTest\getAllFilesAndFoldersInPathReturnsArrayWithMd5Keys(), UploadExtensionFileController\removeBackupFolder(), FileHandlingUtility\removeDirectory(), UploadExtensionFileController\removeExtensionAndRestoreFromBackup(), LanguageController\removeLanguageAction(), Testbase\removeOldInstanceIfExists(), GeneralUtilityTest\rmdirDoesNotRemoveDirectoryWithFilesAndReturnsFalseIfRecursiveDeletionIsOff(), GeneralUtilityTest\rmdirRemovesDeadLinkToDirectory(), GeneralUtilityTest\rmdirRemovesDeadLinkToFile(), GeneralUtilityTest\rmdirRemovesDirectoriesRecursiveAndReturnsTrue(), GeneralUtilityTest\rmdirRemovesDirectory(), GeneralUtilityTest\rmdirRemovesDirectoryWithTrailingSlash(), GeneralUtilityTest\rmdirRemovesFile(), GeneralUtilityTest\rmdirRemovesLinkToDirectory(), GeneralUtilityTest\rmdirReturnFalseIfNoFileWasRemoved(), GeneralUtilityTest\rmdirReturnTrueIfFileWasRemoved(), ResourceStorageTest\tearDown(), UnitTestCase\tearDown(), LocalDriverTest\tearDown(), and TerService\updateTranslation().

static 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 653 of file GeneralUtility.php.

Referenced by RichTextElement\buildJSClassesArray(), ParseHtmlController\keepSpanTagsWithId(), Language\main(), and GeneralUtilityTest\rmFromListRemovesElementsFromCommaSeparatedList().

static sanitizeLocalUrl (   $url = '')
static

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

If the given url is empty or considered to be harmless, it is returned as is, else the event is logged and an empty string is returned.

Parameters
string$urlpotential URL to check
Returns
string $url or empty string

Definition at line 3406 of file GeneralUtility.php.

Referenced by RecordHistory\getArgument(), ElementInformationController\getBackButton(), ElementHistoryController\getButtons(), RteController\getButtons(), PreviewHook\getPreviewConfiguration(), FileUploadController\init(), RenameFileController\init(), ReplaceFileController\init(), MoveElementController\init(), EditFileController\init(), CreateFolderController\init(), AddController\init(), FileController\init(), SimpleDataHandlerController\init(), NewContentElementController\init(), NewRecordController\init(), ImportExportController\init(), RecordList\init(), PageLayoutController\init(), FrontendLoginController\isRelativeUrl(), EditDocumentController\localizationRedirect(), ListController\main(), OnlineMediaController\mainAction(), EditDocumentController\preInit(), DocumentTemplate\redirectUrls(), ModuleTemplate\redirectUrls(), GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidPaths(), GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidUrls(), GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidPaths(), GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidUrls(), GeneralUtilityTest\sanitizeLocalUrlDeniesEncodedInvalidUrls(), GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrls(), and AbstractDatabaseRecordList\start().

static setSingletonInstance (   $className,
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 3968 of file GeneralUtility.php.

Referenced by FlexFormServiceTest\convertFlexFormContentToArrayResolvesComplexArrayStructure(), ContentObjectRendererTest\createMockedLoggerAndLogManager(), UpdateExtensionListTaskTest\executeCallsUpdateExtListOfRepositoryHelper(), ResourceFactoryTest\getDriverObjectAcceptsDriverClassName(), FormEditorControllerTest\getFormEditorDefinitionsReturnReducedConfiguration(), FormManagerControllerTest\getFormManagerAppInitialDataReturnsProcessedArray(), ContentObjectRendererTest\getFromCache(), FormEditorControllerTest\getInsertRenderablesPanelConfigurationReturnsGroupedAndSortedConfiguration(), GeneralUtilityTest\getSingletonInstancesContainsPreviouslySetSingletonInstance(), Bootstrap\initializeCachingFramework(), DataStructureIdentifierHookTest\parseDataStructureByIdentifierPostProcessAddsExistingFormItems(), ProcessingRuleTest\processNoPropertyMappingAndHasErrorsIfValidatorContainsErrors(), ProcessingRuleTest\processNoPropertyMappingReturnsNotModifiedValue(), GeneralUtilityTest\resetSingletonInstancesResetsPreviouslySetInstance(), GeneralUtilityTest\setSingletonInstanceCalledTwoTimesMakesMakeInstanceReturnLastSetInstance(), GeneralUtilityTest\setSingletonInstanceForClassThatIsNoSubclassOfProvidedClassThrowsException(), GeneralUtilityTest\setSingletonInstanceForEmptyClassNameThrowsException(), GeneralUtilityTest\setSingletonInstanceMakesMakeInstanceReturnThatInstance(), FileTest\setUp(), FileExtensionFilterTest\setUp(), StandaloneViewTest\setUp(), TranslationTest\setUpBasicFrontendEnvironment(), ContentObjectRendererTest\stdWrap_cacheStore(), and FileTest\updatePropertiesReloadsStorageObjectIfStorageChanges().

static slashJS (   $string,
  $extended = false,
  $char = '\'' 
)
static

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

Parameters
string$stringString to escape
bool$extendedIf set, also backslashes are escaped.
string$charThe character to escape, default is ' (single-quote)
Returns
string Processed input string
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9

Definition at line 955 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\slashJsEscapesSingleQuotesAndSlashes().

static 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 788 of file GeneralUtility.php.

References GeneralUtility\strtolower().

Referenced by ContentObjectRenderer\filelist(), BasicFileUtility\getUniqueName(), GraphicalFunctions\IMreduceColors(), FileContentObject\render(), T3editor\setModeByFile(), GeneralUtilityTest\splitFileRefReturnsFileTypeForFilesWithoutPathSite(), GeneralUtilityTest\splitFileRefReturnsFileTypeNotForFolders(), and Import\writeFileVerify().

static 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 1473 of file GeneralUtility.php.

static 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 916 of file GeneralUtility.php.

Referenced by ContentObjectRenderer\calc(), GifBuilder\calculateValue(), and GeneralUtilityTest\splitCalcCorrectlySplitsExpression().

static 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 (int) or record (array)
string$fieldsList of fields from the record if that is given.
int$codeLengthLength of returned authentication code.
Returns
string MD5 hash of 8 chars.

Definition at line 3539 of file GeneralUtility.php.

References $fields, and $GLOBALS.

static 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
Deprecated:
since TYPO3 CMS v8, this method will be removed in TYPO3 CMS v9, use mb_strtolower() instead

Definition at line 1055 of file GeneralUtility.php.

Referenced by GeneralUtility\createVersionNumberedFilename(), GeneralUtility\flushOutputBuffers(), GeneralUtility\get_tag_attributes(), GeneralUtility\getIndpEnv(), GeneralUtility\hostHeaderValueMatchesTrustedHostsPattern(), GeneralUtility\implodeAttributes(), GeneralUtility\normalizeIPv6(), GeneralUtility\split_fileref(), GeneralUtilityTest\strtolowerConvertsOnlyLatinCharacters(), GeneralUtility\underscoredToLowerCamelCase(), and GeneralUtility\underscoredToUpperCamelCase().

static 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
Deprecated:
since TYPO3 CMS v8, this method will be removed in TYPO3 CMS v9, use mb_strtoupper() instead

Definition at line 1039 of file GeneralUtility.php.

Referenced by GeneralUtility\initSysLog(), and GeneralUtilityTest\strtoupperConvertsOnlyLatinCharacters().

static 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 3513 of file GeneralUtility.php.

Referenced by AbstractOnlineMediaHelper\createNewFile(), UploadedFileTest\getGetStreamRaisesExceptionAfterMove(), LocalPreviewHelper\getTemporaryFilePath(), Import\import_addFileNameToBeCopied(), Indexer\indexExternalUrl(), AbstractImportTestCase\isCaseSensitiveFilesystem(), UploadedFileTest\moveToCannotBeCalledMoreThanOnce(), UploadedFileTest\moveToMovesFileToDesignatedPath(), SpellCheckingController\processRequest(), FileContentParser\readFileContent(), SvgIconProviderTest\setUp(), SpellCheckingController\spellCheckHandler(), AbstractService\tempFile(), GeneralUtilityTest\tempnamReturnsAbsolutePathInsideDocumentRoot(), GeneralUtilityTest\tempnamReturnsPathStartingWithGivenPrefix(), GeneralUtilityTest\tempnamReturnsPathWithoutBackslashes(), and Import\writeTemporaryFileFromData().

static 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 1289 of file GeneralUtility.php.

Referenced by TreelistCacheUpdateHooks\__construct(), CronCommand\__construct(), SuggestWizardDefaultReceiver\__construct(), TcaColumnsProcessShowitem\addData(), TcaColumnsProcessPlaceholders\addData(), TcaColumnsProcessCommon\addData(), TcaColumnsProcessRecordTitle\addData(), TcaInputPlaceholders\addData(), TcaFlexProcess\addDataStructurePointersToMetaData(), TcaTypesShowitem\addFieldsBySubtypeAddList(), ExtensionManagementUtility\addFieldsToAllPalettesOfField(), ClickMenu\addMenuItems(), ExtensionManagementUtility\addModule(), ExtensionManagementUtility\addService(), Indexer\addSpacesToKeywordList(), ExtensionManagementUtility\addToAllTCAtypes(), BackendUserAuthentication\addTScomment(), FrontendEditingController\allowedToEdit(), DefinitionList\applyToolbarConstraints(), DefaultClean\applyToolbarConstraints(), Typo3HtmlParser\applyToolbarConstraints(), Typo3Link\applyToolbarConstraints(), TableOperations\applyToolbarConstraints(), CommandMap\applyWorkspacesSetStageBehaviour(), DataHandler\assemblePermissions(), ConfigurationItemRepository\buildConfigurationArray(), AbstractItemProvider\buildForeignTableQueryBuilder(), ContextMenu\buildJavascriptConfiguration(), BlockElements\buildJavascriptConfiguration(), SelectFont\buildJavascriptConfiguration(), RteHtmlAreaApi\buildJavascriptConfiguration(), InlineElements\buildJavascriptConfiguration(), Abbreviation\buildJSAbbreviationArray(), RichTextElement\buildJSClassesArray(), SelectFont\buildJSFontItemsConfig(), GifBuilder\calcOffset(), TypoScriptFrontendController\calculateLinkVars(), GifBuilder\calculateMaximum(), DataHandler\canDeletePage(), CrawlerHook\checkDeniedSuburls(), AbstractService\checkExec(), FormInlineAjaxController\checkInlineFileTypeAccessForField(), DataHandler\checkValue_group_select_explodeSelectGroupValue(), DataHandler\checkValueForGroupSelect(), DataHandler\checkValueForInline(), DataHandler\checkValueForInput(), DataHandler\checkValueForText(), BackendUserAuthentication\checkWorkspace(), RteHtmlAreaApi\cleanList(), RichTextElement\cleanList(), Typo3DbBackend\clearPageCache(), TypoScriptFrontendController\clearPageCacheContent_pidList(), CommandLineController\cli_validateArgs(), AbstractConditionMatcher\compareNumber(), ExtensionUtility\configurePlugin(), FileExtensionFilter\convertToLowercaseArray(), VersionNumberUtility\convertVersionsStringToVersionNumbers(), DataHandler\copyPages(), CrawlerHook\crawler_execute_type2(), OnlineMediaController\createAction(), LocalDriver\createFolder(), PaletteAndSingleContainer\createPaletteContentArray(), CleanerTask\deleteFilesForTable(), HelpController\detailAction(), FrontendEditingController\displayEditIcons(), RteHtmlParser\divideIntoLines(), DataHandler\doesPageHaveUnallowedTables(), ClickMenu\enableDisableItems(), ContentObjectRenderer\encaps_lineSplit(), ConditionMatcher\evaluateCondition(), AbstractConditionMatcher\evaluateConditionCommon(), LostFilesCommand\execute(), ValidatorTask\execute(), UninstallExtension\executeAction(), ExtensionManagementUtility\executePositionedStringInsertion(), TypoScriptParser\executeValueModifier(), ExtensionManagementUtility\explodeItemList(), CommandMap\explodeSetStage(), AbstractContainer\explodeSingleFieldShowItemConfiguration(), BackendUtility\explodeSoftRefParserList(), InlineControlContainer\extractFlexFormParts(), ConfigurationItemRepository\extractInformationForConfigFieldsOfTypeOptions(), InfoPageTyposcriptConfigController\extractLinesFromTSConfig(), LiveSearch\extractSearchableFieldsFromTable(), DocumentationFile\extractTagsFromFile(), SystemEnvironmentBuilderTest\fileDenyPatternMatchesPhpExtensionDataProvider(), FilesContentObject\findAndSortFiles(), FileIndexRepository\findOneByCombinedIdentifier(), ExtensionManagementUtility\findService(), DataHandler\fixCopyAfterDuplFields(), ActionTask\fixDbMount(), DataHandler\fixUniqueInPid(), EditDocumentController\fixWSversioningInEditConf(), IndexSearchRepository\freeIndexUidWhere(), SearchFormController\freeIndexUidWhere(), AbstractDatabaseRecordList\generateList(), FileHandlingUtility\getAbsolutePathsToConfiguredDirectories(), SearchController\getAllAvailableMediaTypesOptions(), FrontendEditingController\getAllowedEditActions(), BrowseLinksController\getAllowedItems(), AbstractLinkBrowserController\getAllowedItems(), BrowseLinksController\getAllowedLinkAttributes(), AbstractLinkBrowserController\getAllowedLinkAttributes(), TcaInputPlaceholders\getAllowedTableForGroupField(), DatabaseRecordList\getButtons(), BackendUserAuthentication\getCategoryMountPoints(), LinkValidatorReport\getCheckOptions(), AbstractFormElement\getClipboardElements(), BackendLayoutView\getColPosListItemsParsed(), BackendUtility\getCommonSelectFields(), CommandUtility\getConfiguredApps(), TypoScriptFrontendController\getCurrentPageCacheConfiguration(), ContentObjectRenderer\getData(), FlexFormTools\getDataStructureIdentifierFromRecord(), FlexFormTools\getDataStructureIdentifierFromTcaArray(), ContextMenuDataProvider\getDisableActions(), DatabaseRecordList\getDocHeaderButtons(), DataHandlerHook\getEmailsForStageChangeNotification(), DataHandler\getExcludeListArray(), ExtensionCompatibilityTester\getExtensionsToExclude(), RichTextElement\getExternalPlugins(), SqlSchemaMigrationService\getFieldDefinitions_fileContent(), SetupModuleController\getFieldsFromShowItem(), ContentObjectRenderer\getFieldVal(), SecurityStatus\getFileDenyPatternStatus(), BackendUserAuthentication\getFileMountRecords(), ResourceFactory\getFileObjectFromCombinedIdentifier(), BackendUserAuthentication\getFilePermissions(), RemoteServerTest\getFileReferenceProphecies(), TypoScriptFrontendController\getFirstTimeValueForRecord(), BackendUtility\getFlexFormDS(), TcaFlexProcess\getFlexIdentifier(), ResourceFactory\getFolderObjectFromCombinedIdentifier(), RelationHandler\getFromDB(), UserSettingsController\getFromDottedNotation(), TemplateService\getFromMPmap(), BackendUtility\getGroupNames(), BackendLayoutView\getIdentifiersToBeExcluded(), TableManualRepository\getImages(), UserFileInlineLabelService\getInlineLabel(), FormInlineAjaxController\getInlineRelatedRecordsUidArray(), RteHtmlParser\getKeepTags(), BackendUtility\getLabelsFromItemsList(), Language\getLanguages(), ValidatorTask\getLinkTypes(), SpellCheckingController\getMainDictionaryCharacterSet(), PageRepository\getMovePlaceholder(), BackendUtility\getMovePlaceholder(), ExtdirectTreeDataProvider\getNodeTypes(), ResourceFactory\getObjectFromCombinedIdentifier(), PageRepository\getPagesOverlay(), BackendUtility\getPagesTSconfig(), CommandUtility\getPathsInternal(), DataHandler\getPlaceholderTitleForTableLabel(), TcaInputPlaceholders\getPlaceholderValue(), Locales\getPreferredClientLanguage(), FrontendLoginController\getPreserveGetVars(), PageRepository\getRawRecord(), ActionHandler\getRecipientList(), BackendUtility\getRecord(), BackendUtility\getRecordRaw(), LocalizationRepository\getRecordsToCopyDatabaseResult(), BackendUtility\getRecordTitle(), TcaRecordTitle\getRecordTitleByLabelProperties(), TcaRecordTitle\getRecordTitleForGroupType(), AbstractItemProvider\getRegisteredFlexForms(), TcaInputPlaceholders\getRelatedGroupFieldUids(), ValidatorTask\getSearchField(), AbstractDatabaseRecordList\getSearchFields(), TableManualRepository\getSeeAlsoLinks(), QueryGenerator\getSelectQuery(), BackendUtility\getSpecConfParts(), ResourceFactory\getStorageObjectFromCombinedIdentifier(), Pbkdf2Salt\getStoredSalt(), PageRepository\getSubpagesForPages(), Collector\getTableFields(), SuggestWizardController\getTablesToQueryFromFieldConfiguration(), BackendUtility\getTCAtypes(), BackendUserAuthentication\getTSConfig(), CreatePagesWizardModuleFunctionController\getTypeSelectData(), SoftReferenceIndex\getTypoLinkParts(), DataHandlerHook\getUniqueFields(), Indexer\getUrlHeaders(), ActionTask\getUsergroups(), BackendUtility\getUserNames(), AbstractNode\getValidationDataAsJsonString(), PageRepository\getWorkspaceVersionOfRecord(), BackendUtility\getWorkspaceVersionOfRecord(), TemplateService\includeStaticTypoScriptSources(), CrawlerHook\indexSingleRecord(), ClickMenu\init(), QueryGenerator\init(), TemplateService\init(), CharsetConverter\initCharset(), BrowseLinksController\initCurrentUrl(), LanguageStore\initialize(), SearchFormController\initialize(), InlineStackProcessor\initializeByParsingDomObjectIdString(), RootlineUtility\initializeObject(), FileContentParser\initParser(), CommandUtility\initPaths(), CharsetConverter\initUnicodeData(), DataHandler\insertUpdateDB_preprocessBasedOnFieldType(), SystemEnvironmentBuilder\isFunctionDisabled(), BackendUtility\isModuleSetInTBE_MODULES(), ExtensionManagementUtility\isServiceAvailable(), DataHandler\isTableAllowedForThisPage(), FormResultCompiler\JSbottom(), ArrayUtility\keepItemsInArray(), PageLayoutView\languageSelector(), EditDocumentController\languageSwitch(), DocumentController\listAction(), DeletedRecords\loadData(), BackendController\loadResourcesForRegisteredNavigationComponents(), Spellchecker\main(), CopyPaste\main(), Abbreviation\main(), ElementHistoryController\main(), CreateFolderController\main(), NewRecordController\main(), OnlineMediaController\mainAction(), LoginController\makeInterfaceSelectorBox(), PageLayoutView\makeOrdinaryList(), AbstractDatabaseRecordList\makeQueryArray(), SearchFormController\makeSearchForm(), TcaMigration\migrateExtAndSysextPathToEXTPath(), FrontendUserImageUpdateWizard\migrateField(), TcaMigration\migrateShowItemAdditionalPaletteToOwnPalette(), TcaMigration\migrateSpecialConfigurationAndRemoveShowItemStylePointerConfig(), TcaMigration\migrateT3editorWizardWithEnabledByTypeConfigToColumnsOverrides(), TcaMigration\migrateTSconfigSoftReferences(), FrontendEditingController\move(), DataHandlerHook\moveRecord_wsPlaceholders(), FrontendConfigurationManager\overrideStoragePidIfStartingPointIsSet(), FrontendConfigurationManager\overrideSwitchableControllerActionsFromFlexForm(), ContentObjectRenderer\parseFunc(), QueryHelper\parseGroupBy(), ModuleLoader\parseModulesArray(), RootlineUtility\parseMountPointParameter(), QueryHelper\parseOrderBy(), QueryHelper\parseTableList(), AbstractPlugin\pi_classParam(), AbstractPlugin\pi_exec_query(), AbstractPlugin\pi_getLL(), AbstractPlugin\pi_getPidList(), AbstractPlugin\pi_isOnlyFields(), AbstractPlugin\pi_prependFieldsWithTable(), DataHandler\placeholderShadowing(), DataHandler\prepareCacheFlush(), Connection\prepareConnection(), NewContentElementController\prepareDependencyOrdering(), AbstractMenuContentObject\prepareMenuItemsForKeywordsMenu(), SuggestWizardDefaultReceiver\prepareSelectStatement(), AbstractContainer\previewFieldValue(), PagePositionMap\printContentElementColumns(), TimeTracker\printTSlog(), SplitProcessor\process(), DataHandlerHook\processCmdmap(), AbstractItemProvider\processDatabaseFieldValue(), AbstractItemProvider\processForeignTableClause(), FrontendLoginController\processRedirect(), SpellCheckingController\processRequest(), QueryBuilder\quoteIdentifiersForSelect(), RelationHandler\readList(), DataHandler\recordInfo(), CategoryRegistry\registerDefaultCategorizedTables(), ExtensionUtility\registerModule(), NewRecordController\regularNew(), DataHandler\remapListedDBRecords_procDBRefs(), TcaFlexProcess\removeExcludeFieldsFromDataStructure(), TcaTypesShowitem\removeFields(), TcaTypesShowitem\removeFieldsByBitmaskExcludeBits(), TcaTypesShowitem\removeFieldsBySubtypeExcludeList(), TcaTypesShowitem\removeFieldsFromPalettes(), UserSettingsController\removeFromList(), NewContentElementController\removeInvalidElements(), AbstractItemProvider\removeItemsByRemoveItemsPageTsConfig(), InputColorPickerElement\render(), RsaInputElement\render(), InputTextElement\render(), FlexFormNoTabsContainer\render(), FlexFormTabsContainer\render(), ListOfFieldsContainer\render(), FullRecordContainer\render(), SoloFieldContainer\render(), TextElement\render(), EditImageHandler\render(), CObjectViewHelper\render(), CssStyledContentController\render_table(), InlineRecordContainer\renderForeignRecordHeader(), TranslationStatusController\renderL10nTable(), BrowseLinksController\renderLinkAttributeFields(), InlineControlContainer\renderPossibleRecordsSelectorTypeGroupDB(), BytesViewHelper\renderStatic(), ValueSliderWizard\renderWizard(), StagesService\resolveBackendUserIds(), RteHtmlParser\RTE_transform(), AdministrationRepository\saveKeywords(), FileContentParser\searchTypeMediaTitle(), DatabaseIntegrityCheck\selectNonEmptyRecordsWithFkeys(), BackendUtility\selectVersionsOfRecord(), QueryGenerator\setAndCleanUpExternalLists(), Bootstrap\setCacheHashOptions(), DeletedRecords\setData(), DatabaseRowInitializeNew\setDefaultsFromNeighborRow(), DataMapFactory\setFieldEvaluations(), UserSettingsController\setFromDottedNotation(), TcaColumnsProcessFieldLabels\setLabelFromShowitemAndPalettes(), DataHandler\setMirror(), TypoScriptFrontendController\setPageCacheContent(), TypoScriptFrontendController\settingLanguage(), TypoScriptFrontendController\settingLocale(), SpellCheckingController\spellCheckHandler(), HtmlParser\splitIntoBlock(), GraphicalFunctions\splitString(), RelationHandler\start(), AdministrationController\statisticDetailsAction(), ContentObjectRenderer\stdWrap_addPageCacheTags(), MarkerBasedTemplateService\substituteMarkerAndSubpartArrayRecursive(), MarkerBasedTemplateService\substituteMarkerArray(), TranslationConfigurationProvider\translationInfo(), GeneralUtilityTest\trimExplodeReturnsCorrectResult(), RteHtmlParser\TS_links_rte(), PermissionController\updateAction(), LinkValidatorReport\updateBrokenLinks(), TranslationService\updateTranslation(), SystemStatusUpdateTaskNotificationEmailField\validateAdditionalFields(), ValidatorTaskAdditionalFieldProvider\validateAdditionalFields(), and NewContentElementController\wizardArray().

static 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 1125 of file GeneralUtility.php.

References GeneralUtility\lcfirst(), and GeneralUtility\strtolower().

Referenced by GeneralUtilityTest\underscoredToLowerCamelCase().

static 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 1113 of file GeneralUtility.php.

References GeneralUtility\strtolower().

Referenced by PageRenderer\computeRequireJsConfig(), TaskExecutor\execute(), ExtensionUtility\registerModule(), and GeneralUtilityTest\underscoredToUpperCamelCase().

static 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 771 of file GeneralUtility.php.

Referenced by BasicFileUtility\__construct(), ResourceStorage\checkFileExtensionPermission(), BackendUserAuthentication\fetchGroupData(), ContentObjectRenderer\filelist(), BackendUtility\getRecordWSOL(), BasicFileUtility\setFileExtensionPermissions(), GeneralUtilityTest\uniqueListUnifiesCommaSeparatedList(), and BackendUserAuthentication\workspaceInit().

static 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
bool Returns TRUE if the file was unlink()'ed
See also
upload_to_tempfile(), tempnam()

Definition at line 3487 of file GeneralUtility.php.

Referenced by AbstractOnlineMediaHelper\createNewFile(), ContentObjectRendererTest\filelinkCreatesCorrectUrlForFileWithUrlEncodedSpecialChars(), SpellCheckingController\processRequest(), SpellCheckingController\spellCheckHandler(), GeneralUtilityTest\unlink_tempfileRemovesHiddenFile(), GeneralUtilityTest\unlink_tempfileRemovesValidFileInTypo3temp(), GeneralUtilityTest\unlink_tempfileReturnsNullIfFileDoesNotExist(), GeneralUtilityTest\unlink_tempfileReturnsNullIfFileIsNowWithinTypo3temp(), GeneralUtilityTest\unlink_tempfileReturnsTrueIfFileWasRemoved(), AbstractService\unlinkTempFiles(), and Import\unlinkTempFiles().

static 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
bool$unQuoteIf set, the elements of the resulting array are unquoted.
Returns
array Exploded parameters

Definition at line 4511 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\explodeAndUnquoteImageMagickCommands(), and CommandUtility\imageMagickCommand().

static upload_copy_move (   $source,
  $destination 
)
static

Moves $source file to $destination if uploaded, otherwise try to make a copy

Parameters
string$sourceSource file, absolute path
string$destinationDestination file, absolute path
Returns
bool Returns TRUE if the file was moved.
See also
upload_to_tempfile()

Definition at line 3443 of file GeneralUtility.php.

Referenced by FilesWithMultipleReferencesCommand\copyMultipleReferencedFiles(), RteImagesCommand\copyMultipleReferencedRteImages(), Export\export_addFile(), Export\export_addSysFile(), and UploadedFile\moveTo().

static 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 3469 of file GeneralUtility.php.

Referenced by UploadExtensionFileController\extractAction().

static 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
bool Returns TRUE if the $email address (input string) is valid

Definition at line 1010 of file GeneralUtility.php.

Referenced by ActionHandler\getRecipientList(), ActionHandler\getRecipientsOfStage(), MailUtility\getSystemFromAddress(), AbstractMenuContentObject\link(), LegacyLinkNotationConverter\resolve(), SystemStatusUpdateTaskNotificationEmailField\validateAdditionalFields(), ValidatorTaskAdditionalFieldProvider\validateAdditionalFields(), GeneralUtilityTest\validEmailReturnsFalseForInvalidMailAddress(), GeneralUtilityTest\validEmailReturnsTrueForValidMailAddress(), and ActionTask\viewNewBackendUser().

static validIP (   $ip)
static

Validate a given IP address.

Possible format are IPv4 and IPv6.

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

Definition at line 518 of file GeneralUtility.php.

Referenced by GeneralUtilityTest\validIpReturnsFalseForInvalidIp(), and GeneralUtilityTest\validIpReturnsTrueForValidIp().

static 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
bool TRUE if $ip is of IPv4 format.

Definition at line 531 of file GeneralUtility.php.

static 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
bool TRUE if $ip is of IPv6 format.

Definition at line 544 of file GeneralUtility.php.

static 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
bool TRUE, $theFile is allowed path string, FALSE otherwise
See also
http://php.net/manual/en/security.filesystem.nullbytes.php

Definition at line 3317 of file GeneralUtility.php.

Referenced by ContentObjectRenderer\clean_directory(), CharsetConverter\initCharset(), CharsetConverter\initUnicodeData(), BasicFileUtility\is_directory(), AbstractHierarchicalFilesystemDriver\isPathValid(), UnitTestCase\tearDown(), GeneralUtilityTest\validPathStrDetectsInvalidCharacters(), and GeneralUtilityTest\validPathStrWorksWithUnicodeFileNames().

static verifyFilenameAgainstDenyPattern (   $filename)
static

Verifies the input filename against the 'fileDenyPattern'. Returns TRUE if OK.

Filenames are not allowed to contain control characters. Therefore we always filter on [[:cntrl:]].

Parameters
string$filenameFile path to evaluate
Returns
bool

Definition at line 3357 of file GeneralUtility.php.

References $GLOBALS.

Referenced by ResourceStorage\checkFileExtensionPermission(), BasicFileUtility\checkIfAllowed(), TypoScriptParser\extractIncludes(), SecurityStatus\getHtaccessUploadStatus(), UploadedFileReferenceConverter\importUploadedResource(), TypoScriptParser\includeFile(), CreateFolderController\main(), FolderUtilityRenderer\uploadForm(), and GeneralUtilityTest\verifyFilenameAgainstDenyPatternDetectsNotAllowedFiles().

static wrapJS (   $string,
  $_ = null 
)
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
null$_unused, will be removed in TYPO3 CMS 9
Returns
string The wrapped JS code, ready to put into a XHTML page

Definition at line 1538 of file GeneralUtility.php.

Referenced by LoginController\checkRedirect(), DebugUtility\debug(), DebugUtility\debugInPopUpWindow(), DocumentTemplate\endPage(), ConfigurationForm\ext_getForm(), ColorpickerController\frameSet(), UserElementsController\init(), DocumentTemplate\insertStylesAndJS(), FormResultCompiler\JSbottom(), ElementBrowserFramesetController\main(), ContainerViewHelper\render(), PageRenderer\renderJqueryScriptTag(), PageRenderer\renderMainJavaScriptLibraries(), and ReviewController\singleIndexAction().

static writeFile (   $file,
  $content,
  $changePermissions = false 
)
static
static writeFileToTypo3tempDir (   $filepath,
  $content 
)
static
static 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:"
bool$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 1789 of file GeneralUtility.php.

Referenced by DataHandler\checkValueForFlex(), FlexFormService\convertFlexFormContentToArray(), DataHandler\copyRecord_procBasedOnFieldType(), DataStructureIdentifierHook\getDataStructureIdentifierPostProcess(), BackendUtility\getFlexFormDS(), ReferenceIndex\getRelations(), TcaFlexPrepare\initializeDataValues(), TableFlexFormToTtContentFieldsUpdate\initializeFlexForm(), Import\loadFile(), FlexFormTools\parseDataStructureByIdentifier(), AbstractPlugin\pi_initPIflexForm(), ContentObjectRenderer\readFlexformIntoConf(), DataHandler\remapListedDBRecords(), Import\setFlexFormRelations(), FlexFormTools\traverseFlexFormXMLData(), DataHandler\updateFlexFormData(), and GeneralUtilityTest\xml2ArrayDealsProperlyWithWhitespace().

static 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:"
bool$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 1814 of file GeneralUtility.php.

References MathUtility\canBeInterpretedAsInteger().

static xml2tree (   $string,
  $depth = 999,
  $parserOptions = [] 
)
static

Parses XML input into a PHP array with associative keys

Parameters
string$stringXML data input
int$depthNumber of element levels to resolve the XML into an array. Any further structure will be set as XML.
array$parserOptionsOptions that will be passed to PHP's xml_parser_set_option()
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.

Definition at line 1569 of file GeneralUtility.php.

Referenced by FileContentParser\readFileContent().

static 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)
Deprecated:
since TYPO3 v8, will be removed in TYPO3 v9.

Definition at line 1967 of file GeneralUtility.php.

static 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 1922 of file GeneralUtility.php.

Member Data Documentation

$allowHostHeaderValue = false
staticprotected

Definition at line 57 of file GeneralUtility.php.

Referenced by GeneralUtilityFixture\setAllowHostHeaderValue().

$applicationContext = null
staticprotected
$finalClassNameCache = []
staticprotected

Definition at line 79 of file GeneralUtility.php.

$idnaConverter = null
staticprotected

Definition at line 100 of file GeneralUtility.php.

$idnaStringCache = []
staticprotected

Definition at line 93 of file GeneralUtility.php.

$indpEnvCache = []
staticprotected

Definition at line 118 of file GeneralUtility.php.

$nonSingletonInstances = []
staticprotected

Definition at line 72 of file GeneralUtility.php.

$singletonInstances = []
staticprotected

Definition at line 65 of file GeneralUtility.php.

$supportedCgiServerApis
staticprotected
Initial value:
= [
'fpm-fcgi',
'cgi',
'isapi',
'cgi-fcgi',
'srv',
]

Definition at line 107 of file GeneralUtility.php.

const ENV_TRUSTED_HOSTS_PATTERN_SERVER_NAME = 'SERVER_NAME'
const SYSLOG_SEVERITY_FATAL = 4
const SYSLOG_SEVERITY_INFO = 0