TYPO3 API  SVNRelease
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes
t3lib_div Class Reference

List of all members.

Public Member Functions

 remapArrayKeys (&$array, $mappingTable)

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=0)
static fixed_lgd_cs ($string, $chars, $appendString= '...')
static breakLinesForEmail ($str, $implChar=LF, $charWidth=76)
static cmpIP ($baseIP, $list)
static cmpIPv4 ($baseIP, $list)
static cmpIPv6 ($baseIP, $list)
static IPv6Hex2Bin ($hex)
static normalizeIPv6 ($address)
static validIP ($ip)
static validIPv4 ($ip)
static validIPv6 ($ip)
static cmpFQDN ($baseIP, $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)
static uniqueList ($in_list, $secondParameter=NULL)
static split_fileref ($fileref)
static dirname ($path)
static modifyHTMLColor ($color, $R, $G, $B)
static modifyHTMLColorAll ($color, $all)
static rm_endcomma ($string)
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=0, $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 ($count)
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=1)
static addSlashesOnArray (array &$theArray)
static stripSlashesOnArray (array &$theArray)
static slashArray (array $arr, $cmd)
static array_merge_recursive_overrule (array $arr0, array $arr1, $notAddKeys=0, $includeEmtpyValues=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 ($destination, $deepDir)
static rmdir ($path, $removeNonEmpty=FALSE)
static get_dirs ($path)
static getFilesInDir ($path, $extensionList= '', $prependPath=0, $order= '', $excludePattern= '')
static getAllFilesAndFoldersInPath (array $fileArr, $path, $extList= '', $regDirs=0, $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 debug_ordvalue ($string, $characters=100)
static view_array ($array_in)
static print_array ($array_in)
static debug ($var= '', $header= '', $group= 'Debug')
static debug_trail ()
static debugRows ($rows, $header= '', $returnHTML=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 readLLfile ($fileRef, $langKey, $charset= '', $errorMode=0)
static readLLPHPfile ($fileRef, $langKey, $charset= '')
static readLLXMLfile ($fileRef, $langKey, $charset= '')
static llXmlAutoFileName ($fileRef, $language)
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 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= 'iso-8859-1')
static substUrlsInPlainText ($message, $urlmode= '76', $index_script_url= '')
static makeRedirectUrl ($inUrl, $l=0, $index_script_url= '')
static freetypeDpiComp ($font_size)
static initSysLog ()
static devLog ($msg, $extKey, $severity=0, $dataVar=FALSE)
static deprecationLog ($msg)
static getDeprecationLogFileName ()
static logDeprecatedFunction ()
static arrayToLogString (array $arr, $valueList=array(), $valueLength=20)
static imageMagickCommand ($command, $parameters, $path= '')
static unQuoteFilenames ($parameters, $unQuote=FALSE)
static quoteJSvalue ($value, $withinCData=FALSE)
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

Protected Member Functions

 xml2arrayProcess ($string, $NSprefix= '', $reportDocTag=FALSE)
 getClassName ($className)

Static Protected Member Functions

static checkInstanceClassName ($className, $instance)

Static Protected Attributes

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

Detailed Description

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


Member Function Documentation

static t3lib_div::_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! Usage: 27

Parameters:
stringOptional 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 323 of file class.t3lib_div.php.

References $value, and stripSlashesOnArray().

Referenced by tx_dbal_installtool\__construct(), tslib_fe\ADMCMD_preview(), Tx_Fluid_Core_Widget_WidgetRequestBuilder\build(), Tx_Extbase_MVC_Web_Routing_UriBuilder\buildBackendUri(), Tx_Fluid_Core_Widget_WidgetRequestHandler\canHandleRequest(), tslib_AdminPanel\display(), t3lib_BEfunc\displayWarningMessages(), tx_reports_reports_status_SecurityStatus\executeAdminCommand(), SC_mod_tools_dbint_index\func_records(), tslib_fe\getConfigArray(), tslib_cObj\getData(), t3lib_extjs_ExtDirectApi\getExtDirectApi(), t3lib_BEfunc\getFuncCheck(), t3lib_BEfunc\getFuncInput(), t3lib_BEfunc\getFuncMenu(), tx_felogin_pi1\getPreserveGetVars(), tslib_cObj\getQueryArguments(), TYPO3backend\handlePageEditing(), SC_show_item\init(), linkThisScript(), SC_logomenu\main(), tx_rtehtmlarea_SC_browse_links\main(), tx_tstemplateanalyzer\main(), SC_browse_links\main(), tx_indexedsearch_modfunc1\main(), SC_mod_tools_config_index\main(), SC_file_list\main(), SC_db_list\main(), tx_tstemplateobjbrowser\main(), SC_mod_user_ws_index\main(), tslib_fe\makeCacheHash(), template\makeShortcutUrl(), tslib_fe\mergingWithGetVars(), tx_tstemplateobjbrowser\modMenu(), TSpagegen\pagegenInit(), 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_MVC_Web_Routing_UriBuilderTest\setUp(), Tx_Extbase_Tests_Unit_Configuration_BackendConfigurationManagerTest\setUp(), tx_indexedsearch_modfunc2\showStats(), t3lib_userAuth\start(), and template\template().

static t3lib_div::_GETset ( inputGet,
key = '' 
) [static]

Writes input value to $_GET. Usage: 2

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

References $GLOBALS, addSlashesOnArray(), and array_merge_recursive_overrule().

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(), 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(), Tx_Extbase_Tests_Unit_MVC_Web_Routing_UriBuilderTest\tearDown(), and Tx_Extbase_Tests_Unit_Configuration_BackendConfigurationManagerTest\tearDown().

static t3lib_div::_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! Usage: 537

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

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

References $value, and stripSlashesOnArray().

Referenced by WorkspaceSelectorToolbarItem\__construct(), tx_em_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_install\checkPassword(), tx_install\checkTheDatabase(), t3lib_TCEmain\checkValue_flex(), SC_mod_web_ts_index\clearCache(), tx_opendocs\closeDocument(), SC_mod_tools_be_user_index\compareUsers(), compileSelectedGetVarsFromArray(), tx_recycler_controller_ajax\createContent(), tx_lowlevel_cleaner\createMenu(), SC_mod_web_ts_index\createTemplate(), tslib_fe\determineId(), t3lib_matchCondition_backend\determinePageId(), user_feAdmin\displayCreateScreen(), user_feAdmin\displayEditForm(), recordHistory\displaySettings(), 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(), wsol_preview\generateUrls(), SC_mod_tools_log_index\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(), SC_mod_user_ws_workspaceForms\getModuleParameters(), tx_sysaction_task\getOverview(), tx_openid_sv1\getReturnURL(), tx_openid_sv1\getSignedClaimedOpenIDIdentifier(), tx_openid_sv1\getSignedParameter(), t3lib_TCEforms\getSingleField(), SC_mod_tools_em_index\getSubmitAndOpenerCloseLink(), tx_sysaction_task\getTask(), t3lib_matchCondition_abstract\getVariableCommon(), wslib_gui\getWorkspaceOverview(), 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(), TYPO3_tcefile\init(), SC_mod_web_view_index\init(), SC_mod_user_ws_publish\init(), tx_install_ajax\init(), SC_wizard_list\init(), SC_alt_file_navframe\init(), SC_file_edit\init(), SC_alt_db_navframe\init(), SC_alt_menu\init(), SC_wizard_rte\init(), SC_wizard_add\init(), SC_file_rename\init(), SC_wizard_colorpicker\init(), SC_file_upload\init(), SC_tce_db\init(), SC_file_list\init(), SC_browse_links\init(), SC_file_newfolder\init(), SC_index\init(), SC_wizard_table\init(), SC_db_list\init(), SC_wizard_tsconfig\init(), SC_t3lib_thumbs\init(), user_feAdmin\init(), SC_view_help\init(), SC_db_new\init(), SC_tslib_showpic\init(), clickMenu\init(), SC_mod_web_perm_index\init(), SC_mod_tools_em_index\init(), SC_wizard_forms\init(), t3lib_SCbase\init(), SC_alt_palette\init(), SC_alt_doc\init(), SC_mod_tools_be_user_index\init(), tx_openid_sv1\initAuth(), t3lib_frontendedit\initConfigOptions(), tslib_fe\initFEuser(), tslib_AdminPanel\initialize(), Tx_Workspaces_Controller_AbstractController\initializeAction(), t3lib_folderTree\initializePositionSaving(), tx_em_Install\installExtension(), tx_install\isTTF(), tslib_fe\jumpUrl(), SC_alt_doc\localizationRedirect(), tx_install\loginForm(), SC_logout\logout(), tx_openid_eID\main(), tx_felogin_pi1\main(), tx_rtehtmlarea_parse_html\main(), wsol_preview\main(), tx_dbal_module1\main(), tx_impexp_task\main(), tx_wizardsortpages_webfunc_2\main(), SC_browser\main(), tx_tstemplateceditor\main(), tx_impexp_clickmenu\main(), tx_extrapagecmoptions\main(), recordHistory\main(), tx_impexp_modfunc1\main(), tx_indexedsearch_modfunc1\main(), SC_mod_tools_config_index\main(), SC_mod_user_ws_workspaceForms\main(), SC_wizard_colorpicker\main(), tx_version_cm1\main(), tx_tstemplateobjbrowser\main(), tx_tstemplateinfo\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_config_index\menuConfig(), SC_mod_user_ws_index\menuConfig(), SC_mod_tools_log_index\menuConfig(), SC_file_list\menuConfig(), SC_mod_tools_isearch_index\menuConfig(), tx_version_cm1\menuConfig(), SC_mod_tools_dbint_index\menuConfig(), SC_db_list\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_module1\printLogMgm(), tx_dbal_module1\printSqlCheck(), tx_t3editor_codecompletion\processAjaxRequest(), tx_t3editor_TSrefLoader\processAjaxRequest(), t3lib_TCEforms_Suggest\processAjaxRequest(), SC_alt_doc\processData(), SC_mod_user_ws_workspaceForms\processData(), user_feAdmin\procesSetFixed(), t3lib_modSettings\processStoreControl(), t3lib_fullsearch\procesStoreControl(), tx_em_Settings\readSettings(), recordHistory\recordHistory(), template\redirectUrls(), AjaxLogin\refreshTokens(), 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(), recordHistory\resolveShUid(), tslib_ExtDirectEid\routeAction(), tx_t3editor_hooks_tstemplateinfo\save(), tslib_AdminPanel\saveConfigOptions(), user_feAdmin\sendInfoMail(), SC_mod_tools_em_index\showExtDetails(), tx_felogin_pi1\showLogin(), SC_mod_user_setup_index\simulateUser(), Tx_Workspaces_Controller_ReviewController\singleIndexAction(), recordList\start(), t3lib_userAuth\start(), tslib_fe\statistics(), t3lib_superadmin\t3lib_superadmin(), SC_mod_web_ts_index\templateMenu(), alt_menu_functions\topMenu(), tx_em_Install\tsStyleConfigForm(), tx_install\tx_install(), tx_linkvalidator_ModFuncReport\updateBrokenLinks(), tx_sysaction_task\viewNewBackendUser(), and tslib_fe\workspacePreviewInit().

static t3lib_div::_GPmerged ( parameter) [static]

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

Parameters:
stringKey (variable name) from GET or POST vars
Returns:
array Returns the GET vars merged recursively onto the POST vars.

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

References array_merge_recursive_overrule(), and stripSlashesOnArray().

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

static t3lib_div::_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! Usage: 41

Parameters:
stringOptional 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 344 of file class.t3lib_div.php.

References $value, and stripSlashesOnArray().

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(), tslib_cObj\getQueryArguments(), tx_rtehtmlarea_pi1\main(), tx_tstemplateceditor\main(), tx_indexedsearch_modfunc1\main(), SC_mod_tools_config_index\main(), SC_file_list\main(), SC_db_list\main(), tx_tstemplateobjbrowser\main(), tx_tstemplateinfo\main(), SC_mod_user_setup_index\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_Extbase_Tests_Unit_Configuration_BackendConfigurationManagerTest\setUp(), SC_mod_tools_em_index\showExtDetails(), tx_felogin_pi1\showForgot(), SC_mod_user_setup_index\storeIncomingData(), tx_em_Translations\translationHandling(), tx_em_Install\tsStyleConfigForm(), tx_version_cm1\versioningMgm(), and tx_sysaction_task\viewNewBackendUser().

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

References checkInstanceClassName().

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

static t3lib_div::addSlashesOnArray ( array &$  theArray) [static]

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

Parameters:
arrayMultidimensional input array, (REFERENCE!)
Returns:
array

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

References $value.

Referenced by _GETset(), and slashArray().

static t3lib_div::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 tagnames. 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 tagname "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... Usage: 5

Parameters:
arrayThe input PHP array with any kind of data; text, binary, integers. Not objects though.
stringtag-prefix, eg. a namespace prefix like "T3:"
integerCurrent recursion level. Don't change, stay at zero!
stringAlternative document tag. Default is "phparray".
integerIf 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
arrayOptions 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')
stringStack data. Don't touch.
Returns:
string An XML string made from the input content in the array.
See also:
xml2array()

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

References $content.

Referenced by array2xml_cs(), tx_impexp\createXML(), t3lib_flexformtools\flexArray2Xml(), tx_dbal_handler_xmldb\saveDataSource(), and tx_dbal_handler_xmldb\xmlDB_writeStructure().

static t3lib_div::array2xml_cs ( array $  array,
docTag = 'phparray',
array $  options = array(),
charset = '' 
) [static]

Turns PHP array into XML. See array2xml()

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

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

References $GLOBALS, and array2xml().

static t3lib_div::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. Usage: 16

Parameters:
arrayFirst array
arraySecond array
Returns:
array Merged result.

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

Referenced by t3lib_TCEmain\_ACTION_FLEX_FORMdata(), tslib_feUserAuth\fetchGroupData(), getAllFilesAndFoldersInPath(), t3lib_TCEforms_Suggest\processAjaxRequest(), and readLLfile().

static t3lib_div::array_merge_recursive_overrule ( array $  arr0,
array $  arr1,
notAddKeys = 0,
includeEmtpyValues = 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. Usage: 0

Parameters:
arrayFirst array
arraySecond array, overruling the first array
booleanIf 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.
booleanIf set, values from $arr1 will overrule if they are empty or zero. Default: true
Returns:
array Resulting array where $arr1 values has overruled $arr0 values

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

Referenced by t3lib_TCEforms_Suggest_DefaultReceiver\__construct(), _GETset(), _GPmerged(), Tx_Extbase_MVC_Web_Routing_UriBuilder\buildBackendUri(), Tx_Extbase_Persistence_Mapper_DataMapFactory\buildDataMap(), t3lib_TCEmain\checkValue_flex(), tx_linkvalidator_tasks_Validator\execute(), 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(), 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(), linkThisUrl(), 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(), 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(), readLLfile(), Tx_Extbase_Utility_Extension\registerModule(), t3lib_BEfunc\RTEsetup(), tx_em_Extensions_List\singleExtInfo(), language\sL(), template\template(), and Tx_Extbase_MVC_Web_Routing_UriBuilder\uriFor().

static t3lib_div::arrayDiffAssocRecursive ( array $  array1,
array $  array2 
) [static]

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

Parameters:
arraySource array
arrayReduce source array by this array
Returns:
array Source array reduced by keys also present in second array

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

References $value.

Referenced by t3lib_divTest\arrayDiffAssocRecursiveHandlesMixedArrays(), t3lib_divTest\arrayDiffAssocRecursiveHandlesMultiDimensionalArrays(), t3lib_divTest\arrayDiffAssocRecursiveHandlesOneDimensionalArrays(), and tslib_cObj\getQueryArguments().

static t3lib_div::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:
arrayData array which should be outputted
mixedList of keys which should be listed in the output string. Pass a comma list or an array. An empty list outputs the whole array.
integerLong string values are shortened to this length. Default: 20
Returns:
string Output string with key names and their value as string

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

References $value, and trimExplode().

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

static t3lib_div::breakLinesForEmail ( str,
implChar = LF,
charWidth = 76 
) [static]

Breaks up a single line of text for emails Usage: 5

Parameters:
stringThe string to break up
stringThe string to implode the broken lines with (default/typically
)
integerThe line length
Returns:
string

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

Referenced by user_plaintext\breakLines().

static t3lib_div::calcParenthesis ( string) [static]

Calculates the input with parenthesis levels Usage: 2

Parameters:
stringInput string, eg "(123 + 456) / 789 - 4"
Returns:
integer Calculated value. Or error string.
See also:
calcPriority(), tslib_cObj::stdWrap()

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

References $value, and calcPriority().

Referenced by tslib_cObj\stdWrap_prioriCalc().

static t3lib_div::calcPriority ( string) [static]

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

Parameters:
stringInput string, eg "123 + 456 / 789 - 4"
Returns:
integer Calculated value. Or error string.
See also:
calcParenthesis()

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

Referenced by calcParenthesis(), and t3lib_divTest\calcPriorityCorrectlyCalculatesExpression().

static t3lib_div::calculateCHash ( params) [static]

Calculates the cHash based on the provided parameters

Parameters:
arrayArray of key-value pairs
Returns:
string Hash of all the values

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

Referenced by generateCHash(), and tslib_fe\makeCacheHash().

static t3lib_div::callUserFunction ( funcName,
&$  params,
&$  ref,
checkPrefix = 'user_',
errorMode = 0 
) [static]

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

Parameters:
stringFunction/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").
mixedParameters to be pass along (typically an array) (REFERENCE!)
mixedReference to be passed along (typically "$this" - being a reference to the calling object) (REFERENCE!)
stringRequired prefix of class or function name
integerError 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 4852 of file class.t3lib_div.php.

References $content, $GLOBALS, $TYPO3_CONF_VARS, debug(), getFileAbsFileName(), makeInstance(), requireOnce(), and revExplode().

Referenced by tx_t3editor\ajaxSaveCode(), t3lib_userAuthGroup\calcPerms(), tx_impexp\callHook(), tx_felogin_pi1\changePassword(), cHashParams(), tslib_fe\checkAlternativeIdMethods(), t3lib_TCEmain\clear_cache(), t3lib_TCEmain\clear_cacheCmd(), tslib_fe\connectToDB(), tslib_fe\contentStrReplace(), tslib_fe\determineId(), devLog(), t3lib_PageRenderer\doCompress(), t3lib_PageRenderer\doConcatenate(), t3lib_frontendedit\editAction(), t3lib_pageSelect\enableFields(), TYPO3backend\executeHook(), tslib_AdminPanel\extGetFeAdminValue(), tslib_fe\generatePage_postProcessing(), t3lib_utility_Client\getBrowserInfo(), tslib_fe\getConfigArray(), t3lib_utility_Client\getDeviceType(), template\getDocHeaderButtons(), tslib_fe\getFromCache(), SC_index\getJScode(), t3lib_userAuthGroup\getPagePermsClause(), t3lib_BEfunc\getProcessedValue(), t3lib_fullsearch\getQueryResultCode(), t3lib_BEfunc\getRecordTitle(), 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(), initSysLog(), tslib_fe\isOutputting(), t3lib_TStemplate\linkData(), t3lib_userAuth\logoff(), t3lib_utility_Mail\mail(), tx_felogin_pi1\main(), SC_file_edit\main(), tx_tstemplateinfo\main(), SC_db_layout\main(), SC_alt_doc\makeEditForm(), tslib_fe\makeSimulFileName(), t3lib_iconWorks\mapRecordTypeToSpriteIconName(), template\moduleBody(), tslib_fe\pageErrorHandler(), t3lib_TSparser\parseSub(), tslib_fe\processOutput(), tx_felogin_pi1\processRedirect(), t3lib_transferData\procItems(), t3lib_userAuthGroup\recordEditAccessInternals(), tslib_content_ShockwaveFlashObject\render(), t3lib_PageRenderer\render(), t3lib_TCEforms_inline\renderForeignRecordHeader(), SC_db_layout\renderListContent(), t3lib_TCEforms_Suggest_DefaultReceiver\renderRecord(), SC_mod_user_setup_index\renderUserSetup(), tslib_ExtDirectEid\routeAction(), tslib_AdminPanel\saveConfigOptions(), tslib_fe\settingLanguage(), tx_felogin_pi1\showLogin(), tslib_fe\simulateStaticDocuments_pEnc_onlyP_proc(), tslib_gifBuilder\start(), t3lib_userAuth\start(), SC_index\startForm(), template\startPage(), tslib_fe\tslib_fe(), tx_em_Install\tsStyleConfigForm(), tx_cms_layout\tt_content_drawHeader(), tx_cms_layout\tt_content_drawItem(), and tx_Workspaces_Service_Workspaces\viewSingleRecord().

static t3lib_div::camelCaseToLowerCaseUnderscored ( string) [static]
static t3lib_div::cHashParams ( addQueryParams) [static]

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

Parameters:
stringQuery-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()

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

References $GLOBALS, and callUserFunction().

Referenced by generateCHash().

static t3lib_div::checkInstanceClassName ( className,
instance 
) [static, protected]

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

Referenced by addInstance(), and setSingletonInstance().

static t3lib_div::cleanOutputBuffers ( ) [static]

Ends and cleans all output buffers

Returns:
void

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

Referenced by tx_openid_return\main().

static t3lib_div::clientInfo ( useragent = '') [static]

Client Browser Information Usage: 4

Parameters:
stringAlternative 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 3947 of file class.t3lib_div.php.

References getIndpEnv().

Referenced by tx_rtehtmlarea_parse_html\main(), t3lib_TCEforms\t3lib_TCEforms(), and tslib_fe\tslib_fe().

static t3lib_div::cmpFQDN ( baseIP,
list 
) [static]

Match fully qualified domain name with list of strings with wildcard

Parameters:
stringThe current remote IP address for instance, typ. REMOTE_ADDR
stringA 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 834 of file class.t3lib_div.php.

References trimExplode().

Referenced by t3lib_matchCondition_abstract\evaluateConditionCommon().

static t3lib_div::cmpIP ( baseIP,
list 
) [static]

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

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

References cmpIPv4(), and cmpIPv6().

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

static t3lib_div::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)
Returns:
boolean True if an IP-mask from $list matches $baseIP

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

References trimExplode().

Referenced by cmpIP().

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

References IPv6Hex2Bin(), normalizeIPv6(), and trimExplode().

Referenced by cmpIP().

static t3lib_div::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:
stringMinimum 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 989 of file class.t3lib_div.php.

References $TYPO3_CONF_VARS.

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

static t3lib_div::compileSelectedGetVarsFromArray ( varList,
array $  getArray,
GPvarAlt = 1 
) [static]

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

Parameters:
stringList of variable/key names
arrayArray from where to get values based on the keys in $varList
booleanIf 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 1879 of file class.t3lib_div.php.

References _GP(), and trimExplode().

Referenced by SC_alt_doc\compileStoreDat(), and template\makeShortcutUrl().

static t3lib_div::convertMicrotime ( microtime) [static]

Returns microtime input to milliseconds Usage: 2

Parameters:
stringMicrotime
Returns:
integer Microtime input string converted to an integer (milliseconds)

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

static t3lib_div::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
Author:
Lars Houmark <lars@houmark.com>

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

References $GLOBALS, resolveBackPath(), and strtolower().

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

static t3lib_div::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. Usage: 5

Parameters:
arrayInput array of values
stringDelimited, default is comman
stringQuote-character to wrap around the values.
Returns:
string A single line of CSV

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

References $value.

static t3lib_div::debug ( var = '',
header = '',
group = 'Debug' 
) [static]

Makes debug output Prints $var in bold between two vertical lines If not $var the word 'debug' is printed If $var is an array, the array is printed by t3lib_div::print_array() Usage: 8

Parameters:
mixedVariable to print
stringThe header.
stringGroup for the debug console
Returns:
void
Deprecated:
since TYPO3 4.5 - Use t3lib_utility_Debug::debug instead

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

References logDeprecatedFunction().

Referenced by callUserFunction(), debug(), deprecationLog(), and getUserObj().

static t3lib_div::debug_ordvalue ( string,
characters = 100 
) [static]

Returns a string with a list of ascii-values for the first $characters characters in $string Usage: 0

Parameters:
stringString to show ASCII value for
integerNumber of characters to show
Returns:
string The string with ASCII values in separated by a space char.
Deprecated:
since TYPO3 4.5 - Use t3lib_utility_Debug::ordinalValue instead

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

References logDeprecatedFunction(), and t3lib_utility_Debug\ordinalValue().

static t3lib_div::debug_trail ( ) [static]

Displays the "path" of the function call stack in a string, using debug_backtrace

Returns:
string
Deprecated:
since TYPO3 4.5 - Use t3lib_utility_Debug::debugTrail instead

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

References t3lib_utility_Debug\debugTrail(), and logDeprecatedFunction().

static t3lib_div::debugRows ( rows,
header = '',
returnHTML = FALSE 
) [static]

Displays an array as rows in a table. Useful to debug output like an array of database records.

Parameters:
mixedArray of arrays with similar keys
stringTable header
booleanIf TRUE, will return content instead of echo'ing out.
Returns:
void Outputs to browser.
Deprecated:
since TYPO3 4.5 - Use t3lib_utility_Debug::debugRows instead

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

References logDeprecatedFunction().

static t3lib_div::deHSCentities ( str) [static]

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

Parameters:
stringString 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 1385 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 t3lib_div::deprecationLog ( msg) [static]
static t3lib_div::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:
stringMessage (in english).
stringExtension key (from which extension you are calling the log)
integerSeverity: 0 is info, 1 is notice, 2 is warning, 3 is fatal error, -1 is "OK" message
arrayAdditional data you want to pass to the logger.
Returns:
void

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

References $TYPO3_CONF_VARS, and callUserFunction().

Referenced by t3lib_modSettings\addToStoreList(), t3lib_modSettings\addToStoreListFromPrefix(), t3lib_userAuth\checkAuthentication(), t3lib_userAuth\compareUident(), t3lib_userAuth\createUserSession(), deprecationLog(), template\endPage(), tslib_feUserAuth\fetchGroupData(), t3lib_userAuth\fetchUserSession(), tx_cssstyledcontent_pi1\getImgColumnRelations(), t3lib_error_ErrorHandler\handleError(), tslib_fe\initUserGroups(), Tx_Extbase_Object_Container_Container\log(), t3lib_userAuth\logoff(), minifyJavaScript(), ux_t3lib_DB\prepare_SELECTquery(), t3lib_modSettings\processStoreControl(), t3lib_userAuth\setAndSaveSessionData(), t3lib_userAuth\setSessionCookie(), t3lib_modSettings\setStoreList(), t3lib_formmail\start(), t3lib_userAuth\start(), t3lib_error_AbstractExceptionHandler\writeLogEntries(), t3lib_modSettings\writeStoredSetting(), and t3lib_userAuth\writeUC().

static t3lib_div::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' => '' '' => '' Usage: 5

Parameters:
stringDirectory name / path
Returns:
string Processed input value. See function description.

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

References revExplode().

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

static t3lib_div::encodeHeader ( line,
enc = 'quoted-printable',
charset = 'iso-8859-1' 
) [static]

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

Parameters:
stringContent to encode
stringEncoding type: "base64" or "quoted-printable". Default value is "quoted-printable".
stringCharset used for encoding
Returns:
string The encoded string

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

References quoted_printable().

Referenced by t3lib_htmlmail\add_header(), t3lib_divTest\encodeHeaderEncodesQuestionmarksInQuotedPrintableMailHeader(), t3lib_divTest\encodeHeaderEncodesWhitespacesInQuotedPrintableMailHeader(), plainMailEncoded(), and t3lib_htmlmail\setHeaders().

static t3lib_div::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:
stringcomma-separated list of integers with ranges (string)
Returns:
string new comma-separated list of items
Author:
Martin Kutschker <martin.kutschker@activesolution.at>

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

References $items.

static t3lib_div::explodeUrl2Array ( string,
multidim = FALSE 
) [static]

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

Parameters:
stringGETvars string
booleanIf 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 1853 of file class.t3lib_div.php.

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

static t3lib_div::fixed_lgd_cs ( string,
chars,
appendString = '...' 
) [static]

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

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

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

References $GLOBALS, and makeInstance().

Referenced by t3lib_diff\addClearBuffer(), user_wapversion\cBodytext(), tx_install\checkTheDatabase(), 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(), SC_mod_tools_dbint_index\func_records(), 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(), t3lib_BEfunc\getProcessedValue(), tx_recycler_helper\getRecordPath(), t3lib_BEfunc\getRecordPath(), t3lib_search_livesearch\getRecordTitlePrep(), t3lib_BEfunc\getRecordTitlePrep(), tx_cms_layout\getTable_tt_content(), ShortcutMenu\initShortcuts(), recordList\linkWrapItems(), SC_logomenu\main(), tx_wizardsortpages_webfunc_2\main(), tx_tsconfighelp_module1\main(), tx_impexp_modfunc1\main(), SC_alt_db_navframe\main(), SC_db_new\main(), t3lib_superadmin\menuContent(), 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 t3lib_div::fixPermissions ( path,
recursive = FALSE 
) [static]
static t3lib_div::fixWindowsFilePath ( theFile) [static]
static t3lib_div::flushOutputBuffers ( ) [static]

Ends and flushes all output buffers

Returns:
void

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

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

static t3lib_div::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! Usage: 23

Parameters:
stringInput string to be formatted.
Returns:
string Formatted for <textarea>-tags

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

References $content.

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

static t3lib_div::formatSize ( sizeInBytes,
labels = '' 
) [static]
static t3lib_div::freetypeDpiComp ( font_size) [static]

Function to compensate for FreeType2 96 dpi Usage: 21

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

Definition at line 5525 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 t3lib_div::generateCHash ( addQueryParams) [static]

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

Parameters:
stringQuery-parameters: "&xxx=yyy&zzz=uuu"
Returns:
string Hash of all the values
See also:
t3lib_div::cHashParams(), t3lib_div::calculateCHash()

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

References calculateCHash(), and cHashParams().

Referenced by tx_indexedsearch_indexer\backend_initIndexer(), and tslib_cObj\typoLink().

static t3lib_div::generateRandomBytes ( count) [static]
static t3lib_div::get_dirs ( path) [static]
static t3lib_div::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 parameterlist (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() Usage: 8

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

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

References split_tag_attributes(), and strtolower().

Referenced by tslib_cObj\_parseFunc(), tslib_cObj\addParams(), t3lib_TSparser\checkIncludeLines(), tslib_cObj\encaps_lineSplit(), tslib_pibase\pi_openAtagHrefInJSwindow(), tx_indexedsearch_indexer\splitHTMLContent(), and xmlGetHeaderAttribs().

static t3lib_div::getAllFilesAndFoldersInPath ( array $  fileArr,
path,
extList = '',
regDirs = 0,
recursivityLevels = 99,
excludePattern = '' 
) [static]

Recursively gather all files and folders of a path. Usage: 5

Parameters:
array$fileArr,:Empty input array (will have files added to it)
string$path,:The path to read recursively from (absolute) (include trailing slash!)
string$extList,:Comma list of file extensions: Only files with extensions in this list (if applicable) will be selected.
boolean$regDirs,:If set, directories are also included in output.
integer$recursivityLevels,:The number of levels to dig down...
string$excludePattern,:regex pattern of files/directories to exclude
Returns:
array An array with the found files/directories.

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

References array_merge(), and get_dirs().

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

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

t3lib_div::getClassName ( className) [protected]

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

Parameters:
stringBase class name to evaluate
Returns:
string Final class name to instantiate with "new [classname]"

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

Referenced by makeInstance().

static t3lib_div::getDeprecationLogFileName ( ) [static]

Gets the absolute path to the deprecation log file.

Returns:
string absolute path to the deprecation log file

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

References $GLOBALS, and shortMD5().

Referenced by deprecationLog(), t3lib_divTest\deprecationLogFixesPermissionsOnLogFile(), tx_reports_reports_status_ConfigurationStatus\getDeprecationLogFileLink(), and tx_reports_reports_status_ConfigurationStatus\getDeprecationLogStatus().

static t3lib_div::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. Usage: 24

Parameters:
stringThe input filename/filepath to evaluate
booleanIf $onlyRelative is set (which it is by default), then only return values relative to the current PATH_site is accepted.
booleanIf $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 4064 of file class.t3lib_div.php.

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

Referenced by callUserFunction(), t3lib_TSparser\checkIncludeLines(), tx_impexp\checkOrCreateDir(), t3lib_TCEmain\copyRecord_fixRTEmagicImages(), tx_indexedsearch_crawler\crawler_execute_type2(), t3lib_cache_Factory\create(), 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(), fixPermissions(), t3lib_BEfunc\getFlexFormDS(), template\getHtmlTemplate(), tx_t3editor\getPreparedTemplate(), t3lib_BEfunc\getRegisteredFlexForms(), getUserObj(), ux_t3lib_DB\handler_init(), tx_indexedsearch_indexer\indexRegularDocument(), tx_dbal_handler_openoffice\init(), tx_dbal_handler_xmldb\init(), SC_wizard_colorpicker\init(), t3lib_cs\initCaseFolding(), t3lib_cs\initCharset(), t3lib_cs\initToASCII(), t3lib_cs\initUnicodeData(), tslib_fe\jumpUrl(), tx_rtehtmlarea_pi1\main(), tx_tstemplateinfo\main(), tx_lowlevel_double_files\main_autoFix(), tx_lowlevel_rte_images\main_autoFix(), tx_lowlevel_lost_files\main_autoFix(), SC_view_help\make_seeAlso(), makeInstanceService(), SC_index\makeLoginBoxImage(), tslib_fe\pageErrorHandler(), t3lib_TCEforms\previewFieldValue(), SC_view_help\printImage(), tx_impexp\processSoftReferences_saveFile(), tx_impexp\processSoftReferences_saveFile_createRelFile(), readLLfile(), readLLXMLfile(), Tx_Fluid_ViewHelpers_Uri_ResourceViewHelper\render(), tslib_content_FluidTemplate\render(), t3lib_PageRenderer\render(), tx_cssstyledcontent_pi1\render_uploads(), t3lib_TCEforms\renderWizards(), resolveSheetDefInDS(), tx_dbal_handler_xmldb\saveDataSource(), t3lib_softrefproc\setTypoLinkPartsElement(), Tx_Extbase_MVC_Controller_ActionController\setViewConfiguration(), template\startPage(), t3lib_parsehtml_proc\TS_images_db(), and tx_impexp\writeFileVerify().

static t3lib_div::getFilesInDir ( path,
extensionList = '',
prependPath = 0,
order = '',
excludePattern = '' 
) [static]

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

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

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

References strtolower().

Referenced by t3lib_SpriteManager\__construct(), template\addStyleSheetDirectory(), tx_install\checkTheDatabase(), tx_install\cleanupManager(), SC_mod_tools_log_index\exportData(), SC_mod_tools_dbint_index\findFile(), t3lib_superadmin\getAllFilesAndFoldersInPath(), 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_templatehook\registerPngFix(), t3lib_superadmin\rmCachedFiles(), tx_em_Extensions_List\singleExtInfo(), and tx_install\stepOutput().

static t3lib_div::getHostname ( requestHost = TRUE) [static]

Get the fully-qualified domain name of the host. Usage: 2

Parameters:
booleanUse request host (when not in CLI mode).
Returns:
string The fully-qualified host name.

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

References getIndpEnv().

Referenced by initSysLog(), and t3lib_htmlmail\start().

static t3lib_div::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. Usage: 221

Parameters:
stringName 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 3642 of file class.t3lib_div.php.

References $GLOBALS, cmpIP(), dirname(), and trimExplode().

Referenced by Tx_Fluid_View_StandaloneView\__construct(), tx_install_session\__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(), clientInfo(), Tx_Fluid_Tests_Unit_View_StandaloneViewTest\constructorSetsBaseUri(), Tx_Fluid_Tests_Unit_View_StandaloneViewTest\constructorSetsRequestUri(), tx_indexedsearch_indexer\createLocalPathUsingDomainURL(), debug(), tslib_AdminPanel\display(), 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(), 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(), wsol_preview\generateUrls(), 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(), tx_version_cm1\getButtons(), SC_mod_web_perm_index\getButtons(), SC_mod_tools_log_index\getButtons(), SC_db_layout\getButtons(), t3lib_userAuth\getCookieDomain(), tslib_cObj\getData(), t3lib_BEDisplayLog\getDetails(), t3lib_extjs_ExtDirectApi\getExtDirectApi(), t3lib_pageSelect\getExtURL(), t3lib_pageselectTest\getExtUrlForDokType3AndUrlType0PrependsSiteUrl(), getHostname(), 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(), tx_rsaauth_loginformhook\getLoginScripts(), t3lib_BEfunc\getModuleUrl(), t3lib_BEfunc\getPathType_web_nonweb(), tslib_cObj\getQueryArguments(), tx_openid_sv1\getReturnURL(), t3lib_extjs_ExtDirectApi\getRoutingUrl(), t3lib_modSettings\getStoreControl(), tx_cms_layout\getTable_tt_content(), t3lib_matchCondition_abstract\getVariableCommon(), t3lib_BEfunc\getViewDomain(), t3lib_userAuth\hashLockClause_getHashInt(), tx_simulatestatic\hookCheckAlternativeIDMethods(), tx_simulatestatic\hookInitConfig(), t3lib_parsehtml\HTMLcleaner(), tx_rtehtmlarea_user\init(), SC_file_upload\init(), SC_index\init(), SC_wizard_table\init(), SC_mod_user_ws_workspaceForms\init(), t3lib_basicFileFunctions\init(), user_feAdmin\init(), SC_wizard_forms\init(), t3lib_TCEforms_FE\initializeTemplateContainer(), initSysLog(), t3lib_userAuth\ipLockClause_remoteIPNumber(), tx_felogin_pi1\isInCurrentDomain(), t3lib_divTest\isOnCurrentHostReturnsTrueWithCurrentHost(), tx_felogin_pi1\isRelativeUrl(), template\issueCommand(), tx_cms_layout\languageSelector(), linkThisScript(), tx_indexedsearch_modfunc1\listWords(), localPageTree\localPageTree(), locationHeaderUrl(), tx_rsaauth_feloginhook\loginFormHook(), tx_openid_return\main(), SC_logomenu\main(), SC_mod_web_view_index\main(), SC_wizard_list\main(), TYPO3_tcefile\main(), SC_wizard_add\main(), SC_tce_db\main(), tx_version_cm1\main(), SC_db_list\main(), makeRedirectUrl(), 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(), tslib_fe\previewInfo(), tslib_fe\printError(), SC_alt_doc\processData(), SC_mod_user_ws_workspaceForms\processData(), tx_templatehook\registerPngFix(), SC_db_new\regularNew(), Tx_Extbase_MVC_View_NotFoundView\render(), t3lib_message_ErrorpageMessage\render(), tx_em_ExtensionManager\render(), tx_sysaction_task\renderActionList(), t3lib_TCEforms_inline\renderForeignRecordHeader(), SC_db_layout\renderQuickEdit(), SC_mod_tools_em_index\requestInstallExtensions(), t3lib_divTest\sanitizeLocalUrlValidUrlDataProvider(), tx_openid_sv1\sendOpenIDRequest(), SC_alt_doc\setDocument(), tslib_fe\setIDfromArgV(), t3lib_userAuth\setSessionCookie(), tx_felogin_pi1\showLogin(), t3lib_parsehtml_proc\siteUrl(), t3lib_formmail\start(), template\startPage(), tslib_fe\statistics(), tslib_fe\statistics_init_pagename(), TBE_browser_recordList\TBE_browser_recordList(), 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_dbal_autoloader\updateExtensionList(), 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(), tx_indexedsearch\writeSearchStat(), and xdebug().

static t3lib_div::getMaximumPathLength ( ) [static]

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

Returns:
integer The maximum available path length
Author:
Ingo Renner <ingo@typo3.org>

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

Referenced by t3lib_cache_backend_FileBackend\__construct().

static t3lib_div::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 $TYPO3_CONF_VARS['BE']['maxFileSize'] will be used
Returns:
integer the maximum size of uploads that are allowed (measuered in kilobytes)

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

References $GLOBALS, and getBytesFromSizeMeasurement().

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

static t3lib_div::getRandomHexString ( count) [static]

Returns a hex representation of a random byte string.

Parameters:
integerNumber of hex characters to return
Returns:
string Random Bytes

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

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

static t3lib_div::getThisUrl ( ) [static]

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

Returns:
string

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

References dirname().

static t3lib_div::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 $TYPO3_CONF_VARS['SYS']['curlUse'] etc. Usage: 83

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

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

References $content, and $GLOBALS.

Referenced by tx_linkvalidator_linktype_External\checkLink(), tx_linkvalidator_tasks_Validator\execute(), tx_em_Connection_Ter\fetchExtension(), tx_em_Repository_Utility\fetchFile(), SC_mod_tools_em_index\fetchMetaData(), tx_em_Connection_Ter\fetchTranslation(), tx_em_Connection_Ter\fetchTranslationStatus(), tx_em_Tools\getArrayFromLocallang(), template\getHtmlTemplate(), t3lib_htmlmail\getMimeType(), tx_t3editor\getPreparedTemplate(), tx_indexedsearch_indexer\getUrlHeaders(), tx_tsconfighelp_module1\getZIPFileContents(), tx_em_Repository_Utility\isExtListUpdateNecessary(), TYPO3backend\loadResourcesForRegisteredNavigationComponents(), tslib_fe\pageErrorHandler(), tx_em_Connection_ExtDirectServer\readExtFile(), and t3lib_PageRenderer\render().

static t3lib_div::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. Usage: 5

Parameters:
stringClass 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!).
stringRequired prefix of class name. By default "tx_" is allowed.
booleanIf 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 4971 of file class.t3lib_div.php.

References $GLOBALS, $TYPO3_CONF_VARS, debug(), getFileAbsFileName(), makeInstance(), requireOnce(), and revExplode().

Referenced by ClearCacheMenu\__construct(), tx_linkvalidator_Processor\__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_TCEmain\deleteAction(), tx_saltedpasswords_salts_factory\determineSaltingHashingMethod(), 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(), 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_cssstyledcontent_pi1\hookRequest(), tx_indexedsearch\hookRequest(), tx_indexedsearch_indexer\init(), t3lib_TCEforms_inline\initHookObjects(), tx_indexedsearch\initialize(), tx_linkvalidator_ModFuncReport\initialize(), tx_indexedsearch_indexer\initializeExternalParsers(), t3lib_tsfeBeUserAuth\initializeFrontendEdit(), tx_rtehtmlarea_SC_select_image\main(), tx_rtehtmlarea_SC_browse_links\main(), SC_alt_topmenu_dummy\main(), tx_lowlevel_rte_images\main(), SC_browse_links\main(), tx_indexedsearch_modfunc1\main(), SC_show_item\main(), tx_rtehtmlarea_parse_html\main_parse_html(), recordList\makeQueryArray(), 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_TCEforms\t3lib_TCEforms(), tx_cms_layout\tt_content_drawItem(), tx_install\tx_install(), tslib_cObj\typoLink(), and t3lib_BEfunc\viewOnClick().

static t3lib_div::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. Usage: 9

Parameters:
stringFilepath
stringSee 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 450 of file class.t3lib_div.php.

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

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

static t3lib_div::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:
integerValue from "l18n_cfg" field of a page record
Returns:
boolean True if the page should be hidden

Definition at line 4385 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 t3lib_div::hmac ( input) [static]

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

Parameters:
stringInput string to create HMAC from
Returns:
string resulting (hexadecimal) HMAC currently with a length of 40 (HMAC-SHA-1)

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

References $GLOBALS.

Referenced by t3lib_divTest\hmacReturnsEqualHashesForEqualInput(), t3lib_divTest\hmacReturnsHashOfProperLength(), t3lib_divTest\hmacReturnsNoEqualHashesForNonEqualInput(), tslib_cObj\imageLinkWrap(), SC_tslib_showpic\init(), tslib_fe\jumpUrl(), tslib_cObj\locDataJU(), tslib_content_Form\render(), t3lib_TCEforms\renderWizards(), and t3lib_formmail\start().

static t3lib_div::htmlspecialchars_decode ( value) [static]

Inverse version of htmlspecialchars() Usage: 4

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

Definition at line 1370 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 t3lib_div::imageMagickCommand ( command,
parameters,
path = '' 
) [static]

Compile the command for running ImageMagick/GraphicsMagick.

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

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

Referenced by tx_install\_checkImageMagick_getVersion(), tx_install\_checkImageMagickGifCapability(), t3lib_stdGraphic\combineExec(), gif_compress(), t3lib_stdGraphic\imageMagickExec(), t3lib_stdGraphic\imageMagickIdentify(), SC_t3lib_thumbs\main(), png_to_gif_by_imagemagick(), and read_png_gif().

static t3lib_div::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) Usage: 24

Parameters:
stringName prefix for entries. Set to blank if you wish none.
arrayThe (multidim) array to implode
string(keep blank)
booleanIf set, parameters which were blank strings would be removed.
booleanIf 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 1830 of file class.t3lib_div.php.

Referenced by tx_indexedsearch_indexer\backend_initIndexer(), Tx_Extbase_MVC_Web_Routing_UriBuilder\buildTypolinkConfiguration(), SC_alt_doc\compileStoreDat(), tx_Workspaces_ExtDirect_ActionHandler\generateWorkspacePreviewLink(), t3lib_BEfunc\getFuncCheck(), t3lib_BEfunc\getFuncInput(), t3lib_BEfunc\getFuncMenu(), t3lib_BEfunc\getModuleUrl(), tslib_cObj\getQueryArguments(), template\getTabMenu(), tslib_cObj\getTypoLink(), SC_alt_doc\init(), t3lib_TStemplate\linkData(), tx_cms_layout\linkRTEbutton(), linkThisScript(), linkThisUrl(), tx_tstemplateobjbrowser\main(), tslib_fe\makeCacheHash(), template\makeShortcutUrl(), TSpagegen\pagegenInit(), tx_indexedsearch_modfunc1\printPhashRow(), SC_alt_doc\processData(), SC_db_new_content_el\removeInvalidElements(), SC_db_layout\renderQuickEdit(), and t3lib_TCEforms\renderWizards().

static t3lib_div::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) Usage: 14

