TYPO3CMS  4.7
 All Classes Namespaces Files Functions Variables Pages
t3lib_div Class Reference

Static Public Member Functions

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

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
 

Static Protected Member Functions

static generateRandomBytesOpenSsl ($bytesToGenerate)
 
static generateRandomBytesMcrypt ($bytesToGenerate, $randomSource)
 
static generateRandomBytesUrandom ($bytesToGenerate)
 
static generateRandomBytesFallback ($bytesToReturn)
 
static xml2arrayProcess ($string, $NSprefix= '', $reportDocTag=FALSE)
 
static createDirectoryPath ($fullDirectoryPath)
 
static instantiateClass ($className, $arguments)
 
static getClassName ($className)
 
static checkInstanceClassName ($className, $instance)
 

Static Protected Attributes

static $singletonInstances = array()
 
static $nonSingletonInstances = array()
 
static $finalClassNameRegister = array()
 

Detailed Description

Definition at line 53 of file class.t3lib_div.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!

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 145 of file class.t3lib_div.php.

References $value.

Referenced by tx_dbal_installtool\__construct(), template\__construct(), tslib_fe\ADMCMD_preview(), Tx_Fluid_Core_Widget_WidgetRequestBuilder\build(), Tx_Extbase_MVC_Web_Routing_UriBuilder\buildBackendUri(), tslib_fe\calculateLinkVars(), Tx_Fluid_Core_Widget_WidgetRequestHandler\canHandleRequest(), tslib_AdminPanel\display(), t3lib_BEfunc\displayWarningMessages(), tx_reports_reports_status_SecurityStatus\executeAdminCommand(), tx_reports_reports_status_ConfigurationStatus\executeAdminCommand(), tslib_fe\getConfigArray(), tslib_cObj\getData(), t3lib_extjs_ExtDirectApi\getExtDirectApi(), t3lib_BEfunc\getFuncCheck(), t3lib_BEfunc\getFuncInput(), t3lib_BEfunc\getFuncMenu(), tx_felogin_pi1\getPreserveGetVars(), Tx_Version_Preview\getPreviewConfiguration(), tslib_cObj\getQueryArguments(), TYPO3backend\handlePageEditing(), SC_show_item\init(), tx_rtehtmlarea_SC_browse_links\main(), tx_tstemplateanalyzer\main(), tx_indexedsearch_modfunc1\main(), SC_browse_links\main(), SC_mod_tools_config_index\main(), SC_file_list\main(), tx_tstemplateobjbrowser\main(), SC_mod_user_ws_index\main(), tslib_fe\makeCacheHash(), template\makeShortcutUrl(), tslib_fe\mergingWithGetVars(), tx_tstemplateobjbrowser\modMenu(), SC_alt_doc\preInit(), t3lib_TStemplate\processTemplate(), SC_db_layout\renderQuickEdit(), t3lib_extjs_ExtDirectRouter\route(), Tx_Fluid_Core_Widget_Bootstrap\run(), TYPO3backend\setStartupModule(), Tx_Extbase_Tests_Unit_Configuration_BackendConfigurationManagerTest\setUp(), Tx_Extbase_Tests_Unit_MVC_Web_Routing_UriBuilderTest\setUp(), tx_indexedsearch_modfunc2\showStats(), and t3lib_userAuth\start().

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

Writes input value to $_GET.

Parameters
mixed$inputGetarray or single value to write to $_GET. Values should NOT be escaped at input time (but will be escaped before writing according to TYPO3 standards).
string$keyalternative key; If set, this will not set the WHOLE GET array, but only the key in it specified by this value! You can specify to replace keys on deeper array levels by separating the keys with a pipe. Example: 'parentKey|childKey' will result in array('parentKey' => array('childKey' => $inputGet))
Returns
void

Definition at line 194 of file class.t3lib_div.php.

References $GLOBALS.

Referenced by tslib_fe\ADMCMD_preview(), Tx_Extbase_Tests_Unit_MVC_Web_Routing_UriBuilderTest\buildBackendUriConvertsDomainObjectsAfterArgumentsHaveBeenMerged(), Tx_Extbase_Tests_Unit_MVC_Web_Routing_UriBuilderTest\buildBackendUriCreatesAbsoluteUrisIfSpecified(), Tx_Extbase_Tests_Unit_MVC_Web_Routing_UriBuilderTest\buildBackendUriKeepsModuleQueryParametersIfAddQueryStringIsNotSet(), Tx_Extbase_Tests_Unit_MVC_Web_Routing_UriBuilderTest\buildBackendUriKeepsQueryParametersIfAddQueryStringIsSet(), Tx_Extbase_Tests_Unit_MVC_Web_Routing_UriBuilderTest\buildBackendUriMergesAndOverrulesQueryParametersWithArguments(), Tx_Extbase_Tests_Unit_MVC_Web_Routing_UriBuilderTest\buildBackendUriRemovesSpecifiedQueryParametersIfArgumentsToBeExcludedFromQueryStringIsSet(), Tx_Extbase_Tests_Unit_MVC_Web_Routing_UriBuilderTest\buildBackendUriRespectsSection(), tslib_fe\getConfigArray(), Tx_Extbase_Tests_Unit_Configuration_BackendConfigurationManagerTest\getCurrentPageIdReturnsPageIdFromGet(), Tx_Extbase_Tests_Unit_Configuration_BackendConfigurationManagerTest\getCurrentPageIdReturnsPageIdFromPost(), Tx_Version_Preview\getPreviewConfiguration(), t3lib_divTest\getSetAssignsOneValueToOneKey(), t3lib_divTest\getSetCanAssignAnArrayToASpecificArrayChildElement(), t3lib_divTest\getSetCanAssignAStringValueToASpecificArrayChildElement(), t3lib_divTest\getSetCanAssignsAnArrayToASpecificArrayElement(), t3lib_divTest\getSetForArrayDropsExistingValues(), t3lib_divTest\getSetForOneValueDoesNotDropUnrelatedValues(), t3lib_divTest\getSetWritesArrayToGetSystemVariable(), t3lib_divTest\getSetWritesArrayToGlobalsHttpGetVars(), tslib_fe\mergingWithGetVars(), tslib_fe\setExternalJumpUrl(), Tx_Extbase_Tests_Unit_Configuration_BackendConfigurationManagerTest\tearDown(), and Tx_Extbase_Tests_Unit_MVC_Web_Routing_UriBuilderTest\tearDown().

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) Strips slashes from all output, both strings and arrays. To enhancement security in your scripts, please consider using t3lib_div::_GET or t3lib_div::_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 106 of file class.t3lib_div.php.

References $value.

Referenced by Tx_Workspaces_ExtDirect_WorkspaceSelectorToolbarItem\__construct(), tx_em_Install\__construct(), tx_install\__construct(), tslib_ExtDirectEid\actionIsAllowed(), tslib_fe\ADMCMD_preview(), tx_t3editor\ajaxSaveCode(), Tx_Extbase_Core_Bootstrap\callModule(), t3lib_userAuth\checkAuthentication(), tx_em_Install\checkDependencies(), t3lib_extobjbase\checkExtObj(), t3lib_SCbase\checkExtObj(), Tx_Version_Preview\checkForPreview(), tx_install\checkPassword(), t3lib_TCEmain\checkValue_flex(), SC_mod_web_ts_index\clearCache(), tx_opendocs\closeDocument(), SC_mod_tools_be_user_index\compareUsers(), tx_recycler_controller_ajax\createContent(), tx_lowlevel_cleaner\createMenu(), SC_mod_web_ts_index\createTemplate(), tslib_fe\determineId(), t3lib_matchCondition_backend\determinePageId(), tx_form_Controller_Wizard\dispatch(), user_feAdmin\displayCreateScreen(), user_feAdmin\displayEditForm(), Tx_Extbase_Persistence_Storage_Typo3DbBackend\doLanguageAndWorkspaceOverlay(), tx_feedit_editpanel\editContent(), tx_feedit_editpanel\editIcons(), tx_feedit_editpanel\editPanelLinkWrap(), t3lib_tsparser_ext\ext_getObjTree(), t3lib_tsparser_ext\ext_getTemplateHierarchyArr(), localPageTree\ext_tree(), SC_mod_tools_em_index\extensionList_import(), tslib_fe\fetch_the_id(), t3lib_userAuth\fetchUserSessionFromDB(), Tx_Workspaces_Controller_ReviewController\fullIndexAction(), SC_mod_tools_dbint_index\func_filesearch(), SC_mod_tools_dbint_index\func_refindex(), recordHistory\getArgument(), SC_mod_tools_log_index\getButtons(), tx_form_View_Wizard_Wizard\getButtons(), SC_mod_tools_em_index\getButtons(), Tx_Extbase_Configuration_BackendConfigurationManager\getCurrentPageId(), tslib_AdminPanel\getEditModule(), tslib_cObj\getFieldDefaultValue(), SC_mod_tools_em_index\getFuncMenu(), tx_linkvalidator_Processor\getLinkStatistics(), tslib_feUserAuth\getLoginFormData(), t3lib_userAuth\getLoginFormData(), tx_scheduler_Module\getModuleContent(), tx_sysaction_task\getOverview(), Tx_Version_Preview\getPreviewConfiguration(), Tx_Version_Preview\getPreviewInputCode(), t3lib_TCEforms\getSingleField(), SC_mod_tools_em_index\getSubmitAndOpenerCloseLink(), tx_sysaction_task\getTask(), t3lib_matchCondition_abstract\getVariableCommon(), t3lib_extobjbase\handleExternalFunctionValue(), Tx_Workspaces_Controller_ReviewController\indexAction(), tx_rtehtmlarea_parse_html\init(), tx_rtehtmlarea_user\init(), SC_mod_web_ts_index\init(), SC_wizard_backend_layout\init(), SC_wizard_edit\init(), SC_mod_web_view_index\init(), SC_alt_db_navframe\init(), SC_wizard_list\init(), SC_file_edit\init(), TYPO3_tcefile\init(), SC_file_rename\init(), SC_wizard_rte\init(), SC_wizard_colorpicker\init(), tx_install_ajax\init(), SC_wizard_add\init(), user_feAdmin\init(), SC_file_upload\init(), clickMenu\init(), SC_tce_db\init(), SC_index\init(), SC_file_list\init(), SC_wizard_table\init(), SC_browse_links\init(), SC_file_newfolder\init(), SC_db_list\init(), SC_wizard_tsconfig\init(), SC_view_help\init(), SC_t3lib_thumbs\init(), SC_db_new\init(), SC_tslib_showpic\init(), SC_mod_web_perm_index\init(), SC_wizard_forms\init(), t3lib_SCbase\init(), SC_alt_doc\init(), SC_mod_tools_be_user_index\init(), t3lib_frontendedit\initConfigOptions(), tslib_fe\initFEuser(), tslib_AdminPanel\initialize(), Tx_Workspaces_Controller_AbstractController\initializeAction(), t3lib_folderTree\initializePositionSaving(), tx_em_Install\installExtension(), SC_index\isLoginInProgress(), tx_install\isTTF(), tslib_fe\jumpUrl(), tx_sysaction_list\listURL(), SC_alt_doc\localizationRedirect(), tx_install\loginForm(), SC_logout\logout(), tx_felogin_pi1\main(), SC_browser\main(), tx_wizardsortpages_webfunc_2\main(), tx_extrapagecmoptions\main(), tx_impexp_clickmenu\main(), tx_dbal_module1\main(), tx_impexp_task\main(), tx_tstemplateceditor\main(), tx_indexedsearch_modfunc1\main(), tx_impexp_modfunc1\main(), SC_mod_tools_config_index\main(), tx_linkvalidator_ModFuncReport\main(), SC_wizard_colorpicker\main(), tx_version_cm1\main(), tx_tstemplateobjbrowser\main(), SC_show_item\main(), SC_mod_tools_log_index\main(), SC_mod_tools_em_index\main(), SC_mod_tools_be_user_index\main(), browse_links\main_file(), tx_rtehtmlarea_parse_html\main_parse_html(), tx_rtehtmlarea_select_image\main_rte(), tx_rtehtmlarea_user\main_user(), SC_index\makeInterfaceSelectorBox(), SC_index\makeLoginNews(), tx_recycler_controller_ajax\mapCommand(), SC_mod_tools_isearch_index\menuConfig(), SC_mod_tools_config_index\menuConfig(), SC_mod_tools_dbint_index\menuConfig(), SC_file_list\menuConfig(), SC_mod_user_ws_index\menuConfig(), SC_mod_tools_log_index\menuConfig(), SC_db_list\menuConfig(), tx_version_cm1\menuConfig(), SC_mod_web_perm_index\menuConfig(), t3lib_SCbase\menuConfig(), SC_mod_tools_em_index\menuConfig(), SC_mod_tools_be_user_index\menuConfig(), tx_lowlevel_cleaner\moduleContent(), tx_tsconfighelp_module1\moduleContent(), SC_mod_user_ws_index\moduleContent_publish(), TSpagegen\pagegenInit(), user_feAdmin\parseValues(), SC_alt_shortcut\preinit(), SC_alt_doc\preInit(), tx_dbal_em\preProcessDatabaseUpdates(), tx_dbal_module1\printLogMgm(), tx_dbal_module1\printSqlCheck(), tx_t3editor_codecompletion\processAjaxRequest(), tx_t3editor_TSrefLoader\processAjaxRequest(), t3lib_TCEforms_Suggest\processAjaxRequest(), user_feAdmin\procesSetFixed(), t3lib_modSettings\processStoreControl(), t3lib_fullsearch\procesStoreControl(), tx_em_Settings\readSettings(), template\redirectUrls(), tslib_content_SearchResult\render(), Tx_Fluid_ViewHelpers_Be_PagePathViewHelper\render(), Tx_Fluid_ViewHelpers_Be_PageInfoViewHelper\render(), Tx_Fluid_ViewHelpers_Be_TableListViewHelper\render(), t3lib_TCEforms_inline\renderForeignRecord(), SC_mod_tools_em_index\requestInstallExtensions(), tslib_ExtDirectEid\routeAction(), tx_t3editor_hooks_tstemplateinfo\save(), tslib_AdminPanel\saveConfigOptions(), user_feAdmin\sendInfoMail(), tx_felogin_pi1\showLogin(), SC_mod_user_setup_index\simulateUser(), Tx_Workspaces_Controller_ReviewController\singleIndexAction(), recordList\start(), t3lib_userAuth\start(), tslib_fe\statistics(), SC_mod_web_ts_index\templateMenu(), tx_aboutmodules_Functions\topMenu(), tx_em_Install\tsStyleConfigForm(), tx_linkvalidator_ModFuncReport\updateBrokenLinks(), tx_sysaction_task\viewNewBackendUser(), tx_sysaction_task\viewRecordList(), and tslib_fe\workspacePreviewInit().

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 127 of file class.t3lib_div.php.

Referenced by Tx_Extbase_MVC_Web_RequestBuilder\build(), and tx_scheduler_Module\getModuleContent().

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 165 of file class.t3lib_div.php.

References $value.

Referenced by SC_mod_web_perm_ajax\__construct(), tslib_fe\ADMCMD_preview(), Tx_Fluid_Core_Widget_WidgetRequestBuilder\build(), tx_felogin_pi1\changePassword(), tx_em_Install\checkDependencies(), tx_em_Extensions_Details\checkUploadFolder(), ShortcutMenu\createAjaxShortcut(), ShortcutMenu\deleteAjaxShortcut(), tslib_fe\fe_tce(), SC_mod_web_ts_index\getButtons(), tslib_cObj\getData(), tslib_feUserAuth\getLoginFormData(), t3lib_userAuth\getLoginFormData(), Tx_Version_Preview\getPreviewConfiguration(), tslib_cObj\getQueryArguments(), tx_install_mod1\isValidEnableRequest(), tx_rtehtmlarea_pi1\main(), tx_tstemplateceditor\main(), tx_indexedsearch_modfunc1\main(), SC_mod_tools_config_index\main(), SC_file_list\main(), tx_tstemplateobjbrowser\main(), SC_mod_user_ws_index\moduleContent_publish(), t3lib_queryGenerator\procesData(), tx_lowlevel_cleaner\quickDBlookUp(), tslib_content_SearchResult\render(), tslib_content_Form\render(), SC_mod_tools_em_index\requestInstallExtensions(), t3lib_extjs_ExtDirectRouter\route(), tx_t3editor_hooks_tstemplateinfo\save(), tx_taskcenter_status\saveCollapseState(), tx_taskcenter_status\saveSortingState(), tslib_fe\sendFormmail(), ShortcutMenu\setAjaxShortcut(), tx_rtehtmlarea_pi1\setPersonalDictionaryPath(), Tx_Extbase_Tests_Unit_Configuration_BackendConfigurationManagerTest\setUp(), tx_felogin_pi1\showForgot(), SC_mod_user_setup_index\storeIncomingData(), tx_em_Install\tsStyleConfigForm(), tx_version_cm1\versioningMgm(), and tx_sysaction_task\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
InvalidArgumentExceptionif class extends t3lib_Singleton
Parameters
string$classNamethe name of the class to set, must not be empty
object$instancethe instance to set, must be an instance of $className
Returns
void

Definition at line 4961 of file class.t3lib_div.php.

Referenced by t3lib_divTest\addInstanceCalledTwoTimesMakesMakeInstanceReturnBothInstancesInAddingOrder(), t3lib_divTest\addInstanceForClassThatIsNoSubclassOfProvidedClassThrowsException(), t3lib_divTest\addInstanceForEmptyClassNameThrowsException(), t3lib_divTest\addInstanceMakesMakeInstanceReturnThatInstance(), t3lib_divTest\addInstanceWithSingletonInstanceThrowsException(), t3lib_utility_MailTest\doMailCallsHook(), t3lib_divTest\makeInstanceCalledTwoTimesAfterAddInstanceReturnTwoDifferentInstances(), t3lib_tcemainTest\processDatamapWhenEditingRecordInWorkspaceCreatesNewRecordInWorkspace(), t3lib_divTest\purgeInstancesDropsAddedInstance(), and Tx_Fluid_Tests_Unit_View_StandaloneViewTest\setUp().

static addSlashesOnArray ( array &  $theArray)
static

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

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

Definition at line 1781 of file class.t3lib_div.php.

References $value.

Referenced by t3lib_divTest\addSlashesOnArrayAddsSlashesRecursive().

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

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

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

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

Definition at line 2230 of file class.t3lib_div.php.

References $content, t3lib_utility_Math\canBeInterpretedAsInteger(), LF, and TAB.

Referenced by tx_impexp\createXML(), and t3lib_flexformtools\flexArray2Xml().

static array2xml_cs ( array  $array,
  $docTag = 'phparray',
array  $options = array(),
  $charset = '' 
)
static

Turns PHP array into XML. See array2xml()

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

Definition at line 2198 of file class.t3lib_div.php.

References LF.

static array_merge ( array  $arr1,
array  $arr2 
)
static

An array_merge function where the keys are NOT renumbered as they happen to be with the real php-array_merge function. It is "binary safe" in the sense that integer keys are overridden as well.

Parameters
array$arr1First array
array$arr2Second array
Returns
array Merged result.

Definition at line 1897 of file class.t3lib_div.php.

Referenced by t3lib_TCEmain\_ACTION_FLEX_FORMdata(), tx_linkvalidator_tasks_Validator\buildMail(), tslib_feUserAuth\fetchGroupData(), getAllFilesAndFoldersInPath(), getValidClassPrefixes(), hasValidClassPrefix(), makeInstanceService(), and t3lib_TCEforms_Suggest\processAjaxRequest().

static array_merge_recursive_overrule ( array  $arr0,
array  $arr1,
  $notAddKeys = FALSE,
  $includeEmptyValues = TRUE,
  $enableUnsetFeature = TRUE 
)
static

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

Parameters
array$arr0First array
array$arr1Second array, overruling the first array
boolean$notAddKeysIf set, keys that are NOT found in $arr0 (first array) will not be set. Thus only existing value can/will be overruled from second array.
boolean$includeEmptyValuesIf set, values from $arr1 will overrule if they are empty or zero. Default: TRUE
boolean$enableUnsetFeatureIf set, special values "__UNSET" can be used in the second array in order to unset array keys in the resulting array.
Returns
array Resulting array where $arr1 values has overruled $arr0 values

Definition at line 1862 of file class.t3lib_div.php.

Referenced by t3lib_TCEforms_Suggest_DefaultReceiver\__construct(), template\__construct(), t3lib_extMgm\addExtJSModule(), t3lib_divTest\arrayMergeRecursiveOverruleDoesConsiderUnsetValues(), Tx_Extbase_MVC_Web_Routing_UriBuilder\buildBackendUri(), Tx_Extbase_Persistence_Mapper_DataMapFactory\buildDataMap(), t3lib_TCEmain\checkValue_flex(), t3lib_tsStyleConfig\ext_mergeIncomingWithExisting(), t3lib_TCEmain\fillInFieldArray(), tslib_fe\getConfigArray(), Tx_Extbase_Configuration_AbstractConfigurationManager\getConfiguration(), tslib_cObj\getData(), tx_dbal_em\getMappingSuggestions(), t3lib_BEfunc\getModTSconfig(), t3lib_BEfunc\getPagesTSconfig(), t3lib_l10n_parser_Llxml\getParsedData(), Tx_Extbase_Configuration_FrontendConfigurationManager\getPluginConfiguration(), Tx_Extbase_Configuration_BackendConfigurationManager\getPluginConfiguration(), tslib_cObj\getQueryArguments(), t3lib_TCEmain\getTableEntries(), t3lib_BEfunc\getTCEFORM_TSconfig(), t3lib_extobjbase\incLocalLang(), language\includeLLFile(), Tx_Fluid_ViewHelpers_Widget_Controller_PaginateController\initializeAction(), tx_form_View_Wizard_Wizard\loadLocalization(), tx_linkvalidator_tasks_Validator\loadModTSconfig(), t3lib_l10n_Factory\localizationOverride(), tx_belog_webinfo\localLang(), tx_rtehtmlarea_api\main(), tx_rtehtmlarea_user\main_user(), Tx_Extbase_Configuration_FrontendConfigurationManager\mergeConfigurationIntoFrameworkConfiguration(), t3lib_TStemplate\mergeConstantsFromPageTSconfig(), tx_version_tcemain_CommandMap\mergeToBottom(), tx_version_tcemain_CommandMap\mergeToTop(), tslib_fe\mergingWithGetVars(), t3lib_TCEforms_Flexforms\modifySingleFlexFormSheet(), t3lib_TCEforms\overrideFieldConf(), Tx_Extbase_Configuration_FrontendConfigurationManager\overrideStoragePidIfStartingPointIsSet(), tslib_pibase\pi_linkTP_keepPIvars(), tslib_pibase\pi_setPiVarDefaults(), t3lib_TCEmain\process_cmdmap(), t3lib_TCEmain\process_datamap(), t3lib_TCEforms_Suggest\processAjaxRequest(), language\readLLfile(), t3lib_PageRenderer\readLLfile(), tslib_fe\readLLfile(), Tx_Extbase_Utility_Extension\registerModule(), t3lib_BEfunc\RTEsetup(), tx_em_Extensions_List\singleExtInfo(), tx_em_Tools_XmlHandler\storeXMLResult(), and Tx_Extbase_MVC_Web_Routing_UriBuilder\uriFor().

static arrayDiffAssocRecursive ( array  $array1,
array  $array2 
)
static

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

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

Definition at line 1909 of file class.t3lib_div.php.

References $value.

Referenced by t3lib_divTest\arrayDiffAssocRecursiveHandlesMixedArrays(), t3lib_divTest\arrayDiffAssocRecursiveHandlesMultiDimensionalArrays(), t3lib_divTest\arrayDiffAssocRecursiveHandlesOneDimensionalArrays(), tslib_cObj\getQueryArguments(), tx_version_tcemain\processCmdmap_deleteAction(), and t3lib_TCEmain\unsetElementsToBeDeleted().

static arrayToLogString ( array  $arr,
  $valueList = array(),
  $valueLength = 20 
)
static

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

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

Definition at line 5656 of file class.t3lib_div.php.

References $value, and LF.

