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 GPvar ($var, $strip=0)
static GParrayMerged ($var)
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 ($string, $origChars, $preStr='...')
static fixed_lgd_pre ($string, $chars)
static fixed_lgd_cs ($string, $chars, $appendString='...')
static breakTextForEmail ($str, $implChar="\n", $charWidth=76)
static breakLinesForEmail ($str, $implChar="\n", $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 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 danish_strtoupper ($string)
static convUmlauts ($str)
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 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 ($delim, $string, $count=0)
static trimExplode ($delim, $string, $removeEmptyValues=false, $limit=0)
static uniqueArray (array $valueArray)
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 csvValues (array $row, $delim=',', $quote='"')
static array2json (array $jsonArray)
static removeDotsFromTS (array $ts)
static get_tag_attributes ($tag)
static split_tag_attributes ($tag)
static implodeAttributes (array $arr, $xhtmlSafe=FALSE, $dontOmitBlankAttribs=FALSE)
static implodeParams (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 ($file)
static writeFileToTypo3tempDir ($filepath, $content)
static mkdir ($theNewFolder)
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 debug_ordvalue ($string, $characters=100)
static view_array ($array_in)
static print_array ($array_in)
static debug ($var='', $brOrHeader=0)
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 makeInstanceClassName ($className)
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 sysLog ($msg, $extKey, $severity=0)
static devLog ($msg, $extKey, $severity=0, $dataVar=FALSE)
static deprecationLog ($msg)
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)

Detailed Description

Definition at line 232 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:
string Optional 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 299 of file class.t3lib_div.php.

References $value.

Referenced by tslib_fe::ADMCMD_preview(), Tx_Extbase_MVC_Web_Routing_UriBuilder::buildBackendUri(), tslib_AdminPanel::display(), t3lib_BEfunc::displayWarningMessages(), SC_alt_main::editPageHandling(), tx_reports_reports_status_SecurityStatus::executeAdminCommand(), SC_mod_tools_dbint_index::func_records(), t3lib_extjs_ExtDirectApi::getAPI(), tslib_fe::getConfigArray(), t3lib_BEfunc::getFuncCheck(), t3lib_BEfunc::getFuncInput(), t3lib_BEfunc::getFuncMenu(), tx_felogin_pi1::getPreserveGetVars(), tslib_cObj::getQueryArguments(), SC_show_item::init(), tx_tstemplateobjbrowser::main(), tx_tstemplateanalyzer::main(), SC_logomenu::main(), SC_file_list::main(), SC_db_list::main(), SC_alt_clickmenu::main(), SC_mod_tools_config_index::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_Extbase_MVC_Web_Routing_UriBuilder_testcase::setUp(), Tx_Extbase_Configuration_BackendConfigurationManager_testcase::setUp(), tx_indexedsearch_modfunc2::showStats(), t3lib_userAuth::start(), SC_alt_main::startModule(), template::template(), and SC_mod_tools_em_index::translationHandling().

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

Writes input value to $_GET Usage: 2

Parameters:
mixed Array to write to $_GET. Values should NOT be escaped at input time (but will be escaped before writing according to TYPO3 standards).
string Alternative key; If set, this will not set the WHOLE GET array, but only the key in it specified by this value!
Returns:
void

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

References $GLOBALS, and $key.

Referenced by tslib_fe::ADMCMD_preview(), Tx_Extbase_MVC_Web_Routing_UriBuilder_testcase::buildBackendUriConvertsDomainObjectsAfterArgumentsHaveBeenMerged(), Tx_Extbase_MVC_Web_Routing_UriBuilder_testcase::buildBackendUriCreatesAbsoluteUrisIfSpecified(), Tx_Extbase_MVC_Web_Routing_UriBuilder_testcase::buildBackendUriKeepsModuleQueryParametersIfAddQueryStringIsNotSet(), Tx_Extbase_MVC_Web_Routing_UriBuilder_testcase::buildBackendUriKeepsQueryParametersIfAddQueryStringIsSet(), Tx_Extbase_MVC_Web_Routing_UriBuilder_testcase::buildBackendUriMergesAndOverrulesQueryParametersWithArguments(), Tx_Extbase_MVC_Web_Routing_UriBuilder_testcase::buildBackendUriRemovesSpecifiedQueryParametersIfArgumentsToBeExcludedFromQueryStringIsSet(), Tx_Extbase_MVC_Web_Routing_UriBuilder_testcase::buildBackendUriRespectsSection(), tslib_fe::getConfigArray(), Tx_Extbase_Configuration_BackendConfigurationManager_testcase::getCurrentPageIdReturnsPageIdFromGet(), Tx_Extbase_Configuration_BackendConfigurationManager_testcase::getCurrentPageIdReturnsPageIdFromPost(), tslib_fe::mergingWithGetVars(), Tx_Extbase_MVC_Web_Routing_UriBuilder_testcase::tearDown(), and Tx_Extbase_Configuration_BackendConfigurationManager_testcase::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. This function substitutes t3lib_div::GPvar() 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:
string GET/POST var to return
Returns:
mixed POST var named $var and if not set, the GET var of the same name.

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

References $value.

Referenced by tx_t3editor::__construct(), WorkspaceSelector::__construct(), tx_sysaction::action_t1_createUpdateBeUser(), tslib_fe::ADMCMD_preview(), Tx_Extbase_Dispatcher::callModule(), t3lib_userAuth::checkAuthentication(), SC_mod_tools_em_index::checkDBupdates(), t3lib_SCbase::checkExtObj(), t3lib_extobjbase::checkExtObj(), tx_install::checkPassword(), SC_mod_tools_log_index::checkUpload(), t3lib_TCEmain::checkValue_flex(), SC_mod_web_ts_index::clearCache(), tx_opendocs::closeDocument(), SC_mod_tools_be_user_index::compareUsers(), tx_recycler_controller_ajax::createContent(), SC_mod_web_ts_index::createTemplate(), tslib_fe::determineId(), t3lib_matchCondition_backend::determinePageId(), user_feAdmin::displayCreateScreen(), user_feAdmin::displayEditForm(), recordHistory::displaySettings(), tx_version_cm1::displayWorkspaceOverview(), tx_version_cm1::displayWorkspaceOverview_allStageCmd(), Tx_Extbase_Persistence_Storage_Typo3DbBackend::doLanguageAndWorkspaceOverlay(), tx_feedit_editpanel::editContent(), tx_feedit_editpanel::editIcons(), tx_feedit_editpanel::editPanelLinkWrap(), tx_rtehtmlarea_select_image::expandFolder(), localPageTree::ext_tree(), SC_mod_tools_em_index::extensionList_import(), tslib_fe::fetch_the_id(), t3lib_userAuth::fetchUserSessionFromDB(), SC_mod_tools_dbint_index::func_filesearch(), SC_mod_tools_dbint_index::func_refindex(), tx_install::generateConfigForm(), wsol_preview::generateUrls(), SC_mod_tools_em_index::getButtons(), SC_mod_tools_log_index::getButtons(), Tx_Extbase_Configuration_BackendConfigurationManager::getCurrentPageId(), tslib_cObj::getData(), tslib_AdminPanel::getEditModule(), tslib_cObj::getFieldDefaultValue(), SC_mod_tools_em_index::getFuncMenu(), tslib_feUserAuth::getLoginFormData(), t3lib_userAuth::getLoginFormData(), tx_scheduler_Module::getModuleContent(), Tx_Extbase_Dispatcher::getModuleFunctionControllerAction(), SC_mod_user_ws_workspaceForms::getModuleParameters(), t3lib_fullsearch::getQueryResultCode(), tx_openid_sv1::getReturnURL(), tx_openid_sv1::getSignedClaimedOpenIDIdentifier(), tx_openid_sv1::getSignedParameter(), t3lib_TCEforms::getSingleField(), t3lib_matchCondition_abstract::getVariableCommon(), wslib_gui::getWorkspaceOverview(), t3lib_extobjbase::handleExternalFunctionValue(), tx_rtehtmlarea_dam_browse_media::imageInsert(), SC_wizard_tsconfig::init(), SC_wizard_table::init(), SC_wizard_rte::init(), SC_wizard_list::init(), SC_wizard_forms::init(), SC_wizard_edit::init(), SC_wizard_colorpicker::init(), SC_wizard_add::init(), SC_view_help::init(), SC_tce_db::init(), tx_rtehtmlarea_parse_html::init(), tx_rtehtmlarea_user::init(), tx_rtehtmlarea_dam_browse_media::init(), tx_rtehtmlarea_dam_browse_links::init(), tx_rtehtmlarea_browse_links::init(), user_feAdmin::init(), SC_db_new_content_el::init(), SC_db_layout::init(), SC_move_el::init(), SC_mod_user_ws_publish::init(), SC_mod_tools_em_index::init(), SC_file_upload::init(), SC_file_rename::init(), SC_file_newfolder::init(), SC_file_list::init(), SC_file_edit::init(), SC_db_new::init(), SC_db_list::init(), TYPO3_tcefile::init(), browse_links::init(), SC_browse_links::init(), SC_alt_palette::init(), SC_alt_menu::init(), SC_alt_file_navframe::init(), SC_alt_doc::init(), SC_alt_db_navframe::init(), SC_alt_clickmenu::init(), clickMenu::init(), t3lib_SCbase::init(), SC_mod_web_view_index::init(), SC_mod_web_ts_index::init(), SC_mod_tools_be_user_index::init(), SC_mod_web_perm_index::init(), SC_index::init(), tx_openid_sv1::initAuth(), t3lib_frontendedit::initConfigOptions(), tslib_fe::initFEuser(), tslib_AdminPanel::initialize(), t3lib_treeView::initializePositionSaving(), t3lib_folderTree::initializePositionSaving(), tx_rtehtmlarea_select_image::initVariables(), tx_rtehtmlarea_browse_links::initVariables(), tx_rtehtmlarea_select_image::insertImage(), tx_rtehtmlarea_select_image::insertMagicImage(), tx_install::isTTF(), tx_rtehtmlarea_dam_browse_media::isValid(), tx_rtehtmlarea_dam_browse_links::isValid(), tslib_fe::jumpUrl(), SC_alt_doc::localizationRedirect(), tx_install::loginForm(), SC_logout::logout(), SC_wizard_colorpicker::main(), tx_wizardsortpages_webfunc_2::main(), tx_wizardcrpages_webfunc_2::main(), tx_tstemplateobjbrowser::main(), tx_tstemplateinfo::main(), tx_tstemplateceditor::main(), tx_rtehtmlarea_parse_html::main(), tx_openid_eID::main(), tx_indexedsearch_modfunc1::main(), tx_impexp_modfunc1::main(), tx_impexp_clickmenu::main(), tx_felogin_pi1::main(), tx_extrapagecmoptions::main(), SC_show_item::main(), wsol_preview::main(), SC_mod_user_ws_workspaceForms::main(), recordHistory::main(), SC_browser::main(), SC_alt_mod_frameset::main(), SC_alt_clickmenu::main(), tx_version_cm1::main(), SC_mod_tools_config_index::main(), SC_mod_tools_log_index::main(), tx_dbal_module1::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_dam_browse_media::main_rte(), tx_rtehtmlarea_user::main_user(), tx_recycler_controller_ajax::mapCommand(), SC_db_layout::menuConfig(), SC_mod_tools_em_index::menuConfig(), SC_file_list::menuConfig(), SC_db_list::menuConfig(), t3lib_SCbase::menuConfig(), tx_version_cm1::menuConfig(), SC_mod_tools_dbint_index::menuConfig(), SC_mod_tools_config_index::menuConfig(), SC_mod_tools_isearch_index::menuConfig(), SC_mod_tools_be_user_index::menuConfig(), SC_mod_tools_log_index::menuConfig(), SC_mod_web_perm_index::menuConfig(), SC_mod_user_ws_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::printCachedInfo(), tx_dbal_module1::printLogMgm(), tx_dbal_module1::printSqlCheck(), webPageTree::printTree(), filelistFolderTree::printTree(), tx_t3editor_TSrefLoader::processAjaxRequest(), tx_t3editor_codecompletion::processAjaxRequest(), t3lib_TCEforms_Suggest::processAjaxRequest(), t3lib_TCEforms_inline::processAjaxRequest(), t3lib_TCEforms_inline::processAjaxRequestConstruct(), SC_mod_user_ws_workspaceForms::processData(), SC_alt_doc::processData(), user_feAdmin::procesSetFixed(), SC_mod_tools_log_index::processPresets(), t3lib_modSettings::processStoreControl(), t3lib_fullsearch::procesStoreControl(), recordHistory::recordHistory(), template::redirectUrls(), Tx_Fluid_ViewHelpers_Be_TableListViewHelper::render(), Tx_Fluid_ViewHelpers_Be_PagePathViewHelper::render(), Tx_Fluid_ViewHelpers_Be_PageInfoViewHelper::render(), tx_sysaction::renderActions(), tx_rtehtmlarea_dam_browse_media::renderFileList(), SC_mod_tools_em_index::requestInstallExtensions(), recordHistory::resolveShUid(), tx_t3editor::saveCode(), tx_t3editor::saveCodeTsTemplateInfo(), tslib_AdminPanel::saveConfigOptions(), tslib_cObj::SEARCHRESULT(), user_feAdmin::sendInfoMail(), SC_mod_tools_em_index::showExtDetails(), tx_felogin_pi1::showLogin(), SC_mod_user_setup_index::simulateUser(), recordList::start(), t3lib_userAuth::start(), tslib_fe::statistics(), SC_mod_tools_be_user_index::switchUser(), tx_rtehtmlarea_select_image::TBE_dragNDrop(), browse_links::TBE_dragNDrop(), SC_mod_web_ts_index::templateMenu(), alt_menu_functions::topMenu(), SC_mod_tools_em_index::tsStyleConfigForm(), and tx_install::tx_install().

static t3lib_div::_GPmerged ( parameter  )  [static]

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

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

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

Referenced by Tx_Extbase_MVC_Web_RequestBuilder::build(), tx_scheduler_Module::getModuleContent(), Tx_Extbase_Dispatcher::resolveControllerAction(), 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:
string Optional 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 316 of file class.t3lib_div.php.

References $value.

Referenced by SC_mod_web_perm_ajax::__construct(), tslib_fe::ADMCMD_preview(), tx_felogin_pi1::changePassword(), SC_mod_tools_em_index::checkClearCache(), SC_mod_tools_em_index::checkDependencies(), SC_mod_tools_em_index::checkUploadFolder(), SC_wizard_colorpicker::colorImage(), ShortcutMenu::createAjaxShortcut(), ShortcutMenu::deleteAjaxShortcut(), SC_mod_user_ws_index::execute(), tslib_fe::fe_tce(), tslib_cObj::FORM(), SC_mod_web_ts_index::getButtons(), tslib_feUserAuth::getLoginFormData(), t3lib_userAuth::getLoginFormData(), tslib_cObj::getQueryArguments(), SC_mod_tools_log_index::importData(), tx_tstemplateobjbrowser::main(), tx_tstemplateinfo::main(), tx_tstemplateceditor::main(), tx_rtehtmlarea_pi1::main(), tx_indexedsearch_modfunc1::main(), SC_file_list::main(), SC_db_list::main(), SC_mod_user_setup_index::main(), SC_mod_tools_config_index::main(), SC_mod_user_ws_index::moduleContent_publish(), t3lib_queryGenerator::procesData(), tx_version_cm1::publishAction(), tx_lowlevel_cleaner::quickDBlookUp(), SC_mod_tools_em_index::requestInstallExtensions(), tx_t3editor::saveCodeTsTemplateInfo(), tx_reports_reports_Status::saveCollapseState(), ModuleMenu::saveMenuState(), tslib_cObj::SEARCHRESULT(), tslib_fe::sendFormmail(), ShortcutMenu::setAjaxShortcut(), Tx_Extbase_Configuration_BackendConfigurationManager_testcase::setUp(), WorkspaceSelector::setWorkspace(), SC_mod_tools_em_index::showExtDetails(), tx_felogin_pi1::showForgot(), SC_mod_user_setup_index::storeIncomingData(), SC_mod_tools_em_index::translationHandling(), SC_mod_tools_em_index::tsStyleConfigForm(), tx_version_cm1::versioningMgm(), and tx_version_cm1::workspaceMgm().

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:
array Multidimensional input array, (REFERENCE!)
Returns:
array

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

static t3lib_div::array2json ( array $  jsonArray  )  [static]

Creates recursively a JSON literal from a multidimensional associative array. Uses native function of PHP >= 5.2.0

Parameters:
array $jsonArray: The array to be transformed to JSON
Returns:
string JSON string
Deprecated:
since TYPO3 4.3, use PHP native function json_encode() instead, will be removed in TYPO3 4.5

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

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:
array The input PHP array with any kind of data; text, binary, integers. Not objects though.
string tag-prefix, eg. a namespace prefix like "T3:"
integer Current recursion level. Don't change, stay at zero!
string Alternative document tag. Default is "phparray".
integer If 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 chr(9) (TAB) is used
array Options 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')
string Stack data. Don't touch.
Returns:
string An XML string made from the input content in the array.
See also:
xml2array()

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

References $content.

Referenced by 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:
array The input PHP array with any kind of data; text, binary, integers. Not objects though.
string Alternative document tag. Default is "phparray".
array Options for the compilation. See array2xml() for description.
string Forced charset to prologue
Returns:
string An XML string made from the input content in the array.
See also:
xml2array(),array2xml()

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

References $GLOBALS.

Referenced by SC_wizard_table::getConfigCode(), and SC_wizard_forms::getConfigCode().

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:
array First array
array Second array
Returns:
array Merged result.

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

Referenced by t3lib_TCEmain::_ACTION_FLEX_FORMdata(), tslib_feUserAuth::fetchGroupData(), and t3lib_TCEforms_Suggest::processAjaxRequest().

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:
array First array
array Second array, overruling the first array
boolean If set, keys that are NOT found in $arr0 (first array) will not be set. Thus only existing value can/will be overruled from second array.
boolean If 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 1964 of file class.t3lib_div.php.

Referenced by t3lib_TCEforms_Suggest_DefaultReceiver::__construct(), Tx_Extbase_MVC_Web_Routing_UriBuilder::buildBackendUri(), t3lib_TCEmain::checkValue_flex(), t3lib_tsStyleConfig::ext_mergeIncomingWithExisting(), t3lib_TCEmain::fillInFieldArray(), tslib_fe::getConfigArray(), Tx_Extbase_Configuration_AbstractConfigurationManager::getFrameworkConfiguration(), t3lib_BEfunc::getModTSconfig(), t3lib_BEfunc::getPagesTSconfig(), t3lib_TCEmain::getTableEntries(), t3lib_BEfunc::getTCEFORM_TSconfig(), t3lib_extobjbase::incLocalLang(), language::includeLLFile(), tx_belog_webinfo::localLang(), tx_rtehtmlareaapi::main(), tx_rtehtmlarea_user::main_user(), Tx_Extbase_Configuration_FrontendConfigurationManager::mergeConfigurationPartFromFlexformIntoFrameworkConfiguration(), t3lib_TStemplate::mergeConstantsFromPageTSconfig(), tslib_fe::mergingWithGetVars(), t3lib_TCEforms::overrideFieldConf(), Tx_Extbase_Configuration_FrontendConfigurationManager::overrideStoragePidIfStartingPointIsSet(), tslib_pibase::pi_linkTP_keepPIvars(), tslib_pibase::pi_setPiVarDefaults(), t3lib_TCEmain::process_cmdmap(), t3lib_TCEmain::process_datamap(), t3lib_TCEforms_Suggest::processAjaxRequest(), Tx_Extbase_Dispatcher::resolveControllerAction(), t3lib_BEfunc::RTEsetup(), language::sL(), template::template(), and Tx_Extbase_MVC_Web_Routing_UriBuilder::uriFor().

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

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

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

static t3lib_div::breakLinesForEmail ( str,
implChar = "\n",
charWidth = 76 
) [static]

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

Parameters:
string The string to break up
string The string to implode the broken lines with (default/typically
)
integer The line length
Returns:
string
See also:
breakTextForEmail()

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

References $lines.

Referenced by user_plaintext::breakLines().

static t3lib_div::breakTextForEmail ( str,
implChar = "\n",
charWidth = 76 
) [static]

Breaks up the text for emails Usage: 1

Parameters:
string The string to break up
string The string to implode the broken lines with (default/typically
)
integer The line length
Deprecated:
since TYPO3 4.1 - Use PHP function wordwrap()
Returns:
string

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

References $lines.

static t3lib_div::calcParenthesis ( string  )  [static]

Calculates the input with parenthesis levels Usage: 2

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

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

References $value.

Referenced by tslib_cObj::stdWrap().

static t3lib_div::calcPriority ( string  )  [static]

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

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

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

static t3lib_div::calculateCHash ( params  )  [static]

Calculates the cHash based on the provided parameters

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

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

Referenced by 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:
string Function/Method reference, '[file-reference":"]["&"]class/function["->"method-name]'. You can prefix this reference with "[file-reference]:" and t3lib_div::getFileAbsFileName() will then be used to resolve the filename and subsequently include it by "require_once()" which means you don't have to worry about including the class file either! Example: "EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL". Finally; you can prefix the class name with "&" if you want to reuse a former instance of the same object call ("singleton").
mixed Parameters to be pass along (typically an array) (REFERENCE!)
mixed Reference to be passed along (typically "$this" - being a reference to the calling object) (REFERENCE!)
string Required prefix of class or function name
integer Error 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 4742 of file class.t3lib_div.php.

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

Referenced by t3lib_userAuthGroup::calcPerms(), tx_felogin_pi1::changePassword(), tslib_fe::checkAlternativeIdMethods(), t3lib_TCEmain::clear_cache(), t3lib_TCEmain::clear_cacheCmd(), tslib_fe::connectToDB(), tslib_fe::contentStrReplace(), t3lib_timeTrack::debug_typo3PrintError(), tslib_fe::determineId(), t3lib_frontendedit::editAction(), tslib_AdminPanel::extGetFeAdminValue(), t3lib_TCEforms::formatValue(), 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(), t3lib_TCEforms::getSingleField_typeUser(), t3lib_BEfunc::getUpdateSignalCode(), tslib_fe::headerNoCache(), tslib_fe::hook_eofe(), t3lib_parsehtml::HTMLcleaner(), t3lib_TStemplate::includeStaticTypoScriptSources(), tslib_fe::initFEuser(), tslib_fe::isOutputting(), t3lib_userAuth::logoff(), tx_tstemplateinfo::main(), localRecordList::makeControl(), tslib_fe::makeSimulFileName(), tslib_fe::pageErrorHandler(), t3lib_TSparser::parseSub(), tslib_fe::processOutput(), tx_felogin_pi1::processRedirect(), t3lib_transferData::procItems(), t3lib_TCEforms::procItems(), t3lib_userAuthGroup::recordEditAccessInternals(), t3lib_TCEforms_inline::renderForeignRecordHeader(), t3lib_TCEforms_Suggest_DefaultReceiver::renderRecord(), SC_mod_user_setup_index::renderUserSetup(), t3lib_TCEforms::renderWizards(), t3lib_fullsearch::resultRowDisplay(), tslib_AdminPanel::saveConfigOptions(), 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(), SC_mod_tools_em_index::tsStyleConfigForm(), tx_cms_layout::tt_content_drawHeader(), tx_cms_layout::tt_content_drawItem(), tslib_cObj::typoLink(), webPageTree::wrapIcon(), and webPageTree::wrapTitle().

static t3lib_div::camelCaseToLowerCaseUnderscored ( string  )  [static]

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

Parameters:
string $string: String to be converted to lowercase underscore
Returns:
string lowercase_and_underscored_string

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

Referenced by t3lib_div_testcase::canConvertFromCamelCaseToLowerCaseUnderscored(), Tx_Fluid_Compatibility_DocbookGeneratorService::getClassNamesInNamespace(), Tx_Extbase_Utility_Localization::initializeLocalization(), and Tx_Fluid_ViewHelpers_Uri_ResourceViewHelper::render().

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:
string Query-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 4255 of file class.t3lib_div.php.

References $GLOBALS.

Referenced by tslib_fe::cHashParams(), tslib_fe::makeCacheHash(), and tx_indexedsearch_indexer::makeCHash().

static t3lib_div::cleanOutputBuffers (  )  [static]

Ends and cleans all output buffers

Returns:
void

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

Referenced by SC_mod_tools_em_index::translationHandling().

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

Client Browser Information Usage: 4

Parameters:
string Alternative 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 3893 of file class.t3lib_div.php.

Referenced by tx_rtehtmlarea_select_image::getAllowedItems(), tx_rtehtmlarea_dam_browse_media::init(), 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:
string The current remote IP address for instance, typ. REMOTE_ADDR
string A 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 867 of file class.t3lib_div.php.

References $val.

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 $baseIP is the current remote IP address for instance, typ. REMOTE_ADDR
string $list is 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 656 of file class.t3lib_div.php.

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

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

Match IPv4 number with list of numbers with wildcard

Parameters:
string $baseIP is the current remote IP address for instance, typ. REMOTE_ADDR
string $list is 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 677 of file class.t3lib_div.php.

References $val.

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

Match IPv6 address with a list of IPv6 prefixes

Parameters:
string $baseIP is the current remote IP address for instance
string $list is a comma-list of IPv6 prefixes, could also contain IPv4 addresses
Returns:
boolean True if an baseIP matches any prefix

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

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:
string Minimum 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 1010 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:
string List of variable/key names
array Array from where to get values based on the keys in $varList
boolean If 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 1863 of file class.t3lib_div.php.

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

static t3lib_div::convertMicrotime ( microtime  )  [static]

Returns microtime input to milliseconds Usage: 2

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

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

static t3lib_div::convUmlauts ( str  )  [static]

Change umlaut characters to plain ASCII with normally two character target Only known characters will be converted, so don't expect a result for any character.

ä => ae, Ö => Oe

Parameters:
string String to convert.
Deprecated:
since TYPO3 4.1 - Works only for western europe single-byte charsets! Use t3lib_cs::specCharsToASCII() instead!
Returns:
string

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

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:
array Input array of values
string Delimited, default is comman
string Quote-character to wrap around the values.
Returns:
string A single line of CSV

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

References $row.

Referenced by t3lib_fullsearch::csvValues(), and localRecordList::setCsvRow().

static t3lib_div::danish_strtoupper ( string  )  [static]

strtoupper which converts danish (and other characters) characters as well Usage: 0

Parameters:
string String to process
Returns:
string
Deprecated:
since TYPO3 3.5 - Use t3lib_cs::conv_case() instead or for HTML output, wrap your content in ...)

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