Parameters:
arrayArray with attribute key/value pairs, eg. "bgcolor"=>"red", "border"=>0
booleanIf 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!
booleanIf 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 2184 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_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 t3lib_div::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 | +---------+-----------+-----------+-----------+ Usage: 3

Parameters:
arrayone-dimensional array of items
stringitem to check for
Returns:
boolean true if $item is in the one-dimensional array $in_array

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

Referenced by tx_dbal_autoloader\activateDbal(), t3lib_BEfunc\blindGroupNames(), tslib_menu\filterMenuPages(), tx_dbal_em\getMappingSuggestions(), and TYPO3AJAX\setContentFormat().

static t3lib_div::initSysLog ( ) [static]

Initialize the system log.

Returns:
void
See also:
sysLog()

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

References $TYPO3_CONF_VARS, callUserFunction(), getHostname(), getIndpEnv(), intInRange(), and strtoupper().

static t3lib_div::inList ( list,
item 
) [static]

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

Parameters:
stringcomma-separated list of items (string)
stringitem to check for
Returns:
boolean true if $item is in $list

Definition at line 877 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\addWorkspacesSetStageElements(), t3lib_BEfunc\blindUserNames(), tx_rtehtmlarea_selectfont\buildJSFontItemsConfig(), t3lib_tree_Tca_DatabaseTreeDataProvider\buildRepresentationForNode(), tx_Workspaces_Service_GridData\calculateChangePercentage(), tx_saltedpasswords_emconfhelper\checkConfigurationFrontend(), tslib_cObj\checkIf(), t3lib_TCEmain\checkModifyAccessList(), t3lib_loadModules\checkModWorkspace(), tx_install\checkTheDatabase(), t3lib_TCEmain\checkValue(), t3lib_userAuthGroup\checkWorkspace(), t3lib_cli\cli_keyboardInput_yes(), tx_lowlevel_cleaner_core\cli_referenceIndexCheck(), tx_saltedpasswords_sv1\compareUident(), ux_t3lib_sqlparser\compileWhereClause(), t3lib_sqlparser\compileWhereClause(), t3lib_htmlmail\constructHTML_media(), t3lib_stdGraphic\copyImageOntoImage(), t3lib_TCEmain\copyPages(), t3lib_TCEmain\copyRecord(), 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(), tx_saltedpasswords_eval\evaluateFieldValue(), user_feAdmin\evalValues(), tslib_feTCE\execNEWinsert(), 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(), SC_mod_tools_dbint_index\func_records(), recordList\generateList(), tslib_cObj\getBorderAttr(), SC_mod_user_setup_index\getCSH(), t3lib_install\getDatabaseExtra(), t3lib_TCEmain\getExcludeListArray(), SC_mod_tools_em_index\getFileListOfExtension(), t3lib_stdGraphic\getImageDimensions(), tslib_cObj\getImgResource(), t3lib_BEfunc\getModuleData(), tx_em_Parser_XmlParserFactory\getParserInstance(), t3lib_TCEforms_inline\getPossibleRecords(), t3lib_BEfunc\getProcessedValue(), t3lib_BEfunc\getRecordWSOL(), tslib_gifBuilder\getResource(), Tx_Workspaces_Service_Stages\getResponsibleUser(), t3lib_TStemplate\getRootlineLevel(), tx_Workspaces_ExtDirect_Server\getRowDetails(), tx_openid_sv1\getSignedParameter(), t3lib_TCEforms\getSingleField(), 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(), SC_mod_user_ws_workspaceForms\initTCEForms(), t3lib_basicFileFunctions\is_allowed(), t3lib_TCEforms\isDisplayCondition(), t3lib_tree_Tca_AbstractTcaTreeDataProvider\isExpanded(), tx_install\isExtensionEnabled(), tx_scheduler_CronCmd\isInCommandList(), SC_db_new\isTableAllowedForThisPage(), tx_saltedpasswords_div\isUsageEnabled(), tx_rtehtmlarea_parse_html\keepSpanTagsWithId(), TBE_browser_recordList\listURL(), t3lib_TCEmain\localize(), tx_rtehtmlarea_pi1\main(), tx_wizardsortpages_webfunc_2\main(), SC_file_edit\main(), SC_t3lib_thumbs\main(), tx_tstemplateinfo\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(), tx_em_Extensions_Details\makeUploadarray(), t3lib_stdGraphic\maskImageOntoImage(), t3lib_SCbase\mergeExternalItems(), t3lib_userAuthGroup\modAccess(), t3lib_sqlparser\parseALTERTABLE(), t3lib_sqlparser\parseWhereClause(), 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_tstemplateinfo\resourceListForCopy(), tx_rtehtmlarea_base\setToolbar(), SC_mod_tools_em_index\showExtDetails(), 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 t3lib_div::int_from_ver ( verNumberStr) [static]

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