Referenced by t3lib_userAuth\checkAuthentication(), tslib_feUserAuth\fetchGroupData(), tx_sv_auth\getUser(), tx_lowlevel_syslog\main(), t3lib_userAuth\processLoginData(), t3lib_modSettings\processStoreControl(), t3lib_formmail\start(), and t3lib_userAuth\start().

static breakLinesForEmail (   $str,
  $newlineChar = LF,
  $lineWidth = 76 
)
static

Breaks up a single line of text for emails

Parameters
string$strThe string to break up
string$newlineCharThe string to implode the broken lines with (default/typically
)
integer$lineWidthThe line width
Returns
string reformatted text
Deprecated:
since TYPO3 4.6, will be removed in TYPO3 6.0 - Use t3lib_utility_Mail::breakLinesForEmail()

Definition at line 391 of file class.t3lib_div.php.

References t3lib_utility_Mail\breakLinesForEmail().

Referenced by user_plaintext\breakLines().

static calcParenthesis (   $string)
static

Calculates the input with parenthesis levels

Parameters
string$stringInput string, eg "(123 + 456) / 789 - 4"
Returns
integer Calculated value. Or error string.
See also
calcPriority(), tslib_cObj::stdWrap()
Deprecated:
since TYPO3 4.6, will be removed in TYPO3 6.0 - Use t3lib_utility_Math::calculateWithParentheses() instead

Definition at line 1184 of file class.t3lib_div.php.

References t3lib_utility_Math\calculateWithParentheses().

Referenced by t3lib_divTest\calcParenthesisCorrectlyCalculatesExpression().

static calcPriority (   $string)
static

Calculates the input by +,-,*,/,%,^ with priority to + and -

Parameters
string$stringInput string, eg "123 + 456 / 789 - 4"
Returns
integer Calculated value. Or error string.
See also
calcParenthesis()
Deprecated:
since TYPO3 4.6, will be removed in TYPO3 6.0 - Use t3lib_utility_Math::calculateWithPriorityToAdditionAndSubtraction() instead

Definition at line 1170 of file class.t3lib_div.php.

References t3lib_utility_Math\calculateWithPriorityToAdditionAndSubtraction().

Referenced by t3lib_divTest\calcPriorityCorrectlyCalculatesExpression().

static calculateCHash (   $params)
static

Calculates the cHash based on the provided parameters

Parameters
array$paramsArray of key-value pairs
Returns
string Hash of all the values
Deprecated:
since TYPO3 4.7 - will be removed in TYPO3 6.1 - use t3lib_cacheHash instead

Definition at line 4131 of file class.t3lib_div.php.

References logDeprecatedFunction(), and makeInstance().

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

Definition at line 4596 of file class.t3lib_div.php.

References $content, $GLOBALS, and debug().

Referenced by tslib_fe\__construct(), tx_t3editor\ajaxSaveCode(), tx_linkvalidator_tasks_Validator\buildMail(), t3lib_userAuthGroup\calcPerms(), tx_impexp\callHook(), tx_felogin_pi1\changePassword(), tslib_fe\checkAlternativeIdMethods(), t3lib_TCEmain\clear_cache(), t3lib_TCEmain\clear_cacheCmd(), tslib_fe\connectToDB(), tslib_fe\contentStrReplace(), tslib_fe\createHashBase(), tslib_fe\determineId(), t3lib_PageRenderer\doCompressCss(), t3lib_PageRenderer\doCompressJavaScript(), t3lib_PageRenderer\doConcatenateCss(), t3lib_PageRenderer\doConcatenateJavaScript(), t3lib_frontendedit\editAction(), t3lib_pageSelect\enableFields(), TYPO3backend\executeHook(), t3lib_TCEforms\formatValue(), tx_felogin_pi1\generateAndSendHash(), tslib_fe\generatePage_postProcessing(), t3lib_utility_Client\getBrowserInfo(), tslib_fe\getConfigArray(), t3lib_utility_Client\getDeviceType(), template\getDocHeaderButtons(), tslib_fe\getFromCache(), SC_mod_user_setup_index\getJavaScript(), SC_index\getJScode(), t3lib_userAuthGroup\getPagePermsClause(), t3lib_fullsearch\getQueryResultCode(), t3lib_BEfunc\getRecordTitle(), recordList\getSearchFields(), t3lib_TCEforms_inline\getSingleField_typeInline(), t3lib_TCEforms\getSingleField_typeUser(), tx_cms_layout\getTable_tt_content(), t3lib_BEfunc\getUpdateSignalCode(), tslib_fe\headerNoCache(), tslib_fe\hook_eofe(), t3lib_parsehtml\HTMLcleaner(), t3lib_TStemplate\includeStaticTypoScriptSources(), tslib_fe\initFEuser(), tslib_fe\isOutputting(), t3lib_TStemplate\linkData(), t3lib_userAuth\logoff(), tx_felogin_pi1\main(), SC_file_edit\main(), SC_db_layout\main(), SC_alt_doc\makeEditForm(), t3lib_iconWorks\mapRecordTypeToSpriteIconName(), template\moduleBody(), tslib_fe\pageErrorHandler(), t3lib_TSparser\parseSub(), tslib_fe\previewInfo(), tslib_fe\processOutput(), tx_felogin_pi1\processRedirect(), t3lib_transferData\procItems(), t3lib_userAuthGroup\recordEditAccessInternals(), tslib_content_ShockwaveFlashObject\render(), tslib_content_FlowPlayer\render(), t3lib_PageRenderer\render(), t3lib_TCEforms_inline\renderForeignRecordHeader(), t3lib_TCEforms_Suggest_DefaultReceiver\renderRecord(), SC_mod_user_setup_index\renderUserSetup(), tslib_ExtDirectEid\routeAction(), tslib_fe\settingLanguage(), tx_felogin_pi1\showLogin(), tslib_gifBuilder\start(), t3lib_userAuth\start(), SC_index\startForm(), template\startPage(), tslib_cObj\stdWrap_cacheStore(), SC_mod_user_setup_index\storeIncomingData(), tx_em_Install\tsStyleConfigForm(), tx_cms_layout\tt_content_drawHeader(), tx_cms_layout\tt_content_drawItem(), tslib_cObj\typoLink(), and Tx_Workspaces_Service_Workspaces\viewSingleRecord().

static cHashParams (   $addQueryParams)
static

Splits the input query-parameters into an array with certain parameters filtered out. Used to create the cHash value

Parameters
string$addQueryParamsQuery-parameters: "&xxx=yyy&zzz=uuu"
Returns
array Array with key/value pairs of query-parameters WITHOUT a certain list of variable names (like id, type, no_cache etc.) and WITH a variable, encryptionKey, specific for this server/installation
See also
tslib_fe::makeCacheHash(), tslib_cObj::typoLink(), t3lib_div::calculateCHash()
Deprecated:
since TYPO3 4.7 - will be removed in TYPO3 6.1 - use t3lib_cacheHash instead

Definition at line 4083 of file class.t3lib_div.php.

References $GLOBALS, logDeprecatedFunction(), and makeInstance().

static checkInstanceClassName (   $className,
  $instance 
)
staticprotected

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

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

Definition at line 4987 of file class.t3lib_div.php.

static cleanOutputBuffers ( )
static

Ends and cleans all output buffers

Returns
void

Definition at line 5740 of file class.t3lib_div.php.

Referenced by SC_mod_tools_em_index\extBackup().

static clientInfo (   $useragent = '')
static

Client Browser Information

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

Definition at line 3708 of file class.t3lib_div.php.

Referenced by t3lib_TCEforms\__construct(), tslib_fe\__construct(), and t3lib_userAuth\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
boolean TRUE if a domain name mask from $list matches $baseIP

Definition at line 718 of file class.t3lib_div.php.

Referenced by t3lib_divTest\cmpFqdnReturnsFalse(), t3lib_divTest\cmpFqdnReturnsTrue(), and t3lib_matchCondition_abstract\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
boolean TRUE if an IP-mask from $list matches $baseIP

Definition at line 404 of file class.t3lib_div.php.

Referenced by tslib_fe\beLoginLinkIPList(), t3lib_tsfeBeUserAuth\checkBackendAccessSettingsFromInitPhp(), t3lib_beUserAuth\checkLockToIP(), tslib_fe\checkPageUnavailableHandler(), debug(), t3lib_matchCondition_abstract\evaluateConditionCommon(), t3lib_DB\explain(), tx_sv_auth\getGroups(), tslib_fe\statistics(), and xdebug().

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

Definition at line 425 of file class.t3lib_div.php.

Referenced by t3lib_divTest\cmpIPv4ReturnsFalseForNotMatchingAddress(), and t3lib_divTest\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
boolean TRUE if an baseIP matches any prefix

Definition at line 473 of file class.t3lib_div.php.

Referenced by t3lib_divTest\cmpIPv6ReturnsFalseForNotMatchingAddress(), and t3lib_divTest\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
boolean Returns TRUE if this setup is compatible with the provided version number
Todo:
Still needs a function to convert versions to branches

Definition at line 901 of file class.t3lib_div.php.

References $GLOBALS, t3lib_utility_VersionNumber\convertVersionNumberToInteger(), and TYPO3_branch.

Referenced by t3lib_BEfunc\displayWarningMessages(), t3lib_matchCondition_abstract\evaluateConditionCommon(), tslib_fe\getConfigArray(), tx_install_report_InstallStatus\getRemainingUpdatesStatus(), and tx_simulatestatic\hookInitConfig().

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
boolean$GPvarAltIf set, then t3lib_div::_GP() is used to fetch the value if not found (isset) in the $getArray
Returns
array Output array with selected variables.

Definition at line 1759 of file class.t3lib_div.php.

Referenced by SC_alt_doc\compileStoreDat(), and template\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 641 of file class.t3lib_div.php.

Referenced by t3lib_divTest\compressIPv6CorrectlyCompressesAdresses().

static convertMicrotime (   $microtime)
static

Returns microtime input to milliseconds

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

Definition at line 1135 of file class.t3lib_div.php.

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
t3lib_div::mkdir_deep
Exceptions
RuntimeException If directory could not be created

Definition at line 2970 of file class.t3lib_div.php.

References $GLOBALS, and mkdir().

static createVersionNumberedFilename (   $file,
  $forceQueryString = FALSE 
)
static

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

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

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

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

Definition at line 3286 of file class.t3lib_div.php.

References $GLOBALS, PATH_thisScript, strtolower(), and TYPO3_MODE.

Referenced by tx_rtehtmlarea_base\getRteInitJsCode(), tslib_cObj\getUpdateJS(), SC_db_layout\main(), tx_install\outputWrapper(), t3lib_PageRenderer\processJsFile(), tslib_content_Form\render(), and t3lib_PageRenderer\render().

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 1932 of file class.t3lib_div.php.

References $value.

static deHSCentities (   $str)
static

Re-converts HTML entities if they have been converted by htmlspecialchars()

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

Definition at line 1210 of file class.t3lib_div.php.

Referenced by t3lib_parsehtml\bidir_htmlspecialchars(), tx_rtehtmlarea_base\drawRTE(), tx_feedit_editpanel\editIcons(), t3lib_BEfunc\getFuncMenu(), SC_mod_web_perm_index\getRecursiveSelect(), t3lib_TCEforms\getSingleField(), t3lib_TCEforms\getSingleField_typeSelect_checkbox(), t3lib_TCEforms\getSingleField_typeSelect_single(), t3lib_TCEforms\getSingleField_typeSelect_singlebox(), template\getTabMenu(), tslib_content_Form\render(), language\sL(), and tslib_cObj\stdWrap_htmlSpecialChars().

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) t3lib_div::devLog('[write message in english here]', 'extension key');

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

Definition at line 5530 of file class.t3lib_div.php.

References $GLOBALS.

Referenced by t3lib_modSettings\addToStoreList(), t3lib_modSettings\addToStoreListFromPrefix(), tx_sv_auth\authUser(), t3lib_userAuth\checkAuthentication(), t3lib_userAuth\compareUident(), t3lib_userAuth\createUserSession(), t3lib_DB\debug_check_recordset(), t3lib_svbase\devLog(), template\endPage(), tslib_feUserAuth\fetchGroupData(), t3lib_userAuth\fetchUserSession(), tx_sv_auth\getGroups(), tx_cssstyledcontent_pi1\getImgColumnRelations(), tx_sv_auth\getUser(), t3lib_error_ErrorHandler\handleError(), tslib_fe\initUserGroups(), Tx_Extbase_Object_Container_Container\log(), t3lib_userAuth\logoff(), ux_t3lib_DB\prepare_SELECTquery(), tx_rsaauth_sv1\processLoginData(), t3lib_userAuth\processLoginData(), t3lib_modSettings\processStoreControl(), t3lib_userAuth\setAndSaveSessionData(), t3lib_userAuth\setSessionCookie(), t3lib_modSettings\setStoreList(), t3lib_formmail\start(), t3lib_userAuth\start(), tx_saltedpasswords_sv1\updatePassword(), t3lib_error_AbstractExceptionHandler\writeLogEntries(), tx_saltedpasswords_sv1\writeLogMessage(), t3lib_modSettings\writeStoredSetting(), and t3lib_userAuth\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 1032 of file class.t3lib_div.php.

Referenced by t3lib_divTest\dirnameWithDataProvider(), Tx_Workspaces_Controller_PreviewController\generateJavascript(), TYPO3backend\generateJavascript(), getIndpEnv(), gif_compress(), tx_simulatestatic\hookInitConfig(), and t3lib_TCEforms_FE\initializeTemplateContainer().

static encodeHeader (   $line,
  $enc = 'quoted-printable',
  $charset = 'utf-8' 
)
static

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

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

Definition at line 5244 of file class.t3lib_div.php.

Referenced by t3lib_divTest\encodeHeaderEncodesQuestionmarksInQuotedPrintableMailHeader(), and t3lib_divTest\encodeHeaderEncodesWhitespacesInQuotedPrintableMailHeader().

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 829 of file class.t3lib_div.php.

References $items.

Referenced by tslib_cObj\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
boolean$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 1734 of file class.t3lib_div.php.

Referenced by ShortcutMenu\createAjaxShortcut(), tx_felogin_pi1\getPreserveGetVars(), tslib_cObj\getQueryArguments(), ShortcutMenu\initShortcuts(), t3lib_TStemplate\linkData(), and SC_db_new_content_el\removeInvalidElements().

static fixed_lgd_cs (   $string,
  $chars,
  $appendString = '...' 
)
static

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

Parameters
string$stringstring to truncate
integer$charsmust be an integer with an absolute value of at least 4. if negative the string is cropped from the right end.
string$appendStringappendix to the truncated string
Returns
string cropped string

Definition at line 369 of file class.t3lib_div.php.

References $GLOBALS.

Referenced by t3lib_diff\addClearBuffer(), user_wapversion\cBodytext(), user_wapversion\contentAbstract(), tx_cms_layout\dataFields(), tx_feedit_editpanel\editPanel(), tx_impexp\export_addRecord(), t3lib_tsparser_ext\ext_fixed_lgd(), t3lib_tsparser_ext\ext_getTemplateHierarchyArr(), t3lib_tsparser_ext\ext_printFields(), tx_em_Extensions_List\extensionListRow(), SC_mod_tools_em_index\extensionTitleIconHeader(), t3lib_timeTrack\fixCLen(), tx_install\generateConfigForm(), t3lib_admin\genTree(), fileList\getButtonsAndOtherMarkers(), template\getFileheader(), template\getHeader(), template\getPagePath(), t3lib_pageSelect\getPathFromRootline(), SC_mod_tools_isearch_index\getPhashExternalDocs(), SC_mod_tools_isearch_index\getPhashT3pages(), tx_recycler_helper\getRecordPath(), t3lib_BEfunc\getRecordPath(), t3lib_search_livesearch\getRecordTitlePrep(), t3lib_BEfunc\getRecordTitlePrep(), t3lib_TCEforms\getSingleField_typeFlex_draw(), tx_cms_layout\getTable_tt_content(), ShortcutMenu\initShortcuts(), recordList\linkWrapItems(), tx_wizardsortpages_webfunc_2\main(), tx_impexp_modfunc1\main(), SC_alt_db_navframe\main(), SC_db_new\main(), tx_impexp_modfunc1\overview_main(), clickMenu\printDBClickMenu(), tx_indexedsearch_modfunc1\printPhashRow(), printAllPageTree_perms\printTree(), t3lib_timeTrack\printTSlog(), t3lib_loadDBGroup\readyForInterface(), Tx_Fluid_ViewHelpers_Be_PagePathViewHelper\render(), SC_show_item\renderDBInfo(), tx_cms_webinfo_lang\renderL10nTable(), SC_mod_web_ts_index\renderList(), SC_db_layout\renderQuickEdit(), tx_cms_layout\renderText(), t3lib_transferData\selectAddForeign(), tx_impexp\singleRecordLines(), SC_view_help\substituteGlossaryWords_htmlcleaner_callback(), and tx_cms_layout\tt_board_drawItem().

static fixPermissions (   $path,
  $recursive = FALSE 
)
static
static flushOutputBuffers ( )
static

Ends and flushes all output buffers

Returns
void

Definition at line 5753 of file class.t3lib_div.php.

References $content, $value, and strtolower().

static formatForTextarea (   $content)
static

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

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

Definition at line 1308 of file class.t3lib_div.php.

References $content, and LF.

Referenced by tx_rtehtmlarea_pi2\drawRTE(), t3lib_rteapi\drawRTE(), tx_rtehtmlarea_base\drawRTE(), t3lib_fullsearch\getQueryResultCode(), SC_file_edit\main(), and tslib_content_Form\render().

static freetypeDpiComp (   $font_size)
static

Function to compensate for FreeType2 96 dpi

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

Definition at line 5367 of file class.t3lib_div.php.

References $GLOBALS.

Referenced by SC_t3lib_thumbs\fontGif(), t3lib_stdGraphic\ImageTTFBBoxWrapper(), t3lib_stdGraphic\ImageTTFTextWrapper(), and tx_install\isTTF().

static generateCHash (   $addQueryParams)
static

Returns the cHash based on provided query parameters and added values from internal call

Parameters
string$addQueryParamsQuery-parameters: "&xxx=yyy&zzz=uuu"
Returns
string Hash of all the values
See also
t3lib_div::cHashParams(), t3lib_div::calculateCHash()
Deprecated:
since TYPO3 4.7 - will be removed in TYPO3 6.1 - use t3lib_cacheHash instead

Definition at line 4117 of file class.t3lib_div.php.

References logDeprecatedFunction(), and makeInstance().

Referenced by tx_indexedsearch_indexer\backend_initIndexer().

static generateRandomBytesFallback (   $bytesToReturn)
staticprotected

Generate pseudo random bytes as last resort

Parameters
$bytesToReturn
Returns
string

Definition at line 1441 of file class.t3lib_div.php.

References $GLOBALS.

static generateRandomBytesMcrypt (   $bytesToGenerate,
  $randomSource 
)
staticprotected

Generate random bytes using mcrypt if available

Parameters
$bytesToGenerate
$randomSource
Returns
string

Definition at line 1408 of file class.t3lib_div.php.

static generateRandomBytesOpenSsl (   $bytesToGenerate)
staticprotected

Generate random bytes using openssl if available

Parameters
string$bytesToGenerate
Returns
string

Definition at line 1393 of file class.t3lib_div.php.

static generateRandomBytesUrandom (   $bytesToGenerate)
staticprotected

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

Parameters
$bytesToGenerate
Returns
string

Definition at line 1421 of file class.t3lib_div.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 3034 of file class.t3lib_div.php.

Referenced by tx_indexedsearch_crawler\crawler_execute_type2(), SC_mod_tools_dbint_index\findFile(), SC_mod_tools_dbint_index\func_filesearch(), t3lib_folderTree\getCount(), t3lib_divTest\getDirsReturnsArrayOfDirectoriesFromGivenDirectory(), t3lib_divTest\getDirsReturnsStringErrorOnPathFailure(), tx_em_Connection_ExtDirectServer\getExtFileTree(), tx_em_Extensions_List\getFlatInstExtList(), t3lib_spritemanager_SpriteGenerator\getFolder(), filelistFolderTree\getFolderTree(), tx_em_Extensions_List\getInstExtList(), and tx_em_Install\makeDetailedExtensionAnalysis().

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 1993 of file class.t3lib_div.php.

References strtolower().

Referenced by tslib_cObj\_parseFunc(), tslib_cObj\addParams(), t3lib_TSparser\checkIncludeLines(), tslib_cObj\encaps_lineSplit(), tslib_pibase\pi_openAtagHrefInJSwindow(), tx_rtehtmlarea_pi4\removeAccessibilityIcon(), and tx_indexedsearch_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.
boolean$regDirsIf set, directories are also included in output.
integer$recursivityLevelsThe number of levels to dig down...
string$excludePatternregex pattern of files/directories to exclude
Returns
array An array with the found files/directories.

Definition at line 3121 of file class.t3lib_div.php.

References array_merge().

Referenced by Tx_Extbase_Utility_Extension\buildAutoloadRegistryForSinglePath(), tx_indexedsearch_crawler\crawler_execute_type2(), tx_em_Tools\getClassIndexLocallangFiles(), SC_mod_tools_em_index\getFileListOfExtension(), tx_lowlevel_lost_files\main(), tx_em_Extensions_Details\makeUploadarray(), and tx_em_Install\removeExtDirectory().

static getBytesFromSizeMeasurement (   $measurement)
static

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

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

Definition at line 3247 of file class.t3lib_div.php.

Referenced by tx_install\checkConfiguration(), t3lib_divTest\getBytesFromSizeMeasurementCalculatesCorrectByteValue(), and tx_reports_reports_status_SystemStatus\getPhpMemoryLimitStatus().

static getClassName (   $className)
staticprotected

Returns the class name for a new instance, taking into account the class-extension API.

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

Definition at line 4914 of file class.t3lib_div.php.

static getDeprecationLogFileName ( )
static
static getFileAbsFileName (   $filename,
  $onlyRelative = TRUE,
  $relToTYPO3_mainDir = FALSE 
)
static

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

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

Definition at line 3823 of file class.t3lib_div.php.

References t3lib_extMgm\extPath(), t3lib_extMgm\isLoaded(), PATH_site, and PATH_typo3.

Referenced by t3lib_TSparser\checkIncludeLines(), tx_impexp\checkOrCreateDir(), tx_scheduler_RecyclerGarbageCollection\cleanupRecycledFiles(), t3lib_TCEmain\copyRecord_fixRTEmagicImages(), tx_indexedsearch_crawler\crawler_execute_type2(), tx_linkvalidator_tasks_Validator\execute(), tx_impexp\export_addFile(), tx_impexp\export_addFilesFromRelations(), t3lib_tsparser_ext\ext_getTSCE_config_image(), t3lib_TSparser\extractIncludes(), tx_indexedsearch_indexer\extractLinks(), t3lib_softrefproc\fileadminReferences(), t3lib_softrefproc\findRef_images(), t3lib_softrefproc\findRef_TStemplate(), t3lib_BEfunc\getFlexFormDS(), template\getHtmlTemplate(), t3lib_l10n_parser_Llxml\getParsedData(), t3lib_l10n_parser_AbstractXml\getParsedData(), t3lib_l10n_parser_Llxml\getParsedDataForElement(), tx_t3editor\getPreparedTemplate(), t3lib_BEfunc\getRegisteredFlexForms(), ux_t3lib_DB\handler_init(), tx_indexedsearch_indexer\indexRegularDocument(), SC_wizard_colorpicker\init(), t3lib_cs\initCaseFolding(), t3lib_cs\initCharset(), t3lib_cs\initToASCII(), t3lib_cs\initUnicodeData(), t3lib_l10n_parser_Llphp\isWithinWebRoot(), tslib_fe\jumpUrl(), t3lib_l10n_Factory\localizationOverride(), tx_lowlevel_double_files\main_autoFix(), tx_lowlevel_rte_images\main_autoFix(), tx_lowlevel_lost_files\main_autoFix(), SC_view_help\make_seeAlso(), SC_index\makeLoginBoxImage(), tslib_fe\pageErrorHandler(), t3lib_TCEforms\previewFieldValue(), SC_view_help\printImage(), tx_impexp\processSoftReferences_saveFile(), tx_impexp\processSoftReferences_saveFile_createRelFile(), Tx_Fluid_ViewHelpers_Uri_ResourceViewHelper\render(), tslib_content_FluidTemplate\render(), t3lib_PageRenderer\render(), tx_cssstyledcontent_pi1\render_uploads(), t3lib_TCEforms\renderWizards(), t3lib_l10n_Store\setConfiguration(), tx_rtehtmlarea_pi1\setPersonalDictionaryPath(), t3lib_softrefproc\setTypoLinkPartsElement(), Tx_Fluid_Core_Widget_AbstractWidgetController\setViewConfiguration(), Tx_Extbase_MVC_Controller_ActionController\setViewConfiguration(), template\startPage(), t3lib_parsehtml_proc\TS_images_db(), Tx_Fluid_Tests_Unit_Core_Widget_AbstractWidgetControllerTest\viewConfigurationCanBeOverriddenThroughFrameworkConfiguration(), and tx_impexp\writeFileVerify().