References $value, and strtoupper().

static t3lib_div::debug ( var = '',
brOrHeader = 0 
) [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:
mixed Variable to print
mixed If the parameter is a string it will be used as header. Otherwise number of break tags to apply after (positive integer) or before (negative integer) the output.
Returns:
void

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

References debug().

Referenced by debug(), t3lib_DB::explain(), tx_install::generateConfigForm(), tx_install::init(), Tx_Fluid_ViewHelpers_DebugViewHelper::render(), user_IProcFuncTest(), and user_keepRolloverAtOnClick().

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:
string String to show ASCII value for
integer Number of characters to show
Returns:
string The string with ASCII values in separated by a space char.

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

static t3lib_div::debug_trail (  )  [static]

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

Returns:
string

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

Referenced by t3lib_DB::debug(), and t3lib_DB::explain().

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:
mixed Array of arrays with similar keys
string Table header
boolean If TRUE, will return content instead of echo'ing out.
Returns:
void Outputs to browser.

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

References $key, and debug().

Referenced by t3lib_DB::explain().

static t3lib_div::deHSCentities ( str  )  [static]

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

Parameters:
string String 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 1380 of file class.t3lib_div.php.

Referenced by t3lib_parsehtml::bidir_htmlspecialchars(), tslib_cObj::FORM(), 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(), language::sL(), and tslib_cObj::stdWrap().

static t3lib_div::deprecationLog ( msg  )  [static]

Writes a message to the deprecation log.

Parameters:
string Message (in English).
Returns:
void

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

Referenced by t3lib_TCEforms_inline::checkConfiguration(), tslib_AdminPanel::extGetFeAdminValue(), tslib_cObj::getData(), language::includeLLFile(), t3lib_matchCondition_frontend::initializeDeprecatedHooks(), tslib_fe::logDeprecatedTyposcript(), t3lib_userAuth::redirect(), tslib_AdminPanel::saveConfigOptions(), and language::sL().

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:
string Message (in english).
string Extension key (from which extension you are calling the log)
integer Severity: 0 is info, 1 is notice, 2 is warning, 3 is fatal error, -1 is "OK" message
array Additional data you want to pass to the logger.
Returns:
void

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

Referenced by t3lib_modSettings::addToStoreList(), t3lib_modSettings::addToStoreListFromPrefix(), tx_sv_auth::authUser(), t3lib_userAuth::checkAuthentication(), t3lib_userAuth::compareUident(), t3lib_userAuth::createUserSession(), t3lib_DB::debug_check_recordset(), t3lib_svbase::devLog(), template::endPage(), tx_scheduler_TestTask::execute(), tslib_feUserAuth::fetchGroupData(), t3lib_userAuth::fetchUserSession(), tx_sv_auth::getGroups(), tx_sv_auth::getUser(), t3lib_error_ErrorHandler::handleError(), tslib_fe::initUserGroups(), t3lib_autoloader::logLoadingFailure(), t3lib_userAuth::logoff(), t3lib_modSettings::processStoreControl(), t3lib_userAuth::setAndSaveSessionData(), t3lib_userAuth::setSessionCookie(), t3lib_modSettings::setStoreList(), t3lib_userAuth::start(), t3lib_formmail::start(), tx_saltedpasswords_sv1::updatePassword(), tx_saltedpasswords_sv1::writeLog(), tx_openid_sv1::writeLog(), 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:
string Directory name / path
Returns:
string Processed input value. See function description.

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

Referenced by SC_alt_main::generateJScode(), and tx_simulatestatic::hookInitConfig().

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:
string Content to encode
string Encoding type: "base64" or "quoted-printable". Default value is "quoted-printable".
string Charset used for encoding
Returns:
string The encoded string

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

Referenced by t3lib_htmlmail::add_header(), t3lib_div_testcase::areQuestionMarksEncodedInQuotedPrintableMailHeader(), t3lib_div_testcase::areWhitespacesEncodedInQuotedPrintableMailHeader(), 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:
string comma-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 938 of file class.t3lib_div.php.

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:
string GETvars string
boolean If 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 1837 of file class.t3lib_div.php.

Referenced by ShortcutMenu::createAjaxShortcut(), ShortcutMenu::initShortcuts(), and SC_db_new_content_el::removeInvalidElements().

static t3lib_div::fixed_lgd ( string,
origChars,
preStr = '...' 
) [static]

Truncates string. Returns a new string of max. $chars length. If the string is longer, it will be truncated and appended with '...'. Usage: 39

Parameters:
string string to truncate
integer must be an integer with an absolute value of at least 4. if negative the string is cropped from the right end.
string String to append to the output if it is truncated, default is '...'
Returns:
string new string
Deprecated:
since TYPO3 4.1 - Works ONLY for single-byte charsets! Use t3lib_div::fixed_lgd_cs() instead
See also:
fixed_lgd_pre()

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

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:
string string to truncate
integer must be an integer with an absolute value of at least 4. if negative the string is cropped from the right end.
string appendix to the truncated string
Returns:
string cropped string

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

References $GLOBALS.

Referenced by t3lib_diff::addClearBuffer(), user_wapversion::cBodytext(), t3lib_clipboard::confirmMsg(), user_wapversion::contentAbstract(), tx_cms_layout::dataFields(), wslib_gui::displayWorkspaceOverview_pageTreeIconTitle(), tx_indexedsearch_modfunc1::drawTableOfIndexedPages(), tx_feedit_editpanel::editPanel(), tx_rtehtmlarea_select_image::expandFolder(), browse_links::expandFolder(), browse_links::expandPage(), tx_impexp::export_addRecord(), SC_mod_tools_em_index::extensionListRow(), SC_mod_tools_em_index::extensionTitleIconHeader(), browse_links::fileList(), t3lib_timeTrack::fixCLen(), mod_user_task::fixed_lgd(), browse_links::folderList(), fileList::formatDirList(), fileList::formatFileList(), SC_mod_tools_dbint_index::func_records(), tx_install::generateConfigForm(), t3lib_admin::genTree(), fileList::getButtonsAndOtherMarkers(), template::getFileheader(), template::getHeader(), t3lib_clipboard::getLocalizations(), template::getPagePath(), SC_mod_tools_isearch_index::getPhashExternalDocs(), SC_mod_tools_isearch_index::getPhashT3pages(), t3lib_BEfunc::getProcessedValue(), tx_recycler_helper::getRecordPath(), t3lib_BEfunc::getRecordPath(), t3lib_BEfunc::getRecordTitlePrep(), t3lib_TCEforms::getSingleField_typeFlex_draw(), tx_cms_layout::getTable_tt_content(), t3lib_treeView::getTitleStr(), ShortcutMenu::initShortcuts(), recordList::linkWrapItems(), tx_wizardsortpages_webfunc_2::main(), tx_wizardcrpages_webfunc_2::main(), tx_impexp_modfunc1::main(), SC_logomenu::main(), SC_db_new::main(), SC_alt_shortcut::main(), SC_alt_db_navframe::main(), localRecordList::makeControl(), SC_mod_web_perm_index::notEdit(), tx_impexp_modfunc1::overview_main(), browse_links::parseCurUrl(), t3lib_positionMap::positionTree(), t3lib_clipboard::printContentFromTab(), clickMenu::printDBClickMenu(), tx_indexedsearch_modfunc1::printPhashRow(), tx_rtehtmlarea_image_folderTree::printTree(), tx_rtehtmlarea_folderTree::printTree(), localFolderTree::printTree(), printAllPageTree_perms::printTree(), t3lib_timeTrack::printTSlog(), t3lib_loadDBGroup::readyForInterface(), Tx_Fluid_ViewHelpers_Be_PagePathViewHelper::render(), tx_rtehtmlarea_dam_browse_media::renderFileList(), SC_mod_web_perm_ajax::renderGroupname(), tx_cms_webinfo_lang::renderL10nTable(), SC_mod_web_ts_index::renderList(), SC_mod_web_perm_ajax::renderOwnername(), SC_db_layout::renderQuickEdit(), tx_cms_layout::renderText(), t3lib_TCEforms::replaceTableWrap(), t3lib_transferData::selectAddForeign(), tx_impexp::singleRecordLines(), tx_rtehtmlarea_select_image::TBE_dragNDrop(), browse_links::TBE_dragNDrop(), and tx_cms_layout::tt_board_drawItem().

static t3lib_div::fixed_lgd_pre ( string,
chars 
) [static]

Truncates string. Returns a new string of max. $chars length. If the string is longer, it will be truncated and prepended with '...'. This works like fixed_lgd(), but is truncated in the start of the string instead of the end Usage: 6

Parameters:
string string to truncate
integer must be an integer of at least 4
Returns:
string new string
Deprecated:
since TYPO3 4.1 - Use either fixed_lgd() or fixed_lgd_cs() (with negative input value for $chars)
See also:
fixed_lgd()

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

static t3lib_div::fixPermissions ( file  )  [static]

Sets the file system mode and group ownership of file.

Parameters:
string $file the path of an existing file, must not be escaped
Returns:
void

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

References $GLOBALS.

Referenced by t3lib_stdGraphic::combineExec(), t3lib_extFileFunctions::func_copy(), tx_rtehtmlarea_dam_browse_media::imageInsert(), t3lib_stdGraphic::imageMagickExec(), t3lib_stdGraphic::ImageWrite(), tx_rtehtmlarea_select_image::insertMagicImage(), and tslib_fe::statistics_init().

static t3lib_div::fixWindowsFilePath ( theFile  )  [static]

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

Parameters:
string File path to process
Returns:
string

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

Referenced by t3lib_TCEmain::checkValue_group_select_file(), tx_sv_reports_ServicesList::displaySearchPaths(), and Tx_Fluid_View_TemplateView::expandGenericPathPattern().

static t3lib_div::flushOutputBuffers (  )  [static]

Ends and flushes all output buffers

Returns:
void

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

References $key.

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:
string Input string to be formatted.
Returns:
string Formatted for <textarea>-tags

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

Referenced by t3lib_rteapi::drawRTE(), tslib_cObj::FORM(), t3lib_TCEforms::getSingleField_typeText(), tx_tstemplateinfo::main(), SC_file_edit::main(), SC_mod_tools_log_index::makeSaveForm(), tx_t3editor::postOutputProcessingHook(), SC_mod_tools_em_index::showExtDetails(), and tx_install::typo3conf_edit().

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

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

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

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

References $val.

Referenced by tslib_cObj::bytes(), t3lib_TCEmain::checkValue_group_select_file(), browse_links::expandFolder(), tx_impexp::export_addRecord(), SC_mod_tools_log_index::exportData(), SC_mod_tools_em_index::extBackup(), SC_mod_tools_em_index::extDumpTables(), fileList::formatDirList(), fileList::formatFileList(), t3lib_TCEforms::formatValue(), fileList::getFolderInfo(), tslib_AdminPanel::getInfoModule(), SC_mod_tools_isearch_index::getPhashExternalDocs(), SC_mod_tools_isearch_index::getPhashT3pages(), tx_tstemplateinfo::main(), tx_rtehtmlarea_user::main_user(), tx_indexedsearch::makeInfo(), SC_mod_tools_em_index::makeUploadArray(), SC_mod_tools_em_index::showExtDetails(), tslib_cObj::stdWrap(), and tx_install::typo3conf_edit().

static t3lib_div::freetypeDpiComp ( font_size  )  [static]

Function to compensate for FreeType2 96 dpi Usage: 21

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

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

Referenced by 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:
string Query-parameters: "&xxx=yyy&zzz=uuu"
Returns:
string Hash of all the values
See also:
t3lib_div::cHashParams(), t3lib_div::calculateCHash()

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

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

static t3lib_div::generateRandomBytes ( count  )  [static]

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

Drupal CMS GNU General Public License version 2

Parameters:
integer Number of characters (bytes) to return
Returns:
string Random Bytes

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

Referenced by tx_saltedpasswords_salts_factory_testcase::base64EncodeReturnsProperLength(), tx_saltedpasswords_salts_phpass_testcase::createdSaltedHashOfProperStructureForCustomSaltWithoutSetting(), tx_saltedpasswords_salts_md5_testcase::createdSaltedHashOfProperStructureForCustomSaltWithoutSetting(), tx_saltedpasswords_salts_blowfish_testcase::createdSaltedHashOfProperStructureForCustomSaltWithoutSetting(), tx_install::createEncryptionKey(), tx_saltedpasswords_salts_phpass::getGeneratedSalt(), and tx_saltedpasswords_salts_md5::getGeneratedSalt().

static t3lib_div::get_dirs ( path  )  [static]

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

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

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

Referenced by t3lib_div_testcase::checkGetDirsReturnsArrayOfDirectoriesFromGivenDirectory(), t3lib_div_testcase::checkGetDirsReturnsStringErrorOnPathFailure(), tx_indexedsearch_crawler::crawler_execute_type2(), browse_links::expandFolder(), SC_mod_tools_dbint_index::findFile(), SC_mod_tools_dbint_index::func_filesearch(), t3lib_folderTree::getCount(), filelistFolderTree::getFolderTree(), t3lib_folderTree::getFolderTree(), SC_mod_tools_em_index::getInstExtList(), SC_mod_tools_em_index::makeDetailedExtensionAnalysis(), and browse_links::TBE_expandSubFolders().

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:
string HTML-tag string (or attributes only)
Returns:
array Array with the attribute values.

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

References $key, $val, and strtolower().

Referenced by tslib_cObj::_parseFunc(), tslib_cObj::addParams(), t3lib_TSparser::checkIncludeLines(), tslib_cObj::encaps_lineSplit(), tx_rtehtmlarea_dam_browse_links::init(), tx_rtehtmlarea_browse_links::init(), browse_links::init(), tslib_pibase::pi_openAtagHrefInJSwindow(), and tx_indexedsearch_indexer::splitHTMLContent().

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

Referenced by t3lib_TCEforms::addSelectOptionsToItemArray(), Tx_Extbase_Utility_Extension::buildAutoloadRegistryForSinglePath(), tx_indexedsearch_crawler::crawler_execute_type2(), SC_mod_tools_em_index::getClassIndexLocallangFiles(), SC_mod_tools_em_index::getFileListOfExtension(), tx_lowlevel_lost_files::main(), SC_mod_tools_em_index::makeUploadArray(), and SC_mod_tools_em_index::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 3259 of file class.t3lib_div.php.

Referenced by tx_install::checkConfiguration(), t3lib_div_testcase::checkGetBytesFromSizeMeasurement(), 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:
string Base class name to evaluate
Returns:
string Final class name to instantiate with "new [classname]"

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

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

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

Referenced by t3lib_TCEforms::addSelectOptionsToItemArray(), t3lib_TSparser::checkIncludeLines(), tx_impexp::checkOrCreateDir(), t3lib_TCEmain::copyRecord_fixRTEmagicImages(), tx_indexedsearch_crawler::crawler_execute_type2(), t3lib_cache_Factory::create(), tx_impexp::export_addFilesFromRelations(), tx_indexedsearch_indexer::extractLinks(), t3lib_softrefproc::fileadminReferences(), t3lib_softrefproc::findRef_images(), t3lib_softrefproc::findRef_TStemplate(), t3lib_BEfunc::getFlexFormDS(), template::getHtmlTemplate(), t3lib_TCEforms::getIcon(), t3lib_TCEforms::getSingleField_typeGroup(), t3lib_transl8tools::getSystemLanguages(), ux_t3lib_DB::handler_init(), SC_mod_tools_log_index::importData(), tx_indexedsearch_indexer::indexRegularDocument(), SC_wizard_colorpicker::init(), tx_dbal_handler_xmldb::init(), tx_dbal_handler_openoffice::init(), t3lib_cs::initCaseFolding(), t3lib_cs::initCharset(), t3lib_cs::initToASCII(), t3lib_cs::initUnicodeData(), tx_tstemplateinfo::main(), tx_rtehtmlarea_pi1::main(), tx_lowlevel_rte_images::main_autoFix(), tx_lowlevel_lost_files::main_autoFix(), tx_lowlevel_double_files::main_autoFix(), SC_view_help::make_seeAlso(), tx_indexedsearch::makeItemTypeIcon(), tx_indexedsearch_modfunc1::makeItemTypeIcon(), SC_index::makeLoginBoxImage(), tslib_fe::pageErrorHandler(), t3lib_TCEforms::previewFieldValue(), SC_view_help::printImage(), tx_impexp::processSoftReferences_saveFile(), tx_impexp::processSoftReferences_saveFile_createRelFile(), Tx_Fluid_ViewHelpers_Uri_ResourceViewHelper::render(), tx_cssstyledcontent_pi1::render_uploads(), t3lib_TCEforms::renderWizards(), Tx_Extbase_MVC_Controller_ActionController::resolveView(), tx_dbal_handler_xmldb::saveDataSource(), t3lib_softrefproc::setTypoLinkPartsElement(), 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 $extensionList is the comma list of extensions to read only (blank = all)
boolean If set, then the path is prepended the filenames. Otherwise only the filenames are returned in the array
string $order is sorting: 1= sort alphabetically, 'mtime' = sort by modification time.
string A comma seperated list of filenames to exclude, no wildcards
Returns:
array Array of the files found

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

Referenced by template::addStyleSheetDirectory(), tx_rtehtmlarea_select_image::expandFolder(), browse_links::expandFolder(), SC_mod_tools_log_index::exportData(), SC_mod_tools_dbint_index::findFile(), SC_mod_tools_em_index::getInstExtList(), SC_mod_tools_log_index::importData(), tx_impexp_modfunc1::main(), tx_rtehtmlarea_user::main_user(), SC_index::makeLoginBoxImage(), SC_mod_tools_log_index::makeSaveForm(), tx_install::stepOutput(), tx_rtehtmlarea_select_image::TBE_dragNDrop(), browse_links::TBE_dragNDrop(), browse_links::TBE_expandFolder(), tx_install::typo3conf_edit(), and tx_install::typo3TempManager().

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

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

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

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

Referenced by 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:
string Name 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 3606 of file class.t3lib_div.php.

References $envTestVars, and $GLOBALS.

Referenced by tx_install_session::__construct(), template::addStyleSheetDirectory(), tslib_fe::ADMCMD_preview(), alt_menu_functions::adminFunctions(), tslib_fe::beLoginLinkIPList(), Tx_Extbase_MVC_Web_RequestBuilder::build(), Tx_Extbase_MVC_Web_RequestBuilder_testcase::buildSetsTheRequestURIInTheRequestObject(), tslib_fe::checkAlternativeIdMethods(), t3lib_userAuth::checkAuthentication(), t3lib_tsfeBeUserAuth::checkBackendAccessSettingsFromInitPhp(), tslib_fe::checkDataSubmission(), t3lib_div_testcase::checkIndpEnvTypo3SitePathNotEmpty(), t3lib_div_testcase::checkisOnCurrentHostFailsWithDifferentHost(), t3lib_div_testcase::checkisOnCurrentHostSucceedsWithCurrentHost(), tslib_fe::checkJumpUrlReferer(), t3lib_beUserAuth::checkLockToIP(), tslib_fe::checkPageUnavailableHandler(), tx_install::checkPassword(), SC_mod_tools_log_index::checkUpload(), template::clearCacheMenu(), tx_rtehtmlarea_base::clientInfo(), clickMenu::DB_db_list(), t3lib_BEfunc::displayWarningMessages(), tx_rtehtmlarea_pi2::drawRTE(), tx_rtehtmlarea_base::drawRTE(), t3lib_error_ProductionExceptionHandler::echoExceptionWeb(), tx_feedit_editpanel::editIcons(), t3lib_BEfunc::editOnClick(), tx_feedit_editpanel::editPanelLinkWrap(), tx_feedit_editpanel::editPanelLinkWrap_doWrap(), t3lib_beUserAuth::emailAtLogin(), t3lib_matchCondition_abstract::evaluateConditionCommon(), tx_scheduler_TestTask::execute(), t3lib_DB::explain(), t3lib_userAuthGroup::fetchGroups(), browse_links::fileList(), tslib_fe::findDomainRecord(), SC_alt_main::generateJScode(), wsol_preview::generateUrls(), t3lib_matchCondition_testcase::genericGetVariablesSucceedsWithNamespaceIENV(), t3lib_matchCondition_frontend_testcase::genericGetVariablesSucceedsWithNamespaceIENV(), t3lib_matchCondition_backend_testcase::genericGetVariablesSucceedsWithNamespaceIENV(), t3lib_userAuth::getAuthInfoArray(), SC_db_layout::getButtons(), SC_db_new::getButtons(), tx_version_cm1::getButtons(), SC_mod_web_ts_index::getButtons(), SC_mod_tools_log_index::getButtons(), SC_mod_web_perm_index::getButtons(), SC_mod_web_info_index::getButtons(), SC_mod_web_func_index::getButtons(), t3lib_cache_backend_FileBackendTestCase::getCacheDirectoryReturnsThePreviouslySetDirectory(), t3lib_userAuth::getCookieDomain(), tslib_cObj::getData(), tx_reports_reports_status_SecurityStatus::getInstallToolProtectionStatus(), tx_recycler_module1::getJavaScriptConfiguration(), t3lib_BEfunc::getPathType_web_nonweb(), tslib_cObj::getQueryArguments(), tx_openid_sv1::getReturnURL(), tx_cms_layout::getTable_tt_content(), t3lib_matchCondition_abstract::getVariableCommon(), t3lib_BEfunc::getViewDomain(), gzip_encode::gzip_accepted(), tx_simulatestatic::hookCheckAlternativeIDMethods(), tx_simulatestatic::hookInitConfig(), t3lib_parsehtml::HTMLcleaner(), SC_mod_tools_log_index::importData(), SC_wizard_table::init(), SC_wizard_forms::init(), tx_rtehtmlarea_user::init(), tx_rtehtmlarea_dam_browse_media::init(), tx_rtehtmlarea_dam_browse_links::init(), user_feAdmin::init(), SC_file_upload::init(), browse_links::init(), t3lib_basicFileFunctions::init(), SC_index::init(), tx_rtehtmlarea_select_image::initVariables(), tx_rtehtmlarea_browse_links::initVariables(), t3lib_userAuth::ipLockClause_remoteIPNumber(), template::issueCommand(), tx_cms_layout::languageSelector(), tx_indexedsearch::linkPage(), fileList::linkWrapFile(), localFolderTree::localFolderTree(), SC_wizard_list::main(), SC_wizard_add::main(), SC_tce_db::main(), tx_openid_return::main(), SC_logomenu::main(), SC_db_list::main(), TYPO3_tcefile::main(), SC_mod_web_view_index::main(), tx_version_cm1::main(), t3lib_queryGenerator::makeOptionList(), localRecordList::makeReturnUrl(), template::makeShortcutIcon(), t3lib_fullsearch::makeValueList(), SC_mod_user_ws_index::moduleContent_publish(), tx_cms_layout::newContentElementOnClick(), t3lib_TCEmain::notifyStageChange(), t3lib_positionMap::onClickInsertRecord(), tslib_fe::pageErrorHandler(), TSpagegen::pagegenInit(), template::parseTime(), tx_install::phpinformation(), tslib_pibase::pi_getEditIcon(), tslib_fe::prefixLocalAnchorsWithScript(), SC_alt_doc::preInit(), tslib_fe::printError(), SC_mod_user_ws_workspaceForms::processData(), SC_alt_doc::processData(), SC_db_new::regularNew(), tx_rtehtmlarea_dam_browse_media::renderFileList(), SC_db_layout::renderQuickEdit(), mod_user_task::sendEmail(), tx_openid_sv1::sendOpenIDRequest(), SC_alt_doc::setDocument(), tslib_fe::setIDfromArgV(), t3lib_userAuth::setSessionCookie(), tx_felogin_pi1::showLogin(), t3lib_parsehtml_proc::siteUrl(), t3lib_DB::sql_pconnect(), t3lib_formmail::start(), template::startPage(), tslib_fe::statistics(), tslib_fe::statistics_init_pagename(), TBE_browser_recordList::TBE_browser_recordList(), tslib_fe::tempPageCacheContent(), t3lib_beUserAuth::trackBeUser(), t3lib_parsehtml_proc::TS_images_db(), t3lib_parsehtml_proc::TS_images_rte(), tx_cms_layout::tt_content_drawHeader(), tslib_cObj::typoLink(), t3lib_div_testcase::validLocalUrlDataProvider(), template::viewPageIcon(), tx_version_cm1::workspaceMgm(), t3lib_error_ErrorHandler::writeLog(), t3lib_error_AbstractExceptionHandler::writeLog(), t3lib_userAuthGroup::writelog(), and tx_indexedsearch::writeSearchStat().

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

References $GLOBALS.

Referenced by t3lib_extFileFunctions::start().

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

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:
string File/URL to read
integer Whether the HTTP header should be fetched or not. 0=disable, 1=fetch header+content, 2=fetch header only
array HTTP headers to be used in the request
array Error 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 2704 of file class.t3lib_div.php.

References $content, and $GLOBALS.

Referenced by SC_mod_tools_em_terconnection::fetchExtension(), SC_mod_tools_em_index::fetchMetaData(), SC_mod_tools_em_terconnection::fetchTranslation(), SC_mod_tools_em_terconnection::fetchTranslationStatus(), template::getHtmlTemplate(), t3lib_parsehtml_proc::getURL(), tx_indexedsearch_indexer::getUrlHeaders(), tx_tsconfighelp_module1::getZIPFileContents(), and tslib_fe::pageErrorHandler().

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:
string Class reference, '[file-reference":"]["&"]class-name'. You can prefix the class name with "[file-reference]:" and t3lib_div::getFileAbsFileName() will then be used to resolve the filename and subsequently include it by "require_once()" which means you don't have to worry about including the class file either! Example: "EXT:realurl/class.tx_realurl.php:&tx_realurl". Finally; for the class name you can prefix it with "&" and you will reuse the previous instance of the object identified by the full reference string (meaning; if you ask for the same $classRef later in another place in the code you will get a reference to the first created one!).
string Required prefix of class name. By default "tx_" is allowed.
boolean If 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 4859 of file class.t3lib_div.php.

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

Referenced by ClearCacheMenu::__construct(), tx_saltedpasswords_emconfhelper::buildHashMethodSelector(), SC_mod_user_setup_index::checkAccess(), tslib_fe::checkDataSubmission(), 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(), tx_saltedpasswords_salts_factory::determineSaltingHashingMethod(), t3lib_frontendedit::displayEditIcons(), t3lib_frontendedit::displayEditPanel(), tx_rtehtmlarea_base::enableRegisteredPlugins(), tslib_cObj::extLinkATagParams(), t3lib_userAuthGroup::fetchGroups(), t3lib_extjs_ExtDirectApi::generateAPI(), tslib_fe::generatePage_postProcessing(), tx_rsaauth_backendfactory::getBackend(), t3lib_TCEmain::getCheckModifyAccessListHookObjects(), tslib_cObj::getData(), t3lib_matchCondition_frontend::getDeviceType(), t3lib_BEfunc::getFlexFormDS(), tslib_cObj::getGetImgResourceHookObjects(), t3lib_pageSelect::getPage(), tx_saltedpasswords_salts_factory::getSaltingInstance(), t3lib_TCEforms::getSingleField_typeInput(), t3lib_TCEforms::getSingleField_typeText(), tx_rsaauth_storagefactory::getStorage(), localRecordList::getTable(), tx_indexedsearch::hookRequest(), tx_indexedsearch_modfunc2::hookRequest(), tx_cssstyledcontent_pi1::hookRequest(), tx_rtehtmlarea_dam_browse_links::init(), tx_indexedsearch_indexer::init(), browse_links::init(), tx_rtehtmlarea_select_image::initHookObjects(), tx_rtehtmlarea_browse_links::initHookObjects(), t3lib_TCEforms_inline::initHookObjects(), tx_indexedsearch::initialize(), t3lib_matchCondition_frontend::initializeDeprecatedHooks(), tx_indexedsearch_indexer::initializeExternalParsers(), t3lib_tsfeBeUserAuth::initializeFrontendEdit(), tx_wizardcrpages_webfunc_2::main(), tx_rtehtmlarea_SC_select_image::main(), tx_lowlevel_rte_images::main(), tx_indexedsearch_modfunc1::main(), SC_db_new_content_el::main(), SC_show_item::main(), tx_rtehtmlarea_SC_browse_links::main(), SC_browse_links::main(), SC_alt_topmenu_dummy::main(), tx_rtehtmlarea_parse_html::main_parse_html(), localRecordList::makeClip(), localRecordList::makeControl(), fileList::makeEdit(), tx_t3editor::makeGlobalEditorInstance(), recordList::makeQueryArray(), tslib_cObj::MEDIA(), t3lib_TCEmain::moveRecord_raw(), tx_scheduler_Module::preprocessData(), t3lib_TCEmain::process_cmdmap(), t3lib_TCEmain::process_datamap(), t3lib_extjs_ExtDirectRouter::processRpc(), tslib_fe::realPageCacheContent(), localRecordList::renderListHeader(), t3lib_parsehtml_proc::RTE_transform(), t3lib_BEfunc::RTEgetObj(), tslib_fe::sendFormmail(), tx_saltedpasswords_salts_factory::setPreferredHashingMethod(), t3lib_BEfunc::softRefParserObj(), tslib_cObj::start(), tslib_fe::statistics(), t3lib_TCEforms::t3lib_TCEforms(), tx_cms_layout::tt_content_drawItem(), and tslib_cObj::typoLink().

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:
string Filepath
string See 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 433 of file class.t3lib_div.php.

References $GLOBALS, and strtolower().

Referenced by t3lib_stdGraphic::imageMagickConvert(), t3lib_iconWorks::makeIcon(), and t3lib_stdGraphic::output().

static t3lib_div::GParrayMerged ( var  )  [static]

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

Parameters:
string Key (variable name) from GET or POST vars
Returns:
array Returns the GET vars merged recursively onto the POST vars.
Deprecated:
since TYPO3 3.7 - Use t3lib_div::_GPmerged instead
See also:
_GP()

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

static t3lib_div::GPvar ( var,
strip = 0 
) [static]

Returns the value of incoming data from globals variable $_POST or $_GET, with priority to $_POST (that is equalent to 'GP' order). Strips slashes of string-outputs, but not arrays UNLESS $strip is set. If $strip is set all output will have escaped characters unescaped. Usage: 2

Parameters:
string GET/POST var to return
boolean If set, values are stripped of return values that are *arrays!* - string/integer values returned are always strip-slashed()
Returns:
mixed POST var named $var and if not set, the GET var of the same name.
Deprecated:
since TYPO3 3.6 - Use t3lib_div::_GP instead (ALWAYS delivers a value with un-escaped values!)
See also:
_GP()

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

References $value.

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

Definition at line 4318 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::htmlspecialchars_decode ( value  )  [static]

Inverse version of htmlspecialchars() Usage: 4

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

Definition at line 1365 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:
string Command to be run: identify, convert or combine/composite
string The parameters string
string Override the default path
Returns:
string Compiled command that deals with IM6 & GraphicsMagick

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

Referenced by t3lib_stdGraphic::combineExec(), t3lib_stdGraphic::imageMagickExec(), and t3lib_stdGraphic::imageMagickIdentify().

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

Referenced by tx_rtehtmlarea_dam_browse_media::addDisplayOptions(), tx_rtehtmlarea_dam_browse_links::addDisplayOptions(), tx_indexedsearch_indexer::backend_initIndexer(), SC_alt_doc::compileStoreDat(), SC_alt_doc::functionMenus(), t3lib_BEfunc::getFuncCheck(), t3lib_BEfunc::getFuncInput(), t3lib_BEfunc::getFuncMenu(), tslib_cObj::getQueryArguments(), template::getTabMenu(), tslib_cObj::getTypoLink(), browse_links::init(), SC_alt_doc::init(), tx_indexedsearch::linkPage(), tx_cms_layout::linkRTEbutton(), tslib_fe::makeCacheHash(), tx_indexedsearch_indexer::makeCHash(), 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:
array Array with attribute key/value pairs, eg. "bgcolor"=>"red", "border"=>0
boolean If set the resulting attribute list will have a) all attributes in lowercase (and duplicates weeded out, first entry taking precedence) and b) all values htmlspecialchar()'ed. It is recommended to use this switch!
boolean If 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 2152 of file class.t3lib_div.php.