Parameters:
stringVersion number on format x.x.x
Returns:
integer Integer version of version number (where each part can count to 999)

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

Referenced by tx_coreupdates_compatversion\checkUserInput(), tx_rtehtmlarea_pi2\drawRTE(), tx_rtehtmlarea_base\drawRTE(), tx_coreupdates_cscsplit\findUpdateableTemplatesWithCsc(), tx_em_Connection_ExtDirectServer\getFlatExtensionList(), tx_install\getUpgradeObjInstance(), tx_rtehtmlarea_base\isAvailable(), tx_coreupdates_compatversion\showChangesNeeded(), and tx_em_Extensions_List\showExtensionsToUpdate().

static t3lib_div::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. Usage: 76

Parameters:
stringDelimiter string to explode with
stringThe string to explode
booleanIf set, all empty values (='') will NOT be set in output
integerIf 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 1687 of file class.t3lib_div.php.

References trimExplode().

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\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(), t3lib_TCEforms\getAdditionalPreviewLanguages(), 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\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_menu\makeMenu(), t3lib_queryGenerator\makeSelectorTable(), t3lib_stdGraphic\makeShadow(), t3lib_stdGraphic\objPosition(), TSpagegen\pagegenInit(), t3lib_TStemplate\processTemplate(), SC_db_layout\renderListContent(), tx_em_Tools\renderVersion(), tx_indexedsearch\sectionTableWhere(), ux_t3lib_DB\SELECTquery(), tslib_fe\settingLanguage(), t3lib_stdGraphic\setWorkArea(), t3lib_stdGraphic\splitString(), tslib_gifBuilder\start(), tslib_menu\start(), tslib_tableOffset\start(), tslib_controlTable\start(), tslib_cObj\substring(), t3lib_stdGraphic\txtPosition(), and t3lib_BEfunc\viewOnClick().