static getFilesInDir (   $path,
  $extensionList = '',
  $prependPath = FALSE,
  $order = '',
  $excludePattern = '' 
)
static

Returns an array with the names of files in a specific path

Parameters
string$pathIs the path to the file
string$extensionListis the comma list of extensions to read only (blank = all)
boolean$prependPathIf set, then the path is prepended the file names. Otherwise only the file names are returned in the array
string$orderis sorting: 1= sort alphabetically, 'mtime' = sort by modification time.
string$excludePatternA comma separated list of file names to exclude, no wildcards
Returns
array Array of the files found

Definition at line 3062 of file class.t3lib_div.php.

References strtolower().

Referenced by t3lib_SpriteManager\__construct(), template\addStyleSheetDirectory(), tx_install\cleanupManager(), SC_mod_tools_log_index\exportData(), SC_mod_tools_dbint_index\findFile(), tx_em_Connection_ExtDirectServer\getExtFileTree(), t3lib_spritemanager_SpriteGenerator\getFolder(), tx_em_Extensions_List\getInstExtList(), t3lib_spritemanager_AbstractHandler\loadRegisteredSprites(), TYPO3backend\loadResourcesForRegisteredNavigationComponents(), tx_impexp_task\main(), tx_impexp_modfunc1\main(), tx_rtehtmlarea_user\main_user(), SC_index\makeLoginBoxImage(), tx_em_Extensions_List\singleExtInfo(), and tx_install\stepOutput().

static getHostname (   $requestHost = TRUE)
static

Get the fully-qualified domain name of the host.

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

Definition at line 3775 of file class.t3lib_div.php.

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.

Definition at line 3408 of file class.t3lib_div.php.

References $GLOBALS, dirname(), PATH_site, and PATH_thisScript.

Referenced by TBE_browser_recordList\__construct(), Tx_Fluid_View_StandaloneView\__construct(), tx_install_session\__construct(), localPageTree\__construct(), template\addStyleSheetDirectory(), tslib_fe\ADMCMD_preview(), tslib_fe\beLoginLinkIPList(), Tx_Fluid_Core_Widget_WidgetRequestBuilder\build(), Tx_Extbase_MVC_Web_RequestBuilder\build(), Tx_Fluid_Tests_Unit_Core_Widget_WidgetRequestBuilderTest\buildSetsBaseUri(), Tx_Extbase_Tests_Unit_MVC_Web_RequestBuilderTest\buildSetsRequestBaseUri(), Tx_Extbase_Tests_Unit_MVC_Web_RequestBuilderTest\buildSetsRequestRequestUri(), Tx_Fluid_Tests_Unit_Core_Widget_WidgetRequestBuilderTest\buildSetsRequestUri(), tslib_fe\checkAlternativeIdMethods(), t3lib_userAuth\checkAuthentication(), t3lib_tsfeBeUserAuth\checkBackendAccessSettingsFromInitPhp(), tslib_fe\checkDataSubmission(), tx_install\checkExtensions(), t3lib_divTest\checkisOnCurrentHostInvalidHosts(), tslib_fe\checkJumpUrlReferer(), t3lib_beUserAuth\checkLockToIP(), tslib_fe\checkPageUnavailableHandler(), tx_install\checkPassword(), template\clearCacheMenu(), Tx_Fluid_Tests_Unit_View_StandaloneViewTest\constructorSetsBaseUri(), Tx_Fluid_Tests_Unit_View_StandaloneViewTest\constructorSetsRequestUri(), tx_indexedsearch_indexer\createLocalPathUsingDomainURL(), t3lib_Compressor\createMergedFile(), debug(), tslib_AdminPanel\display(), recordHistory\displaySettings(), t3lib_BEfunc\displayWarningMessages(), tx_rtehtmlarea_base\drawRTE(), t3lib_error_DebugExceptionHandler\echoExceptionWeb(), tx_feedit_editpanel\editContent(), tx_feedit_editpanel\editIcons(), t3lib_BEfunc\editOnClick(), tx_feedit_editpanel\editPanel(), tx_feedit_editpanel\editPanelLinkWrap(), t3lib_matchCondition_abstract\evaluateConditionCommon(), tx_dbal_autoloader\execute(), t3lib_DB\explain(), tslib_AdminPanel\ext_makeToolBar(), tslib_fe\fetch_the_id(), t3lib_userAuthGroup\fetchGroups(), tslib_fe\findDomainRecord(), tslib_cObj\forceAbsoluteUrl(), Tx_Workspaces_Controller_PreviewController\generateJavascript(), TYPO3backend\generateJavascript(), t3lib_matchCondition_frontendTest\genericGetVariablesSucceedsWithNamespaceIENV(), t3lib_matchCondition_backendTest\genericGetVariablesSucceedsWithNamespaceIENV(), tx_sysaction_task\getActions(), t3lib_userAuth\getAuthInfoArray(), tx_linkvalidator_linktype_File\getBrokenUrl(), tx_linkvalidator_linktype_Internal\getBrokenUrl(), SC_mod_web_info_index\getButtons(), SC_mod_web_func_index\getButtons(), SC_mod_web_ts_index\getButtons(), SC_alt_file_navframe\getButtons(), SC_alt_db_navframe\getButtons(), SC_db_new\getButtons(), SC_mod_web_perm_index\getButtons(), tx_version_cm1\getButtons(), SC_mod_tools_log_index\getButtons(), SC_db_layout\getButtons(), t3lib_userAuth\getCookieDomain(), tslib_cObj\getData(), t3lib_message_AbstractStandaloneMessage\getDefaultMarkers(), tx_reports_reports_status_ConfigurationStatus\getDeprecationLogStatus(), t3lib_BEDisplayLog\getDetails(), t3lib_extjs_ExtDirectApi\getExtDirectApi(), t3lib_pageSelect\getExtURL(), t3lib_pageselectTest\getExtUrlForDokType3AndUrlType0PrependsSiteUrl(), t3lib_divTest\getIndpEnvTypo3HostOnlyParsesHostnamesAndIpAdresses(), t3lib_divTest\getIndpEnvTypo3PortParsesHostnamesAndIpAdresses(), t3lib_divTest\getIndpEnvTypo3SitePathReturnNonEmptyString(), t3lib_divTest\getIndpEnvTypo3SitePathReturnsStringEndingWithSlash(), t3lib_divTest\getIndpEnvTypo3SitePathReturnsStringStartingWithSlash(), tx_reports_reports_status_SecurityStatus\getInstallToolProtectionStatus(), tx_recycler_module1\getJavaScriptConfiguration(), tx_rtehtmlarea_select_image\getJSCode(), tslib_fe\getLogHostName(), tx_rsaauth_usersetuphook\getLoginScripts(), tx_rsaauth_loginformhook\getLoginScripts(), tslib_fe\getLogIPAddress(), t3lib_BEfunc\getModuleUrl(), t3lib_BEfunc\getPathType_web_nonweb(), Tx_Version_Preview\getPreviewConfiguration(), tslib_cObj\getQueryArguments(), t3lib_extjs_ExtDirectApi\getRoutingUrl(), t3lib_modSettings\getStoreControl(), tx_cms_layout\getTable_tt_content(), t3lib_matchCondition_abstract\getVariableCommon(), t3lib_userAuth\hashLockClause_getHashInt(), tx_simulatestatic\hookCheckAlternativeIDMethods(), tx_simulatestatic\hookInitConfig(), t3lib_parsehtml\HTMLcleaner(), tx_rtehtmlarea_user\init(), user_feAdmin\init(), SC_file_upload\init(), SC_index\init(), t3lib_basicFileFunctions\init(), SC_wizard_table\init(), SC_wizard_forms\init(), t3lib_TCEforms_FE\initializeTemplateContainer(), t3lib_userAuth\ipLockClause_remoteIPNumber(), tx_felogin_pi1\isInCurrentDomain(), t3lib_divTest\isOnCurrentHostReturnsTrueWithCurrentHost(), tx_felogin_pi1\isRelativeUrl(), template\issueCommand(), tx_cms_layout\languageSelector(), tx_indexedsearch_modfunc1\listWords(), tx_rsaauth_feloginhook\loginFormHook(), SC_wizard_list\main(), TYPO3_tcefile\main(), SC_wizard_add\main(), SC_tce_db\main(), tx_version_cm1\main(), template\makeShortcutIcon(), t3lib_iconWorks\mapFileExtensionToSpriteIconName(), tx_tsconfighelp_module1\moduleContent(), tx_cms_layout\newContentElementOnClick(), SC_mod_user_task_index\openInNewWindow(), tx_install\outputWrapper(), tslib_fe\pageErrorHandler(), TSpagegen\pagegenInit(), template\parseTime(), tslib_fe\prefixLocalAnchorsWithScript(), SC_alt_doc\preInit(), Tx_Extbase_MVC_Controller_AbstractController\redirect(), tx_rtehtmlarea_pi4\removeAccessibilityIcon(), Tx_Extbase_MVC_View_NotFoundView\render(), tx_em_ExtensionManager\render(), tx_sysaction_task\renderActionList(), t3lib_TCEforms_inline\renderForeignRecordHeader(), SC_db_layout\renderQuickEdit(), SC_mod_tools_em_index\requestInstallExtensions(), t3lib_Compressor\returnFileReference(), t3lib_divTest\sanitizeLocalUrlValidUrlDataProvider(), SC_alt_doc\setDocument(), tslib_fe\setIDfromArgV(), t3lib_userAuth\setSessionCookie(), tx_form_System_Postprocessor_Mail\setSubject(), tx_felogin_pi1\showLogin(), Tx_Workspaces_Controller_ReviewController\singleIndexAction(), t3lib_parsehtml_proc\siteUrl(), t3lib_formmail\start(), t3lib_userAuth\start(), template\startPage(), tslib_fe\statistics(), tslib_fe\statistics_init_pagename(), tslib_fe\tempPageCacheContent(), tx_indexedsearch_indexerTest\testLocalPathWithSiteURL(), t3lib_parsehtml_proc\TS_images_db(), t3lib_parsehtml_proc\TS_images_rte(), tx_cms_layout\tt_content_drawHeader(), tx_feloginTest\typo3SitePathEqualsStubSitePath(), tx_feloginTest\typo3SitePathEqualsStubSitePathAfterChangingInTest(), tx_feloginTest\typo3SiteUrlEqualsStubSiteUrl(), tx_feloginTest\typo3SiteUrlEqualsStubSiteUrlAfterChangingInTest(), tslib_cObj\typoLink(), tx_sysaction_task\viewEditRecord(), tx_sysaction_task\viewNewRecord(), template\viewPageIcon(), tx_sysaction_task\viewRecordList(), tx_sysaction_task\viewSqlQuery(), SC_mod_user_ws_index\workspaceList_displayIcons(), t3lib_error_AbstractExceptionHandler\writeLog(), t3lib_error_ErrorHandler\writeLog(), t3lib_userAuthGroup\writelog(), t3lib_error_AbstractExceptionHandler\writeLogEntries(), tx_indexedsearch\writeSearchStat(), and xdebug().

static getMaximumPathLength ( )
static

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

Returns
integer The maximum available path length

Definition at line 3264 of file class.t3lib_div.php.

Referenced by t3lib_cache_backend_FileBackend\set().

static getMaxUploadFileSize (   $localLimit = 0)
static

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

Parameters
integer$localLimit,the number of Kilobytes (!) that should be used as the initial Limit, otherwise $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'] will be used
Returns
integer the maximum size of uploads that are allowed (measured in kilobytes)

Definition at line 3223 of file class.t3lib_div.php.

References $GLOBALS.

Referenced by SC_alt_file_navframe\initPage(), SC_file_list\main(), and t3lib_extFileFunctions\start().

static getRandomHexString (   $count)
static

Returns a hex representation of a random byte string.

Parameters
integer$countNumber of hex characters to return
Returns
string Random Bytes

Definition at line 1458 of file class.t3lib_div.php.

Referenced by tx_install_ajax\createEncryptionKey(), t3lib_userAuth\createSessionId(), and t3lib_db_PreparedStatement\generateParameterWrapToken().

static getThisUrl ( )
static

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

Returns
string

Definition at line 3346 of file class.t3lib_div.php.

static getUrl (   $url,
  $includeHeader = 0,
  $requestHeaders = FALSE,
$report = NULL 
)
static

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

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

Definition at line 2586 of file class.t3lib_div.php.

References $content, $GLOBALS, CRLF, and LF.

Referenced by t3lib_TStemplate\addExtensionStatics(), tx_impexp\addThumbnail(), tslib_fe\ADMCMD_preview(), tx_rtehtmlarea_microdataschema\buildJavascriptConfiguration(), t3lib_TSparser\checkIncludeLines(), tx_lowlevel_cleaner_core\cli_main(), t3lib_Compressor\compressCssFile(), t3lib_Compressor\compressJsFile(), t3lib_Compressor\createMergedFile(), tx_impexp\export_addFile(), tx_em_Install\extensionHasCacheConfiguration(), tx_em_Connection_Ter\fetchExtension(), tx_em_Repository_Utility\fetchFile(), tx_em_Connection_Ter\fetchTranslation(), tx_em_Connection_Ter\fetchTranslationStatus(), t3lib_TCEmain\fillInFieldArray(), tx_em_Install\forceDBupdates(), tx_install\generateConfigForm(), tx_em_Tools\getClassIndexLocallangFiles(), t3lib_BEfunc\getFlexFormDS(), template\getHtmlTemplate(), tx_t3editor\getPreparedTemplate(), Tx_Version_Preview\getPreviewConfiguration(), t3lib_BEfunc\getRegisteredFlexForms(), t3lib_parsehtml_proc\getUrl(), tx_indexedsearch_indexer\getUrlHeaders(), t3lib_divTest\getUrlProvidesWithoutAdditionalRequestHeadersHttpHeaderOnError(), t3lib_divTest\getUrlWithAdditionalRequestHeadersProvidesHttpHeaderOnError(), tx_tsconfighelp_module1\getZIPFileContents(), t3lib_TStemplate\includeStaticTypoScriptSources(), tx_indexedsearch_indexer\indexExternalUrl(), t3lib_cs\initCaseFolding(), t3lib_cs\initCharset(), t3lib_cs\initToASCII(), t3lib_cs\initUnicodeData(), tx_em_Install\installExtension(), tx_em_Repository_Utility\isExtListUpdateNecessary(), tx_impexp\loadFile(), TYPO3backend\loadResourcesForRegisteredNavigationComponents(), SC_file_edit\main(), tx_em_Install\makeDetailedExtensionAnalysis(), tx_em_Extensions_Details\makeUploadarray(), tx_em_Extensions_Details\modConfFileAnalysis(), tslib_fe\pageErrorHandler(), tx_em_Connection_ExtDirectServer\readExtFile(), tx_indexed_search_extparse\readFileContent(), tslib_content_Media\render(), t3lib_message_AbstractStandaloneMessage\render(), t3lib_PageRenderer\render(), t3lib_transferData\renderRecord_typesProc(), t3lib_Compressor\retrieveExternalFile(), tx_em_Install\tsStyleConfigForm(), tx_em_Install\uploadExtensionFile(), tx_impexp\writeFileVerify(), t3lib_install\writeToLocalconf(), t3lib_install\writeToLocalconf_control(), and tx_em_Tools\writeTYPO3_MOD_PATH().

static getUserObj (   $classRef,
  $checkPrefix = 'user_',
  $silent = FALSE 
)
static

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

Parameters
string$classRefClass reference, '[file-reference":"]["&"]class-name'. You can prefix the class name with "[file-reference]:" and t3lib_div::getFileAbsFileName() will then be used to resolve the filename and subsequently include it by "require_once()" which means you don't have to worry about including the class file either! Example: "EXT:realurl/class.tx_realurl.php:&tx_realurl". Finally; for the class name you can prefix it with "&" and you will reuse the previous instance of the object identified by the full reference string (meaning; if you ask for the same $classRef later in another place in the code you will get a reference to the first created one!).
string$checkPrefixRequired prefix of class name. By default "tx_" and "Tx_" are allowed.
boolean$silentIf set, no debug() error message is shown if class/function is not present.
Returns
object The instance of the class asked for. Instance is created with t3lib_div::makeInstance
See also
callUserFunction()

Definition at line 4710 of file class.t3lib_div.php.

References $GLOBALS, and debug().

Referenced by tx_sysaction_task\__construct(), ClearCacheMenu\__construct(), tx_linkvalidator_Processor\__construct(), tx_install\__construct(), t3lib_TCEforms\__construct(), tx_saltedpasswords_emconfhelper\buildHashMethodSelector(), SC_mod_user_setup_index\checkAccess(), tslib_fe\checkDataSubmission(), t3lib_TCEmain\checkValue_group_select_file(), t3lib_TCEmain\checkValue_input_Eval(), t3lib_TCEmain\checkValue_text_Eval(), tx_lowlevel_cleaner_core\cli_main(), tslib_cObj\cObjGetSingle(), tx_indexedsearch_crawler\crawler_execute(), tx_indexedsearch_crawler\crawler_init(), tx_cms_mediaItems\customMediaParams(), tx_cms_mediaItems\customMediaRenderTypes(), t3lib_TCEforms\dbFileIcons(), t3lib_TCEmain\deleteAction(), tx_saltedpasswords_salts_factory\determineSaltingHashingMethod(), tslib_AdminPanel\display(), t3lib_frontendedit\displayEditIcons(), t3lib_frontendedit\displayEditPanel(), t3lib_BEfunc\displayWarningMessages(), tx_rtehtmlarea_base\enableRegisteredPlugins(), tslib_cObj\extLinkATagParams(), tslib_menu\filterMenuPages(), t3lib_extjs_ExtDirectApi\generateAPI(), tslib_fe\generatePage_postProcessing(), tslib_cObj\getATagParams(), tx_rsaauth_backendfactory\getBackend(), t3lib_TCEmain\getCheckModifyAccessListHookObjects(), tslib_cObj\getData(), t3lib_BEfunc\getFlexFormDS(), tslib_cObj\getGetImgResourceHookObjects(), tx_install\getMissingPhpModules(), t3lib_pageSelect\getPage(), t3lib_pageSelect\getPageOverlay(), t3lib_pageSelect\getRecordOverlay(), tx_saltedpasswords_salts_factory\getSaltingInstance(), t3lib_TCEforms\getSingleField_typeInput(), tx_rsaauth_storagefactory\getStorage(), tx_install\getUpgradeObjInstance(), tx_indexedsearch_modfunc2\hookRequest(), Tx_IndexedSearch_Domain_Repository_IndexSearchRepository\hookRequest(), tx_cssstyledcontent_pi1\hookRequest(), Tx_IndexedSearch_Controller_SearchController\hookRequest(), tx_indexedsearch\hookRequest(), tx_coreupdates_migrateworkspaces\includeTCA(), tslib_fe\includeTCA(), tx_install\includeTCA(), tx_indexedsearch_indexer\init(), t3lib_TCEforms_inline\initHookObjects(), tx_indexedsearch\initialize(), tx_linkvalidator_ModFuncReport\initialize(), tx_indexedsearch_indexer\initializeExternalParsers(), Tx_IndexedSearch_Controller_SearchController\initializeExternalParsers(), t3lib_tsfeBeUserAuth\initializeFrontendEdit(), tslib_fe\jumpUrl(), tx_rtehtmlarea_SC_select_image\main(), tx_rtehtmlarea_SC_browse_links\main(), SC_alt_topmenu_dummy\main(), tx_indexedsearch_modfunc1\main(), tx_lowlevel_rte_images\main(), SC_browse_links\main(), SC_show_item\main(), tx_rtehtmlarea_parse_html\main_parse_html(), recordList\makeQueryArray(), t3lib_iconWorks\mapRecordOverlayToSpriteIconName(), t3lib_TCEmain\moveRecord(), t3lib_TCEmain\moveRecord_raw(), t3lib_TCEmain\process_cmdmap(), t3lib_TCEmain\process_datamap(), t3lib_extFileFunctions\processData(), t3lib_extjs_ExtDirectRouter\processRpc(), tslib_fe\realPageCacheContent(), tslib_content_Media\render(), tslib_content_Content\render(), tx_em_ExtensionManager\render(), t3lib_parsehtml_proc\RTE_transform(), t3lib_BEfunc\RTEgetObj(), tslib_fe\sendFormmail(), tx_saltedpasswords_salts_factory\setPreferredHashingMethod(), tx_install\setupGeneral(), t3lib_BEfunc\softRefParserObj(), tslib_cObj\start(), tslib_fe\statistics(), tx_install\stepOutput(), t3lib_parsehtml_proc\TS_links_db(), t3lib_parsehtml_proc\TS_links_rte(), tx_cms_layout\tt_content_drawItem(), tslib_cObj\typoLink(), and t3lib_BEfunc\viewOnClick().

static getValidClassPrefixes ( )
static

Returns all valid class prefixes.

Returns
array Array of valid prefixed of class names

Definition at line 4797 of file class.t3lib_div.php.

References $GLOBALS, array_merge(), and trimExplode().

Referenced by tslib_cObj\callUserFunction(), t3lib_matchCondition_abstract\evaluateConditionCommon(), and t3lib_divTest\getValidClassPrefixesReturnsListOfValidClassPrefixes().

static gif_compress (   $theFile,
  $type 
)
static

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

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

     $theFile is expected to be a valid GIF-file!
     The function returns a code for the operation.
Parameters
string$theFileFilepath
string$typeSee description of function
Returns
string Returns "GD" if GD was used, otherwise "IM" if ImageMagick was used. If nothing done at all, it returns empty string.

Definition at line 269 of file class.t3lib_div.php.

References $GLOBALS, dirname(), t3lib_utility_Command\exec(), and strtolower().

Referenced by tx_install\checkTheImageProcessing(), t3lib_divTest\gifCompressFixesPermissionOfConvertedFileIfUsingGd(), t3lib_divTest\gifCompressFixesPermissionOfConvertedFileIfUsingImagemagick(), t3lib_stdGraphic\imageMagickConvert(), t3lib_iconWorks\makeIcon(), and t3lib_stdGraphic\output().

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
boolean

Definition at line 4159 of file class.t3lib_div.php.

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

Definition at line 4144 of file class.t3lib_div.php.

References $GLOBALS.

Referenced by tslib_menu\filterMenuPages(), tslib_menu\makeMenu(), tx_cms_webinfo_lang\renderL10nTable(), and tslib_fe\settingLanguage().

static htmlspecialchars_decode (   $value)
static

Inverse version of htmlspecialchars()

Parameters
string$valueValue where >, <, " and & should be converted to regular chars.
Returns
string Converted result.

Definition at line 1196 of file class.t3lib_div.php.

References $value.

Referenced by tx_indexedsearch_indexer\extractLinks(), t3lib_softrefproc\findRef_images(), t3lib_softrefproc\findRef_TStemplate(), t3lib_parsehtml\get_tag_attributes(), tx_indexedsearch_crawler\indexExtUrl(), user_plaintext\parseBody(), and tx_opendocs\renderMenuEntry().

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 IM6 & GraphicsMagick

