TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
GeneralUtilityFixture Class Reference
Inheritance diagram for GeneralUtilityFixture:
GeneralUtility

Static Public Member Functions

static isAllowedHostHeaderValue ($hostHeaderValue)
 
static setAllowHostHeaderValue ($allowHostHeaderValue)
 
static getDeprecationLogFileName ()
 
static resetFinalClassNameCache ()
 
- Static Public Member Functions inherited from GeneralUtility
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 DEPRECATION_LOG_PATH = 'typo3temp/var/test_deprecation/test.log'
 
- Public Attributes inherited from GeneralUtility
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 Public Attributes

static $isAllowedHostHeaderValueCallCount = 0
 

Static Protected Member Functions

static isInternalRequestType ()
 
- Static Protected Member Functions inherited from GeneralUtility
static xml2arrayProcess ($string, $NSprefix= '', $reportDocTag=false)
 
static createDirectoryPath ($fullDirectoryPath)
 
static isInternalRequestType ()
 
static getClassName ($className)
 
static getImplementationForClass ($className)
 
static classHasImplementation ($className)
 
static checkInstanceClassName ($className, $instance)
 

Additional Inherited Members

- Static Protected Attributes inherited from GeneralUtility
static $allowHostHeaderValue = false
 
static $singletonInstances = []
 
static $nonSingletonInstances = []
 
static $finalClassNameCache = []
 
static $applicationContext = null
 
static $idnaStringCache = []
 
static $idnaConverter = null
 
static $supportedCgiServerApis
 
static $indpEnvCache = []
 

Detailed Description

Member Function Documentation

static getDeprecationLogFileName ( )
static

Gets the absolute path to the deprecation log file.

Returns
string Absolute path to the deprecation log file

Definition at line 66 of file core/Tests/Unit/Utility/Fixtures/GeneralUtilityFixture.php.

static isInternalRequestType ( )
staticprotected

For testing we must not generally allow HTTP Host headers

Returns
bool

Definition at line 56 of file core/Tests/Unit/Utility/Fixtures/GeneralUtilityFixture.php.

static resetFinalClassNameCache ( )
static
static setAllowHostHeaderValue (   $allowHostHeaderValue)
static
Parameters
bool$allowHostHeaderValue

Definition at line 46 of file core/Tests/Unit/Utility/Fixtures/GeneralUtilityFixture.php.

References GeneralUtility\$allowHostHeaderValue.

Referenced by GeneralUtilityTest\setUp().

Member Data Documentation

const DEPRECATION_LOG_PATH = 'typo3temp/var/test_deprecation/test.log'