static t3lib_div::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. Usage: 224

Parameters:
integerInput value
integerLower limit
integerHigher limit
integerDefault value if input is false.
Returns:
integer The input value forced into the boundaries of $min and $max

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

Referenced by tx_reports_reports_status_Status\__construct(), SC_mod_tools_log_index\addRecordsForPid(), tx_indexedsearch_indexer\bodyDescription(), user_plaintext\breakBulletlist(), tx_install\checkTheDatabase(), tx_lowlevel_cleaner_core\cli_printInfo(), t3lib_stdGraphic\convertColor(), t3lib_stdGraphic\copyGifOntoGif(), tx_indexedsearch_crawler\crawler_execute_type1(), tx_install\displayTwinImage(), tx_feedit_editpanel\editPanelPreviewBorder(), SC_mod_tools_log_index\exportData(), tslib_gmenu_foldout\extProc_finish(), tx_indexed_search_extparse\fileContentParts(), t3lib_TStemplate\generateConfig(), tx_indexedsearch_crawler\generateNextIndexingTime(), tx_lowlevel_cleaner_core\genTree_traverse(), tx_indexedsearch\getDisplayResults(), tslib_cObj\getImgResource(), tslib_cObj\getQuery(), tx_indexedsearch\getResultRows(), t3lib_TCEforms_inline\getSingleField_typeInline(), t3lib_TCEforms\getSingleField_typeInput(), t3lib_TCEforms\getSingleField_typeSelect_multiple(), t3lib_TCEforms\getSingleField_typeSelect_singlebox(), t3lib_stdGraphic\getTextScalFactor(), t3lib_parsehtml\HTMLcleaner(), t3lib_stdGraphic\IMparams(), t3lib_stdGraphic\IMreduceColors(), SC_file_upload\init(), SC_tce_db\init(), SC_wizard_table\init(), t3lib_stdGraphic\init(), tx_indexedsearch_indexer\init(), tx_indexedsearch\initialize(), t3lib_clipboard\initializeClipboard(), SC_alt_db_navframe\initializeTemporaryDBmount(), tx_indexed_search_extparse\initParser(), initSysLog(), t3lib_stdGraphic\inputLevels(), t3lib_userAuth\ipLockClause_remoteIPNumber(), tx_coreupdates_migrateworkspaces\isDraftWorkspaceUsed(), tx_coreupdates_migrateworkspaces\isOldStyleWorkspace(), tx_lowlevel_deleted\main(), tx_lowlevel_cleanflexform\main(), tx_lowlevel_versions\main(), SC_file_list\main(), SC_file_newfolder\main(), SC_db_list\main(), SC_t3lib_thumbs\main(), SC_tslib_showpic\main(), user_wapversion\main_wapversion(), t3lib_stdGraphic\makeBox(), tslib_menu\makeMenu(), t3lib_stdGraphic\makeOutline(), t3lib_stdGraphic\makeShadow(), t3lib_stdGraphic\makeText(), tx_coreupdates_migrateworkspaces\migrateDraftWorkspaceRecordsToWorkspace(), tx_coreupdates_migrateworkspaces\migrateOldRecordsToStage(), modifyHTMLColor(), t3lib_stdGraphic\output(), t3lib_stdGraphic\outputLevels(), user_plaintext\pad(), TSpagegen\pagegenInit(), user_feAdmin\parseValues(), tx_indexedsearch\pi_list_browseresults(), t3lib_TCEmain\process_datamap(), tx_dbal_sqlengine\processAccordingToConfig(), t3lib_sqlengine\processAccordingToConfig(), tx_version_tcemain\processCmdmap(), tslib_content_ImageText\render(), tslib_content_Columns\render(), tslib_content_HorizontalRuler\render(), tslib_content_SearchResult\render(), tslib_content_Form\render(), tx_cssstyledcontent_pi1\render_table(), tx_cssstyledcontent_pi1\render_textpic(), user_plaintext\renderHeader(), SC_db_layout\renderListContent(), tx_em_Tools\renderVersion(), t3lib_TCEmain\setHistory(), t3lib_message_AbstractMessage\setSeverity(), t3lib_formmail\start(), tslib_gifBuilder\start(), recordList\start(), tslib_fe\statistics_init_pagename(), tx_install\suggestFieldDefinition(), t3lib_parsehtml_proc\TS_transform_rte(), t3lib_stdGraphic\v5_blur(), t3lib_stdGraphic\v5_sharpen(), tx_sysaction_task\viewRecordList(), t3lib_userAuthGroup\workspaceVersioningTypeAccess(), and t3lib_userAuthGroup\workspaceVersioningTypeGetClosest().