Definition at line 5678 of file class.t3lib_div.php.

References t3lib_utility_Command\imageMagickCommand().

Referenced by tx_install\_checkImageMagick_getVersion(), tx_install\_checkImageMagickGifCapability(), t3lib_stdGraphic\combineExec(), t3lib_stdGraphic\imageMagickExec(), and t3lib_stdGraphic\imageMagickIdentify().

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)
boolean$skipBlankIf set, parameters which were blank strings would be removed.
boolean$rawurlencodeParamNameIf set, the param name itself (for example "param[key][key2]") would be rawurlencoded as well.
Returns
string Imploded result, fx. &param[key][key2]=value2&param[key][key3]=value3
See also
explodeUrl2Array()

Definition at line 1711 of file class.t3lib_div.php.

Referenced by tx_indexedsearch_indexer\backend_initIndexer(), Tx_Extbase_MVC_Web_Routing_UriBuilder\buildTypolinkConfiguration(), tslib_fe\calculateLinkVars(), SC_alt_doc\compileStoreDat(), Tx_Workspaces_Service_Workspaces\generateWorkspacePreviewLink(), t3lib_BEfunc\getFuncCheck(), t3lib_BEfunc\getFuncInput(), t3lib_BEfunc\getFuncMenu(), t3lib_BEfunc\getModuleUrl(), tx_felogin_pi1\getPreserveGetVars(), tslib_cObj\getQueryArguments(), template\getTabMenu(), tslib_cObj\getTypoLink(), SC_alt_doc\init(), t3lib_TStemplate\linkData(), recordHistory\linkPage(), tx_cms_layout\linkRTEbutton(), tx_tstemplateobjbrowser\main(), tslib_fe\makeCacheHash(), template\makeShortcutUrl(), tx_indexedsearch_modfunc1\printPhashRow(), SC_db_new_content_el\removeInvalidElements(), SC_db_layout\renderQuickEdit(), and t3lib_TCEforms\renderWizards().

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

Definition at line 2060 of file class.t3lib_div.php.

References strtolower().

Referenced by tslib_cObj\addParams(), tslib_cObj\encaps_lineSplit(), tx_rtehtmlarea_pi3\render_clickenlarge(), tx_cssstyledcontent_pi1\render_table(), tx_cssstyledcontent_pi1\render_uploads(), t3lib_parsehtml_proc\transformStyledATags(), t3lib_parsehtml_proc\TS_AtagToAbs(), t3lib_parsehtml_proc\TS_images_db(), t3lib_parsehtml_proc\TS_images_rte(), t3lib_parsehtml_proc\TS_links_db(), and t3lib_parsehtml_proc\TS_reglinks().

static inArray ( array  $in_array,
  $item 
)
static

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

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

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

Definition at line 1551 of file class.t3lib_div.php.

Referenced by tx_dbal_autoloader\activateDbal(), tx_saltedpasswords_autoloader\activateSaltedPasswords(), t3lib_BEfunc\blindGroupNames(), t3lib_TCEforms\dbFileIcons(), tslib_menu\filterMenuPages(), tslib_jsmenu\generate_level(), tx_dbal_em\getMappingSuggestions(), and TYPO3AJAX\setContentFormat().

static initSysLog ( )
static

Initialize the system log.

Returns
void
See also
sysLog()

Definition at line 5381 of file class.t3lib_div.php.

References $GLOBALS, t3lib_utility_Math\forceIntegerInRange(), PATH_site, strtoupper(), and TYPO3_OS.

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

Definition at line 801 of file class.t3lib_div.php.

Referenced by tslib_cObj\_parseFunc(), ux_t3lib_DB\_quoteWhereClause(), t3lib_treeView\addField(), t3lib_extMgm\addToAllTCAtypes(), extDirect_DataProvider_BackendUserSettings\addToList(), tx_version_tcemain_CommandMap\applyWorkspacesSetStageBehaviour(), t3lib_BEfunc\blindUserNames(), tx_rtehtmlarea_selectfont\buildJSFontItemsConfig(), t3lib_tree_Tca_DatabaseTreeDataProvider\buildRepresentationForNode(), Tx_Workspaces_Service_Workspaces\canCreatePreviewLink(), t3lib_userAuthGroup\check(), t3lib_userAuthGroup\checkAuthMode(), tx_saltedpasswords_emconfhelper\checkConfigurationFrontend(), tslib_cObj\checkIf(), t3lib_TCEmain\checkModifyAccessList(), t3lib_loadModules\checkModWorkspace(), t3lib_TCEmain\checkValue(), t3lib_userAuthGroup\checkWorkspace(), tx_lang_clearcache\clearCache(), t3lib_cli\cli_keyboardInput_yes(), tx_lowlevel_cleaner_core\cli_referenceIndexCheck(), tx_saltedpasswords_sv1\compareUident(), ux_t3lib_sqlparser\compileWhereClause(), t3lib_sqlparser\compileWhereClause(), t3lib_stdGraphic\copyImageOntoImage(), t3lib_TCEmain\copyPages(), tslib_cObj\DBgetInsert(), tslib_cObj\DBgetUpdate(), tslib_cObj\DBmayFEUserEdit(), ux_t3lib_DB\debugHandler(), tx_install\displaySuggestions(), t3lib_matchCondition_frontend\evaluateCondition(), t3lib_matchCondition_backend\evaluateCondition(), t3lib_matchCondition_abstract\evaluateConditionCommon(), user_feAdmin\evalValues(), tslib_feTCE\execNEWinsert(), t3lib_DB\explain(), tx_impexp\export_addFile(), t3lib_tsparser_ext\ext_getObjTree(), t3lib_tsparser_ext\ext_getTypeData(), t3lib_tsparser_ext\ext_printFields(), tx_em_Install\extDelete(), tx_em_Extensions_List\extensionListRow(), t3lib_TStemplate\extractFromResources(), Tx_Workspaces_Service_Stages\fetchGroupsRecursive(), tslib_cObj\filelink(), tslib_cObj\filelist(), tslib_cObj\fileResource(), tslib_menu\filterMenuPages(), t3lib_extFileFunctions\func_edit(), SC_mod_tools_dbint_index\func_filesearch(), t3lib_extFileFunctions\func_newfile(), tslib_jsmenu\generate_level(), recordList\generateList(), tslib_cObj\getBorderAttr(), SC_mod_user_setup_index\getCSH(), t3lib_install_Sql\getDatabaseExtra(), t3lib_TCEmain\getExcludeListArray(), SC_mod_tools_em_index\getFileListOfExtension(), t3lib_stdGraphic\getImageDimensions(), t3lib_BEfunc\getModuleData(), tx_em_Parser_XmlParserFactory\getParserInstance(), t3lib_TCEforms_inline\getPossibleRecords(), t3lib_BEfunc\getRecordWSOL(), tslib_gifBuilder\getResource(), Tx_Workspaces_Service_Stages\getResponsibleUser(), t3lib_TStemplate\getRootlineLevel(), t3lib_TCEforms\getSingleField(), t3lib_TCEforms\getSingleField_typeFlex_draw(), t3lib_TCEforms\getSingleField_typeSelect(), tx_cms_layout\getTableMenu(), t3lib_softrefproc\getTypoLinkParts(), tx_sysaction_task\getUsergroups(), t3lib_sqlparser\getValue(), t3lib_userAuth\hashLockClause_getHashInt(), tx_simulatestatic\hookLinkDataPostProc(), tslib_cObj\imageLinkWrap(), t3lib_stdGraphic\imageMagickConvert(), tx_impexp\includeSoftref(), tx_statictemplates\includeStaticTypoScriptSources(), tx_indexedsearch\initialize(), t3lib_userAuthGroup\inList(), t3lib_basicFileFunctions\is_allowed(), t3lib_cacheHash\isCoreParameter(), t3lib_TCEforms\isDisplayCondition(), t3lib_tree_Tca_AbstractTcaTreeDataProvider\isExpanded(), tx_install\isExtensionEnabled(), tx_scheduler_CronCmd\isInCommandList(), t3lib_userAuthGroup\isMemberOfGroup(), SC_db_new\isTableAllowedForThisPage(), tx_indexedsearch_util\isTableUsed(), tx_saltedpasswords_div\isUsageEnabled(), tx_rtehtmlarea_parse_html\keepSpanTagsWithId(), t3lib_collection_RecordCollectionRepositoryTest\limitRecordFields(), tx_sysaction_list\listURL(), TBE_browser_recordList\listURL(), t3lib_TCEmain\localize(), tx_wizardsortpages_webfunc_2\main(), tx_rtehtmlarea_pi1\main(), SC_file_edit\main(), SC_tslib_showpic\main(), SC_mod_tools_log_index\main(), SC_mod_tools_em_index\main(), SC_alt_doc\main(), tslib_menu\makeMenu(), t3lib_queryGenerator\makeOptionList(), t3lib_search_livesearch\makeQuerySearchByTable(), recordList\makeSearchString(), tx_em_Extensions_Details\makeUploadarray(), t3lib_stdGraphic\maskImageOntoImage(), t3lib_SCbase\mergeExternalItems(), t3lib_userAuthGroup\modAccess(), t3lib_sqlparser\parseALTERTABLE(), t3lib_sqlparser\parseWhereClause(), tx_saltedpasswords_evalTest\passwordIsTurnedIntoSaltedString(), clickMenu\printFileClickMenu(), tx_tstemplateinfo\procesResources(), tslib_cObj\processParams(), t3lib_parsehtml\processTag(), t3lib_TStemplate\processTemplate(), transferData\regItem(), extDirect_DataProvider_BackendUserSettings\removeFromList(), user_feAdmin\removeRequired(), tslib_content_Multimedia\render(), tslib_content_HierarchicalMenu\render(), tslib_content_Content\render(), tslib_content_Form\render(), tx_version_tcemain_CommandMap\resolveWorkspacesSetStageDependencies(), tx_version_tcemain_CommandMap\resolveWorkspacesSwapDependencies(), tx_tstemplateinfo\resourceListForCopy(), tx_rtehtmlarea_base\setToolbar(), tx_felogin_pi1\showLogin(), tx_em_Extensions_List\singleExtInfo(), tx_impexp\singleRecordLines(), t3lib_stdGraphic\splitString(), ux_t3lib_DB\sql_query(), t3lib_formmail\start(), tslib_fe\statistics(), tslib_cObj\stdWrap(), t3lib_TCEforms_inline\synchronizeLocalizeRecords(), t3lib_BEfunc\thumbCode(), t3lib_parsehtml_proc\TS_images_db(), t3lib_parsehtml_proc\TS_links_rte(), t3lib_parsehtml_proc\TS_transform_rte(), tslib_cObj\typoLink(), tx_indexedsearch_lexer\utf8_is_letter(), tx_version_cm1\versioningMgm(), and t3lib_userAuthGroup\workspaceCheckStageForCurrent().

static instantiateClass (   $className,
  $arguments 
)
staticprotected

Speed optimized alternative to ReflectionClass::newInstanceArgs()

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

Definition at line 4866 of file class.t3lib_div.php.

static int_from_ver (   $verNumberStr)
static

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

Parameters
string$verNumberStrVersion number on format x.x.x
Returns
integer Integer version of version number (where each part can count to 999)
Deprecated:
since TYPO3 4.6, will be removed in TYPO3 6.1 - Use t3lib_utility_VersionNumber::convertVersionNumberToInteger() instead

Definition at line 885 of file class.t3lib_div.php.

References t3lib_utility_VersionNumber\convertVersionNumberToInteger(), and TYPO3_version.

Referenced by t3lib_divTest\intFromVerConvertsVersionNumbersToIntegers().

static intExplode (   $delimiter,
  $string,
  $onlyNonEmptyValues = FALSE,
  $limit = 0 
)
static

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

Parameters
string$delimiterDelimiter string to explode with
string$stringThe string to explode
boolean$onlyNonEmptyValuesIf set, all empty values (='') will NOT be set in output
integer$limitIf positive, the result will contain a maximum of limit elements, if negative, all components except the last -limit are returned, if zero (default), the result is not limited at all
Returns
array Exploded values, all converted to integers

Definition at line 1572 of file class.t3lib_div.php.

Referenced by t3lib_stdGraphic\adjust(), tx_rtehtmlarea_acronym\buildJSAcronymArray(), t3lib_stdGraphic\calcTextCordsForMap(), t3lib_queryGenerator\cleanInputVal(), t3lib_DB\cleanIntList(), t3lib_stdGraphic\copyGifOntoGif(), Tx_Extbase_Persistence_QueryFactory\create(), t3lib_stdGraphic\crop(), tslib_cObj\DBmayFEUserEditSelect(), Tx_Extbase_Persistence_Backend\determineStoragePageIdForNewRecord(), tx_indexedsearch\doSearch(), ux_t3lib_DB\exec_PREPAREDquery(), ux_t3lib_DB\exec_SELECTquery(), Tx_IndexedSearch_Domain_Repository_IndexSearchRepository\execFinalQuery(), tx_indexedsearch\execFinalQuery(), t3lib_tsparser_ext\ext_getTypeData(), localPageTree\ext_tree(), local_beUserAuth\ext_workspaceMembership(), tslib_gmenu_foldout\extProc_finish(), tslib_gmenu_layers\extProc_init(), tslib_tmenu_layers\extProc_init(), Tx_Workspaces_Service_Stages\fetchGroupsRecursive(), tslib_gmenu\findLargestDims(), t3lib_TCEforms\getAdditionalPreviewLanguages(), tslib_menu\getBannedUids(), t3lib_tree_Tca_DatabaseTreeDataProvider\getChildrenUidsFromChildrenRelation(), Tx_Extbase_Persistence_Mapper_DataMapper\getConstraint(), t3lib_pageSelect\getMultipleGroupsWhereClause(), tslib_fe\getPageShortcut(), ux_t3lib_DB\getQueryComponents(), tslib_cObj\getSlidePids(), Tx_Workspaces_Service_Workspaces\getTreeUids(), tslib_cObj\getWhere(), tslib_cObj\imageLinkWrap(), t3lib_stdGraphic\IMparams(), tx_statictemplates\includeStaticTypoScriptSources(), t3lib_TStemplate\includeStaticTypoScriptSources(), Tx_IndexedSearch_Controller_SearchController\initialize(), tx_indexedsearch\initialize(), t3lib_divTest\intExplodeConvertsStringsToInteger(), tx_rtehtmlarea_SC_browse_links\main(), SC_browse_links\main(), SC_db_layout\main(), t3lib_stdGraphic\makeBox(), t3lib_stdGraphic\makeEllipse(), t3lib_stdGraphic\makeEmboss(), tslib_gmenu\makeGifs(), tslib_menu\makeMenu(), t3lib_queryGenerator\makeSelectorTable(), t3lib_stdGraphic\makeShadow(), t3lib_stdGraphic\objPosition(), TSpagegen\pagegenInit(), t3lib_TStemplate\processTemplate(), tx_em_Tools\renderVersion(), Tx_IndexedSearch_Controller_SearchController\searchAction(), Tx_IndexedSearch_Domain_Repository_IndexSearchRepository\sectionTableWhere(), tx_indexedsearch\sectionTableWhere(), ux_t3lib_DB\SELECTquery(), tslib_fe\settingLanguage(), t3lib_stdGraphic\setWorkArea(), t3lib_stdGraphic\splitString(), tslib_tableOffset\start(), tslib_controlTable\start(), tslib_gifBuilder\start(), tslib_menu\start(), tslib_cObj\substring(), t3lib_stdGraphic\txtPosition(), and t3lib_BEfunc\viewOnClick().

static intInRange (   $theInt,
  $min,
  $max = 2000000000,
  $zeroValue = 0 
)
static

Forces the integer $theInt into the boundaries of $min and $max. If the $theInt is 'FALSE' then the $zeroValue is applied.

Parameters
integer$theIntInput value
integer$minLower limit
integer$maxHigher limit
integer$zeroValueDefault value if input is FALSE.
Returns
integer The input value forced into the boundaries of $min and $max
Deprecated:
since TYPO3 4.6, will be removed in TYPO3 6.0 - Use t3lib_utility_Math::forceIntegerInRange() instead

Definition at line 861 of file class.t3lib_div.php.

References t3lib_utility_Math\forceIntegerInRange().

Referenced by Tx_IndexedSearch_Domain_Repository_IndexSearchRepository\doSearch(), Tx_IndexedSearch_Controller_SearchController\initialize(), t3lib_divTest\intInRangeForcesIntegerIntoDefaultBoundaries(), t3lib_divTest\intInRangeSetsDefaultValueIfZeroValueIsGiven(), and Tx_IndexedSearch_ViewHelpers_PageBrowsingViewHelper\render().

static intval_positive (   $theInt)
static

Returns the $integer if greater than zero, otherwise returns zero.

Parameters
integer$theIntInteger string to process
Returns
integer
Deprecated:
since TYPO3 4.6, will be removed in TYPO3 6.0 - Use t3lib_utility_Math::convertToPositiveInteger() instead

Definition at line 873 of file class.t3lib_div.php.

References t3lib_utility_Math\convertToPositiveInteger().

Referenced by t3lib_divTest\intvalPositiveReturnsTheInputValueForPositiveValues(), and t3lib_divTest\intvalPositiveReturnsZeroForNegativeValues().

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 547 of file class.t3lib_div.php.

Referenced by t3lib_divTest\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 528 of file class.t3lib_div.php.

Referenced by t3lib_divTest\IPv6Hex2BinCorrectlyConvertsAddresses(), and tslib_fe\stripIPv6().

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
boolean

Definition at line 3878 of file class.t3lib_div.php.

References TYPO3_OS.

Referenced by tslib_cObj\clean_directory(), tx_indexedsearch_crawler\crawler_execute_type2(), tx_rsaauth_backendwarnings\displayWarningMessages_postProcess(), template\getHtmlTemplate(), ShortcutMenu\getShortcutIcon(), tx_indexedsearch_indexer\indexRegularDocument(), SC_alt_shortcut\mIconFilename(), t3lib_stdGraphic\prependAbsolutePath(), and tslib_fe\statistics_init().

static isBrokenEmailEnvironment ( )
static

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

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

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

Definition at line 1281 of file class.t3lib_div.php.

References TYPO3_OS.

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

Definition at line 1090 of file class.t3lib_div.php.

Referenced by t3lib_formmail\__destruct(), tx_sysaction_task\action_getUserMainDir(), t3lib_Compressor\checkBaseDirectory(), tx_indexedsearch_crawler\checkDeniedSuburls(), t3lib_basicFileFunctions\checkPathAgainstMounts(), tx_indexedsearch_crawler\checkUrl(), t3lib_TCEmain\checkValue_group_select_file(), t3lib_TCEmain\clear_cacheCmd(), ux_t3lib_sqlparser\compileWhereClause(), t3lib_TCEmain\copyRecord_fixRTEmagicImages(), SC_view_help\createGlossaryIndex(), t3lib_Compressor\createMergedFile(), t3lib_stdGraphic\createTempSubDir(), tx_impexp\export_addFile(), tslib_cObj\filelist(), t3lib_basicFileFunctions\findFirstWebFolder(), t3lib_extjs_ExtDirectApi\findNamespace(), t3lib_softrefproc\findRef_images(), t3lib_softrefproc\findRef_TStemplate(), tx_em_Tools\first_in_array(), t3lib_extFileFunctions\func_copy(), t3lib_extFileFunctions\func_move(), tx_em_Tools\getClassIndexLocallangFiles(), t3lib_TStemplate\getFileName(), template\getHtmlTemplate(), t3lib_BEfunc\getPathType_web_nonweb(), tx_impexp\getRTEoriginalFilename(), t3lib_utility_Mail\getSystemFromAddress(), t3lib_parsehtml\HTMLcleaner(), t3lib_basicFileFunctions\is_webpath(), t3lib_divTest\isFirstPartOfStrReturnsFalseForNotMatchingFirstPart(), t3lib_divTest\isFirstPartOfStrReturnsTrueForMatchingFirstPart(), tx_felogin_pi1\isInCurrentDomain(), tx_felogin_pi1\isInLocalDomain(), tx_felogin_pi1\isRelativeUrl(), tx_saltedpasswords_Tasks_BulkUpdate\isSaltedHash(), tslib_fe\jumpUrl(), tx_lowlevel_double_files\main(), tx_lowlevel_rte_images\main(), tx_lowlevel_lost_files\main(), tx_lowlevel_rte_images\main_autoFix(), tx_em_Install\makeDetailedExtensionAnalysis(), SC_show_item\makeRef(), fileList\makeRef(), tx_saltedpasswords_evalTest\md5HashIsUpdatedToTemporarySaltedString(), tslib_fe\pageErrorHandler(), tx_impexp\processSoftReferences_saveFile(), tx_impexp\processSoftReferences_saveFile_createRelFile(), t3lib_BEfunc\referenceCount(), t3lib_lock\release(), tx_rtehtmlarea_pi4\removeAccessibilityIcon(), tx_em_Install\removeExtDirectory(), tx_rtehtmlarea_pi3\render_clickenlarge(), SC_view_help\render_TOC(), SC_show_item\renderFileInfo(), t3lib_TCEforms\renderWizards(), t3lib_install\setArrayValueInLocalconfFile(), t3lib_cache_backend_FileBackend\setCacheDirectory(), t3lib_softrefproc\setTypoLinkPartsElement(), tslib_fe\statistics(), Tx_Extbase_Utility_Localization\translate(), t3lib_parsehtml_proc\TS_images_db(), tx_impexp\unlinkTempFiles(), and tx_impexp\verifyFolderAccess().

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$url,URL to compare with the TYPO3 request host
Returns
boolean Whether the URL matches the TYPO3 request host

Definition at line 789 of file class.t3lib_div.php.

Referenced by t3lib_Compressor\createMergedFile(), tx_felogin_pi1\isInCurrentDomain(), and t3lib_divTest\isOnCurrentHostReturnsTrueWithCurrentHost().

static isValidUrl (   $url)
static

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

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

Definition at line 1515 of file class.t3lib_div.php.

References PATH_typo3.

Referenced by t3lib_Compressor\createMergedFile(), tx_felogin_pi1\isInLocalDomain(), tx_em_Repository\setMirrorListUrl(), tx_em_Repository\setWsdlUrl(), t3lib_divTest\validURLReturnsFalseForInvalidRessoure(), and t3lib_divTest\validURLReturnsTrueForValidRessource().

static keepItemsInArray ( array  $array,
  $keepItems,
  $getValueFunc = NULL 
)
static

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

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

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

Parameters
array$array,The initial array to be filtered/reduced
mixed$keepItems,The items which are allowed/kept in the array - accepts array or csv string
string$getValueFunc,(optional) Unique function name set by create_function() used to get the value to keep
Returns
array The filtered/reduced array with the kept items

Definition at line 1676 of file class.t3lib_div.php.

References $value.

Referenced by t3lib_TCEforms_inline\getPossibleRecords(), t3lib_TCEforms\getSingleField_typeSelect(), t3lib_TCEforms\getSingleField_typeSelect_multiple(), and t3lib_TCEforms_Flexforms\modifySingleFlexFormSheet().

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

Definition at line 1505 of file class.t3lib_div.php.

Referenced by t3lib_divTest\lcFirst().

static linkThisScript ( array  $getParams = array())
static

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

Parameters
array$getParamsArray of GET parameters to include
Returns
string

Definition at line 3361 of file class.t3lib_div.php.

References $value.

Referenced by SC_mod_tools_em_index\alterSettings(), SC_mod_tools_em_index\browseLinks(), SC_wizard_tsconfig\browseTSprop(), tx_em_Install\checkDependencies(), SC_mod_tools_em_index\checkForUpdates(), SC_mod_tools_be_user_index\compareUsers(), tx_em_Database\dumpDataTablesLine(), t3lib_tsStyleConfig\ext_getForm(), SC_mod_tools_em_index\extBackup(), tx_em_Install\extDelete(), SC_mod_tools_em_index\extDumpTables(), SC_mod_tools_em_index\extensionList_import(), tx_em_Extensions_List\extensionList_installed(), tx_em_Extensions_List\extensionList_loaded(), tx_em_Extensions_List\extensionListRow(), SC_mod_tools_em_index\extUpdateEMCONF(), SC_db_new\getButtons(), SC_mod_tools_em_index\getButtons(), SC_mod_tools_em_index\getFileListOfExtension(), tx_version_gui\getVersionSelector(), SC_wizard_rte\init(), SC_wizard_tsconfig\init(), tx_em_Install\installExtension(), tx_cms_layout\linkRTEbutton(), SC_db_layout\local_linkThisScript(), SC_alt_db_navframe\main(), t3lib_clipboard\printClipboard(), tx_dbal_module1\printLogMgm(), template\redirectUrls(), SC_mod_web_ts_index\renderList(), and tx_em_Extensions_List\showExtensionsToUpdate().