References strtolower().

Referenced by tslib_cObj::addParams(), tslib_cObj::encaps_lineSplit(), tx_rtehtmlarea_browse_links::getBodyTagAdditions(), tx_rtehtmlarea_pi3::render_clickenlarge(), tx_cssstyledcontent_pi1::render_uploads(), t3lib_parsehtml_proc::TS_images_db(), and t3lib_parsehtml_proc::TS_images_rte().

static t3lib_div::implodeParams ( array $  arr,
xhtmlSafe = FALSE,
dontOmitBlankAttribs = FALSE 
) [static]

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

Parameters:
array See implodeAttributes()
boolean See implodeAttributes()
boolean See implodeAttributes()
Returns:
string See implodeAttributes()
Deprecated:
since TYPO3 3.7 - Name was changed into implodeAttributes
See also:
implodeAttributes()

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

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:
array one-dimensional array of items
string item to check for
Returns:
boolean true if $item is in the one-dimensional array $in_array

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

Referenced by t3lib_BEfunc::blindGroupNames(), tslib_menu::filterMenuPages(), and TYPO3AJAX::setContentFormat().

static t3lib_div::initSysLog (  )  [static]

Initialize the system log.

Returns:
void
See also:
sysLog()

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

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:
string comma-separated list of items (string)
string item to check for
Returns:
boolean true if $item is in $list

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