static t3lib_div::intval_positive ( theInt) [static]

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

Parameters:
integerInteger string to process
Returns:
integer

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

Referenced by user_feAdmin\evalValues(), t3lib_search_livesearch\setLimitCount(), and t3lib_search_livesearch\setStartCount().

static t3lib_div::IPv6Hex2Bin ( hex) [static]

[Describe function...]

Parameters:
[type]$hex: ...
Returns:
[type] ...

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

Referenced by cmpIPv6().

static t3lib_div::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. Usage: 8

Parameters:
stringFilepath to evaluate
Returns:
boolean

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

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 t3lib_div::isAllowedAbsPath ( path) [static]
static t3lib_div::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 1457 of file class.t3lib_div.php.

Referenced by t3lib_htmlmail\setHeaders().

static t3lib_div::isFirstPartOfStr ( str,
partStr 
) [static]

Returns true if the first part of $str matches the string $partStr Usage: 59

Parameters:
stringFull string to check
stringReference 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 1201 of file class.t3lib_div.php.

Referenced by tx_sysaction_task\action_getUserMainDir(), t3lib_extMgm\addService(), tslib_cObj\callUserFunction(), t3lib_Compressor\checkBaseDirectory(), tx_indexedsearch_crawler\checkDeniedSuburls(), t3lib_basicFileFunctions\checkPathAgainstMounts(), tx_indexedsearch_crawler\checkUrl(), t3lib_TCEmain\checkValue_group_select_file(), ux_t3lib_sqlparser\compileWhereClause(), t3lib_TCEmain\copyRecord_fixRTEmagicImages(), SC_view_help\createGlossaryIndex(), t3lib_Compressor\createMergedCssFile(), t3lib_stdGraphic\createTempSubDir(), t3lib_matchCondition_abstract\evaluateConditionCommon(), 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(), tslib_fe\pageErrorHandler(), tx_impexp\processSoftReferences_saveFile(), tx_impexp\processSoftReferences_saveFile_createRelFile(), t3lib_BEfunc\referenceCount(), tx_em_Install\removeExtDirectory(), t3lib_superadmin\removePrefixPathFromList(), tx_rtehtmlarea_pi3\render_clickenlarge(), SC_view_help\render_TOC(), SC_show_item\renderFileInfo(), t3lib_TCEforms\renderWizards(), t3lib_superadmin\rmCachedFiles(), t3lib_install\setArrayValueInLocalconfFile(), t3lib_cache_backend_FileBackend\setCacheDirectory(), t3lib_softrefproc\setTypoLinkPartsElement(), SC_mod_tools_em_index\showExtDetails(), tslib_fe\statistics(), Tx_Extbase_Utility_Localization\translate(), t3lib_parsehtml_proc\TS_images_db(), tx_impexp\unlinkTempFiles(), t3lib_Registry\validateNamespace(), and tx_impexp\verifyFolderAccess().

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

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