static linkThisUrl (   $url,
array  $getParams = array() 
)
static

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

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

Definition at line 3386 of file class.t3lib_div.php.

Referenced by tx_em_Install\checkDependencies().

static llXmlAutoFileName (   $fileRef,
  $language,
  $sameLocation = FALSE 
)
static

Returns auto-filename for locallang-XML localizations.

Parameters
string$fileRefAbsolute file reference to locallang-XML file. Must be inside system/global/local extension
string$languageLanguage key
boolean$sameLocationif TRUE, then locallang-XML localization file name will be returned with same directory as $fileRef
Returns
string Returns the filename reference for the language unless error occurred (or local mode is used) in which case it will be NULL

Definition at line 4441 of file class.t3lib_div.php.

References PATH_site, PATH_typo3, and PATH_typo3conf.

Referenced by t3lib_l10n_parser_Llxml\getParsedData(), and t3lib_l10n_parser_AbstractXml\getParsedData().

static loadTCA (   $table)
static

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

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

Note: For the frontend this loads only 'ctrl' and 'feInterface' parts. For complete TCA use $GLOBALS['TSFE']->includeTCA() instead.

Parameters
string$tableTable name for which to load the full TCA array part into $GLOBALS['TCA']
Returns
void

Definition at line 4503 of file class.t3lib_div.php.

References $TCA, PATH_t3lib, and PATH_typo3conf.

Referenced by t3lib_extMgm\addFieldsToAllPalettesOfField(), t3lib_extMgm\addFieldsToPalette(), t3lib_extMgm\addPiFlexFormValue(), t3lib_extMgm\addPlugin(), t3lib_extMgm\addStaticFile(), t3lib_extMgm\addTCAcolumns(), t3lib_extMgm\addTcaSelectItem(), t3lib_extMgm\addToAllTCAtypes(), t3lib_extMgm\addToInsertRecords(), t3lib_userAuthGroup\checkAuthMode(), t3lib_TCEmain\checkValue(), t3lib_TCEmain\copyRecord_raw(), t3lib_admin\countRecords(), tx_cms_layout\dataFields(), user_feAdmin\deleteFilesFromRecord(), t3lib_TCEmain\deleteRecord(), t3lib_TCEmain\deleteRecord_procFields(), t3lib_BEfunc\exec_foreign_table_where_query(), local_beUserAuth\ext_printOverview(), t3lib_TCEmain\extFileFields(), t3lib_TCEmain\extFileFunctions(), t3lib_userAuthGroup\fetchGroupData(), t3lib_transferData\fetchRecord(), t3lib_TCEmain\fillInFieldArray(), t3lib_TCEmain\fixCopyAfterDuplFields(), t3lib_TCEmain\fixUniqueInPid(), recordList\generateList(), t3lib_befuncTest\getCommonSelectFieldsReturnsCorrectFields(), tslib_fe\getCompressedTCarray(), t3lib_admin\getDBFields(), t3lib_TCEforms\getDefaultRecord(), t3lib_BEfunc\getExcludeFields(), t3lib_TCEmain\getExcludeListArray(), t3lib_BEfunc\getExplicitAuthFieldValues(), SC_show_item\getFieldName(), t3lib_admin\getFileFields(), t3lib_admin\getGroupFields(), t3lib_BEfunc\getItemLabel(), t3lib_BEfunc\getLabelFromItemlist(), t3lib_BEfunc\getLabelsFromItemsList(), t3lib_TCEforms\getListedFields(), t3lib_TCEforms\getMainFields(), tx_version_tcemain\getPossibleInlineChildTablesOfParentTable(), t3lib_TCEforms\getRTypeNum(), t3lib_TCEforms\getSingleField(), t3lib_TCEforms_inline\getSingleField_typeInline(), t3lib_TCEforms\getSoloField(), tx_cms_layout\getTable(), t3lib_BEfunc\getTcaFieldConfiguration(), t3lib_BEfunc\getTCAtypes(), t3lib_BEfunc\getTCAtypeValue(), t3lib_TCEmain\getUnique(), t3lib_TCEmain\getUniqueFields(), tx_cms_layout\headerFields(), Tx_Extbase_Persistence_Mapper_DataMapFactory\includeTca(), tx_install\includeTCA(), SC_view_help\init(), tx_linkvalidator_Processor\init(), SC_show_item\init(), t3lib_treeView\init(), t3lib_queryGenerator\init(), t3lib_collection_AbstractRecordCollection\load(), t3lib_TCEforms\loadPaletteElements(), t3lib_TCEmain\localize(), t3lib_admin\lostRecords(), SC_wizard_edit\main(), SC_mod_tools_config_index\main(), tx_lowlevel_cleanflexform\main_parseTreeCallBack(), SC_view_help\make_seeAlso(), localRecordList\makeControl(), t3lib_queryGenerator\makeFieldList(), t3lib_queryGenerator\makeOptionList(), t3lib_search_livesearch\makeQuerySearchByTable(), ux_localRecordList\makeSearchString(), recordList\makeSearchString(), t3lib_TCEmain\moveRecord_procFields(), t3lib_TCEmain\newFieldArray(), t3lib_TCEforms_inline\parseStructureString(), t3lib_TCEmain\placeholderShadowing(), SC_view_help\printItem(), t3lib_TCEforms_Suggest\processAjaxRequest(), user_feAdmin\processFiles(), t3lib_userAuthGroup\recordEditAccessInternals(), transferData\regItem(), t3lib_TCEmain\remapListedDBRecords(), recordHistory\removeFilefields(), SC_db_new_content_el\removeInvalidElements(), SC_view_help\render_Table(), recordHistory\renderDiff(), t3lib_transferData\renderRecord(), t3lib_transferData\renderRecordRaw(), tx_impexp\setFlexFormRelations(), recordList\showSysNotesForPage(), tslib_feTCE\start(), t3lib_loadDBGroup\start(), tslib_cObj\TCAlookup(), t3lib_BEfunc\thumbCode(), t3lib_transl8tools\translationInfo(), tx_cms_layout\tt_content_drawHeader(), and tx_version_cm1\versioningMgm().

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 3203 of file class.t3lib_div.php.

Referenced by Tx_Extbase_MVC_Controller_AbstractController\addBaseUriIfNecessary(), tslib_AdminPanel\display(), tx_felogin_pi1\generateAndSendHash(), tslib_AdminPanel\getAdminPanelHeaderData(), t3lib_extjs_ExtDirectApi\getRoutingUrl(), t3lib_utility_Http\redirect(), and t3lib_PageRenderer\renderJsLibraries().

static logDeprecatedFunction ( )
static

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

Returns
void

Definition at line 5609 of file class.t3lib_div.php.

References $GLOBALS, t3lib_utility_Debug\debugTrail(), and PATH_site.

Referenced by tslib_feTCE\__construct(), tslib_fe\ADMCMD_preview(), t3lib_install\assembleFieldDefinition(), calculateCHash(), tslib_fe\cHashParams(), cHashParams(), template\clearCacheMenu(), Tx_Extbase_Utility_Cache\clearPageCache(), t3lib_BEfunc\compilePreviewKeyword(), Tx_Extbase_Utility_Extension\convertCamelCaseToLowerCaseUnderscored(), Tx_Extbase_Configuration_FrontendConfigurationManager\convertFlexformContentToArray(), Tx_Extbase_Utility_Extension\convertLowerUnderscoreToUpperCamelCase(), Tx_Extbase_Utility_TypoScript\convertPlainArrayToTypoScriptArray(), Tx_Extbase_Utility_TypoScript\convertTypoScriptArrayToPlainArray(), Tx_Extbase_Utility_Extension\convertUnderscoredToLowerCamelCase(), Tx_Extbase_Persistence_Query\count(), Tx_Extbase_Utility_Extension\createAutoloadRegistryForExtension(), t3lib_cache\enableCachingFramework(), filelistFolderTree\filelistFolderTree(), generateCHash(), Tx_Extbase_Reflection_ObjectAccess\getAccessibleProperties(), Tx_Extbase_Reflection_ObjectAccess\getAccessiblePropertyNames(), Tx_Extbase_MVC_Controller_FlashMessages\getAll(), Tx_Extbase_MVC_Controller_FlashMessages\getAllAndFlush(), t3lib_install\getCollationForCharset(), Tx_Extbase_Dispatcher\getConfigurationManager(), Tx_Extbase_MVC_Web_Request\getContentObjectData(), t3lib_install\getCreateTables(), t3lib_install\getDatabaseExtra(), Tx_Extbase_Dispatcher\getExtbaseFrameworkConfiguration(), tslib_AdminPanel\getExtPublishList(), t3lib_install\getFieldDefinitions_database(), t3lib_install\getFieldDefinitions_fileContent(), t3lib_install\getFieldDefinitions_sqlContent_parseTypes(), Tx_Extbase_MVC_Controller_ControllerContext\getFlashMessages(), SC_mod_user_setup_index\getInstallToolFileExists(), SC_mod_user_setup_index\getInstallToolFileKeep(), t3lib_install\getListOfTables(), Tx_Extbase_Object_Manager\getObject(), Tx_Extbase_Dispatcher\getPersistenceManager(), Tx_Extbase_Utility_Extension\getPluginNameByAction(), Tx_Extbase_Utility_Extension\getPluginNamespace(), t3lib_install\getStatementArray(), tx_cms_layout\getTable_fe_users(), tx_cms_layout\getTable_sys_note(), tx_cms_layout\getTable_tt_address(), tx_cms_layout\getTable_tt_board(), tx_cms_layout\getTable_tt_calender(), tx_cms_layout\getTable_tt_guest(), tx_cms_layout\getTable_tt_links(), tx_cms_layout\getTable_tt_news(), tx_cms_layout\getTable_tt_products(), t3lib_install\getTableInsertStatements(), Tx_Extbase_Utility_Extension\getTargetPidByPlugin(), t3lib_install\getUpdateSuggestions(), Tx_Extbase_Domain_Model_FrontendUser\getUsergroups(), language\hscAndCharConv(), t3lib_cache\initContentHashCache(), Tx_Fluid_ViewHelpers_RenderFlashMessagesViewHelper\initialize(), t3lib_cache\initPageCache(), t3lib_cache\initPageSectionCache(), t3lib_userAuthGroup\inList(), Tx_Extbase_Utility_Extension\isActionCacheable(), Tx_Extbase_Utility_ClassLoader\loadClass(), localFolderTree\localFolderTree(), localPageTree\localPageTree(), tx_indexedsearch\md5inthash(), Tx_Extbase_Utility_TypeHandling\normalizeType(), tslib_fe\pageCachePostProcess(), Tx_Extbase_Utility_TypeHandling\parseType(), t3lib_install\performUpdateQueries(), tslib_search\quotemeta(), readLLPHPfile(), readLLXMLfile(), recordHistory\recordHistory(), Tx_Fluid_ViewHelpers_Form_TextboxViewHelper\render(), tslib_content_Html\render(), Tx_Fluid_ViewHelpers_EscapeViewHelper\render(), SC_mod_user_setup_index\renderInstallToolEnableFileButton(), t3lib_cache_backend_DbBackend\setCacheTable(), SC_mod_user_setup_index\setInstallToolFileExists(), SC_mod_user_setup_index\setInstallToolFileKeep(), t3lib_cache_backend_DbBackend\setTagsTable(), t3lib_cli\t3lib_cli(), t3lib_folderTree\t3lib_folderTree(), t3lib_install\t3lib_install(), t3lib_TCEforms\t3lib_TCEforms(), t3lib_xml\t3lib_xml(), TBE_browser_recordList\TBE_browser_recordList(), template\template(), tx_em_Connection_ExtDirectSoap\testUserLogin(), tslib_fe\tslib_fe(), tslib_pibase\tslib_pibase(), tx_cms_layout\tt_board_drawItem(), tx_cms_layout\tt_board_getTree(), tx_indexedsearch_lexer\tx_indexedsearch_lexer(), tx_install\tx_install(), tx_lowlevel_admin_core\tx_lowlevel_admin_core(), tx_lowlevel_cleaner_core\tx_lowlevel_cleaner_core(), tx_lowlevel_cleanflexform\tx_lowlevel_cleanflexform(), tx_lowlevel_deleted\tx_lowlevel_deleted(), tx_lowlevel_double_files\tx_lowlevel_double_files(), tx_lowlevel_lost_files\tx_lowlevel_lost_files(), tx_lowlevel_missing_files\tx_lowlevel_missing_files(), tx_lowlevel_missing_relations\tx_lowlevel_missing_relations(), tx_lowlevel_orphan_records\tx_lowlevel_orphan_records(), tx_lowlevel_rte_images\tx_lowlevel_rte_images(), tx_lowlevel_syslog\tx_lowlevel_syslog(), tx_lowlevel_versions\tx_lowlevel_versions(), Tx_Extbase_Configuration_FrontendConfigurationManager\walkFlexformNode(), webPageTree\webPageTree(), tslib_fe\workspacePreviewInit(), t3lib_userAuthGroup\workspaceVersioningTypeAccess(), and t3lib_userAuthGroup\workspaceVersioningTypeGetClosest().

static makeInstance (   $className)
static

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

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

Exceptions
InvalidArgumentExceptionif classname is an empty string
Parameters
string$classNamename of the class to instantiate, must not be empty
Returns
object the created instance

Definition at line 4824 of file class.t3lib_div.php.