Referenced by tslib_cObj::_parseFunc(), ux_t3lib_DB::_quoteWhereClause(), t3lib_treeView::addField(), t3lib_TCEforms::addSelectOptionsToItemArray(), t3lib_extMgm::addToAllTCAtypes(), t3lib_BEfunc::blindUserNames(), tx_rtehtmlarea_defaultfont::buildJSFontfacesConfig(), tx_rtehtmlarea_selectfont::buildJSFontItemsConfig(), tx_saltedpasswords_emconfhelper::checkConfigurationFrontend(), tslib_cObj::checkIf(), t3lib_TCEmain::checkModifyAccessList(), t3lib_loadModules::checkModWorkspace(), 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(), wslib_gui::createDiffView(), tx_version_cm1::createDiffView(), t3lib_fullsearch::csvRowTitles(), tslib_cObj::DBgetInsert(), tslib_cObj::DBgetUpdate(), tslib_cObj::DBmayFEUserEdit(), ux_t3lib_DB::debugHandler(), clickMenu::enableDisableItems(), t3lib_matchCondition_frontend::evaluateCondition(), t3lib_matchCondition_backend::evaluateCondition(), t3lib_matchCondition_abstract::evaluateConditionCommon(), tx_saltedpasswords_eval::evaluateFieldValue(), user_feAdmin::evalValues(), browse_links::expandPage(), t3lib_DB::explain(), tx_impexp::export_addFile(), t3lib_tsparser_ext::ext_getObjTree(), t3lib_tsparser_ext::ext_procesInput(), SC_mod_tools_em_index::extDelete(), SC_mod_tools_em_index::extensionListRow(), SC_mod_tools_em_index::extInformationArray(), tslib_cObj::filelink(), tslib_cObj::filelist(), browse_links::fileList(), tslib_cObj::fileResource(), tslib_menu::filterMenuPages(), t3lib_TCEforms::foreignTable(), tslib_cObj::FORM(), t3lib_extFileFunctions::func_edit(), SC_mod_tools_dbint_index::func_filesearch(), t3lib_extFileFunctions::func_newfile(), SC_mod_tools_dbint_index::func_records(), recordList::generateList(), t3lib_refindex::generateRefIndexData(), tslib_cObj::getBorderAttr(), SC_mod_user_setup_index::getCSH(), t3lib_install::getDatabaseExtra(), t3lib_TCEmain::getExcludeListArray(), SC_mod_tools_em_index::getFileListOfExtension(), SC_wizard_forms::getFormHTML(), t3lib_stdGraphic::getImageDimensions(), tslib_cObj::getImgResource(), t3lib_BEfunc::getModuleData(), t3lib_TCEforms_inline::getPossibleRecords(), t3lib_BEfunc::getProcessedValue(), t3lib_BEfunc::getRecordWSOL(), tslib_gifBuilder::getResource(), tx_openid_sv1::getSignedParameter(), t3lib_TCEforms::getSingleField(), t3lib_TCEforms::getSingleField_typeFlex_draw(), t3lib_TCEforms::getSingleField_typeGroup(), t3lib_TCEforms::getSingleField_typeSelect(), tx_sv_auth::getSubGroups(), localRecordList::getTable(), tx_cms_layout::getTableMenu(), webPageTree::getTree(), t3lib_softrefproc::getTypoLinkParts(), t3lib_userAuth::hashLockClause_getHashInt(), tslib_cObj::HMENU(), tx_simulatestatic::hookLinkDataPostProc(), tslib_cObj::imageLinkWrap(), t3lib_stdGraphic::imageMagickConvert(), SC_mod_tools_log_index::importData(), tx_impexp::includeSoftref(), tx_statictemplates::includeStaticTypoScriptSources(), tx_indexedsearch::initialize(), SC_mod_user_ws_workspaceForms::initTCEForms(), t3lib_TCEmain::inlineLocalizeSynchronize(), t3lib_basicFileFunctions::is_allowed(), t3lib_TCEforms::isDisplayCondition(), fileList::isImage(), tslib_menu::isSubMenu(), SC_db_new::isTableAllowedForThisPage(), tx_saltedpasswords_div::isUsageEnabled(), recordList::linkUrlMail(), recordList::listURL(), TBE_browser_recordList::listURL(), t3lib_TCEmain::localize(), tx_wizardsortpages_webfunc_2::main(), tx_tstemplateinfo::main(), tx_rtehtmlarea_pi1::main(), SC_mod_tools_em_index::main(), SC_file_edit::main(), SC_alt_doc::main(), SC_mod_tools_log_index::main(), fileList::makeEdit(), tslib_menu::makeMenu(), t3lib_queryGenerator::makeOptionList(), SC_mod_tools_em_index::makeUploadArray(), t3lib_fullsearch::makeValueList(), t3lib_stdGraphic::maskImageOntoImage(), SC_db_layout::menuConfig(), t3lib_SCbase::mergeExternalItems(), t3lib_userAuthGroup::modAccess(), tslib_cObj::MULTIMEDIA(), tslib_pibase::pi_list_query(), t3lib_clipboard::printContentFromTab(), clickMenu::printFileClickMenu(), tx_tstemplateinfo::procesResources(), tslib_cObj::processParams(), t3lib_TStemplate::processTemplate(), fileList::readDirectory(), transferData::regItem(), user_feAdmin::removeRequired(), tx_rtehtmlarea_dam_browse_media::renderFileList(), tx_tstemplateinfo::resourceListForCopy(), t3lib_fullsearch::resultRowDisplay(), t3lib_fullsearch::resultRowTitles(), tx_rtehtmlarea_base::setToolbar(), SC_mod_tools_em_index::showExtDetails(), tx_felogin_pi1::showLogin(), tx_impexp::singleRecordLines(), t3lib_stdGraphic::splitString(), ux_t3lib_DB::sql_query(), t3lib_formmail::start(), tslib_fe::statistics(), tslib_menu::subMenu(), t3lib_TCEforms_inline::synchronizeLocalizeRecords(), SC_mod_tools_log_index::tableSelector(), tx_rtehtmlarea_select_image::TBE_dragNDrop(), browse_links::TBE_dragNDrop(), t3lib_BEfunc::thumbCode(), t3lib_parsehtml_proc::TS_images_db(), t3lib_parsehtml_proc::TS_links_rte(), t3lib_parsehtml_proc::TS_transform_rte(), tslib_cObj::typoLink(), t3lib_tsparser_ext::upload_copy_file(), tx_indexedsearch_lexer::utf8_is_letter(), t3lib_TCEmain::version_setStage(), and tx_version_cm1::versioningMgm().

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:
string Version number on format x.x.x
Returns:
integer Integer version of version number (where each part can count to 999)