static t3lib_div::isValidUrl ( url) [static]

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

Parameters:
string$url,:The URL to be validated
Returns:
boolean Whether the given URL is valid

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

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

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

References $value, and trimExplode().

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

static t3lib_div::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$string,:The string to be used to lowercase the first character
Returns:
string The string with the first character as lowercase

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

References strtolower().

Referenced by t3lib_divTest\lcFirst(), and underscoredToLowerCamelCase().

static t3lib_div::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) Usage: 52

Parameters:
arrayArray of GET parameters to include
Returns:
string

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

References $value, _GET(), getIndpEnv(), and implodeArrayForUrl().

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_db_new\regularNew(), SC_mod_web_ts_index\renderList(), SC_mod_tools_em_index\showExtDetails(), tx_em_Extensions_List\showExtensionsToUpdate(), SC_mod_tools_em_index\showRepositoryUpdateForm(), and tx_em_Translations\translationHandling().

static t3lib_div::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 Usage: 2

Parameters:
stringURL string
arrayArray of key/value pairs for get parameters to add/overrule with. Can be multidimensional.
Returns:
string Output URL with added getParams.

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

References array_merge_recursive_overrule(), and implodeArrayForUrl().

Referenced by tx_em_Install\checkDependencies().

static t3lib_div::llXmlAutoFileName ( fileRef,
language 
) [static]

Returns auto-filename for locallang-XML localizations.

Parameters:
stringAbsolute file reference to locallang-XML file. Must be inside system/global/local extension
stringLanguage key
Returns:
string Returns the filename reference for the language unless error occured (or local mode is used) in which case it will be NULL

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

References revExplode().

Referenced by readLLXMLfile().

static t3lib_div::loadTCA ( table) [static]

Loads the $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.

Usage: 84

Parameters:
stringTable name for which to load the full TCA array part into the global $TCA
Returns:
void

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

References $TCA.

Referenced by t3lib_extMgm\addFieldsToAllPalettesOfField(), t3lib_extMgm\addFieldsToPalette(), t3lib_extMgm\addPiFlexFormValue(), t3lib_extMgm\addPlugin(), t3lib_extMgm\addStaticFile(), t3lib_extMgm\addTCAcolumns(), t3lib_extMgm\addToAllTCAtypes(), t3lib_extMgm\addToInsertRecords(), tx_Workspaces_Service_GridData\calculateChangePercentage(), t3lib_userAuthGroup\checkAuthMode(), t3lib_TCEmain\checkValue(), t3lib_TCEmain\copyRecord(), 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(), SC_mod_user_ws_workspaceForms\fixTCAUserField(), t3lib_TCEmain\fixUniqueInPid(), recordList\generateList(), tslib_fe\getCompressedTCarray(), t3lib_admin\getDBFields(), t3lib_TCEforms\getDefaultRecord(), t3lib_BEfunc\getExcludeFields(), t3lib_TCEmain\getExcludeListArray(), t3lib_BEfunc\getExplicitAuthFieldValues(), t3lib_admin\getFileFields(), t3lib_admin\getGroupFields(), t3lib_BEfunc\getItemLabel(), t3lib_BEfunc\getLabelFromItemlist(), t3lib_TCEforms\getListedFields(), t3lib_TCEforms\getMainFields(), SC_mod_user_ws_workspaceForms\getOwnerUser(), tx_version_tcemain\getPossibleInlineChildTablesOfParentTable(), t3lib_BEfunc\getProcessedValue(), 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(), SC_show_item\init(), t3lib_treeView\init(), t3lib_queryGenerator\init(), t3lib_TCEmain\localize(), t3lib_admin\lostRecords(), SC_wizard_edit\main(), SC_mod_tools_config_index\main(), tx_tstemplateinfo\main(), tx_lowlevel_cleanflexform\main_parseTreeCallBack(), SC_view_help\make_seeAlso(), localRecordList\makeControl(), t3lib_queryGenerator\makeFieldList(), t3lib_queryGenerator\makeOptionList(), 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(), tx_impexp\processSoftReferences(), t3lib_userAuthGroup\recordEditAccessInternals(), transferData\regItem(), t3lib_TCEmain\remapListedDBRecords(), recordHistory\removeFilefields(), SC_db_new_content_el\removeInvalidElements(), SC_view_help\render_Table(), tx_cssstyledcontent_pi1\render_uploads(), recordHistory\renderDiff(), SC_db_layout\renderListContent(), t3lib_transferData\renderRecord(), t3lib_transferData\renderRecordRaw(), tx_rsaauth_sv1\runPasswordEvaluations(), 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 t3lib_div::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) Usage: 30
Parameters:
stringURL / path to prepend full URL addressing to.
Returns:
string

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