Referenced by extDirect_DataProvider_State\__construct(), Tx_Workspaces_ExtDirect_ActionHandler\__construct(), Tx_Extbase_Object_ObjectManager\__construct(), tx_em_Translations\__construct(), tx_reports_Module\__construct(), tx_feedit_editpanel\__construct(), tx_em_Extensions_List\__construct(), Tx_Fluid_Core_Parser_SyntaxTree_ViewHelperNode\__construct(), t3lib_mail_SwiftMailerAdapter\__construct(), SC_mod_user_task_index\__construct(), tx_form_View_Wizard_Wizard\__construct(), Tx_Workspaces_ExtDirect_WorkspaceSelectorToolbarItem\__construct(), ModuleMenu\__construct(), extDirect_dataProvider_BackendLiveSearch\__construct(), Tx_Extbase_Scheduler_FieldProvider\__construct(), tx_form_Domain_Model_Attributes_Attributes\__construct(), tx_form_Domain_Model_Attributes_Abstract\__construct(), tx_em_Extensions_Details\__construct(), Tx_Fluid_View_StandaloneView\__construct(), tx_form_System_Postprocessor_Mail\__construct(), t3lib_install\__construct(), tx_form_View_Mail\__construct(), tx_form_Domain_Model_Additional_Abstract\__construct(), t3lib_SpriteManager\__construct(), tx_form_View_Confirmation\__construct(), t3lib_codec_JavaScriptEncoder\__construct(), tx_em_Install\__construct(), tx_scheduler_Task\__construct(), tx_em_Connection_ExtDirectServer\__construct(), tx_form_View_Mail_Html\__construct(), Tx_Fluid_View_TemplateView\__construct(), t3lib_search_livesearch\__construct(), TYPO3backend\__construct(), tx_indexedsearch_lexer\__construct(), Tx_Extbase_Persistence_Repository\__construct(), Tx_Extbase_Persistence_Backend\__construct(), tx_form_System_Validate_Abstract\__construct(), ux_t3lib_DB\__construct(), tx_form_Domain_Model_Element_Abstract\__construct(), t3lib_PageRenderer\__construct(), tx_install\__construct(), t3lib_TCEforms\__construct(), tslib_fe\__construct(), t3lib_cs\__construct(), Tx_Extbase_Persistence_QueryResult\__wakeup(), Tx_Extbase_Persistence_Query\__wakeup(), tslib_fe\acquirePageGenerationLock(), Tx_Extbase_MVC_Controller_FlashMessages\add(), tx_form_Domain_Model_Additional_Additional\addAdditional(), tx_form_Domain_Model_Attributes_Attributes\addAttribute(), t3lib_divTest\addInstanceCalledTwoTimesMakesMakeInstanceReturnBothInstancesInAddingOrder(), t3lib_divTest\addInstanceMakesMakeInstanceReturnThatInstance(), Tx_Fluid_Core_Parser_Configuration\addInterceptor(), Tx_Workspaces_Service_AutoPublish\autoPublishWorkspaces(), wslib\autoPublishWorkspaces(), SC_wizard_tsconfig\browseTSprop(), Tx_Fluid_Compatibility_TemplateParserBuilder\build(), tx_rtehtmlarea_acronym\buildJSAcronymArray(), t3lib_tree_Tca_DatabaseTreeDataProvider\buildRepresentationForNode(), ux_t3lib_DB\cacheFieldInfo(), calculateCHash(), tslib_cObj\callUserFunction(), cHashParams(), LiveSearch\checkAccess(), t3lib_extobjbase\checkExtObj(), t3lib_SCbase\checkExtObj(), Tx_Version_Preview\checkForPreview(), Tx_Extbase_Utility_ExtbaseRequirementsCheck\checkIfDbalExtensionIsInstalled(), Tx_Extbase_Utility_ExtbaseRequirementsCheck\checkIfDocCommentsArePreserved(), tx_rtehtmlarea_statusReport_conflictsCheck\checkIfNoConflictingExtensionIsInstalled(), tx_em_reports_ExtensionStatus\checkMainRepositoryCheck(), tslib_gifBuilder\checkTextObj(), tx_install\checkTheImageProcessing(), t3lib_TCEmain\checkValue_flexArray2Xml(), t3lib_TCEmain\checkValue_group_select_file(), t3lib_TCEmain\checkValue_group_select_processDBdata(), t3lib_TCEmain\checkValue_inline_processDBdata(), t3lib_basicFileFunctions\cleanFileName(), t3lib_flexformtools\cleanFlexFormXML(), tx_em_Install\clearAndMakeExtensionDir(), SC_mod_web_ts_index\clearCache(), SC_db_list\clearCache(), SC_db_layout\clearCache(), ux_t3lib_DB\clearCachedFieldInfo(), Tx_Extbase_Tests_Unit_Utility_LocalizationTest\clearLabelWithTypoScript(), Tx_Extbase_Utility_Cache\clearPageCache(), tx_lowlevel_cleaner_core\cli_referenceIndexCheck(), tslib_cObj\cObjGetSingle(), tx_impexp\compareRecords(), SC_mod_tools_be_user_index\compareUsers(), Tx_Fluid_Core_Widget_Bootstrap\configureObjectManager(), Tx_Extbase_Core_Bootstrap\configureObjectManager(), FakeDbConnection\connect(), t3lib_cache_backend_PdoBackend\connect(), t3lib_TCEmain\copyRecord_fixRTEmagicImages(), t3lib_TCEmain\copyRecord_procFilesRefs(), tx_indexedsearch_files\crawler_execute(), tx_indexedsearch_crawler\crawler_execute_type2(), t3lib_cache_Factory\create(), tx_form_View_Mail_Html_Element_Abstract\createAdditional(), tx_form_View_Confirmation_Element_Abstract\createAdditional(), tx_form_View_Form_Element_Abstract\createAdditional(), tx_form_Domain_Model_Element_Abstract\createAdditional(), t3lib_formprotection_Factory\createAndStoreInstance(), tx_form_Domain_Model_Element_Abstract\createAttributes(), tx_form_View_Form_Element_Container\createChildElementFromModel(), tx_form_View_Confirmation_Element_Container\createChildElementFromModel(), tx_form_View_Mail_Html_Element_Container\createChildElementFromModel(), tx_recycler_controller_ajax\createContent(), t3lib_l10n_parser_Llphp\createCsConvObject(), user_feAdmin\createFileFuncObj(), tx_form_System_Filter\createFilter(), tx_form_Domain_Model_Element_Abstract\createFilter(), tx_rsaauth_php_backend\createNewKeyPair(), tx_rsaauth_cmdline_backend\createNewKeyPair(), tx_form_System_Validate\createRule(), SC_mod_web_ts_index\createTemplate(), t3lib_formprotection_BackendFormProtection\createValidationErrorMessage(), t3lib_tree_NodeCollection\dataFromArray(), t3lib_tree_Node\dataFromArray(), tx_recycler_model_deletedRecords\deleteData(), t3lib_TCEmain\deleteRecord(), t3lib_TCEmain\deleteRecord_flexFormCallBack(), t3lib_TCEmain\deleteRecord_procBasedOnFieldType(), tx_em_Connection_ExtDirectServer\deleteRepository(), t3lib_tree_NodeTest\determineFixturesPath(), t3lib_extmgmTest\determineFixturesPath(), tslib_fe\determineId(), tslib_fe\determineIdIsHiddenPage(), recordHistory\displayHistory(), t3lib_BEfunc\displayWarningMessages(), tx_reports_reports_status_WarningMessagePostProcessor\displayWarningMessages_postProcess(), SC_mod_user_ws_index\displayWorkspaceOverview(), SC_mod_web_perm_index\doEdit(), Tx_Extbase_Persistence_Storage_Typo3DbBackend\doLanguageAndWorkspaceOverlay(), tx_rtehtmlarea_base\drawRTE(), tx_indexedsearch_modfunc1\drawTableOfIndexedPages(), t3lib_error_ProductionExceptionHandler\echoExceptionWeb(), tx_feedit_editpanel\editContent(), tx_em_Connection_ExtDirectServer\enableExtension(), Tx_Extbase_Persistence_Query\equals(), Tx_Workspaces_Service_AutoPublishTask\execute(), tx_version_tasks_AutoPublish\execute(), tx_reports_tasks_SystemStatusUpdateTask\execute(), Tx_Extbase_Scheduler_Task\execute(), tx_impexp\export_addFile(), tx_impexp\export_addRecord(), SC_mod_tools_log_index\exportData(), local_beUserAuth\ext_compileUserInfoForHash(), local_beUserAuth\ext_getReadableButNonmounted(), t3lib_tsStyleConfig\ext_mergeIncomingWithExisting(), t3lib_tsparser_ext\ext_outputTS(), local_beUserAuth\ext_printOverview(), tx_em_Install\extDelete(), tx_indexedsearch_indexer\extractBaseHref(), tx_indexedsearch_indexer\extractHyperLinks(), tx_indexedsearch_indexer\extractLinks(), tslib_fe\fe_tce(), tslib_fe\fetch_the_id(), t3lib_userAuthGroup\fetchGroupData(), t3lib_TCEmain\fillInFieldArray(), t3lib_cache_backend_FileBackend\findIdentifiersByTag(), tslib_gmenu\findLargestDims(), t3lib_softrefproc\findRef_images(), t3lib_softrefproc\findRef_TStemplate(), t3lib_softrefproc\findRef_typolink_tag(), Tx_Workspaces_Controller_ReviewController\fullIndexAction(), SC_mod_tools_dbint_index\func_refindex(), SC_mod_tools_dbint_index\func_relations(), SC_mod_tools_dbint_index\func_search(), t3lib_spritemanager_SpriteBuildingHandler\generate(), generateCHash(), t3lib_TStemplate\generateConfig(), t3lib_tsparser_ext\generateConfig_constants(), tslib_fe\generatePage_postProcessing(), Tx_Workspaces_Service_Workspaces\generateWorkspacePreviewLink(), t3lib_search_livesearch\getAvailablePageIds(), SC_show_rechis\getButtons(), t3lib_tree_Tca_DatabaseTreeDataProvider\getChildrenOf(), t3lib_tree_Tca_DatabaseTreeDataProvider\getChildrenUidsFromChildrenRelation(), t3lib_tree_Tca_DatabaseTreeDataProvider\getChildrenUidsFromParentRelation(), Tx_Extbase_Object_Container_Container\getClassInfoCache(), Tx_Extbase_Object_Container_Container\getClassInfoFactory(), tx_version_tcemain\getCommandMap(), Tx_Workspaces_ExtDirect_Server\getCommentsForRecord(), t3lib_PageRenderer\getCompressor(), tx_form_View_Confirmation\getConfirmationButtons(), tslib_cObj\getContentObject(), t3lib_transferData\getDataIdList(), tx_version_tcemain_CommandMap\getDependencyCallback(), tx_reports_reports_status_ConfigurationStatus\getDeprecationLogStatus(), Tx_Fluid_ViewHelpers_Be_AbstractBackendViewHelper\getDocInstance(), t3lib_utility_Dependency_Factory\getElement(), tx_reports_reports_status_SecurityStatus\getEncryptionKeyStatus(), t3lib_extFileFunctions\getErrorMessages(), Tx_Install_Updates_Base\getExtensionManagerConnection(), Tx_Extbase_Utility_Extension\getExtensionService(), t3lib_utility_Dependency\getFactory(), tx_reports_reports_status_SecurityStatus\getFileDenyPatternStatus(), tx_lowlevel_rte_images\getFileProcObj(), tx_impexp\getFileProcObj(), tx_install_report_InstallStatus\getFileSystemStatus(), t3lib_TCEforms_inline\getHeadTags(), tx_reports_reports_status_SecurityStatus\getHtaccessUploadStatus(), Tx_Extbase_Object_Container_ClassInfoFactory\getInjectProperties(), tx_reports_reports_status_SecurityStatus\getInstallToolPasswordStatus(), tx_reports_reports_status_SecurityStatus\getInstallToolProtectionStatus(), tx_form_Common\getInstance(), Tx_Fluid_Core_Parser_Configuration\getInterceptors(), tx_form_Domain_Factory_Typoscript\getLocalConentObject(), tx_reports_reports_status_ConfigurationStatus\getMemcachedConnectionStatus(), tx_impexp\getNewTCE(), Tx_Workspaces_Service_GridData\getObjectManager(), template\getPageRenderer(), tx_rtehtmlarea_pi2\getPageRenderer(), tslib_fe\getPageRenderer(), t3lib_BEfunc\getPagesTSconfig(), tslib_fe\getPagesTSconfig(), tx_em_Parser_XmlParserFactory\getParserInstance(), t3lib_l10n_Store\getParserInstance(), tx_reports_reports_status_ConfigurationStatus\getPhpMagicQuotesGpcStatus(), tx_reports_reports_status_SystemStatus\getPhpMemoryLimitStatus(), tx_reports_reports_status_ConfigurationStatus\getPhpSafeModeStatus(), tx_reports_reports_status_SystemStatus\getPhpStatus(), tx_form_System_Validate\getPrefix(), t3lib_TCEforms_inline\getRecord(), SC_mod_web_perm_index\getRecursiveSelect(), t3lib_utility_Dependency_Factory\getReference(), tx_reports_reports_status_ConfigurationStatus\getReferenceIndexStatus(), t3lib_formprotection_BackendFormProtection\getRegistry(), tx_install_report_InstallStatus\getRemainingUpdatesStatus(), tx_reports_reports_Status\getReport(), tx_form_Controller_Wizard\getRepository(), tslib_gifBuilder\getResource(), tx_indexedsearch\getSearchWords(), tx_em_Settings\getSelectedRepository(), tx_em_Connection_ExtDirectServer\getSettingsObject(), tx_em_Connection_ExtDirectSoap\getSettingsObject(), t3lib_TCEforms\getSingleField_typeSelect(), Tx_Workspaces_ExtDirect_Server\getStageActions(), Tx_Workspaces_ExtDirect_ActionHandler\getStageService(), tx_em_reports_ExtensionStatus\getStatus(), tx_reports_reports_Status\getStatusProviders(), t3lib_BEfunc\getSystemLanguages(), tx_t3editor_hooks_fileedit\getT3editor(), tx_t3editor_hooks_tstemplateinfo\getT3editor(), tx_cms_layout\getTable_tt_content(), tx_recycler_model_tables\getTables(), tx_sysaction_task\getTask(), Tx_Workspaces_Service_Tcemain\getTceMain(), t3lib_recordList\getTranslateTools(), Tx_Workspaces_Service_Workspaces\getTreeUids(), tslib_eidtools\getTSFE(), Tx_Extbase_Utility_TypeHandling\getTypeHandlingService(), tx_reports_reports_status_Typo3Status\getTypo3VersionStatus(), Tx_Extbase_Utility_TypoScript\getTypoScriptService(), Tx_Extbase_Configuration_BackendConfigurationManager\getTypoScriptSetup(), tx_indexedsearch_crawler\getUidRootLineForClosestTemplate(), tslib_feUserAuth\getUserTSconf(), tx_form_Domain_Model_Attributes_Name\getValue(), template\getVersionSelector(), Tx_Fluid_Core_Compiler_AbstractCompiledTemplate\getViewHelper(), Tx_Workspaces_ExtDirect_Server\getWorkspaceInfos(), Tx_Workspaces_ExtDirect_AbstractHandler\getWorkspaceService(), Tx_Workspaces_Service_Befunc\getWorkspaceService(), t3lib_divTest\gifCompressFixesPermissionOfConvertedFileIfUsingGd(), t3lib_divTest\gifCompressFixesPermissionOfConvertedFileIfUsingImagemagick(), t3lib_error_ErrorHandler\handleError(), ux_t3lib_DB\handler_init(), t3lib_syntaxhl\highLight_DS(), t3lib_syntaxhl\highLight_FF(), tslib_cObj\HTMLparser_TSbridge(), tslib_cObj\imageLinkWrap(), t3lib_iconWorksTest\imagemakeFixesPermissionsOnNewFiles(), Tx_Workspaces_Controller_ReviewController\indexAction(), SC_mod_user_task_index\indexAction(), tx_indexedsearch_crawler\indexExtUrl(), tx_indexedsearch_crawlerhook\indexOperation(), tx_indexedsearch_crawler\indexSingleRecord(), tx_rtehtmlarea_parse_html\init(), tx_rtehtmlarea_user\init(), SC_wizard_backend_layout\init(), SC_show_rechis\init(), SC_mod_tools_isearch_index\init(), SC_alt_doc_nodoc\init(), SC_alt_db_navframe\init(), SC_mod_tools_config_index\init(), SC_file_edit\init(), SC_mod_tools_dbint_index\init(), SC_file_rename\init(), SC_wizard_rte\init(), tx_scheduler_Module\init(), SC_wizard_colorpicker\init(), SC_file_upload\init(), SC_tce_db\init(), SC_file_list\init(), SC_wizard_table\init(), SC_browse_links\init(), SC_file_newfolder\init(), SC_wizard_tsconfig\init(), SC_db_new\init(), SC_show_item\init(), SC_mod_web_perm_index\init(), t3lib_stdGraphic\init(), SC_wizard_forms\init(), SC_alt_shortcut\init(), SC_mod_user_ws_index\init(), SC_mod_user_setup_index\init(), tx_indexedsearch_indexer\init(), SC_mod_tools_be_user_index\init(), TYPO3_tcefile\initClipboard(), SC_tce_db\initClipboard(), tslib_fe\initFEuser(), Tx_Workspaces_ExtDirect_MassActionHandler\initFlushData(), tx_recycler_module1\initialize(), t3lib_l10n_Factory\initialize(), tx_form_Controller_Form\initialize(), Tx_Extbase_Scheduler_TaskExecutor\initialize(), Tx_IndexedSearch_Domain_Repository_IndexSearchRepository\initialize(), Tx_IndexedSearch_Controller_SearchController\initialize(), tx_linkvalidator_ModFuncReport\initialize(), tx_tstemplateceditor\initialize_editor(), tx_tstemplateanalyzer\initialize_editor(), tx_tstemplateinfo\initialize_editor(), tx_tstemplateobjbrowser\initialize_editor(), Tx_Workspaces_Controller_PreviewController\initializeAction(), Tx_Workspaces_Controller_ReviewController\initializeAction(), t3lib_tsfeBeUserAuth\initializeAdminPanel(), Tx_Extbase_Core_Bootstrap\initializeBackwardsCompatibility(), t3lib_cache\initializeCachingFramework(), Tx_Fluid_Core_Widget_Bootstrap\initializeConfiguration(), Tx_Extbase_Core_Bootstrap\initializeConfiguration(), TYPO3backend\initializeCoreToolbarItems(), t3lib_mail_Message\initializeMailer(), Tx_Extbase_SignalSlot_Dispatcher\initializeObject(), Tx_Extbase_Core_Bootstrap\initializeObjectManager(), Tx_Version_Preview\initializePreviewUser(), t3lib_frontendedit\initializeTceMain(), t3lib_TCEforms_FE\initializeTemplateContainer(), t3lib_mail_Mailer\initializeTransport(), t3lib_tree_Tca_DatabaseTreeDataProvider\initializeTreeData(), tslib_eidtools\initLanguage(), SC_alt_file_navframe\initPage(), SC_alt_db_navframe\initPage(), Tx_Workspaces_ExtDirect_MassActionHandler\initPublishData(), tslib_fe\initTemplate(), Tx_Extbase_Object_Container_Container\injectDependencies(), tx_em_Install\installExtension(), Tx_Fluid_Compatibility_DocbookGeneratorService\instanciateViewHelper(), tx_form_System_Validate_Digit\isValid(), tx_form_System_Validate_Alphanumeric\isValid(), tx_form_System_Validate_Alphabetic\isValid(), tx_sysaction_task\JScode(), tx_linkvalidator_tasks_Validator\loadModTSconfig(), Tx_Extbase_Utility_Localization\loadTypoScriptLabels(), Tx_Extbase_Tests_Unit_Utility_LocalizationTest\loadTypoScriptLabels(), t3lib_TCEmain\localize(), t3lib_utility_Mail\mail(), tx_t3editor_tceforms_wizard\main(), tx_rtehtmlarea_SC_select_image\main(), tx_wizardsortpages_webfunc_2\main(), tx_rtehtmlarea_SC_browse_links\main(), tx_rtehtmlarea_pi1\main(), SC_alt_topmenu_dummy\main(), tx_dbal_module1\main(), SC_mod_web_info_index\main(), SC_wizard_edit\main(), tx_cms_webinfo_lang\main(), tx_impexp_task\main(), SC_mod_web_func_index\main(), tx_tstemplateceditor\main(), tx_cms_webinfo_page\main(), tx_tsconfighelp_module1\main(), SC_show_rechis\main(), tx_infopagetsconfig_webinfo\main(), tx_indexedsearch_modfunc1\main(), SC_mod_web_ts_index\main(), SC_wizard_rte\main(), SC_alt_doc_nodoc\main(), TYPO3_tcefile\main(), SC_browse_links\main(), tx_belog_webinfo\main(), SC_mod_tools_config_index\main(), SC_file_list\main(), SC_wizard_add\main(), tx_linkvalidator_ModFuncReport\main(), SC_alt_db_navframe\main(), tx_version_cm1\main(), tx_tstemplateobjbrowser\main(), SC_tslib_showpic\main(), SC_mod_tools_log_index\main(), SC_mod_user_setup_index\main(), SC_db_layout\main(), SC_alt_doc\main(), tx_lowlevel_deleted\main_autoFix(), tx_lowlevel_cleanflexform\main_autoFix(), tx_lowlevel_orphan_records\main_autoFix(), tx_lowlevel_missing_files\main_autoFix(), tx_lowlevel_missing_relations\main_autoFix(), tx_lowlevel_double_files\main_autoFix(), tx_lowlevel_rte_images\main_autoFix(), tx_lowlevel_versions\main_autoFix(), browse_links\main_db(), browse_links\main_file(), browse_links\main_folder(), tx_rtehtmlarea_parse_html\main_parse_html(), tx_lowlevel_cleanflexform\main_parseTreeCallBack(), user_wapversion\main_wapversion(), user_xmlversion\main_xmlversion(), tslib_frameset\make(), tx_em_Install\makeDetailedExtensionAnalysis(), SC_alt_doc\makeEditForm(), Tx_Workspaces_Service_Befunc\makeEditForm_accessCheck(), tslib_gmenu\makeGifs(), t3lib_divTest\makeInstanceCalledTwoTimesAfterAddInstanceReturnTwoDifferentInstances(), t3lib_divTest\makeInstanceCalledTwoTimesForNonSingletonClassReturnsDifferentInstances(), t3lib_divTest\makeInstanceCalledTwoTimesForSingletonClassReturnsSameInstance(), t3lib_divTest\makeInstanceCalledTwoTimesForSingletonClassWithPurgeInstancesInbetweenReturnsDifferentInstances(), t3lib_divTest\makeInstancePassesParametersToConstructor(), t3lib_divTest\makeInstanceReturnsClassInstance(), t3lib_divTest\makeInstanceWithEmptyArrayThrowsException(), t3lib_divTest\makeInstanceWithEmptyClassNameThrowsException(), t3lib_divTest\makeInstanceWithNonEmptyArrayThrowsException(), t3lib_divTest\makeInstanceWithNullClassNameThrowsException(), t3lib_divTest\makeInstanceWithZeroStringClassNameThrowsException(), SC_index\makeLoginNews(), tslib_menu\makeMenu(), t3lib_TSparser_TSconfig\matching(), t3lib_TStemplate\matching(), t3lib_TStemplate\mergeConstantsFromPageTSconfig(), tslib_cObj\mergeTSRef(), tx_lowlevel_cleaner\moduleContent(), t3lib_TCEmain\moveRecord_procBasedOnFieldType(), tslib_fe\newCObj(), Tx_Workspaces_Controller_PreviewController\newPageAction(), SC_mod_web_ts_index\noTemplate(), tslib_fe\pageErrorHandler(), tslib_cObj\parseFunc(), t3lib_TSparser_TSconfig\parseWithConditions(), recordHistory\performRollback(), t3lib_divTest\pngToGifByImagemagickFixesPermissionsOfConvertedFile(), SC_alt_shortcut\preinit(), t3lib_DB\prepare_SELECTquery(), ux_t3lib_DB\prepare_SELECTquery(), t3lib_TCEmain\printLogErrorMessages(), tx_form_System_Postprocessor\process(), t3lib_TCEmain\process_datamap(), t3lib_TCEforms_Suggest\processAjaxRequest(), Tx_Workspaces_ExtDirect_MassActionHandler\processData(), clickMenu\processingByExtClassArray(), tslib_fe\processOutput(), Tx_Workspaces_Controller_AbstractController\processRequest(), Tx_Workspaces_ExtDirect_ActionHandler\processTcaCmd(), t3lib_fullsearch\procesStoreControl(), t3lib_divTest\purgeInstancesDropsAddedInstance(), t3lib_fullsearch\queryMaker(), quoteJSvalue(), t3lib_divTest\readPngGifFixesPermissionsOfConvertedFile(), tx_em_Settings\registerDefaultRepository(), tslib_mediaWizardManager\registerMediaWizardProvider(), t3lib_TCEmain\remapListedDBRecords_procDBRefs(), tx_reports_reports_status_ConfigurationStatus\removeDeprecationLogFile(), tslib_content_HierarchicalMenu\render(), tslib_content_ImageText\render(), tslib_content_Records\render(), tslib_content_Content\render(), tslib_content_SearchResult\render(), tslib_content_ContentTable\render(), tslib_content_Template\render(), tslib_content_FluidTemplate\render(), Tx_Fluid_ViewHelpers_Be_TableListViewHelper\render(), Tx_Fluid_ViewHelpers_CObjectViewHelper\render(), TYPO3backend\render(), tx_cssstyledcontent_pi1\render_textpic(), SC_view_help\render_TOC(), tx_sysaction_task\renderActionList(), t3lib_TCEforms\renderDefaultLanguageDiff(), recordHistory\renderDiff(), SC_show_item\renderFileInfo(), tx_saltedpasswords_emconfhelper\renderFlashMessage(), SC_mod_user_task_index\renderModuleContent(), tx_reports_Module\renderModuleContent(), SC_db_layout\renderQuickEdit(), t3lib_transferData\renderRecord_flexProc(), t3lib_transferData\renderRecord_groupProc(), t3lib_transferData\renderRecord_typesProc(), t3lib_TCEforms\renderVDEFDiff(), t3lib_cache_frontend_PhpFrontendTest\requireOnceCallsTheBackendsRequireOnceMethod(), tx_tstemplateinfo\resourceListForCopy(), t3lib_extjs_ExtDirectRouter\route(), tslib_ExtDirectEid\routeAction(), Tx_Fluid_Core_Widget_Bootstrap\run(), Tx_Extbase_Tests_Unit_BaseTestCase\runBare(), tx_t3editor_hooks_tstemplateinfo\save(), tx_t3editor_hooks_fileedit\save(), tx_sysaction_task\saveNewBackendUser(), t3lib_fullsearch\saveQueryInAction(), t3lib_transferData\selectAddSpecial(), tslib_fe\sendFormmail(), user_feAdmin\sendHTMLMail(), tx_reports_tasks_SystemStatusUpdateTask\sendNotificationEmail(), Tx_Workspaces_ExtDirect_ActionHandler\sendPageToNextStage(), Tx_Workspaces_ExtDirect_ActionHandler\sendPageToPreviousStage(), user_feAdmin\setCObjects(), tx_impexp\setFlexFormRelations(), t3lib_cache_frontend_PhpFrontendTest\setPassesPhpSourceCodeTagsAndLifetimeToBackend(), tx_scheduler_Task\setScheduler(), t3lib_divTest\setSingletonInstanceCalledTwoTimesMakesMakeInstanceReturnLastSetInstance(), t3lib_divTest\setSingletonInstanceMakesMakeInstanceReturnThatInstance(), t3lib_matchCondition_frontendTest\setUp(), t3lib_matchCondition_backendTest\setUp(), tx_saltedpasswords_salts_blowfishTest\setUp(), tx_saltedpasswords_salts_phpassTest\setUp(), tx_saltedpasswords_salts_md5Test\setUp(), t3lib_l10n_parser_xliffTest\setUp(), t3lib_l10n_parser_llxmlTest\setUp(), tx_indexedsearch_indexerTest\setUp(), t3lib_cache_backend_DbBackendTest\setUpBackend(), t3lib_cache_backend_PdoBackendTest\setUpBackend(), tx_form_Domain_Model_Element_Reset\setValue(), tx_install_mod1\showInstallToolEnableRequest(), Tx_Extbase_Utility_FrontendSimulator\simulateFrontendEnvironment(), Tx_Fluid_ViewHelpers_Uri_ImageViewHelper\simulateFrontendEnvironment(), Tx_Fluid_ViewHelpers_Format_CropViewHelper\simulateFrontendEnvironment(), Tx_Fluid_ViewHelpers_ImageViewHelper\simulateFrontendEnvironment(), SC_mod_user_setup_index\simulateUser(), Tx_Workspaces_Controller_ReviewController\singleIndexAction(), t3lib_formmail\start(), tslib_gifBuilder\start(), tslib_cObj\stdWrap_offsetWrap(), tx_scheduler_Task\stop(), SC_mod_user_setup_index\storeIncomingData(), tx_version_cm1\subElements(), SC_view_help\substituteGlossaryWords(), t3lib_TCEforms_inline\synchronizeLocalizeRecords(), t3lib_l10n_parser_llxmlTest\tearDown(), t3lib_l10n_parser_xliffTest\tearDown(), SC_mod_web_ts_index\templateMenu(), t3lib_rteapi\transformContent(), t3lib_parsehtml_proc\TS_images_db(), tx_em_Install\tsStyleConfigForm(), tslib_cObj\typoLink(), tx_recycler_model_deletedRecords\undeleteData(), t3lib_autoloaderTest\UnregisterAndRegisterAgainDoesNotFatal(), tx_em_Tools\unzip(), tx_tsconfighelp_module1\unzip(), tx_em_Tasks_UpdateExtensionList\updateExtensionlist(), tx_saltedpasswords_autoloader\updateExtensionList(), tx_dbal_autoloader\updateExtensionList(), tx_em_Repository_Utility\updateExtList(), tx_lowlevel_cleaner\updateRefIndex(), t3lib_TCEmain\updateRefIndex(), Tx_Workspaces_ExtDirect_ActionHandler\updateStageChangeButtons(), tx_em_Connection_ExtDirectServer\uploadExtension(), tx_em_Install\uploadExtensionFile(), tx_em_Connection_Ter\uploadToTER(), t3lib_TCEmain\version_remapMMForVersionSwap(), t3lib_TCEmain\version_remapMMForVersionSwap_flexFormCallBack(), tx_version_cm1\versioningMgm(), tx_sysaction_task\viewEditRecord(), tx_sysaction_task\viewNewBackendUser(), t3lib_BEfunc\viewOnClick(), tx_sysaction_task\viewRecordList(), tx_sysaction_task\viewSqlQuery(), SC_db_new_content_el\wizard_appendWizards(), SC_index\wrapLoginForm(), tslib_tmenu\writeMenu(), tslib_gmenu\writeMenu(), tx_coreupdates_t3skin\writeNewExtensionList(), and tx_em_Install\writeTsStyleConfig().

static makeInstanceService (   $serviceType,
  $serviceSubType = '',
  $excludeServiceKeys = array() 
)
static

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

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

Definition at line 5024 of file class.t3lib_div.php.

References $GLOBALS, array_merge(), t3lib_extMgm\deactivateService(), t3lib_extMgm\findService(), and t3lib_utility_Debug\viewArray().

Referenced by t3lib_userAuth\checkAuthentication(), tslib_feUserAuth\fetchGroupData(), and t3lib_userAuth\processLoginData().

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

Sub-function for substUrlsInPlainText() above.

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

Definition at line 5336 of file class.t3lib_div.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
integer Returns 28bit integer-hash

Definition at line 917 of file class.t3lib_div.php.

Referenced by tx_indexedsearch_crawler\crawler_init(), t3lib_TStemplate\getCurrentPageData(), filelistFolderTree\getFolderTree(), t3lib_userAuth\hashLockClause_getHashInt(), and tx_aboutmodules_Functions\topMenu().

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

Minifies JavaScript

Parameters
string$scriptScript to minify
string$errorError message (if any)
Returns
string Minified script or source string if error happened

Definition at line 2555 of file class.t3lib_div.php.

References CR, and PATH_typo3.

Referenced by tslib_AdminPanel\display(), and t3lib_PageRenderer\doCompressJavaScript().

static mkdir (   $newFolder)
static

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

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

Definition at line 2913 of file class.t3lib_div.php.

References $GLOBALS.

Referenced by t3lib_Compressor\__construct(), t3lib_SpriteManager\__construct(), tx_install_session\__construct(), t3lib_lock\__construct(), tx_sysaction_task\action_createDir(), tx_install\checkDirs(), tx_impexp\checkOrCreateDir(), tx_em_Extensions_Details\checkUploadFolder(), tx_em_Install\clearAndMakeExtensionDir(), createDirectoryPath(), t3lib_autoloaderTest\createFakeExtension(), tx_em_Tools\createNewFile(), t3lib_stdGraphic\createTempSubDir(), t3lib_divTest\fixPermissionsCorrectlySetsPermissionsRecursive(), t3lib_divTest\fixPermissionsSetsPermissionsToDirectory(), t3lib_divTest\fixPermissionsSetsPermissionsToDirectoryWithTrailingSlash(), t3lib_divTest\fixPermissionsSetsPermissionsToHiddenDirectory(), t3lib_extFileFunctions\func_newfolder(), tx_install_report_InstallStatus\getFileSystemStatus(), tx_tsconfighelp_module1\getZIPFileContents(), t3lib_divTest\mkdirCreatesDirectory(), t3lib_divTest\mkdirCreatesDirectoryWithTrailingSlash(), t3lib_divTest\mkdirCreatesHiddenDirectory(), t3lib_divTest\mkdirSetsGroupOwnershipOfCreatedDirectory(), t3lib_divTest\mkdirSetsPermissionsOfCreatedDirectory(), tx_impexp\processSoftReferences_saveFile_createRelFile(), and tx_rtehtmlarea_pi1\setPersonalDictionaryPath().

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 if second parameter is given! Example: "/root/typo3site/typo3temp/foo/"
string$deepDirectoryDirectory to create. This second parameter is kept for backwards compatibility since 4.6 where this method was split into a base directory and a deep directory to be created. Example: "xx/yy/" which creates "/root/typo3site/xx/yy/" if $directory is "/root/typo3site/"
Returns
void
Exceptions
InvalidArgumentException If $directory or $deepDirectory are not strings
RuntimeException If directory could not be created