Definition at line 997 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_rtehtmlarea_base::isAvailable(), tx_coreupdates_compatversion::showChangesNeeded(), and SC_mod_tools_em_index::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:
string Delimiter string to explode with
string The string to explode
boolean If set, all empty values (='') will NOT be set in output
integer If 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 1651 of file class.t3lib_div.php.

Referenced by Tx_Extbase_Persistence_Storage_Typo3DbBackend::addPageIdStatement(), t3lib_stdGraphic::adjust(), tx_rtehtmlarea_acronym::buildJSAcronymArray(), t3lib_stdGraphic::calcTextCordsForMap(), t3lib_div_testcase::checkIntExplodeConvertsStringsToInteger(), t3lib_queryGenerator::cleanInputVal(), t3lib_DB::cleanIntList(), t3lib_stdGraphic::copyGifOntoGif(), t3lib_stdGraphic::crop(), tslib_cObj::DBmayFEUserEditSelect(), Tx_Extbase_Persistence_Backend::determineStoragePageIdForNewRecord(), tx_indexedsearch::doSearch(), ux_t3lib_DB::exec_SELECTquery(), tx_indexedsearch::execFinalQuery(), localPageTree::ext_tree(), local_beUserAuth::ext_workspaceMembership(), tslib_gmenu_foldout::extProc_finish(), tslib_tmenu_layers::extProc_init(), tslib_gmenu_layers::extProc_init(), tx_sysaction::fixUserGroup(), t3lib_TCEforms::getAdditionalPreviewLanguages(), tslib_menu::getBannedUids(), tslib_fe::getPageShortcut(), Tx_Extbase_Persistence_Mapper_DataMapper::getPreparedQuery(), tslib_cObj::getSlidePids(), tx_sv_auth::getSubGroups(), tslib_cObj::getWhere(), tslib_cObj::imageLinkWrap(), t3lib_stdGraphic::IMparams(), tx_statictemplates::includeStaticTypoScriptSources(), t3lib_TStemplate::includeStaticTypoScriptSources(), tx_indexedsearch::initialize(), SC_db_new_content_el::main(), SC_db_layout::main(), SC_move_el::main(), tx_rtehtmlarea_SC_browse_links::main(), SC_browse_links::main(), t3lib_stdGraphic::makeBox(), t3lib_stdGraphic::makeEmboss(), tslib_imgmenu::makeImageMap(), tslib_menu::makeMenu(), t3lib_queryGenerator::makeSelectorTable(), t3lib_stdGraphic::makeShadow(), t3lib_stdGraphic::objPosition(), TSpagegen::pagegenInit(), Tx_Extbase_Persistence_Backend::persistObjectStorage(), t3lib_TStemplate::processTemplate(), SC_db_layout::renderListContent(), SC_mod_tools_em_index::renderVersion(), t3lib_TCEforms::renderWizards(), tx_indexedsearch::sectionTableWhere(), tslib_fe::settingLanguage(), t3lib_stdGraphic::setWorkArea(), t3lib_stdGraphic::splitString(), tslib_menu::start(), tslib_gifBuilder::start(), tslib_controlTable::start(), tslib_tableOffset::start(), tslib_cObj::substring(), t3lib_BEfunc::titleAttribForPages(), t3lib_stdGraphic::txtPosition(), t3lib_BEfunc::viewOnClick(), and t3lib_userAuthGroup::workspaceInit().

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:
integer Input value
integer Lower limit
integer Higher limit
integer Default value if input is false.
Returns:
integer The input value forced into the boundaries of $min and $max

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