References getIndpEnv().

Referenced by tslib_AdminPanel\display(), tslib_AdminPanel\getAdminPanelHeaderData(), tx_openid_sv1\getReturnURL(), t3lib_extjs_ExtDirectApi\getRoutingUrl(), t3lib_utility_Http\redirect(), and t3lib_PageRenderer\renderJsLibraries().

static t3lib_div::logDeprecatedFunction ( ) [static]

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

Returns:
void

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

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

Referenced by tx_coreupdates_installnewsysexts\addExtToList(), tx_coreupdates_installsysexts\addExtToList(), wslib\CLI_main(), Tx_Extbase_Persistence_Query\count(), debug(), debug_ordvalue(), debug_trail(), debugRows(), tslib_fe\fileNameASCIIPrefix(), Tx_Extbase_Reflection_ObjectAccess\getAccessibleProperties(), Tx_Extbase_Reflection_ObjectAccess\getAccessiblePropertyNames(), Tx_Extbase_MVC_Controller_FlashMessages\getAll(), Tx_Extbase_MVC_Controller_FlashMessages\getAllAndFlush(), Tx_Extbase_Dispatcher\getConfigurationManager(), Tx_Extbase_MVC_Web_Request\getContentObjectData(), template\getDynTabMenuJScode(), Tx_Extbase_Dispatcher\getExtbaseFrameworkConfiguration(), Tx_Extbase_Object_Manager\getObject(), Tx_Extbase_Dispatcher\getPersistenceManager(), tslib_fe\getSimulFileName(), Tx_Extbase_Domain_Model_FrontendUser\getUsergroups(), template\helpStyle(), t3lib_TCEforms\helpText_typeFlex(), tslib_menu\includeMakeMenu(), Tx_Fluid_ViewHelpers_RenderFlashMessagesViewHelper\initialize(), SC_index\makeLoginNews(), tx_simulatestatic\makeSimulatedFileNameCompat(), tslib_fe\makeSimulFileName(), print_array(), tslib_fe\printError(), SC_view_help\printItemFlex(), formRender\printPalette(), ux_t3lib_DB\quoteSelectFields(), SC_view_help\render_SingleFlex(), rm_endcomma(), tslib_fe\setSimulReplacementChar(), tslib_fe\simulateStaticDocuments_pEnc_onlyP_proc(), ux_t3lib_DB\sql(), tslib_content_Abstract\stdWrap(), t3lib_htmlmail\t3lib_htmlmail(), template\thisBlur(), t3lib_BEfunc\typo3PrintError(), view_array(), Tx_Extbase_Persistence_Query\withUid(), tx_coreupdates_installnewsysexts\writeNewExtensionList(), and tx_coreupdates_installsysexts\writeNewExtensionList().

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