Definition at line 2936 of file class.t3lib_div.php.

Referenced by t3lib_autoloaderTest\autoloadDoesNotSetCacheEntryForClassThatRespectsExtbaseNamingSchemeOnConsecutiveCallsForSameClass(), t3lib_autoloaderTest\autoloadFindsClassFileThatRespectsExtbaseNamingSchemeWithoutExtAutoloadFile(), t3lib_autoloaderTest\autoloadReadsClassFileLocationFromCacheFileForClassThatRespectsExtbaseNamingScheme(), t3lib_autoloaderTest\autoloadWritesClassFileLocationOfClassRespectingExtbaseNamingSchemeToCacheFile(), t3lib_autoloaderTest\autoloadWritesClassFileThatRespectsExtbaseNamingSchemeToCacheFile(), t3lib_TCEmain\checkValue_group_select_file(), tx_em_Tools\createDirsInPath(), t3lib_cache_backend_FileBackend\createFinalCacheDirectory(), tx_em_Translations\installTranslationsForExtension(), t3lib_divTest\mkdirDeepCreatesDirectory(), t3lib_divTest\mkdirDeepCreatesDirectoryInVfsStream(), t3lib_divTest\mkdirDeepCreatesSubdirectoriesRecursive(), t3lib_divTest\mkdirDeepDoesNotChangePermissionsOfExistingSubDirectories(), t3lib_divTest\mkdirDeepFixesPermissionsOfCreatedDirectory(), t3lib_divTest\mkdirDeepFixesPermissionsOnNewParentDirectory(), t3lib_divTest\mkdirDeepSetsGroupOwnershipOfCreatedDirectory(), t3lib_divTest\mkdirDeepSetsGroupOwnershipOfCreatedParentDirectory(), t3lib_divTest\mkdirDeepSetsGroupOwnershipOnNewSubDirectory(), t3lib_divTest\mkdirDeepThrowsExceptionIfBaseDirectoryIsNotOfTypeString(), t3lib_divTest\mkdirDeepThrowsExceptionIfDeepDirectoryIsNotOfTypeString(), t3lib_divTest\mkdirDeepThrowsExceptionIfDirectoryCreationFails(), tx_em_Translations\updateTranslation(), and tx_em_Connection_Ter\updateTranslation().

static modifyHTMLColor (   $color,
  $R,
  $G,
  $B 
)
static

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

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

Definition at line 1047 of file class.t3lib_div.php.

References t3lib_utility_Math\forceIntegerInRange().

Referenced by t3lib_queryGenerator\printCodeArray().

static modifyHTMLColorAll (   $color,
  $all 
)
static

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

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

Definition at line 1066 of file class.t3lib_div.php.

Referenced by t3lib_TCEforms\__construct(), and t3lib_TSparser\syntaxHighlight_print().

static naturalKeySortRecursive ( $array)
static

Sorts an array by key recursive - uses natural sort order (aAbB-zZ)

Parameters
array$arrayarray to be sorted recursively, passed by reference
Returns
boolean TRUE if param is an array

Definition at line 1967 of file class.t3lib_div.php.

References $value.

Referenced by SC_mod_tools_config_index\main(), t3lib_divTest\naturalKeySortRecursiveReturnsFalseIfInputIsNotAnArray(), t3lib_divTest\naturalKeySortRecursiveSortsMultiDimensionalArrayByNaturalOrder(), and t3lib_divTest\naturalKeySortRecursiveSortsOneDimensionalArrayByNaturalOrder().

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 571 of file class.t3lib_div.php.

References strtolower().

Referenced by t3lib_divTest\normalizeIPv6CorrectlyNormalizesAddresses().

static normalizeMailAddress (   $address)
static

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

Parameters
string$addressAddress to adjust
Returns
string Adjusted address
See also
t3lib_::isBrokenEmailEnvironment()

Definition at line 1292 of file class.t3lib_div.php.

static plainMailEncoded (   $email,
  $subject,
  $message,
  $headers = '',
  $encoding = 'quoted-printable',
  $charset = '',
  $dontEncodeHeader = FALSE 
)
static

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

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

Definition at line 5127 of file class.t3lib_div.php.

References $message, LF, and t3lib_utility_Mail\mail().

Referenced by tslib_fe\plainMailEncoded().

static png_to_gif_by_imagemagick (   $theFile)
static

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

Parameters
string$theFilethe filename with path
Returns
string new filename

Definition at line 307 of file class.t3lib_div.php.

References $GLOBALS, t3lib_utility_Command\exec(), and strtolower().

Referenced by tslib_cObj\cImage(), tslib_tmenu\getBeforeAfter(), tslib_gmenu\makeGifs(), t3lib_divTest\pngToGifByImagemagickFixesPermissionsOfConvertedFile(), Tx_Fluid_ViewHelpers_Uri_ImageViewHelper\render(), and Tx_Fluid_ViewHelpers_ImageViewHelper\render().

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 5010 of file class.t3lib_div.php.

Referenced by t3lib_divTest\makeInstanceCalledTwoTimesForSingletonClassWithPurgeInstancesInbetweenReturnsDifferentInstances(), t3lib_divTest\purgeInstancesDropsAddedInstance(), t3lib_divTest\tearDown(), t3lib_utility_MailTest\tearDown(), t3lib_tcemainTest\tearDown(), and Tx_Fluid_Tests_Unit_View_StandaloneViewTest\tearDown().

static quoted_printable (   $string,
  $maxlen = 76 
)
static

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

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

Definition at line 5197 of file class.t3lib_div.php.

References CR, CRLF, LF, TAB, and TYPO3_OS.

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), will not be empty

Definition at line 5729 of file class.t3lib_div.php.

References $value, and makeInstance().

Referenced by tx_em_Install\checkDependencies(), tx_feedit_editpanel\editPanelLinkWrap(), tslib_jsmenu\generate_level(), t3lib_BEfunc\getFuncCheck(), tslib_cObj\getUpdateJS(), tx_rtehtmlarea_select_image\imageInsertJS(), SC_wizard_backend_layout\init(), TBE_browser_recordList\linkWrapItems(), SC_wizard_colorpicker\main(), t3lib_divTest\quoteJsValueTest(), tslib_content_Form\render(), and tslib_cObj\typoLink().

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

Definition at line 1247 of file class.t3lib_div.php.

Referenced by tslib_cObj\cImage(), Tx_Fluid_ViewHelpers_Uri_ImageViewHelper\render(), and Tx_Fluid_ViewHelpers_ImageViewHelper\render().

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.

Definition at line 1236 of file class.t3lib_div.php.

static read_png_gif (   $theFile,
  $output_png = FALSE 
)
static

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

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

Definition at line 334 of file class.t3lib_div.php.

References $GLOBALS, t3lib_utility_Command\exec(), PATH_site, and strtolower().

Referenced by t3lib_iconWorks\imagecreatefrom(), and t3lib_divTest\readPngGifFixesPermissionsOfConvertedFile().

static readLLPHPfile (   $fileRef,
  $langKey,
  $charset = '' 
)
static

Includes a locallang-php file and returns the $LOCAL_LANG array Works only when the frontend or backend has been initialized with a charset conversion object. See first code lines.

Parameters
string$fileRefAbsolute reference to locallang-PHP file
string$langKeyTYPO3 language key, eg. "dk" or "de" or "default"
string$charsetCharacter set (optional)
Returns
array LOCAL_LANG array in return.
Deprecated:
since TYPO3 4.6, will be removed in TYPO3 6.0 - use t3lib_l10n_parser_Llphp::getParsedData() from now on

Definition at line 4189 of file class.t3lib_div.php.

References $GLOBALS, $LOCAL_LANG, $res, logDeprecatedFunction(), and PATH_site.

static readLLXMLfile (   $fileRef,
  $langKey,
  $charset = '' 
)
static

Includes a locallang-xml file and returns the $LOCAL_LANG array Works only when the frontend or backend has been initialized with a charset conversion object. See first code lines.

Parameters
string$fileRefAbsolute reference to locallang-XML file
string$langKeyTYPO3 language key, eg. "dk" or "de" or "default"
string$charsetCharacter set (optional)
Returns
array LOCAL_LANG array in return.
Deprecated:
since TYPO3 4.6, will be removed in TYPO3 6.0 - use t3lib_l10n_parser_Llxml::getParsedData() from now on

Definition at line 4273 of file class.t3lib_div.php.

References $GLOBALS, $LOCAL_LANG, $res, logDeprecatedFunction(), and PATH_site.

static remapArrayKeys ( $array,
  $mappingTable 
)
static

Rename Array keys with a given mapping table

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

Definition at line 1837 of file class.t3lib_div.php.

Referenced by tslib_content_QuicktimeObject\render(), tslib_content_ShockwaveFlashObject\render(), and tslib_content_FlowPlayer\render().

static removeArrayEntryByValue ( array  $array,
  $cmpValue 
)
static

Removes the value $cmpValue from the $array if found there. Returns the modified array

Parameters
array$arrayArray containing the values
string$cmpValueValue to search for and if found remove array entry where found.
Returns
array Output array with entries removed if search string is found

Definition at line 1642 of file class.t3lib_div.php.

Referenced by t3lib_divTest\checkRemoveArrayEntryByValueRemovesEntriesFromMultiDimensionalArray(), t3lib_divTest\checkRemoveArrayEntryByValueRemovesEntriesFromOneDimensionalArray(), t3lib_divTest\checkRemoveArrayEntryByValueRemovesEntryWithEmptyString(), t3lib_TCEmain\checkValue_group_select_file(), tx_version_cm1\pageSubContent(), and extDirect_DataProvider_BackendUserSettings\removeFromList().

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$ts,TypoScript configuration array
Returns
array TypoScript configuration array without dots at the end of all keys

Definition at line 1948 of file class.t3lib_div.php.

References $value.

Referenced by t3lib_beUserAuth\backendSetUC(), tslib_fe\getConfigArray(), t3lib_TCEforms_Flexforms\modifyFlexFormDS(), t3lib_TCEforms\overrideFieldConf(), t3lib_divTest\removeDotsFromTypoScriptOverridesSubArray(), t3lib_divTest\removeDotsFromTypoScriptOverridesWithScalar(), and t3lib_divTest\removeDotsFromTypoScriptSucceedsWithDottedArray().

static removePrefixPathFromList ( array  $fileArr,
  $prefixToRemove 
)
static

Removes the absolute part of all files/folders in fileArr

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

Definition at line 3145 of file class.t3lib_div.php.

Referenced by Tx_Extbase_Utility_Extension\buildAutoloadRegistryForSinglePath(), tx_indexedsearch_crawler\crawler_execute_type2(), tx_em_Tools\getClassIndexLocallangFiles(), tx_lowlevel_lost_files\main(), and tx_em_Install\removeExtDirectory().

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

Definition at line 237 of file class.t3lib_div.php.

References PATH_typo3.

Referenced by tx_form_System_Filter_Removexss\filter(), fileList\getButtonsAndOtherMarkers(), tslib_content_Form\render(), t3lib_search_livesearch\setQueryString(), and tx_felogin_pi1\validateRedirectUrl().

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

Definition at line 5107 of file class.t3lib_div.php.

References $T3_SERVICES, $T3_VAR, and $TYPO3_CONF_VARS.

Referenced by t3lib_autoloader\autoload().

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

Definition at line 5092 of file class.t3lib_div.php.

References $T3_SERVICES, $T3_VAR, and $TYPO3_CONF_VARS.

Referenced by t3lib_TCEmain\checkValue_input_Eval(), t3lib_TCEforms_FE\initializeTemplateContainer(), and tx_tsconfighelp_module1\unzip().

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.

Definition at line 4568 of file class.t3lib_div.php.

Referenced by t3lib_BEfunc\getRegisteredFlexForms(), t3lib_TCEforms_Flexforms\modifyFlexFormDS(), and t3lib_TCEforms_Suggest\processAjaxRequest().

static resolveBackPath (   $pathStr)
static

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

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

Definition at line 3174 of file class.t3lib_div.php.

Referenced by template\addStyleSheetDirectory(), t3lib_spritemanager_SimpleHandler\buildCssAndRegisterIcons(), tx_rtehtmlarea_microdataschema\buildJavascriptConfiguration(), tx_rtehtmlarea_typo3link\buildJSClassesAnchorArray(), t3lib_loadModules\checkMod(), t3lib_spritemanager_AbstractHandler\collectTcaSpriteIcons(), t3lib_Compressor\compressCssFile(), t3lib_Compressor\compressJsFile(), t3lib_Compressor\createMergedFile(), tx_em_Tools\createNewFile(), tx_impexp\export_addFile(), tx_em_Extensions_List\extensionListRow(), t3lib_spritemanager_SpriteBuildingHandler\generate(), tx_rtehtmlarea_base\getContentCssFileName(), tx_reports_reports_status_ConfigurationStatus\getDeprecationLogFileLink(), t3lib_Compressor\getFilenameFromMainDir(), tx_rtehtmlarea_pi4\getFullFileName(), template\getHtmlTemplate(), t3lib_loadModules\getRelativePath(), tx_indexedsearch_crawler\indexExtUrl(), tx_indexedsearch_indexer\isAllowedLocalFile(), tslib_fe\jumpUrl(), tx_form_View_Wizard_Wizard\loadCss(), tx_form_View_Wizard_Wizard\loadJavascript(), SC_index\makeLoginBoxImage(), t3lib_iconWorks\mapFileExtensionToSpriteIconName(), t3lib_stdGraphic\prependAbsolutePath(), tx_impexp\processSoftReferences_saveFile_createRelFile(), tx_em_Tools\renameFile(), TYPO3Logo\render(), t3lib_PageRenderer\render(), t3lib_divTest\resolveBackPathWithDataProvider(), t3lib_spritemanager_SpriteGenerator\resolveSpritePath(), tx_em_Tools\sendFile(), and tx_aboutmodules_Functions\topMenu().

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!

Definition at line 4531 of file class.t3lib_div.php.

Referenced by t3lib_TCEmain\checkValue_flex_procInData(), t3lib_transferData\renderRecord_flexProc_procInData(), and t3lib_flexformtools\traverseFlexFormXMLData().

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

Reverse explode which explodes the string counting from behind. Thus t3lib_div::revExplode(':','my:words:here',2) will return array('my:words','here')

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

Definition at line 1586 of file class.t3lib_div.php.

Referenced by tslib_cObj\encaps_lineSplit(), Tx_IndexedSearch_Domain_Repository_IndexSearchRepository\freeIndexUidWhere(), tx_indexedsearch\freeIndexUidWhere(), tx_version_tcemain\getEmailsForStageChangeNotification(), t3lib_TCEforms\getRTypeNum(), t3lib_TCEforms\getSingleField_typeFlex_draw(), SC_wizard_edit\main(), t3lib_TCEforms_inline\renderForeignRecordHeader(), and t3lib_divTest\revExplodeExplodesString().

static rmdir (   $path,
  $removeNonEmpty = FALSE 
)
static
static rmFromList (   $element,
  $list 
)
static

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

Parameters
string$elementelement to remove
string$listcomma-separated list of items (string)
Returns
string new comma-separated list of items

Definition at line 812 of file class.t3lib_div.php.

References $items.

Referenced by SC_mod_user_setup_index\getFieldsFromShowItem(), tx_rtehtmlarea_parse_html\keepSpanTagsWithId(), and tx_rtehtmlarea_language\main().