Referenced by tx_reports_reports_status_Status::__construct(), SC_mod_tools_log_index::addRecordsForPid(), t3lib_TCEforms::addSelectOptionsToItemArray(), tx_indexedsearch_indexer::bodyDescription(), user_plaintext::breakBulletlist(), tx_lowlevel_cleaner_core::cli_printInfo(), tslib_cObj::COLUMNS(), t3lib_stdGraphic::convertColor(), t3lib_stdGraphic::copyGifOntoGif(), tx_indexedsearch_crawler::crawler_execute_type1(), t3lib_TCEforms::dbFileIcons(), tx_feedit_editpanel::editPanelPreviewBorder(), SC_mod_tools_log_index::exportData(), t3lib_tsparser_ext::ext_procesInput(), tslib_tmenu_layers::extProc_beforeLinking(), tslib_gmenu_layers::extProc_beforeLinking(), tslib_gmenu_foldout::extProc_finish(), tx_indexed_search_extparse::fileContentParts(), tslib_cObj::FORM(), t3lib_TCEforms::formatValue(), t3lib_TStemplate::generateConfig(), tx_indexedsearch_crawler::generateNextIndexingTime(), tx_lowlevel_cleaner_core::genTree_traverse(), tx_indexedsearch::getDisplayResults(), t3lib_TCEforms::getExcludeElements(), tslib_cObj::getImgResource(), tslib_cObj::getQuery(), tx_indexedsearch::getResultRows(), t3lib_TCEforms::getSingleField_typeGroup(), t3lib_TCEforms_inline::getSingleField_typeInline(), t3lib_TCEforms::getSingleField_typeInput(), t3lib_TCEforms::getSingleField_typeNone_render(), t3lib_TCEforms::getSingleField_typeSelect_multiple(), t3lib_TCEforms::getSingleField_typeSelect_singlebox(), t3lib_TCEforms::getSingleField_typeText(), t3lib_stdGraphic::getTextScalFactor(), tslib_cObj::HRULER(), t3lib_parsehtml::HTMLcleaner(), t3lib_stdGraphic::imagecopyresized(), tx_rtehtmlarea_dam_browse_media::imageInsert(), tslib_cObj::IMGTEXT(), t3lib_stdGraphic::IMparams(), t3lib_stdGraphic::IMreduceColors(), SC_wizard_table::init(), SC_tce_db::init(), tx_indexedsearch_indexer::init(), SC_file_upload::init(), SC_alt_clickmenu::init(), t3lib_stdGraphic::init(), tx_indexedsearch::initialize(), t3lib_clipboard::initializeClipboard(), SC_alt_db_navframe::initializeTemporaryDBmount(), tx_indexed_search_extparse::initParser(), t3lib_stdGraphic::inputLevels(), tx_rtehtmlarea_select_image::insertMagicImage(), t3lib_userAuth::ipLockClause_remoteIPNumber(), tx_lowlevel_versions::main(), tx_lowlevel_deleted::main(), tx_lowlevel_cleanflexform::main(), SC_file_newfolder::main(), SC_file_list::main(), SC_db_list::main(), SC_alt_mod_frameset::main(), user_wapversion::main_wapversion(), t3lib_stdGraphic::makeBox(), tslib_menu::makeMenu(), t3lib_stdGraphic::makeOutline(), tx_indexedsearch::makeRating(), t3lib_stdGraphic::makeShadow(), t3lib_stdGraphic::makeText(), tx_indexedsearch::markupSWpartsOfString(), t3lib_TCEforms::optionTagStyle(), t3lib_stdGraphic::output(), t3lib_stdGraphic::outputLevels(), user_plaintext::pad(), TSpagegen::pagegenInit(), user_feAdmin::parseValues(), tslib_pibase::pi_getPidList(), tx_indexedsearch::pi_list_browseresults(), tslib_pibase::pi_list_browseresults(), tslib_pibase::pi_list_query(), t3lib_positionMap::printRecordMap(), t3lib_TCEmain::process_cmdmap(), t3lib_TCEmain::process_datamap(), tx_dbal_sqlengine::processAccordingToConfig(), t3lib_sqlengine::processAccordingToConfig(), tx_cssstyledcontent_pi1::render_table(), tx_cssstyledcontent_pi1::render_textpic(), tx_sysaction::renderActions(), user_plaintext::renderHeader(), SC_db_layout::renderListContent(), t3lib_TCEforms_inline::renderPossibleRecordsSelectorTypeSelect(), SC_mod_tools_em_index::renderVersion(), t3lib_TCEforms::renderWizards(), tslib_cObj::SEARCHRESULT(), t3lib_TCEmain::setHistory(), t3lib_FlashMessage::setSeverity(), tslib_gifBuilder::start(), recordList::start(), t3lib_formmail::start(), tslib_fe::statistics_init_pagename(), t3lib_parsehtml_proc::TS_transform_rte(), t3lib_stdGraphic::v5_blur(), t3lib_stdGraphic::v5_sharpen(), 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:
integer Integer string to process
Returns:
integer

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

Referenced by user_feAdmin::evalValues().

static t3lib_div::IPv6Hex2Bin ( hex  )  [static]

[Describe function...]

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

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

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:
string Filepath to evaluate
Returns:
boolean

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

Referenced by tslib_cObj::clean_directory(), tx_indexedsearch_crawler::crawler_execute_type2(), tx_rsaauth_backendwarnings::displayWarningMessages_postProcess(), ModuleMenu::getModuleIconAbsolute(), ModuleMenu::getModuleIconRelative(), ShortcutMenu::getShortcutIcon(), tx_indexedsearch_indexer::indexRegularDocument(), alt_menu_functions::mIconFile(), alt_menu_functions::mIconFilename(), SC_alt_shortcut::mIconFilename(), t3lib_stdGraphic::prependAbsolutePath(), and tslib_fe::statistics_init().

static t3lib_div::isAllowedAbsPath ( path  )  [static]

Returns true if the path is absolute, without backpath '..' and within the PATH_site OR within the lockRootPath Usage: 5

Parameters:
string Filepath to evaluate
Returns:
boolean

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

References $GLOBALS.

Referenced by t3lib_svbase::checkInputFile(), tx_indexedsearch_crawler::crawler_execute_type2(), t3lib_clipboard::exportClipElementParameters(), SC_mod_tools_log_index::exportData(), tx_indexedsearch_indexer::extractLinks(), tx_indexedsearch_indexer::indexRegularDocument(), SC_show_item::init(), t3lib_clipboard::printContentFromTab(), clickMenu::printFileClickMenu(), tslib_fe::statistics_init(), and t3lib_svbase::writeFile().

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 1445 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:
string Full string to check
string Reference 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 1210 of file class.t3lib_div.php.

Referenced by tx_sysaction::action_getUserMainDir(), t3lib_userAuthGroup::addFileMount(), t3lib_extMgm::addService(), tslib_cObj::callUserFunction(), tx_indexedsearch_crawler::checkDeniedSuburls(), t3lib_basicFileFunctions::checkPathAgainstMounts(), tx_indexedsearch_crawler::checkUrl(), t3lib_TCEmain::checkValue_group_select_file(), t3lib_TCEmain::copyRecord_fixRTEmagicImages(), t3lib_refindex::createEntryData_fileRels(), browse_links::createFolder(), SC_view_help::createGlossaryIndex(), t3lib_stdGraphic::createTempSubDir(), t3lib_matchCondition_abstract::evaluateConditionCommon(), tslib_cObj::filelist(), tx_rtehtmlarea_base::filterStyleEl(), t3lib_basicFileFunctions::findFirstWebFolder(), t3lib_softrefproc::findRef_images(), t3lib_softrefproc::findRef_TStemplate(), SC_mod_tools_em_index::first_in_array(), t3lib_extFileFunctions::func_copy(), t3lib_extFileFunctions::func_move(), SC_mod_tools_em_index::getClassIndexLocallangFiles(), t3lib_BEfunc::getPathType_web_nonweb(), tx_impexp::getRTEoriginalFilename(), t3lib_parsehtml::HTMLcleaner(), browse_links::init(), t3lib_basicFileFunctions::is_webpath(), browse_links::isWebFolder(), fileList::linkWrapFile(), tx_lowlevel_rte_images::main(), tx_lowlevel_lost_files::main(), tx_lowlevel_double_files::main(), tx_lowlevel_rte_images::main_autoFix(), SC_mod_tools_em_index::makeDetailedExtensionAnalysis(), SC_show_item::makeRef(), fileList::makeRef(), tslib_fe::pageErrorHandler(), browse_links::parseCurUrl(), tx_impexp::processSoftReferences_saveFile(), tx_impexp::processSoftReferences_saveFile_createRelFile(), t3lib_BEfunc::referenceCount(), SC_mod_tools_em_index::removeExtDirectory(), tx_rtehtmlarea_pi3::render_clickenlarge(), SC_view_help::render_TOC(), SC_show_item::renderFileInfo(), t3lib_TCEforms::renderWizards(), t3lib_softrefproc::setTypoLinkPartsElement(), SC_mod_tools_em_index::showExtDetails(), tslib_fe::statistics(), browse_links::TBE_expandSubFolders(), Tx_Extbase_Utility_Localization::translate(), t3lib_parsehtml_proc::TS_images_db(), tx_install::typo3conf_edit(), tx_impexp::unlinkTempFiles(), browse_links::uploadForm(), 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 895 of file class.t3lib_div.php.

Referenced by t3lib_div_testcase::checkisOnCurrentHostFailsWithArbitraryString(), t3lib_div_testcase::checkisOnCurrentHostFailsWithDifferentHost(), t3lib_div_testcase::checkisOnCurrentHostFailsWithEmptyUrl(), t3lib_div_testcase::checkisOnCurrentHostFailsWithLocalhostIPOnly(), t3lib_div_testcase::checkisOnCurrentHostFailsWithPathsOnly(), and t3lib_div_testcase::checkisOnCurrentHostSucceedsWithCurrentHost().

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

Referenced by t3lib_div_testcase::checkisInValidURL(), t3lib_div_testcase::checkisValidURL(), t3lib_div_testcase::checkisValidURLFailsWithHostnameOnly(), t3lib_div_testcase::checkisValidURLSucceedsWithExtentedWebRessource(), t3lib_div_testcase::checkisValidURLSucceedsWithFileRessource(), t3lib_div_testcase::checkisValidURLSucceedsWithLdapRessource(), t3lib_div_testcase::checkisValidURLSucceedsWithTelnetRessource(), and t3lib_div_testcase::checkisValidURLSucceedsWithWebRessource().

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

Referenced by t3lib_TCEforms_inline::getPossibleRecords(), t3lib_TCEforms::getSingleField_typeSelect(), and t3lib_TCEforms::getSingleField_typeSelect_multiple().

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

Referenced by t3lib_div_testcase::canConvertFirstCharacterToBeLowerCase().

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:
array Array of GET parameters to include
Returns:
string

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

References $key.

Referenced by t3lib_clipboard::deleteUrl(), template::getVersionSelector(), SC_wizard_rte::init(), ext_posMap_tt_content::linkPageTitle(), ext_posMap_pages::linkPageTitle(), tx_cms_layout::linkRTEbutton(), SC_db_layout::local_linkThisScript(), tx_extrapagecmoptions::main(), SC_alt_doc::openInNewWindowLink(), t3lib_clipboard::pasteUrl(), t3lib_clipboard::printClipboard(), template::redirectUrls(), t3lib_clipboard::removeUrl(), t3lib_clipboard::selUrlDB(), t3lib_clipboard::selUrlFile(), SC_mod_tools_em_index::showExtDetails(), t3lib_TCEforms::thisReturnUrl(), and SC_mod_tools_em_index::updatesForm().

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:
string URL string
array Array of key/value pairs for get parameters to add/overrule with. Can be multidimensional.
Returns:
string Output URL with added getParams.

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

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

Returns auto-filename for locallang-XML localizations.

Parameters:
string Absolute file reference to locallang-XML file. Must be inside system/global/local extension
string Language 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 4604 of file class.t3lib_div.php.

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:
string Table name for which to load the full TCA array part into the global $TCA
Returns:
void

Definition at line 4653 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(), t3lib_userAuthGroup::checkAuthMode(), t3lib_TCEmain::checkValue(), t3lib_TCEmain::copyRecord(), t3lib_TCEmain::copyRecord_raw(), t3lib_admin::countRecords(), wslib_gui::createDiffView(), tx_version_cm1::createDiffView(), 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(), localRecordList::fieldSelectBox(), t3lib_TCEmain::fillInFieldArray(), t3lib_TCEmain::fixCopyAfterDuplFields(), SC_mod_user_ws_workspaceForms::fixTCAUserField(), t3lib_TCEmain::fixUniqueInPid(), recordList::generateList(), t3lib_refindex::generateRefIndexData(), Tx_Extbase_Persistence_Mapper_DataMap::getColumnsDefinition(), 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(), t3lib_BEfunc::getProcessedValue(), t3lib_fullsearch::getProcessedValueExtra(), t3lib_refindex::getRelations(), t3lib_TCEforms::getSingleField(), t3lib_TCEforms_inline::getSingleField_typeInline(), t3lib_TCEforms::getSingleHiddenField(), t3lib_TCEforms::getSoloField(), t3lib_transl8tools::getSystemLanguages(), tx_cms_layout::getTable(), localRecordList::getTable(), t3lib_BEfunc::getTCAtypes(), t3lib_BEfunc::getTCAtypeValue(), t3lib_TCEmain::getUnique(), t3lib_TCEmain::getUniqueFields(), tx_cms_layout::headerFields(), tx_install::includeTCA(), tx_rtehtmlarea_dam_browse_media::init(), SC_show_item::init(), t3lib_treeView::init(), t3lib_queryGenerator::init(), t3lib_TCEforms::loadPaletteElements(), t3lib_TCEmain::localize(), t3lib_admin::lostRecords(), SC_wizard_edit::main(), tx_tstemplateinfo::main(), SC_mod_tools_config_index::main(), tx_lowlevel_cleanflexform::main_parseTreeCallBack(), SC_view_help::make_seeAlso(), localRecordList::makeControl(), SC_mod_tools_em_index::makeDetailedExtensionAnalysis(), recordList::makeFieldList(), t3lib_queryGenerator::makeFieldList(), t3lib_queryGenerator::makeOptionList(), ux_localRecordList::makeSearchString(), recordList::makeSearchString(), t3lib_fullsearch::makeValueList(), 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(), t3lib_fullsearch::search(), t3lib_admin::selectNonEmptyRecordsWithFkeys(), tx_impexp::setFlexFormRelations(), recordList::showSysNotesForPage(), tslib_feTCE::start(), t3lib_loadDBGroup::start(), t3lib_BEfunc::thumbCode(), t3lib_transl8tools::translationInfo(), tx_cms_layout::tt_content_drawHeader(), tx_version_cm1::versioningMgm(), and t3lib_admin::whereIsRecordReferenced().

static t3lib_div::locationHeaderUrl ( path  )  [static]

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

Parameters:
string URL / path to prepend full URL addressing to.
Returns:
string

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

Referenced by t3lib_extjs_ExtDirectApi::generateAPI(), tx_openid_sv1::getReturnURL(), and t3lib_utility_Http::redirect().

static t3lib_div::logDeprecatedFunction (  )  [static]

Logs a call to a deprecated function. The log message will b etaken from the annotation.

Returns:
void

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

Referenced by t3lib_matchCondition::__construct(), t3lib_matchCondition::browserInfo_version(), tslib_cObj::bytes(), tslib_cObj::checkEmail(), tslib_fe::connectToMySQL(), t3lib_timeTrack::convertMicrotime(), t3lib_BEfunc::DBcompileInsert(), t3lib_BEfunc::DBcompileUpdate(), soap_transport_http::decodeChunked(), tx_indexedsearch_indexer::fe_headerNoCache(), nusoap_base::formatDump(), t3lib_basicFileFunctions::formatSize(), gzip_encode::freebsd_loadavg(), fw(), gzip_encode::get_complevel(), soapclient::getDefaultRpcParams(), t3lib_install::getFieldDefinitions_sqlContent(), SC_index::getHiddenFields(), t3lib_TCEforms_inline::getJSON(), t3lib_BEfunc::getListOfBackendModules(), t3lib_TCEforms_inline::getNewRecordLink(), XMLSchema::getPHPType(), t3lib_BEfunc::getSetUpdateSignal(), gzip_encode::gzip_accepted(), gzip_encode::gzip_encode(), t3lib_stdGraphic::imageCreateFromGif(), t3lib_stdGraphic::imageGif(), tslib_menu::includeMakeMenu(), t3lib_TCEforms_inline::initForAJAX(), gzip_encode::linux_loadavg(), t3lib_BEfunc::listQuery(), tslib_fe::make_seed(), tx_indexedsearch_indexer::makeCHash(), t3lib_BEfunc::mm_query(), t3lib_timeTrack::mtime(), t3lib_TCEforms::noTitle(), tslib_pibase::pi_setClassStyle(), tx_indexedsearch_indexer::procesWordsInArrays(), t3lib_BEfunc::searchQuery(), wsdl::serializeParameters(), XMLSchema::serializeTypeDef(), soapclient::setDefaultRpcParams(), tslib_fe::setSimulReplacementChar(), tslib_fe::simulateStaticDocuments_pEnc_onlyP_proc(), t3lib_DB::sql(), t3lib_BEfunc::titleAttrib(), t3lib_beUserAuth::trackBeUser(), XMLSchema::typeToForm(), and usleepWindows().

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)