References getClassName().

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_em_Extensions_List\__construct(), tx_feedit_editpanel\__construct(), SC_mod_user_task_index\__construct(), t3lib_mail_SwiftMailerAdapter\__construct(), WorkspaceSelectorToolbarItem\__construct(), ModuleMenu\__construct(), extDirect_dataProvider_BackendLiveSearch\__construct(), Tx_Fluid_View_StandaloneView\__construct(), tx_em_Extensions_Details\__construct(), t3lib_SpriteManager\__construct(), tx_em_Install\__construct(), tx_em_Connection_ExtDirectServer\__construct(), tx_scheduler_Task\__construct(), Tx_Extbase_Object_Container_Container\__construct(), t3lib_search_livesearch\__construct(), TYPO3backend\__construct(), Tx_Extbase_Persistence_Repository\__construct(), Tx_Fluid_Core_Parser_SyntaxTree_ViewHelperNode\__construct(), Tx_Fluid_View_TemplateView\__construct(), Tx_Extbase_Persistence_Backend\__construct(), t3lib_PageRenderer\__construct(), ux_t3lib_DB\__construct(), Tx_Extbase_Persistence_QueryResult\__wakeup(), Tx_Extbase_Persistence_Query\__wakeup(), tslib_fe\acquirePageGenerationLock(), Tx_Extbase_MVC_Controller_FlashMessages\add(), t3lib_divTest\addInstanceCalledTwoTimesMakesMakeInstanceReturnBothInstancesInAddingOrder(), t3lib_divTest\addInstanceMakesMakeInstanceReturnThatInstance(), Tx_Fluid_Core_Parser_Configuration\addInterceptor(), tx_linkvalidator_Processor\analyzeRecord(), tx_Workspaces_Service_AutoPublish\autoPublishWorkspaces(), wslib\autoPublishWorkspaces(), SC_wizard_tsconfig\browseTSprop(), Tx_Fluid_Compatibility_TemplateParserBuilder\build(), SC_mod_user_ws_workspaceForms\buildEditForm(), tx_rtehtmlarea_acronym\buildJSAcronymArray(), SC_mod_user_ws_workspaceForms\buildNewForm(), t3lib_tree_Tca_DatabaseTreeDataProvider\buildRepresentationForNode(), callUserFunction(), tslib_cObj\callUserFunction(), LiveSearch\checkAccess(), t3lib_extobjbase\checkExtObj(), t3lib_SCbase\checkExtObj(), 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(), 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(), t3lib_TCEmain\copyRecord_fixRTEmagicImages(), t3lib_TCEmain\copyRecord_procBasedOnFieldType(), t3lib_TCEmain\copyRecord_procFilesRefs(), tx_indexedsearch_files\crawler_execute(), tx_indexedsearch_crawler\crawler_execute_type2(), t3lib_cache_Factory\create(), t3lib_formprotection_Factory\createAndStoreInstance(), tx_recycler_controller_ajax\createContent(), user_feAdmin\createFileFuncObj(), tx_rsaauth_php_backend\createNewKeyPair(), tx_rsaauth_cmdline_backend\createNewKeyPair(), 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(), tx_Workspaces_ExtDirect_ActionHandler\deleteSingleRecord(), t3lib_tree_NodeTest\determineFixturesPath(), t3lib_extmgmTest\determineFixturesPath(), tslib_fe\determineId(), SC_mod_web_perm_ajax\dispatch(), 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_indexedsearch_modfunc1\drawTableOfIndexedPages(), tx_em_Database\dumpStaticTables(), t3lib_error_ProductionExceptionHandler\echoExceptionWeb(), tx_feedit_editpanel\editContent(), tx_em_Connection_ExtDirectServer\enableExtension(), tx_dbal_handler_rawmysql\exec_SELECTquery(), tx_dbal_sqlengine\exec_SELECTquery(), t3lib_sqlengine\exec_SELECTquery(), tx_Workspaces_Service_AutoPublishTask\execute(), tx_version_tasks_AutoPublish\execute(), tx_reports_tasks_SystemStatusUpdateTask\execute(), tx_linkvalidator_tasks_Validator\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(), SC_mod_tools_em_index\fetchMetaData(), tx_em_Connection_ExtDirectServer\fetchTranslations(), t3lib_TCEmain\fillInFieldArray(), t3lib_cache_backend_FileBackend\findIdentifiersByTag(), t3lib_cache_backend_FileBackend\findIdentifiersByTags(), t3lib_softrefproc\findRef_images(), t3lib_softrefproc\findRef_TStemplate(), t3lib_softrefproc\findRef_typolink_tag(), fixed_lgd_cs(), Tx_Workspaces_Controller_ReviewController\fullIndexAction(), SC_mod_tools_dbint_index\func_records(), 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(), t3lib_TStemplate\generateConfig(), t3lib_tsparser_ext\generateConfig_constants(), tslib_fe\generatePage_postProcessing(), tx_reports_reports_status_SecurityStatus\getAdminAccountStatus(), t3lib_search_livesearch\getAvailablePageIds(), SC_show_rechis\getButtons(), t3lib_tree_Tca_DatabaseTreeDataProvider\getChildrenOf(), t3lib_tree_Tca_DatabaseTreeDataProvider\getChildrenUidsFromChildrenRelation(), t3lib_tree_Tca_DatabaseTreeDataProvider\getChildrenUidsFromParentRelation(), tx_cms_BackendLayout\getColPosListItemsParsed(), tx_version_tcemain\getCommandMap(), tx_Workspaces_ExtDirect_Server\getCommentsForRecord(), t3lib_PageRenderer\getCompressor(), SC_mod_user_ws_publish\getContent(), 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_Workspaces_Reports_StatusProvider\getElementVersioningOnlyStatus(), tx_reports_reports_status_SecurityStatus\getEncryptionKeyStatus(), t3lib_extFileFunctions\getErrorMessages(), Tx_Install_Updates_Base\getExtensionManagerConnection(), t3lib_utility_Dependency\getFactory(), t3lib_install\getFieldDefinitions_sqlContent_parseTypes(), 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(), tslib_cObj\getImgResource(), tx_reports_reports_status_SecurityStatus\getInstallToolPasswordStatus(), tx_reports_reports_status_SecurityStatus\getInstallToolProtectionStatus(), Tx_Fluid_Core_Parser_Configuration\getInterceptors(), t3lib_TCEforms\getLanguageIcon(), tx_reports_reports_status_ConfigurationStatus\getMemcachedConnectionStatus(), tx_em_Import_MirrorListImporter\getMirrors(), tx_em_Repository_Utility\getMirrors(), tx_impexp\getNewTCE(), tx_scheduler_Execution\getNextCronExecution(), tx_openid_sv1\getOpenIDConsumer(), SC_mod_user_ws_workspaceForms\getOwnerUser(), tx_rtehtmlarea_pi2\getPageRenderer(), template\getPageRenderer(), tslib_fe\getPageRenderer(), t3lib_BEfunc\getPagesTSconfig(), tslib_fe\getPagesTSconfig(), tx_em_Parser_XmlParserFactory\getParserInstance(), tx_reports_reports_status_SystemStatus\getPhpMemoryLimitStatus(), tx_reports_reports_status_ConfigurationStatus\getPhpSafeModeStatus(), tx_reports_reports_status_SystemStatus\getPhpStatus(), Tx_Extbase_Utility_Extension\getPluginNameByAction(), Tx_Extbase_Utility_Extension\getPluginNamespace(), t3lib_BEfunc\getProcessedValue(), t3lib_TCEforms_inline\getRecord(), SC_mod_user_ws_publish\getRecords(), SC_mod_web_perm_index\getRecursiveSelect(), t3lib_utility_Dependency_Factory\getReference(), tx_reports_reports_status_ConfigurationStatus\getReferenceIndexStatus(), tx_em_Settings\getRegisteredRepositories(), tx_install_report_InstallStatus\getRemainingUpdatesStatus(), tx_reports_reports_Status\getReport(), tslib_gifBuilder\getResource(), tx_Workspaces_ExtDirect_Server\getRowDetails(), tx_indexedsearch\getSearchWords(), tx_cms_BackendLayout\getSelectedBackendLayout(), 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_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_Extbase_Utility_Extension\getTargetPidByPlugin(), tx_sysaction_task\getTask(), tx_Workspaces_Service_Tcemain\getTceMain(), t3lib_recordList\getTranslateTools(), tx_Workspaces_Service_Workspaces\getTreeUids(), tslib_eidtools\getTSFE(), tx_reports_reports_status_Typo3Status\getTypo3VersionStatus(), Tx_Extbase_Configuration_BackendConfigurationManager\getTypoScriptSetup(), tx_indexedsearch_crawler\getUidRootLineForClosestTemplate(), getUserObj(), tslib_feUserAuth\getUserTSconf(), template\getVersionSelector(), tx_Workspaces_ExtDirect_Server\getWorkspaceInfos(), wslib_gui\getWorkspaceOverview(), 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(), SC_mod_tools_em_index\importExtFromRep(), 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_mod_user_ws_publish\init(), SC_alt_intro\init(), tx_dbal_handler_openoffice\init(), SC_alt_doc_nodoc\init(), SC_show_rechis\init(), tx_scheduler_Module\init(), SC_alt_file_navframe\init(), SC_file_edit\init(), SC_mod_tools_config_index\init(), SC_alt_db_navframe\init(), SC_alt_menu\init(), SC_wizard_rte\init(), SC_mod_tools_isearch_index\init(), SC_file_rename\init(), SC_mod_tools_dbint_index\init(), SC_wizard_colorpicker\init(), SC_tce_db\init(), SC_file_upload\init(), SC_file_list\init(), SC_browse_links\init(), SC_file_newfolder\init(), SC_wizard_table\init(), SC_mod_user_ws_workspaceForms\init(), language\init(), SC_wizard_tsconfig\init(), SC_db_new\init(), SC_show_item\init(), SC_mod_web_perm_index\init(), SC_mod_tools_em_index\init(), SC_wizard_forms\init(), t3lib_stdGraphic\init(), SC_alt_shortcut\init(), SC_alt_palette\init(), SC_mod_user_ws_index\init(), SC_mod_user_setup_index\init(), tx_indexedsearch_indexer\init(), SC_mod_tools_be_user_index\init(), tslib_fe\initCaches(), TYPO3_tcefile\initClipboard(), SC_tce_db\initClipboard(), tslib_fe\initFEuser(), tx_Workspaces_ExtDirect_MassActionHandler\initFlushData(), tx_recycler_module1\initialize(), tx_linkvalidator_ModFuncReport\initialize(), tx_tstemplateceditor\initialize_editor(), tx_tstemplateanalyzer\initialize_editor(), tx_tstemplateinfo\initialize_editor(), tx_tstemplateobjbrowser\initialize_editor(), Tx_Workspaces_Controller_ReviewController\initializeAction(), t3lib_tsfeBeUserAuth\initializeAdminPanel(), Tx_Fluid_View_StandaloneView\initializeAutoloader(), 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_Core_Bootstrap\initializeObjectManager(), 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(), SC_mod_user_ws_workspaceForms\initTCEForms(), tslib_fe\initTemplate(), tx_em_Install\installExtension(), Tx_Fluid_Compatibility_DocbookGeneratorService\instanciateViewHelper(), Tx_Extbase_Utility_Extension\isActionCacheable(), tx_sysaction_task\JScode(), Tx_Extbase_Utility_Localization\loadTypoScriptLabels(), t3lib_TCEmain\localize(), t3lib_utility_Mail\mail(), tx_rtehtmlarea_SC_select_image\main(), tx_rtehtmlarea_pi1\main(), tx_rtehtmlarea_SC_browse_links\main(), tx_dbal_module1\main(), tx_impexp_task\main(), SC_alt_toplogo\main(), tx_wizardsortpages_webfunc_2\main(), tx_tstemplateceditor\main(), SC_alt_menu_sel\main(), tx_tsconfighelp_module1\main(), SC_alt_topmenu_dummy\main(), SC_mod_web_info_index\main(), SC_mod_web_ts_index\main(), SC_wizard_edit\main(), SC_mod_web_func_index\main(), tx_cms_webinfo_lang\main(), tx_infopagetsconfig_webinfo\main(), tx_cms_webinfo_page\main(), SC_mod_web_view_index\main(), SC_alt_intro\main(), SC_show_rechis\main(), TYPO3_tcefile\main(), SC_alt_menu\main(), SC_wizard_rte\main(), SC_alt_doc_nodoc\main(), SC_browse_links\main(), tx_indexedsearch_modfunc1\main(), tx_belog_webinfo\main(), SC_mod_tools_config_index\main(), SC_wizard_add\main(), SC_file_list\main(), tx_indexedsearch\main(), tx_version_cm1\main(), SC_db_list\main(), tx_tstemplateobjbrowser\main(), tx_tstemplateinfo\main(), SC_alt_db_navframe\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_orphan_records\main_autoFix(), tx_lowlevel_cleanflexform\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(), tx_em_Connection_ExtDirectServer\makeDiff(), SC_alt_doc\makeEditForm(), t3lib_divTest\makeInstanceCalledTwoTimesAfterAddInstanceReturnTwoDifferentInstances(), t3lib_divTest\makeInstanceCalledTwoTimesForNonSingletonClassReturnsDifferentInstances(), t3lib_divTest\makeInstanceCalledTwoTimesForSingletonClassReturnsSameInstance(), t3lib_divTest\makeInstanceCalledTwoTimesForSingletonClassWithPurgeInstancesInbetweenReturnsDifferentInstances(), t3lib_divTest\makeInstancePassesParametersToConstructor(), t3lib_divTest\makeInstanceReturnsClassInstance(), makeInstanceService(), t3lib_divTest\makeInstanceWithEmptyClassNameThrowsException(), 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(), SC_db_new\pagesOnly(), tslib_cObj\parseFunc(), t3lib_TSparser_TSconfig\parseWithConditions(), recordHistory\performRollback(), t3lib_divTest\pngToGifByImagemagickFixesPermissionsOfConvertedFile(), t3lib_positionMap\positionTree(), SC_alt_shortcut\preinit(), t3lib_DB\prepare_SELECTquery(), ux_t3lib_DB\prepare_SELECTquery(), t3lib_TCEmain\printLogErrorMessages(), t3lib_TCEmain\process_datamap(), t3lib_TCEforms_Suggest\processAjaxRequest(), tx_Workspaces_ExtDirect_MassActionHandler\processData(), SC_alt_doc\processData(), SC_mod_user_ws_workspaceForms\processData(), clickMenu\processingByExtClassArray(), tslib_fe\processOutput(), Tx_Workspaces_Controller_AbstractController\processRequest(), tx_impexp\processSoftReferences(), t3lib_fullsearch\procesStoreControl(), t3lib_divTest\purgeInstancesDropsAddedInstance(), t3lib_fullsearch\queryMaker(), readLLPHPfile(), readLLXMLfile(), t3lib_divTest\readPngGifFixesPermissionsOfConvertedFile(), tx_em_Settings\registerDefaultRepository(), tslib_mediaWizardManager\registerMediaWizardProvider(), tx_scheduler_Task\registerRecurringExecution(), tx_scheduler_Task\registerSingleExecution(), t3lib_TCEmain\remapListedDBRecords_procDBRefs(), tslib_content_ContentTable\render(), tslib_content_Content\render(), tslib_content_HierarchicalMenu\render(), tslib_content_ImageText\render(), tslib_content_Records\render(), tslib_content_SearchResult\render(), tslib_content_Template\render(), tslib_content_FluidTemplate\render(), Tx_Fluid_ViewHelpers_Be_TableListViewHelper\render(), TYPO3backend\render(), tx_linkvalidator_ModFuncReport\render(), tx_cssstyledcontent_pi1\render_textpic(), SC_view_help\render_TOC(), tx_sysaction_task\renderActionList(), recordHistory\renderDiff(), SC_show_item\renderFileInfo(), tx_saltedpasswords_emconfhelper\renderFlashMessage(), SC_mod_user_setup_index\renderLanguageSelect(), SC_db_layout\renderListContent(), 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_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_rsaauth_sv1\runPasswordEvaluations(), 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\sendToNextStageExecute(), tx_Workspaces_ExtDirect_ActionHandler\sendToPrevStageExecute(), tx_Workspaces_ExtDirect_ActionHandler\sendToSpecificStageExecute(), user_feAdmin\setCObjects(), tx_impexp\setFlexFormRelations(), t3lib_cache_frontend_PhpFrontendTest\setPassesPhpSourceCodeTagsAndLifetimeToBackend(), tx_em_Settings\setRegisteredRepositories(), tx_scheduler_Task\setScheduler(), t3lib_divTest\setSingletonInstanceCalledTwoTimesMakesMakeInstanceReturnLastSetInstance(), t3lib_divTest\setSingletonInstanceMakesMakeInstanceReturnThatInstance(), t3lib_cache_backend_PdoBackendTest\setThrowsExceptionIfNoFrontEndHasBeenSet(), t3lib_matchCondition_frontendTest\setUp(), t3lib_matchCondition_backendTest\setUp(), tx_saltedpasswords_salts_blowfishTest\setUp(), tx_saltedpasswords_salts_md5Test\setUp(), tx_saltedpasswords_salts_phpassTest\setUp(), tx_indexedsearch_indexerTest\setUp(), t3lib_cache_backend_FileBackendTest\setUp(), t3lib_cache_backend_DbBackendTest\setUpBackend(), t3lib_cache_backend_PdoBackendTest\setUpBackend(), SC_mod_tools_em_index\showExtDetails(), SC_mod_tools_em_index\showRepositoryUpdateForm(), 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(), tx_dbal_handler_rawmysql\sql_query(), tx_dbal_sqlengine\sql_query(), t3lib_sqlengine\sql_query(),