static setSingletonInstance (   $className,
t3lib_Singleton  $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 a helper method for unit tests. Do not call this directly in production code!

See also
makeInstance
Parameters
string$classNamethe name of the class to set, must not be empty
t3lib_Singleton$instancethe instance to set, must be an instance of $className
Returns
void

Definition at line 4939 of file class.t3lib_div.php.

Referenced by t3lib_divTest\setSingletonInstanceCalledTwoTimesMakesMakeInstanceReturnLastSetInstance(), t3lib_divTest\setSingletonInstanceForClassThatIsNoSubclassOfProvidedClassThrowsException(), t3lib_divTest\setSingletonInstanceForEmptyClassNameThrowsException(), t3lib_divTest\setSingletonInstanceMakesMakeInstanceReturnThatInstance(), and Tx_Fluid_Tests_Unit_View_StandaloneViewTest\setUp().

static shortMD5 (   $input,
  $len = 10 
)
static
static slashArray ( array  $arr,
  $cmd 
)
static

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

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

Definition at line 1821 of file class.t3lib_div.php.

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
boolean$extendedIf set, also backslashes are escaped.
string$charThe character to escape, default is ' (single-quote)
Returns
string Processed input string

Definition at line 1222 of file class.t3lib_div.php.

Referenced by tx_em_Tools\arrayToCode(), t3lib_tsparser_ext\ext_printFields(), t3lib_TCEforms\getSingleField_typeFlex_draw(), and t3lib_TCEforms_Suggest\renderSuggestSelector().

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 2026 of file class.t3lib_div.php.

References $value.

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"
string$operatorsOperators to split by, typically "/+-*"
Returns
array Array with operators and operands separated.
See also
tslib_cObj::calc(), tslib_gifBuilder::calcOffset()

Definition at line 1148 of file class.t3lib_div.php.

References $res, and $value.

Referenced by tslib_cObj\calc(), tslib_gifBuilder\calculateValue(), and t3lib_divTest\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 (integer) or record (array)
string$fieldsList of fields from the record if that is given.
integer$codeLengthLength of returned authentication code.
Returns
string MD5 hash of 8 chars.

Definition at line 4052 of file class.t3lib_div.php.

References $GLOBALS.

static stripSlashesOnArray ( array &  $theArray)
static

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

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

Definition at line 1802 of file class.t3lib_div.php.

References $value.

Referenced by t3lib_TCEmain\fillInFieldArray(), and t3lib_divTest\stripSlashesOnArrayStripsSlashesRecursive().

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

Definition at line 1321 of file class.t3lib_div.php.

Referenced by tx_dbal_installtool\createConnectionForm(), tx_em_reports_ExtensionStatus\getStatus(), tx_felogin_pi1\getUserFieldMarkers(), and initSysLog().

static substUrlsInPlainText (   $message,
  $urlmode = '76',
  $index_script_url = '' 
)
static

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

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

Definition at line 5299 of file class.t3lib_div.php.

References $message.

Referenced by tslib_fe\plainMailEncoded(), and t3lib_divTest\substUrlsInPlainText().

static tempnam (   $filePrefix)
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 t3lib_div::unlink_tempfile()

Parameters
string$filePrefixPrefix to temp file (which will have no extension btw)
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 4040 of file class.t3lib_div.php.

References PATH_site.

Referenced by dbGeneralTest\createFakeExtension(), t3lib_spritemanager_SpriteGenerator\generateGraphic(), t3lib_diff\getDiff(), tx_impexp\import_addFileNameToBeCopied(), tx_indexedsearch_indexer\indexExternalUrl(), tx_rtehtmlarea_pi1\main(), tx_indexed_search_extparse\readFileContent(), tx_rtehtmlarea_pi1\spellCheckHandler(), t3lib_svbase\tempFile(), and tslib_fe\tidyHTML().

static testInt (   $var)
static

Tests if the input can be interpreted as integer.

Parameters
mixed$varAny input variable to test
Returns
boolean Returns TRUE if string is an integer
Deprecated:
since TYPO3 4.6, will be removed in TYPO3 6.0 - Use t3lib_utility_Math::canBeInterpretedAsInteger() instead

Definition at line 1077 of file class.t3lib_div.php.

References t3lib_utility_Math\canBeInterpretedAsInteger().

static trimExplode (   $delim,
  $string,
  $removeEmptyValues = FALSE,
  $limit = 0 
)
static

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

Parameters
string$delimDelimiter string to explode with
string$stringThe string to explode
boolean$removeEmptyValuesIf set, all empty values will be removed in output
integer$limitIf positive, the result will contain a maximum of $limit elements, if negative, all components except the last -$limit are returned, if zero (default), the result is not limited at all. Attention though that the use of this parameter can slow down this function.
Returns
array Exploded values

Definition at line 1607 of file class.t3lib_div.php.

References $value.

Referenced by tx_cms_treelistCacheUpdate\__construct(), tx_scheduler_CronCmd\__construct(), t3lib_TCEforms_Suggest_DefaultReceiver\__construct(), tx_dbal_autoloader\activateDbal(), tx_saltedpasswords_autoloader\activateSaltedPasswords(), tx_rtehtmlarea_api\addButtonsToToolbar(), t3lib_extMgm\addModule(), t3lib_extMgm\addService(), t3lib_extMgm\addToAllTCAtypes(), t3lib_modSettings\addToStoreList(), t3lib_frontendedit\allowedToEdit(), tx_rtehtmlarea_definitionlist\applyToolbarConstraints(), tx_rtehtmlarea_defaultclean\applyToolbarConstraints(), tx_rtehtmlarea_typo3htmlparser\applyToolbarConstraints(), tx_rtehtmlarea_tableoperations\applyToolbarConstraints(), tx_rtehtmlarea_typo3link\applyToolbarConstraints(), tx_version_tcemain_CommandMap\applyWorkspacesSetStageBehaviour(), t3lib_TCEmain\assemblePermissions(), user_feAdmin\authCode(), t3lib_spritemanager_SpriteGenerator\buildFileInformationCache(), tx_rtehtmlarea_contextmenu\buildJavascriptConfiguration(), tx_rtehtmlarea_blockelements\buildJavascriptConfiguration(), tx_rtehtmlarea_selectfont\buildJavascriptConfiguration(), tx_rtehtmlarea_api\buildJavascriptConfiguration(), tx_rtehtmlarea_inlineelements\buildJavascriptConfiguration(), tx_rtehtmlarea_acronym\buildJSAcronymArray(), tx_rtehtmlarea_typo3color\buildJSColorsConfig(), tx_rtehtmlarea_selectfont\buildJSFontItemsConfig(), tslib_gifBuilder\calcOffset(), tslib_fe\calculateLinkVars(), tslib_gifBuilder\calculateMaximum(), dbOracleTest\canCompileExtendedInsert(), t3lib_TCEmain\canDeletePage(), tx_install\checkConfiguration(), tx_indexedsearch_crawler\checkDeniedSuburls(), tx_impexp\checkDokType(), t3lib_svbase\checkExec(), t3lib_divTest\checkTrimExplodeKeepsRamainingResultsWithEmptyItemsAfterReachingLimitWithNegativeParameter(), t3lib_divTest\checkTrimExplodeKeepsRamainingResultsWithoutEmptyItemsAfterReachingLimitWithNegativeParameter(), t3lib_divTest\checkTrimExplodeKeepsRemainingResultsWithEmptyItemsAfterReachingLimitWithPositiveParameter(), t3lib_divTest\checkTrimExplodeKeepsRemainingResultsWithoutEmptyItemsAfterReachingLimitWithPositiveParameter(), t3lib_divTest\checkTrimExplodeKeepsZeroAsString(), t3lib_divTest\checkTrimExplodeRemovesEmptyElements(), t3lib_divTest\checkTrimExplodeRemovesNewLines(), t3lib_divTest\checkTrimExplodeReturnsExactResultsWithoutReachingLimitWithPositiveParameter(), t3lib_divTest\checkTrimExplodeTrimsSpacesAtElementStartAndEnd(), tx_em_Extensions_Details\checkUploadFolder(), t3lib_TCEmain\checkValue_group_select(), t3lib_TCEmain\checkValue_group_select_explodeSelectGroupValue(), t3lib_TCEmain\checkValue_group_select_file(), t3lib_TCEmain\checkValue_inline(), t3lib_TCEmain\checkValue_input(), t3lib_TCEmain\checkValue_text(), t3lib_TCEmain\clear_cache(), Tx_Extbase_Persistence_Storage_Typo3DbBackend\clearPageCache(), tslib_fe\clearPageCacheContent_pidList(), t3lib_cli\cli_validateArgs(), Tx_Extbase_Utility_Extension\configurePlugin(), t3lib_TCEmain\copyRecord_procFilesRefs(), tx_indexedsearch_crawler\crawler_execute_type2(), t3lib_autoloader\createCoreAndExtensionRegistry(), t3lib_TCEforms\dbFileIcons(), tslib_cObj\DBgetInsert(), tslib_cObj\DBgetUpdate(), tslib_cObj\DBmayFEUserEdit(), tslib_cObj\DBmayFEUserEditSelect(), tx_dbal_autoloader\deactivateDbal(), t3lib_TCEmain\deletePages(), t3lib_frontendedit\displayEditIcons(), t3lib_BEfunc\displayWarningMessages(), t3lib_parsehtml_proc\divideIntoLines(), t3lib_TCEmain\doesPageHaveUnallowedTables(), tx_rtehtmlarea_base\enableRegisteredPlugins(), tslib_cObj\encaps_lineSplit(), t3lib_matchCondition_frontend\evaluateCondition(), t3lib_matchCondition_backend\evaluateCondition(), t3lib_matchCondition_abstract\evaluateConditionCommon(), user_feAdmin\evalValues(), tx_linkvalidator_tasks_Validator\execute(), t3lib_extMgm\executePositionedStringInsertion(), t3lib_extMgm\explodeItemList(), tx_version_tcemain_CommandMap\explodeSetStage(), t3lib_spritemanager_SpriteGenerator\explodeSizeTag(), t3lib_BEfunc\explodeSoftRefParserList(), t3lib_diff\explodeStringIntoWords(), t3lib_tsparser_ext\ext_printFields(), local_beUserAuth\ext_uniqueAndSortList(), tx_em_Extensions_List\extensionListRow(), t3lib_extMgm\extPath(), t3lib_TStemplate\extractFromResources(), t3lib_search_livesearch\extractSearchableFieldsFromTable(), t3lib_transferData\fetchRecord(), tslib_cObj\fillInMarkerArray(), t3lib_extMgm\findService(), t3lib_TCEmain\fixCopyAfterDuplFields(), tx_sysaction_task\fixDbMount(), t3lib_TCEmain\fixUniqueInPid(), SC_alt_doc\fixWSversioningInEditConf(), Tx_IndexedSearch_Domain_Repository_IndexSearchRepository\freeIndexUidWhere(), tx_indexedsearch\freeIndexUidWhere(), t3lib_readmail\fullParse(), t3lib_TStemplate\generateConfig(), recordList\generateList(), t3lib_frontendedit\getAllowedEditActions(), localRecordList\getButtons(), t3lib_TCEforms\getClipboardElements(), t3lib_BEfunc\getCommonSelectFields(), t3lib_exec\getConfiguredApps(), t3lib_readmail\getContentTypeData(), t3lib_userAuth\getCookie(), tslib_fe\getCurrentPageCacheConfiguration(), tslib_cObj\getData(), t3lib_contextmenu_pagetree_DataProvider\getDisableActions(), tx_version_tcemain\getEmailsForStageChangeNotification(), t3lib_TCEforms\getExcludeElements(), t3lib_install_Sql\getFieldDefinitions_fileContent(), SC_mod_user_setup_index\getFieldsFromShowItem(), t3lib_TCEforms\getFieldsToAdd(), tslib_cObj\getFieldVal(), tx_reports_reports_status_SecurityStatus\getFileDenyPatternStatus(), tslib_fe\getFirstTimeValueForRecord(), t3lib_BEfunc\getFlexFormDS(), t3lib_TCEforms_Flexforms\getFlexFormNonExcludeFields(), tx_wizardcrpages_webfunc_2\getFormLine(), extDirect_DataProvider_BackendUserSettings\getFromDottedNotation(), t3lib_TStemplate\getFromMPmap(), tx_coreupdates_addflexformstoacl\getGroupAddFields(), tx_em_Connection_ExtDirectServer\getInstalledExtkeys(), tx_rtehtmlarea_select_image\getJSCode(), t3lib_parsehtml_proc\getKeepTags(), t3lib_BEfunc\getLabelsFromItemsList(), tx_rtehtmlarea_language\getLanguages(), extDirect_DataProvider_BackendUserSettings\getLastKeyFromDottedNotation(), tx_linkvalidator_tasks_Validator\getLinkTypes(), t3lib_TCEforms\getListedFields(), tx_rtehtmlarea_pi1\getMainDictionaryCharacterSet(), t3lib_TCEforms\getMainFields(), tslib_mediaWizardCoreProvider\getMethod(), t3lib_tree_pagetree_extdirect_Tree\getNodeTypes(), SC_wizard_tsconfig\getObjTree(), t3lib_pageSelect\getPageOverlay(), t3lib_exec\getPathsInternal(), t3lib_TCEforms\getPlaceholderAttribute(), t3lib_TCEforms_inline\getPossibleRecords(), t3lib_cs\getPreferredClientLanguage(), tx_felogin_pi1\getPreserveGetVars(), tslib_cObj\getQueryMarkers(), Tx_Workspaces_ExtDirect_ActionHandler\getRecipientList(), t3lib_BEfunc\getRecordTitle(), t3lib_BEfunc\getRegisteredFlexForms(), t3lib_TCEforms_inline\getRelatedRecordsUidArray(), Tx_Workspaces_Service_Stages\getResponsibleUser(), t3lib_xml\getRowInXML(), tx_linkvalidator_tasks_Validator\getSearchField(), recordList\getSearchFields(), t3lib_TCEforms\getSingleField_typeInput(), t3lib_TCEforms\getSingleField_typeSelect(), t3lib_TCEforms\getSingleField_typeSelect_multiple(), t3lib_TCEforms\getSoloField(), t3lib_BEfunc\getSpecConfParts(), t3lib_modSettings\getStoreControl(), t3lib_BEfunc\getTCAtypes(), t3lib_softrefproc\getTypoLinkParts(), t3lib_TCEmain\getUniqueFields(), t3lib_TCEforms_inline\getUniqueIds(), tslib_cObj\getUpdateJS(), tx_indexedsearch_indexer\getUrlHeaders(), tx_sysaction_task\getUsergroups(), getValidClassPrefixes(), ux_t3lib_DB\handler_init(), tx_simulatestatic\hookCheckAlternativeIDMethods(), tx_simulatestatic\hookInitConfig(), t3lib_parsehtml\HTMLcleaner(), t3lib_parsehtml\HTMLparserConfig(), tx_em_Extensions_List\humanizeConstraints(), tslib_cObj\includeLibs(), t3lib_TStemplate\includeStaticTypoScriptSources(), tx_indexedsearch_crawler\indexSingleRecord(), user_feAdmin\init(), clickMenu\init(), t3lib_TStemplate\init(), t3lib_queryGenerator\init(), t3lib_cs\initCharset(), t3lib_l10n_Store\initialize(), tx_indexedsearch\initialize(), tx_indexed_search_extparse\initParser(), t3lib_exec\initPaths(), t3lib_cs\initUnicodeData(), t3lib_TCEmain\insertUpdateDB_preprocessBasedOnFieldType(), tx_em_Install\installExtension(), tslib_fe\INTincScript_includeLibs(), t3lib_BEfunc\isModuleSetInTBE_MODULES(), t3lib_extMgm\isServiceAvailable(), t3lib_TCEmain\isTableAllowedForThisPage(), tx_cms_layout\languageSelector(), tx_indexedsearch_modfunc1\listWords(), tx_recycler_model_deletedRecords\loadData(), t3lib_TCEforms\loadPaletteElements(), TYPO3backend\loadResourcesForRegisteredNavigationComponents(), t3lib_PageRenderer\loadScriptaculous(), tslib_cObj\locDataJU(), t3lib_mail_SwiftMailerAdapter\mail(), tx_rtehtmlarea_spellchecker\main(), tx_rtehtmlarea_copypaste\main(), tx_rtehtmlarea_SC_select_image\main(), tx_rtehtmlarea_SC_browse_links\main(), tx_rtehtmlarea_pi1\main(), tx_lowlevel_lost_files\main(), SC_browse_links\main(), SC_wizard_add\main(), SC_file_newfolder\main(), SC_db_new\main(), SC_view_help\make_seeAlso(), tx_em_Install\makeDetailedExtensionAnalysis(), SC_alt_doc\makeEditForm(), SC_index\makeInterfaceSelectorBox(), tx_cms_layout\makeOrdinaryList(), recordList\makeQueryArray(), tx_indexedsearch\makeSearchForm(), t3lib_readmail\makeUnixDate(), t3lib_TCEforms\mergeFieldsWithAddedFields(), tx_coreupdates_migrateworkspaces\migrateAdminFieldToNewStyle(), user_feAdmin\modifyDataArrForFormUpdate(), t3lib_TCEforms_Flexforms\modifyFlexFormDS(), t3lib_TCEforms_Flexforms\modifySingleFlexFormSheet(), t3lib_frontendedit\move(), Tx_Extbase_Configuration_FrontendConfigurationManager\overrideStoragePidIfStartingPointIsSet(), Tx_Extbase_Configuration_FrontendConfigurationManager\overrideSwitchableControllerActionsFromFlexForm(), TSpagegen\pagegenInit(), SC_mod_tools_log_index\parseDate(), tslib_cObj\parseFunc(), t3lib_loadModules\parseModulesArray(), t3lib_TSparser\parseSub(), user_feAdmin\parseValues(), tx_coreupdates_imagelink\performUpdate(), config_defaultTest\phpExtensionsDataProvider(), t3lib_TCEmain\placeholderShadowing(), t3lib_TCEforms_Suggest_DefaultReceiver\prepareSelectStatement(), t3lib_TCEforms\previewFieldValue(), SC_view_help\printImage(), t3lib_timeTrack\printTSlog(), tx_tstemplateinfo\procesResources(), t3lib_TCEforms_Suggest\processAjaxRequest(), tx_version_tcemain\processCmdmap(), tx_simulatestatic\processEncodedQueryString(), user_feAdmin\procesSetFixed(), user_feAdmin\processFiles(), tslib_cObj\processParams(), tx_felogin_pi1\processRedirect(), tx_lowlevel_cleaner\quickDBlookUp(), t3lib_loadDBGroup\readList(), t3lib_TCEforms\rearrange(), Tx_Extbase_Utility_Extension\registerModule(), t3lib_TCEmain\remapListedDBRecords_procDBRefs(), tx_em_Extensions_List\removeExtFromList(), extDirect_DataProvider_BackendUserSettings\removeFromList(), SC_db_new_content_el\removeInvalidElements(), tx_em_Extensions_List\removeRequiredExtFromListArr(), tslib_content_Content\render(), tslib_content_Media\render(), tslib_content_ImageText\render(), tslib_content_Form\render(), Tx_Fluid_ViewHelpers_CObjectViewHelper\render(), tx_em_ExtensionManager\render(), tx_cssstyledcontent_pi1\render_bullets(), tx_cssstyledcontent_pi1\render_table(), tx_cssstyledcontent_pi1\render_textpic(), tx_cssstyledcontent_pi1\render_uploads(), SC_show_item\renderDBInfo(), t3lib_TCEforms_inline\renderForeignRecordHeader(), tx_cms_webinfo_lang\renderL10nTable(), t3lib_transferData\renderRecord_groupProc(), t3lib_transferData\renderRecord_inlineProc(), t3lib_transferData\renderRecord_selectProc(), t3lib_spritemanager_SpriteGenerator\resolveSpritePath(), tx_tstemplateinfo\resourceListForCopy(), t3lib_parsehtml_proc\RTE_transform(), user_feAdmin\save(), tx_indexed_search_extparse\searchTypeMediaTitle(), tslib_cObj\sendNotifyEmail(), tslib_fe\setAbsRefPrefix(), tx_form_System_Validate_Fileallowedtypes\setAllowedTypes(), t3lib_queryGenerator\setAndCleanUpExternalLists(), tx_recycler_model_deletedRecords\setData(), user_feAdmin\setfixed(), user_feAdmin\setfixedHash(), extDirect_DataProvider_BackendUserSettings\setFromDottedNotation(), t3lib_TCEmain\setMirror(), tx_rtehtmlarea_base\setPlugins(), t3lib_DB\setSqlMode(), t3lib_modSettings\setStoreList(), tslib_fe\settingLanguage(), tx_rtehtmlarea_base\setToolbar(), tx_rtehtmlarea_pi1\spellCheckHandler(), t3lib_parsehtml\splitIntoBlock(), t3lib_stdGraphic\splitString(), t3lib_parsehtml\splitTags(), t3lib_DB\sql_pconnect(), t3lib_loadDBGroup\start(), tslib_cObj\stdWrap_cacheStore(), tx_em_Install\stripNonFrontendExtensions(), t3lib_parsehtml\stripTagsExcept(), t3lib_parsehtml\substituteMarkerAndSubpartArrayRecursive(), t3lib_parsehtml\substituteMarkerArray(), tslib_cObj\TCAlookup(), t3lib_parsehtml_proc\TS_links_rte(), t3lib_extMgm\typo3_loadExtensions(), tslib_cObj\typoLink(), t3lib_parsehtml\unprotectTags(), tx_linkvalidator_ModFuncReport\updateBrokenLinks(), tx_linkvalidator_tasks_ValidatorAdditionalFieldProvider\validateAdditionalFields(), SC_db_new_content_el\wizardArray(), and tslib_tmenu\writeMenu().

static underscoredToLowerCamelCase (   $string)
static

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

Parameters
string$string,String to be converted to camel case
Returns
string lowerCamelCasedWord

Definition at line 1481 of file class.t3lib_div.php.

Referenced by Tx_Extbase_Persistence_Mapper_DataMapFactory\buildDataMap(), Tx_Extbase_Utility_Extension\convertUnderscoredToLowerCamelCase(), and t3lib_divTest\underscoredToLowerCamelCase().

static underscoredToUpperCamelCase (   $string)
static

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

Parameters
string$string,String to be converted to camel case
Returns
string UpperCamelCasedWord

Definition at line 1469 of file class.t3lib_div.php.

Referenced by Tx_Extbase_Utility_Extension\convertLowerUnderscoreToUpperCamelCase(), Tx_Extbase_Scheduler_TaskExecutor\execute(), Tx_Extbase_Utility_Extension\registerModule(), and t3lib_divTest\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$secondParameter,Dummy 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 971 of file class.t3lib_div.php.

Referenced by t3lib_userAuthGroup\fetchGroupData(), tslib_cObj\filelist(), t3lib_BEfunc\getRecordWSOL(), t3lib_pageSelect\getRootLine(), and t3lib_basicFileFunctions\init().

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

Definition at line 4020 of file class.t3lib_div.php.

References PATH_site.

Referenced by t3lib_formmail\__destruct(), t3lib_spritemanager_SpriteGenerator\generateGraphic(), t3lib_divTest\gifCompressFixesPermissionOfConvertedFileIfUsingGd(), t3lib_divTest\gifCompressFixesPermissionOfConvertedFileIfUsingImagemagick(), t3lib_iconWorksTest\imagemakeFixesPermissionsOnNewFiles(), user_feAdmin\init(), tx_rtehtmlarea_pi1\main(), t3lib_divTest\pngToGifByImagemagickFixesPermissionsOfConvertedFile(), t3lib_divTest\readPngGifFixesPermissionsOfConvertedFile(), tx_form_System_Request\removeFiles(), tx_rtehtmlarea_pi1\spellCheckHandler(), t3lib_divTest\syslogFixesPermissionsOnFileIfUsingFileLogging(), t3lib_svbase\unlinkTempFiles(), and tx_impexp\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
boolean$unQuoteIf set, the elements of the resulting array are unquoted.
Returns
array Exploded parameters

Definition at line 5689 of file class.t3lib_div.php.

Referenced by t3lib_divTest\explodeAndUnquoteImageMagickCommands(), t3lib_utility_Command\imageMagickCommand(), t3lib_parsehtml_proc\TS_links_rte(), and tslib_cObj\typoLink().

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
boolean Returns TRUE if the file was moved. Dennis Petersen fesso.nosp@m.r@so.nosp@m.ftwar.nosp@m.e.dk
See also
upload_to_tempfile()

Definition at line 3978 of file class.t3lib_div.php.

Referenced by t3lib_TCEmain\checkValue_group_select_file(), t3lib_TCEmain\copyRecord_fixRTEmagicImages(), t3lib_extFileFunctions\func_upload(), t3lib_spritemanager_SpriteGenerator\generateGraphic(), tx_lowlevel_double_files\main_autoFix(), tx_lowlevel_rte_images\main_autoFix(), and user_feAdmin\processFiles().

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 t3lib_div::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 4003 of file class.t3lib_div.php.

Referenced by user_feAdmin\processFiles(), t3lib_formmail\start(), tx_form_System_Request\storeFiles(), and tx_em_Connection_ExtDirectServer\uploadExtension().

static validIP (   $ip)
static

Validate a given IP address.

Possible format are IPv4 and IPv6.

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

Definition at line 683 of file class.t3lib_div.php.

Referenced by tx_install\checkConfiguration(), t3lib_divTest\validIpReturnsFalseForInvalidIp(), and t3lib_divTest\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
boolean TRUE if $ip is of IPv4 format.

Definition at line 695 of file class.t3lib_div.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
boolean TRUE if $ip is of IPv6 format.

Definition at line 707 of file class.t3lib_div.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
boolean TRUE, $theFile is allowed path string, FALSE otherwise
See also
http://php.net/manual/en/security.filesystem.nullbytes.php
Todo:
Possible improvement: Should it rawurldecode the string first to check if any of these characters is encoded?

Definition at line 3864 of file class.t3lib_div.php.

Referenced by tslib_cObj\clean_directory(), t3lib_parsehtml_proc\evalWriteFile(), SC_tslib_showpic\init(), t3lib_cs\initCharset(), t3lib_cs\initUnicodeData(), t3lib_basicFileFunctions\isPathValid(), tx_install\typo3conf_edit(), t3lib_divTest\validPathStrDetectsInvalidCharacters(), and t3lib_divTest\validPathStrWorksWithUnicodeFileNames().

static verifyFilenameAgainstDenyPattern (   $filename)
static
static wrapJS (   $string,
  $linebreak = TRUE 
)
static

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

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

Definition at line 2088 of file class.t3lib_div.php.

References LF, and TAB.

Referenced by t3lib_utility_Debug\debug(), t3lib_utility_Debug\debugInPopUpWindow(), t3lib_tsStyleConfig\ext_getForm(), and tx_t3editor\getModeSpecificJavascriptCode().

static writeFile (   $file,
  $content 
)
static

Writes $content to the file $file

Parameters
string$fileFilepath to write to
string$contentContent to write
Returns
boolean TRUE if the file was successfully opened and written to.

Definition at line 2765 of file class.t3lib_div.php.

References $content, and $res.

Referenced by t3lib_Compressor\__construct(), tx_install_session\__construct(), tx_em_Extensions_Details\checkUploadFolder(), tx_lowlevel_admin_core\cli_main(), dbGeneralTest\createFakeExtension(), t3lib_Compressor\createMergedFile(), tx_em_Tools\createNewFile(), SC_mod_tools_log_index\exportData(), SC_mod_tools_em_index\extDumpTables(), t3lib_TSparser\extractIncludes(), tx_em_Repository_Utility\fetchFile(), t3lib_TCEmain\fillInFieldArray(), t3lib_extFileFunctions\func_edit(), t3lib_extFileFunctions\func_newfile(), t3lib_spritemanager_AbstractHandler\generate(), t3lib_spritemanager_SpriteGenerator\generateCSS(), t3lib_diff\getDiff(), tx_impexp\import_addFileNameToBeCopied(), tx_indexedsearch_indexer\indexExternalUrl(), TSpagegen\inline2TempFile(), tx_em_Install\installExtension(), tx_em_Translations\installTranslationsForExtension(), tx_impexp\processSoftReferences_saveFile_createRelFile(), t3lib_Compressor\retrieveExternalFile(), tx_em_Connection_ExtDirectServer\saveExtFile(), t3lib_parsehtml_proc\TS_images_db(), tx_em_Extensions_Details\updateLocalEM_CONF(), tx_em_Translations\updateTranslation(), tx_em_Connection_Ter\updateTranslation(), tx_install_session\write(), t3lib_Compressor\writeFileAndCompressed(), tx_impexp\writeFileVerify(), t3lib_install\writeToLocalconf(), and tx_em_Tools\writeTYPO3_MOD_PATH().

static writeFileToTypo3tempDir (   $filepath,
  $content 
)
static

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

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

Definition at line 2853 of file class.t3lib_div.php.

References $content, and PATH_site.

Referenced by t3lib_divTest\fixPermissionsCorrectlySetsPermissionsRecursive(), t3lib_divTest\fixPermissionsSetsGroup(), t3lib_divTest\fixPermissionsSetsPermissionsToFile(), t3lib_divTest\fixPermissionsSetsPermissionsToHiddenFile(), t3lib_divTest\fixPermissionsSetsPermissionsWithRelativeFileReference(), t3lib_l10n_parser_Llphp\generateCacheFile(), TYPO3backend\getLocalLangFileName(), t3lib_cs\initCaseFolding(), t3lib_cs\initCharset(), t3lib_cs\initToASCII(), t3lib_cs\initUnicodeData(), and tx_version_tcemain\version_swap().

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:"
boolean$reportDocTagIf set, the document tag will be set in the key "_DOCUMENT_TAG" of the output array
Returns
mixed If the parsing had errors, a string with the error message is returned. Otherwise an array with the content.
See also
array2xml(),xml2arrayProcess()

Definition at line 2355 of file class.t3lib_div.php.

References t3lib_pageSelect\getHash(), and t3lib_pageSelect\storeHash().

Referenced by t3lib_TCEmain\checkValue_flex(), Tx_Extbase_Service_FlexFormService\convertFlexFormContentToArray(), t3lib_BEfunc\getFlexFormDS(), t3lib_BEfunc\getRegisteredFlexForms(), t3lib_syntaxhl\highLight_DS(), t3lib_syntaxhl\highLight_FF(), tx_impexp\loadFile(), SC_wizard_add\main(), tslib_cObj\readFlexformIntoConf(), t3lib_TCEmain\remapListedDBRecords(), tslib_content_Media\render(), t3lib_transferData\renderRecord_flexProc(), tx_impexp\setFlexFormRelations(), t3lib_flexformtools\traverseFlexFormXMLData(), and t3lib_TCEmain\version_remapMMForVersionSwap().

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:"
boolean$reportDocTagIf set, the document tag will be set in the key "_DOCUMENT_TAG" of the output array
Returns
mixed If the parsing had errors, a string with the error message is returned. Otherwise an array with the content.
See also
array2xml()

Definition at line 2388 of file class.t3lib_div.php.

static xml2tree (   $string,
  $depth = 999 
)
static

Parses XML input into a PHP array with associative keys

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

Definition at line 2118 of file class.t3lib_div.php.

Referenced by tx_indexed_search_extparse\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)

Definition at line 2541 of file class.t3lib_div.php.

Referenced by t3lib_flexformtools\traverseFlexFormXMLData().

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 2494 of file class.t3lib_div.php.

Member Data Documentation

$finalClassNameRegister = array()
staticprotected

Definition at line 82 of file class.t3lib_div.php.

$nonSingletonInstances = array()
staticprotected

Definition at line 75 of file class.t3lib_div.php.

$singletonInstances = array()
staticprotected

Definition at line 68 of file class.t3lib_div.php.

const SYSLOG_SEVERITY_FATAL = 4

Definition at line 60 of file class.t3lib_div.php.

const SYSLOG_SEVERITY_INFO = 0

Definition at line 56 of file class.t3lib_div.php.

Referenced by tslib_fe\acquirePageGenerationLock().

const SYSLOG_SEVERITY_NOTICE = 1

Definition at line 57 of file class.t3lib_div.php.

const SYSLOG_SEVERITY_WARNING = 2