Parameters:
string Class name to instantiate
Returns:
object A reference to the object

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

Referenced by tx_scheduler_Task::__construct(), Tx_Fluid_ViewHelpers_ImageViewHelper::__construct(), Tx_Fluid_ViewHelpers_Format_HtmlViewHelper::__construct(), Tx_Fluid_ViewHelpers_Format_CropViewHelper::__construct(), Tx_Fluid_ViewHelpers_CObjectViewHelper::__construct(), Tx_Fluid_View_TemplateView::__construct(), tx_feedit_editpanel::__construct(), Tx_Extbase_Security_Channel_RequestHashService::__construct(), Tx_Extbase_Property_Mapper::__construct(), Tx_Extbase_Persistence_Repository::__construct(), Tx_Extbase_Persistence_Mapper_DataMapper::__construct(), Tx_Extbase_Persistence_Backend::__construct(), Tx_Extbase_Object_Manager::__construct(), Tx_Extbase_MVC_Web_Routing_UriBuilder::__construct(), Tx_Extbase_Configuration_AbstractConfigurationManager::__construct(), ux_t3lib_DB::__construct(), ModuleMenu::__construct(), TYPO3backend::__construct(), t3lib_PageRenderer::__construct(), tx_reports_Module::__construct(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::_and(), Tx_Extbase_DomainObject_AbstractEntity::_memorizeCleanState(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::_or(), tslib_fe::acquirePageGenerationLock(), tx_sysaction::action_t1_createUpdateBeUser(), Tx_Extbase_Validation_Validator_AbstractValidator::addError(), Tx_Extbase_MVC_Controller_ArgumentsValidator::addErrorsForArgument(), Tx_Extbase_Validation_Validator_GenericObjectValidator::addErrorsForProperty(), tx_scheduler_Module::addMessage(), t3lib_TCEforms::addSelectOptionsToItemArray(), TYPO3backend::addToolbarItem(), Tx_Fluid_Core_ViewHelper_AbstractViewHelperTest_testcase::argumentsCanBeRegistered(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::ascending(), wslib::autoPublishWorkspaces(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::bindVariable(), SC_wizard_tsconfig::browseTSprop(), Tx_Fluid_Compatibility_TemplateParserBuilder::build(), Tx_Extbase_MVC_Web_RequestBuilder::build(), Tx_Extbase_MVC_Controller_AbstractController::buildControllerContext(), SC_mod_user_ws_workspaceForms::buildEditForm(), tx_rtehtmlarea_acronym::buildJSAcronymArray(), SC_mod_user_ws_workspaceForms::buildNewForm(), tslib_cObj::callUserFunction(), tx_install::check_mail(), SC_mod_tools_em_index::checkClearCache(), t3lib_SCbase::checkExtObj(), t3lib_extobjbase::checkExtObj(), Tx_Extbase_Utility_ExtbaseRequirementsCheck::checkIfDocCommentsArePreserved(), tslib_gifBuilder::checkTextObj(), SC_mod_tools_log_index::checkUpload(), 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(), SC_mod_tools_em_index::clearAndMakeExtensionDir(), SC_db_layout::clearCache(), SC_db_list::clearCache(), SC_mod_web_ts_index::clearCache(), tx_lowlevel_cleaner_core::cli_referenceIndexCheck(), tslib_cObj::cObjGetSingle(), tx_impexp::compareRecords(), SC_mod_tools_be_user_index::compareUsers(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::comparison(), FakeDbConnection::connect(), tslib_cObj::CONTENT(), 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(), Tx_Extbase_Persistence_QueryFactory::create(), t3lib_cache_Factory::create(), tx_recycler_controller_ajax::createContent(), wslib_gui::createDiffView(), tx_version_cm1::createDiffView(), user_feAdmin::createFileFuncObj(), tx_rsaauth_php_backend::createNewKeyPair(), tx_rsaauth_cmdline_backend::createNewKeyPair(), SC_mod_web_ts_index::createTemplate(), Tx_Extbase_Persistence_ValueFactory::createValue(), Tx_Extbase_Persistence_ValueFactory::createValueWithGivenType(), tslib_cObj::CTABLE(), tx_recycler_model_deletedRecords::deleteData(), t3lib_TCEmain::deleteRecord(), t3lib_TCEmain::deleteRecord_flexFormCallBack(), t3lib_TCEmain::deleteRecord_procBasedOnFieldType(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::descending(), tslib_fe::determineId(), Tx_Extbase_Dispatcher::dispatch(), SC_mod_web_perm_ajax::dispatch(), recordHistory::displayHistory(), tx_version_cm1::displayWorkspaceOverview(), SC_mod_user_ws_index::displayWorkspaceOverview(), SC_mod_web_perm_index::doEdit(), Tx_Extbase_Persistence_Storage_Typo3DbBackend::doLanguageAndWorkspaceOverlay(), tx_indexedsearch_modfunc1::drawTableOfIndexedPages(), tx_feedit_editpanel::editContent(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::equiJoinCondition(), tx_dbal_sqlengine::exec_SELECTquery(), tx_dbal_handler_rawmysql::exec_SELECTquery(), t3lib_sqlengine::exec_SELECTquery(), tx_scheduler_TestTask::execute(), Tx_Extbase_Persistence_QOM_QueryObjectModel::execute(), SC_mod_user_ws_index::execute(), tx_rtehtmlarea_select_image::expandFolder(), tx_impexp::export_addRecord(), SC_mod_tools_log_index::exportData(), local_beUserAuth::ext_compileUserInfoForHash(), local_beUserAuth::ext_getReadableButNonmounted(), t3lib_tsStyleConfig::ext_mergeIncomingWithExisting(), local_beUserAuth::ext_printOverview(), SC_mod_tools_em_index::extDelete(), tx_indexedsearch_indexer::extractHyperLinks(), tx_indexedsearch_indexer::extractLinks(), tx_indexedsearch_indexer::fe_headerNoCache(), tslib_fe::fe_tce(), tslib_fe::fetch_the_id(), t3lib_userAuthGroup::fetchGroupData(), SC_mod_tools_em_index::fetchMetaData(), Tx_Extbase_Persistence_Mapper_DataMapper::fetchRelated(), browse_links::fileList(), t3lib_TCEmain::fillInFieldArray(), t3lib_softrefproc::findRef_images(), t3lib_softrefproc::findRef_TStemplate(), t3lib_softrefproc::findRef_typolink_tag(), 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(), SC_mod_tools_dbint_index::func_tree(), t3lib_TStemplate::generateConfig(), t3lib_tsparser_ext::generateConfig_constants(), tslib_fe::generatePage_postProcessing(), tx_reports_reports_status_SecurityStatus::getAdminAccountStatus(), SC_show_rechis::getButtons(), SC_wizard_table::getConfigCode(), SC_wizard_forms::getConfigCode(), SC_mod_user_ws_publish::getContent(), t3lib_transferData::getDataIdList(), Tx_Fluid_ViewHelpers_Be_AbstractBackendViewHelper::getDocInstance(), SC_mod_user_task_index::getDynTabMenu(), tx_reports_reports_status_SecurityStatus::getEncryptionKeyStatus(), t3lib_extFileFunctions::getErrorMessages(), 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(), tx_rtehtmlarea_select_image::getImageInfo(), tslib_cObj::getImgResource(), tx_reports_reports_status_SecurityStatus::getInstallToolPasswordStatus(), tx_reports_reports_status_SecurityStatus::getInstallToolProtectionStatus(), t3lib_TCEforms::getLanguageIcon(), tx_impexp::getNewTCE(), tx_scheduler_Execution::getNextCronExecution(), tx_openid_sv1::getOpenIDConsumer(), SC_mod_user_ws_workspaceForms::getOwnerUser(), template::getPageRenderer(), tslib_fe::getPageRenderer(), tslib_fe::getPagesTSconfig(), t3lib_BEfunc::getPagesTSconfig(), Tx_Extbase_Dispatcher::getPersistenceManager(), tx_reports_reports_status_SystemStatus::getPhpMemoryLimitStatus(), tx_reports_reports_status_SystemStatus::getPhpRegisterGlobalsStatus(), tx_reports_reports_status_SystemStatus::getPhpStatus(), Tx_Extbase_Dispatcher::getPreparedController(), Tx_Extbase_Persistence_Mapper_DataMapper::getPreparedQuery(), t3lib_BEfunc::getProcessedValue(), t3lib_fullsearch::getQueryResultCode(), t3lib_TCEforms_inline::getRecord(), SC_mod_user_ws_publish::getRecords(), SC_mod_web_perm_index::getRecursiveSelect(), tx_reports_reports_status_ConfigurationStatus::getReferenceIndexStatus(), t3lib_refindex::getRelations(), t3lib_refindex::getRelations_procDB(), t3lib_refindex::getRelations_procFiles(), tx_install_report_InstallStatus::getRemainingUpdatesStatus(), tslib_gifBuilder::getResource(), Tx_Extbase_Persistence_QueryResult::getRows(), tx_indexedsearch::getSearchWords(), tx_reports_reports_Status::getStatusProviders(), tx_recycler_model_tables::getTables(), t3lib_recordList::getTranslateTools(), recordList::getTreeObject(), tslib_eidtools::getTSFE(), tx_reports_reports_status_Typo3Status::getTypo3VersionStatus(), tx_indexedsearch_modfunc1::getUidRootLineForClosestTemplate(), tx_indexedsearch_crawler::getUidRootLineForClosestTemplate(), tslib_feUserAuth::getUserTSconf(), tx_reports_reports_status_SystemStatus::getWebserverStatus(), wslib_gui::getWorkspaceOverview(), t3lib_error_ErrorHandler::handleError(), ux_t3lib_DB::handler_init(), t3lib_syntaxhl::highLight_DS(), t3lib_syntaxhl::highLight_FF(), tslib_cObj::HMENU(), tslib_cObj::HTMLparser_TSbridge(), tx_rtehtmlarea_dam_browse_media::imageInsert(), tslib_cObj::imageLinkWrap(), tslib_cObj::IMGTEXT(), SC_mod_tools_log_index::importData(), SC_mod_tools_em_index::importExtFromRep(), tx_indexedsearch_crawler::indexExtUrl(), tx_indexedsearch_crawlerhook::indexOperation(), tx_indexedsearch_crawler::indexSingleRecord(), SC_wizard_tsconfig::init(), SC_wizard_table::init(), SC_wizard_rte::init(), SC_wizard_forms::init(), SC_wizard_colorpicker::init(), SC_tce_db::init(), tx_rtehtmlarea_parse_html::init(), tx_rtehtmlarea_user::init(), tx_rtehtmlarea_select_image::init(), tx_rtehtmlarea_dam_browse_media::init(), tx_rtehtmlarea_dam_browse_links::init(), tx_rtehtmlarea_browse_links::init(), language::init(), tx_indexedsearch_indexer::init(), tx_dbal_handler_openoffice::init(), SC_db_new_content_el::init(), SC_show_rechis::init(), SC_show_item::init(), SC_move_el::init(), SC_mod_user_ws_workspaceForms::init(), SC_mod_user_ws_publish::init(), SC_mod_tools_em_index::init(), SC_file_upload::init(), SC_file_rename::init(), SC_file_newfolder::init(), SC_file_list::init(), SC_file_edit::init(), SC_db_new::init(), browse_links::init(), SC_browse_links::init(), SC_alt_shortcut::init(), SC_alt_palette::init(), SC_alt_menu::init(), SC_alt_main::init(), SC_alt_intro::init(), SC_alt_file_navframe::init(), SC_alt_doc_nodoc::init(), SC_alt_db_navframe::init(), SC_alt_clickmenu::init(), t3lib_stdGraphic::init(), SC_mod_user_setup_index::init(), tx_scheduler_Module::init(), SC_mod_tools_dbint_index::init(), SC_mod_tools_config_index::init(), SC_mod_tools_isearch_index::init(), SC_mod_tools_be_user_index::init(), SC_mod_web_perm_index::init(), SC_mod_user_ws_index::init(), tslib_fe::initCaches(), SC_tce_db::initClipboard(), TYPO3_tcefile::initClipboard(), tslib_fe::initFEuser(), tx_recycler_module1::initialize(), tx_tstemplateobjbrowser::initialize_editor(), tx_tstemplateinfo::initialize_editor(), tx_tstemplateceditor::initialize_editor(), tx_tstemplateanalyzer::initialize_editor(), t3lib_tsfeBeUserAuth::initializeAdminPanel(), t3lib_cache::initializeCachingFramework(), Tx_Extbase_Dispatcher::initializeConfigurationManagerAndFrameworkConfiguration(), TYPO3backend::initializeCoreToolbarItems(), Tx_Extbase_MVC_Controller_Argument::initializeObject(), Tx_Extbase_MVC_Controller_AbstractController::initializeObjects(), Tx_Extbase_Dispatcher::initializeReflection(), t3lib_frontendedit::initializeTceMain(), t3lib_TCEforms_FE::initializeTemplateContainer(), tslib_eidtools::initLanguage(), SC_alt_file_navframe::initPage(), SC_alt_db_navframe::initPage(), SC_mod_user_ws_workspaceForms::initTCEForms(), tslib_fe::initTemplate(), SC_mod_tools_be_user_index::initUsers(), t3lib_TCEmain::inlineLocalizeSynchronize(), tx_rtehtmlarea_select_image::insertMagicImage(), Tx_Fluid_Compatibility_DocbookGeneratorService::instanciateViewHelper(), tx_scheduler_croncmd_testcase::isDayListCorrectForCombinationOfDayOfMonthAndDayOfWeek(), tx_scheduler_croncmd_testcase::isDayListCorrectForListOfDayOfMonth(), tx_scheduler_croncmd_testcase::isDayListCorrectForOneDayOfMonth(), tx_scheduler_croncmd_testcase::isDayListCorrectForOneDayOfWeek(), tx_scheduler_croncmd_testcase::isDayListCorrectForRangeOfDayOfMonth(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::join(), tx_sysaction::JScode(), Tx_Extbase_Configuration_BackendConfigurationManager::loadTypoScriptSetup(), Tx_Extbase_Configuration_BackendConfigurationManager_testcase::loadTypoScriptSetupCantBeTested(), t3lib_TCEmain::localize(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::lowerCase(), SC_wizard_rte::main(), SC_wizard_edit::main(), SC_wizard_add::main(), tx_wizardsortpages_webfunc_2::main(), tx_wizardcrpages_webfunc_2::main(), tx_tstemplateobjbrowser::main(), tx_tstemplateinfo::main(), tx_tstemplateceditor::main(), tx_rtehtmlarea_pi1::main(), tx_rtehtmlarea_SC_select_image::main(), tx_infopagetsconfig_webinfo::main(), tx_indexedsearch::main(), tx_indexedsearch_modfunc1::main(), tx_cms_webinfo_lang::main(), tx_cms_webinfo_page::main(), SC_db_new_content_el::main(), SC_db_layout::main(), tx_belog_webinfo::main(), SC_show_rechis::main(), SC_move_el::main(), SC_file_list::main(), SC_db_list::main(), TYPO3_tcefile::main(), tx_rtehtmlarea_SC_browse_links::main(), SC_browse_links::main(), SC_alt_topmenu_dummy::main(), SC_alt_toplogo::main(), SC_alt_menu_sel::main(), SC_alt_menu::main(), SC_alt_intro::main(), SC_alt_doc_nodoc::main(), SC_alt_doc::main(), SC_alt_db_navframe::main(), SC_alt_clickmenu::main(), SC_mod_web_view_index::main(), tx_version_cm1::main(), SC_mod_web_ts_index::main(), tx_tsconfighelp_module1::main(), SC_mod_user_task_index::main(), SC_mod_user_setup_index::main(), SC_mod_tools_config_index::main(), SC_mod_tools_log_index::main(), tx_dbal_module1::main(), SC_mod_web_info_index::main(), SC_mod_web_func_index::main(), tx_lowlevel_versions::main_autoFix(), tx_lowlevel_rte_images::main_autoFix(), tx_lowlevel_orphan_records::main_autoFix(), tx_lowlevel_missing_relations::main_autoFix(), tx_lowlevel_missing_files::main_autoFix(), tx_lowlevel_double_files::main_autoFix(), tx_lowlevel_deleted::main_autoFix(), tx_lowlevel_cleanflexform::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(), tx_rtehtmlarea_select_image::main_rte(), tx_rtehtmlarea_dam_browse_links::main_rte(), tx_rtehtmlarea_browse_links::main_rte(), browse_links::main_rte(), user_wapversion::main_wapversion(), user_xmlversion::main_xmlversion(), tslib_frameset::make(), SC_alt_doc::makeEditForm(), tslib_imgmenu::makeImageMap(), Tx_Extbase_Object_Manager::makeInstance(), tslib_menu::makeMenu(), Tx_Extbase_MVC_Controller_AbstractController::mapRequestArgumentsToControllerArguments(), t3lib_TStemplate::matching(), t3lib_TSparser_TSconfig::matching(), t3lib_TStemplate::mergeConstantsFromPageTSconfig(), tslib_cObj::mergeTSRef(), tx_lowlevel_cleaner::moduleContent(), t3lib_TCEmain::moveRecord_procBasedOnFieldType(), tslib_fe::newCObj(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::not(), SC_mod_web_perm_index::notEdit(), SC_mod_web_ts_index::noTemplate(), tslib_cObj::OTABLE(), SC_db_new::pagesOnly(), tslib_cObj::parseFunc(), t3lib_TSparser_TSconfig::parseWithConditions(), recordHistory::performRollback(), tslib_pibase::pi_getEditPanel(), t3lib_positionMap::positionTree(), SC_alt_shortcut::preinit(), Tx_Fluid_Core_ViewHelper_AbstractViewHelperTest_testcase::prepareArgumentsCallsInitializeArguments(), t3lib_TCEmain::printLogErrorMessages(), t3lib_TCEmain::process_datamap(), t3lib_TCEforms_Suggest::processAjaxRequest(), t3lib_TCEforms_inline::processAjaxRequestConstruct(), SC_mod_user_ws_workspaceForms::processData(), SC_alt_doc::processData(), clickMenu::processingByExtClassArray(), tslib_fe::processOutput(), tx_indexedsearch_modfunc1::processPageKeywords(), Tx_Extbase_MVC_Controller_ActionController::processRequest(), Tx_Extbase_MVC_Controller_AbstractController::processRequest(), tx_impexp::processSoftReferences(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::propertyValue(), tx_version_cm1::publishAction(), t3lib_fullsearch::queryMaker(), tslib_cObj::RECORDS(), t3lib_TCEforms::registerDefaultLanguageData(), tx_scheduler_Task::registerRecurringExecution(), tx_scheduler_Task::registerSingleExecution(), tx_indexedsearch_modfunc1::reindexPhash(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::related(), t3lib_TCEmain::remapListedDBRecords_procDBRefs(), t3lib_TCEmain::remapListedDBRecords_procInline(), Tx_Fluid_ViewHelpers_Be_TableListViewHelper::render(), tx_cssstyledcontent_pi1::render_textpic(), SC_view_help::render_TOC(), tx_sysaction::renderActions(), t3lib_TCEforms::renderDefaultLanguageDiff(), recordHistory::renderDiff(), SC_show_item::renderFileInfo(), tx_saltedpasswords_emconfhelper::renderFlashMessage(), SC_mod_user_setup_index::renderLanguageSelect(), SC_db_layout::renderListContent(), tx_reports_Module::renderModuleContent(), SC_db_layout::renderQuickEdit(), t3lib_transferData::renderRecord_flexProc(), t3lib_transferData::renderRecord_groupProc(), t3lib_transferData::renderRecord_typesProc(), t3lib_TCEforms::renderVDEFDiff(), tx_tstemplateinfo::resourceListForCopy(), t3lib_fullsearch::resultRowDisplay(), Tx_Extbase_BaseTestCase::runBare(), tx_rsaauth_sv1::runPasswordEvaluations(), tx_t3editor::saveCodeTsTemplateInfo(), t3lib_fullsearch::saveQueryInAction(), tslib_cObj::SEARCHRESULT(), t3lib_transferData::selectAddSpecial(), t3lib_admin::selectNonEmptyRecordsWithFkeys(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::selector(), mod_user_task::sendEmail(), tslib_fe::sendFormmail(), user_feAdmin::sendHTMLMail(), user_feAdmin::setCObjects(), tx_impexp::setFlexFormRelations(), Tx_Extbase_MVC_Controller_Argument::setNewValidatorConjunction(), t3lib_refindex::setReferenceValue(), t3lib_refindex::setReferenceValue_dbRels(), t3lib_refindex::setReferenceValue_fileRels(), t3lib_refindex::setReferenceValue_softreferences(), tx_scheduler_Task::setScheduler(), tx_saltedpasswords_salts_phpass_testcase::setUp(), tx_saltedpasswords_salts_md5_testcase::setUp(), tx_saltedpasswords_salts_blowfish_testcase::setUp(), Tx_Fluid_Core_Parser_SyntaxTree_ViewHelperNodeComparatorTest_testcase::setUp(), t3lib_matchCondition_testcase::setUp(), t3lib_matchCondition_frontend_testcase::setUp(), t3lib_matchCondition_backend_testcase::setUp(), t3lib_cache_backend_FileBackendTestCase::setUp(), t3lib_cache_backend_DbBackendTestCase::setUp(), SC_mod_tools_em_index::showExtDetails(), SC_mod_user_setup_index::simulateUser(), tx_dbal_sqlengine::sql_query(), tx_dbal_handler_rawmysql::sql_query(), t3lib_sqlengine::sql_query(), tslib_gifBuilder::start(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::statement(), tslib_cObj::stdWrap(), tx_scheduler_Task::stop(), SC_mod_user_setup_index::storeIncomingData(), wslib_gui::subElements(), tx_version_cm1::subElements(), tslib_menu::subMenu(), SC_view_help::substituteGlossaryWords(), t3lib_TCEforms_inline::synchronizeLocalizeRecords(), t3lib_TCEforms::t3lib_TCEforms(), tslib_cObj::TEMPLATE(), SC_mod_web_ts_index::templateMenu(), t3lib_BEfunc::thumbCode(), t3lib_rteapi::transformContent(), t3lib_parsehtml_proc::TS_images_db(), tslib_fe::tslib_fe(), SC_mod_tools_em_index::tsStyleConfigForm(), tx_indexedsearch_lexer::tx_indexedsearch_lexer(), tx_install::tx_install(), tx_recycler_model_deletedRecords::undeleteData(), tx_tsconfighelp_module1::unzip(), t3lib_refindex::updateIndex(), tx_lowlevel_cleaner::updateRefIndex(), t3lib_TCEmain::updateRefIndex(), t3lib_loadDBGroup::updateRefIndex(), t3lib_tsparser_ext::upload_copy_file(), SC_mod_tools_em_terconnection::uploadToTER(), Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::upperCase(), Tx_Fluid_Core_ViewHelper_AbstractViewHelperTest_testcase::validateArgumentsCallsPrepareArguments(), Tx_Fluid_Core_ViewHelper_AbstractViewHelperTest_testcase::validateArgumentsCallsTheRightValidators(), Tx_Fluid_Core_ViewHelper_AbstractViewHelperTest_testcase::validateArgumentsCallsTheRightValidatorsAndThrowsExceptionIfValidationIsWrong(), t3lib_TCEmain::version_remapMMForVersionSwap(), t3lib_TCEmain::version_remapMMForVersionSwap_flexFormCallBack(), t3lib_TCEmain::version_swap_procBasedOnFieldType(), tx_version_cm1::versioningMgm(), Tx_Fluid_View_TemplateViewTest_testcase::viewIsPlacedInVariableContainer(), t3lib_admin::whereIsRecordReferenced(), SC_db_new_content_el::wizard_appendWizards(), t3lib_refindex::wordIndexing(), and tslib_tmenu::writeMenu().

static t3lib_div::makeInstanceClassName ( className  )  [static]

Return classname for new instance Takes the class-extensions API of TYPO3 into account Usage: 17

Parameters:
string Base Class name to evaluate
Returns:
string Final class name to instantiate with "new [classname]"
Deprecated:
since TYPO3 4.3 - Use t3lib_div::makeInstance('myClass', $arg1, $arg2, ..., $argN)

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

static t3lib_div::makeInstanceService ( serviceType,
serviceSubType = '',
excludeServiceKeys = array() 
) [static]

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

Parameters:
string Type of service (service key).
string Sub type like file extensions or similar. Defined by the service.
mixed List of service keys which should be exluded in the search for a service. Array or comma list.
Returns:
object The service object or an array with error info's.
Author:
René Fritz <r.fritz@colorcube.de>

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

References $GLOBALS, $TYPO3_CONF_VARS, t3lib_extMgm::deactivateService(), and t3lib_extMgm::findService().

Referenced by t3lib_userAuth::checkAuthentication(), and tslib_feUserAuth::fetchGroupData().

static t3lib_div::makeRedirectUrl ( inUrl,
l = 0,
index_script_url = '' 
) [static]

Subfunction for substUrlsInPlainText() above. Usage: 2

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

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

static t3lib_div::md5int ( str  )  [static]

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

Parameters:
string String to md5-hash
Returns:
integer Returns 28bit integer-hash

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

Referenced by tx_indexedsearch_crawler::crawler_init(), filelistFolderTree::getBrowsableTree(), t3lib_TStemplate::getCurrentPageData(), filelistFolderTree::getFolderTree(), t3lib_userAuth::hashLockClause_getHashInt(), t3lib_TStemplate::start(), t3lib_refindex::submitWords(), and t3lib_refindex::updateWordIndex().

static t3lib_div::milliseconds (  )  [static]

Gets the unixtime as milliseconds.

Returns:
integer The unixtime as milliseconds

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

Referenced by tx_indexedsearch::doSearch(), ux_t3lib_DB::exec_DELETEquery(), ux_t3lib_DB::exec_INSERTquery(), ux_t3lib_DB::exec_SELECTquery(), ux_t3lib_DB::exec_TRUNCATEquery(), ux_t3lib_DB::exec_UPDATEquery(), tx_lowlevel_cleaner_core::genTree(), tx_lowlevel_cleaner_core::genTree_traverse(), tx_indexedsearch_indexer::indexRegularDocument(), tx_indexedsearch_indexer::indexTypo3PageContent(), and tx_lowlevel_orphan_records::main().

static t3lib_div::minifyJavaScript ( script,
&$  error = '' 
) [static]

Minifies JavaScript

Parameters:
string $script Script to minify
string $error Error message (if any)
Returns:
string Minified script or source string if error happened

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

References JSMin::minify().

static t3lib_div::mkdir ( theNewFolder  )  [static]

Wrapper function for mkdir, setting folder permissions according to $GLOBALS['TYPO3_CONF_VARS']['BE']['folderCreateMask'] and group ownership according to $GLOBALS['TYPO3_CONF_VARS']['BE']['createGroup'] Usage: 6

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

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

Referenced by tx_install_session::__construct(), t3lib_lock::__construct(), tx_install::checkDirs(), tx_impexp::checkOrCreateDir(), SC_mod_tools_em_index::checkUploadFolder(), SC_mod_tools_em_index::clearAndMakeExtensionDir(), t3lib_stdGraphic::createTempSubDir(), t3lib_extFileFunctions::func_newfolder(), tx_install_report_InstallStatus::getFileSystemStatus(), tx_tsconfighelp_module1::getZIPFileContents(), tx_rtehtmlarea_pi1::main(), and tx_impexp::processSoftReferences_saveFile_createRelFile().

static t3lib_div::mkdir_deep ( destination,
deepDir 
) [static]

Creates a directory - including parent directories if necessary - in the file system

Parameters:
string Base folder. This must exist! Must have trailing slash! Example "/root/typo3site/"
string Deep directory to create, eg. "xx/yy/" which creates "/root/typo3site/xx/yy/" if $destination is "/root/typo3site/"
Returns:
string If error, returns error string.

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

Referenced by t3lib_TCEmain::checkValue_group_select_file(), SC_mod_tools_em_index::createDirsInPath(), SC_mod_tools_em_index::installTranslationsForExtension(), t3lib_cache_backend_FileBackend::set(), t3lib_cache_backend_FileBackend::setCacheDirectory(),