"TYPO3 4.0.1: t3lib_div Class Reference", "datetime" => "Sat Dec 2 19:25:52 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
Public Member Functions | |
trimExplode ($delim, $string, $onlyNonEmptyValues=0) | |
dirname ($path) | |
revExplode ($delim, $string, $count=0) | |
getIndpEnv ($getEnvName) | |
_GP ($var) | |
_GET ($var=NULL) | |
_POST ($var=NULL) | |
_GETset ($inputGet, $key='') | |
GPvar ($var, $strip=0) | |
GParrayMerged ($var) | |
gif_compress ($theFile, $type) | |
png_to_gif_by_imagemagick ($theFile) | |
read_png_gif ($theFile, $output_png=0) | |
fixed_lgd ($string, $origChars, $preStr='...') | |
fixed_lgd_pre ($string, $chars) | |
fixed_lgd_cs ($string, $chars) | |
breakTextForEmail ($str, $implChar="\n", $charWidth=76) | |
breakLinesForEmail ($str, $implChar="\n", $charWidth=76) | |
cmpIP ($baseIP, $list) | |
cmpIPv4 ($baseIP, $list) | |
cmpIPv6 ($baseIP, $list) | |
IPv6Hex2Bin ($hex) | |
normalizeIPv6 ($address) | |
validIPv6 ($ip) | |
cmpFQDN ($baseIP, $list) | |
inList ($list, $item) | |
rmFromList ($element, $list) | |
expandList ($list) | |
intInRange ($theInt, $min, $max=2000000000, $zeroValue=0) | |
intval_positive ($theInt) | |
int_from_ver ($verNumberStr) | |
compat_version ($verNumberStr) | |
md5int ($str) | |
shortMD5 ($input, $len=10) | |
uniqueList ($in_list, $secondParameter=NULL) | |
split_fileref ($fileref) | |
dirname ($path) | |
modifyHTMLColor ($color, $R, $G, $B) | |
modifyHTMLColorAll ($color, $all) | |
rm_endcomma ($string) | |
danish_strtoupper ($string) | |
convUmlauts ($str) | |
testInt ($var) | |
isFirstPartOfStr ($str, $partStr) | |
formatSize ($sizeInBytes, $labels='') | |
convertMicrotime ($microtime) | |
splitCalc ($string, $operators) | |
calcPriority ($string) | |
calcParenthesis ($string) | |
htmlspecialchars_decode ($value) | |
deHSCentities ($str) | |
slashJS ($string, $extended=0, $char="'") | |
rawUrlEncodeJS ($str) | |
rawUrlEncodeFP ($str) | |
validEmail ($email) | |
formatForTextarea ($content) | |
inArray ($in_array, $item) | |
intExplode ($delim, $string) | |
revExplode ($delim, $string, $count=0) | |
trimExplode ($delim, $string, $onlyNonEmptyValues=0) | |
uniqueArray ($valueArray) | |
removeArrayEntryByValue ($array, $cmpValue) | |
implodeArrayForUrl ($name, $theArray, $str='', $skipBlank=0, $rawurlencodeParamName=0) | |
explodeUrl2Array ($string, $multidim=FALSE) | |
compileSelectedGetVarsFromArray ($varList, $getArray, $GPvarAlt=1) | |
addSlashesOnArray (&$theArray) | |
stripSlashesOnArray (&$theArray) | |
slashArray ($arr, $cmd) | |
array_merge_recursive_overrule ($arr0, $arr1, $notAddKeys=0, $includeEmtpyValues=true) | |
array_merge ($arr1, $arr2) | |
csvValues ($row, $delim=',', $quote='"') | |
get_tag_attributes ($tag) | |
split_tag_attributes ($tag) | |
implodeAttributes ($arr, $xhtmlSafe=FALSE, $dontOmitBlankAttribs=FALSE) | |
implodeParams ($arr, $xhtmlSafe=FALSE, $dontOmitBlankAttribs=FALSE) | |
wrapJS ($string, $linebreak=TRUE) | |
xml2tree ($string, $depth=999) | |
array2xml_cs ($array, $docTag='phparray', $options=array(), $charset='') | |
array2xml ($array, $NSprefix='', $level=0, $docTag='phparray', $spaceInd=0, $options=array(), $stackData=array()) | |
xml2array ($string, $NSprefix='', $reportDocTag=FALSE) | |
xmlRecompileFromStructValArray ($vals) | |
xmlGetHeaderAttribs ($xmlData) | |
getURL ($url, $includeHeader=0, $requestHeaders=false) | |
writeFile ($file, $content) | |
fixPermissions ($file) | |
writeFileToTypo3tempDir ($filepath, $content) | |
mkdir ($theNewFolder) | |
mkdir_deep ($destination, $deepDir) | |
get_dirs ($path) | |
getFilesInDir ($path, $extensionList='', $prependPath=0, $order='') | |
getAllFilesAndFoldersInPath ($fileArr, $path, $extList='', $regDirs=0, $recursivityLevels=99) | |
removePrefixPathFromList ($fileArr, $prefixToRemove) | |
fixWindowsFilePath ($theFile) | |
resolveBackPath ($pathStr) | |
locationHeaderUrl ($path) | |
debug_ordvalue ($string, $characters=100) | |
view_array ($array_in) | |
print_array ($array_in) | |
debug ($var="", $brOrHeader=0) | |
debug_trail () | |
debugRows ($rows, $header='') | |
getThisUrl () | |
linkThisScript ($getParams=array()) | |
linkThisUrl ($url, $getParams=array()) | |
getIndpEnv ($getEnvName) | |
milliseconds () | |
clientInfo ($useragent='') | |
getHostname ($requestHost=TRUE) | |
getFileAbsFileName ($filename, $onlyRelative=1, $relToTYPO3_mainDir=0) | |
validPathStr ($theFile) | |
isAbsPath ($path) | |
isAllowedAbsPath ($path) | |
verifyFilenameAgainstDenyPattern ($filename) | |
upload_copy_move ($source, $destination) | |
upload_to_tempfile ($uploadedFileName) | |
unlink_tempfile ($uploadedTempFileName) | |
tempnam ($filePrefix) | |
stdAuthCode ($uid_or_record, $fields='', $codeLength=8) | |
cHashParams ($addQueryParams) | |
hideIfNotTranslated ($l18n_cfg_fieldValue) | |
readLLfile ($fileRef, $langKey) | |
readLLXMLfile ($fileRef, $langKey) | |
llXmlAutoFileName ($fileRef, $language) | |
loadTCA ($table) | |
resolveSheetDefInDS ($dataStructArray, $sheet='sDEF') | |
resolveAllSheetsInDS ($dataStructArray) | |
callUserFunction ($funcName, &$params, &$ref, $checkPrefix='user_', $silent=0) | |
& | getUserObj ($classRef, $checkPrefix='user_', $silent=0) |
& | makeInstance ($className) |
makeInstanceClassName ($className) | |
& | makeInstanceService ($serviceType, $serviceSubType='', $excludeServiceKeys=array()) |
plainMailEncoded ($email, $subject, $message, $headers='', $enc='', $charset='', $dontEncodeHeader=false) | |
quoted_printable ($string, $maxlen=76) | |
encodeHeader ($line, $enc='', $charset='ISO-8859-1') | |
substUrlsInPlainText ($message, $urlmode='76', $index_script_url='') | |
makeRedirectUrl ($inUrl, $l=0, $index_script_url='') | |
freetypeDpiComp ($font_size) | |
initSysLog () | |
sysLog ($msg, $extKey, $severity=0) | |
devLog ($msg, $extKey, $severity=0, $dataVar=FALSE) | |
arrayToLogString ($arr, $valueList=array(), $valueLength=20) | |
imageMagickCommand ($command, $parameters, $path='') | |
unQuoteFilenames ($parameters, $unQuote=FALSE) | |
quoteJSvalue ($value, $inScriptTags=false) |
Definition at line 10 of file incfile.php.
|
|
Writes input value to $_GET Usage: 2
Definition at line 313 of file class.t3lib_div.php. References addSlashesOnArray(). Referenced by tslib_fe::ADMCMD_preview(), tslib_fe::mergingWithGetVars(), and tx_rtehtmlarea_select_image::preinit(). |
|
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
Definition at line 262 of file class.t3lib_div.php. References stripSlashesOnArray(). Referenced by tx_sysaction::action_t1_createUpdateBeUser(), tslib_fe::ADMCMD_preview(), SC_mod_tools_em_index::checkDBupdates(), t3lib_SCbase::checkExtObj(), tx_install::checkPassword(), SC_mod_tools_log_index::checkUpload(), t3lib_TCEmain::checkValue_flex(), SC_mod_web_ts_index::clearCache(), SC_mod_tools_be_user_index::compareUsers(), SC_mod_web_ts_index::createTemplate(), tslib_fe::determineId(), user_feAdmin::displayCreateScreen(), user_feAdmin::displayEditForm(), recordHistory::displaySettings(), tx_version_cm1::displayWorkspaceOverview(), tslib_cObj::editIcons(), tslib_cObj::editPanel(), tslib_cObj::editPanelLinkWrap(), tx_rtehtmlarea_select_image::expandFolder(), localPageTree::ext_tree(), t3lib_tsfeBeUserAuth::extGetCategory_edit(), SC_mod_tools_dbint_index::func_filesearch(), SC_mod_tools_dbint_index::func_refindex(), tx_install::generateConfigForm(), wsol_preview::generateUrls(), tslib_cObj::getData(), tslib_cObj::getFieldDefaultValue(), t3lib_matchCondition::getGP_ENV_TSFE(), t3lib_userAuth::getLoginFormData(), SC_mod_user_ws_workspaceForms::getModuleParameters(), t3lib_fullsearch::getQueryResultCode(), t3lib_TCEforms::getSingleField_typeFlex(), t3lib_extobjbase::handleExternalFunctionValue(), 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_file::init(), SC_tce_db::init(), tx_rtehtmlarea_parse_html::init(), user_feAdmin::init(), SC_db_new_content_el::init(), SC_db_layout::init(), SC_move_el::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(), browse_links::init(), tx_rtehtmlarea_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(), tslib_fe::initFEuser(), t3lib_treeView::initializePositionSaving(), t3lib_folderTree::initializePositionSaving(), tx_install::isTTF(), SC_alt_doc::localizationRedirect(), tx_install::loginForm(), SC_logout::logout(), tx_rtehtmlarea_select_image::magicProcess(), 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_rtehtmlarea_select_image::main(), tx_indexedsearch_modfunc1::main(), tx_impexp_modfunc1::main(), tx_impexp_clickmenu::main(), tx_extrapagecmoptions::main(), tx_adodb_checkconnectionwizard::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(), tx_rtehtmlarea_acronym::main_acronym(), browse_links::main_file(), tx_rtehtmlarea_browse_links::main_file(), tx_rtehtmlarea_parse_html::main_parse_html(), tx_rtehtmlarea_user::main_user(), 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(), SC_mod_user_ws_index::moduleContent_publish(), user_feAdmin::parseValues(), tx_rtehtmlarea_select_image::preinit(), SC_alt_shortcut::preinit(), SC_alt_doc::preInit(), tx_dbal_module1::printCachedInfo(), tx_dbal_module1::printLogMgm(), tx_dbal_module1::printSqlCheck(), 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_sysaction::renderActions(), SC_mod_tools_em_index::requestInstallExtensions(), recordHistory::resolveShUid(), tslib_cObj::SEARCHRESULT(), user_feAdmin::sendInfoMail(), SC_mod_tools_em_index::showExtDetails(), SC_mod_user_setup_index::simulateUser(), recordList::start(), SC_mod_user_setup_index::storeIncomingData(), SC_mod_tools_be_user_index::switchUser(), browse_links::TBE_dragNDrop(), tx_rtehtmlarea_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(). |
|
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
Definition at line 297 of file class.t3lib_div.php. References stripSlashesOnArray(). Referenced by tslib_fe::ADMCMD_preview(), SC_mod_tools_em_index::checkClearCache(), SC_mod_tools_em_index::checkUploadFolder(), SC_wizard_colorpicker::colorImage(), tslib_cObj::editPanel(), t3lib_tsfeBeUserAuth::extInitFeAdmin(), 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_tools_config_index::main(), t3lib_queryGenerator::procesData(), tx_version_cm1::publishAction(), SC_mod_user_ws_index::publishAction(), SC_mod_tools_em_index::requestInstallExtensions(), tslib_cObj::SEARCHRESULT(), SC_mod_tools_em_index::showExtDetails(), 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(). |
|
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
Definition at line 1589 of file class.t3lib_div.php. Referenced by _GETset(). |
|
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
Definition at line 2001 of file class.t3lib_div.php. References testInt(). Referenced by array2xml_cs(), t3lib_flexformtools::flexArray2Xml(), tx_dbal_handler_xmldb::saveDataSource(), and tx_dbal_handler_xmldb::xmlDB_writeStructure(). |
|
Turns PHP array into XML. See array2xml()
Definition at line 1960 of file class.t3lib_div.php. References array2xml(). Referenced by SC_wizard_table::getConfigCode(), and SC_wizard_forms::getConfigCode(). |
|
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
Definition at line 1685 of file class.t3lib_div.php. Referenced by breakTextForEmail(), and tslib_feUserAuth::fetchGroupData(). |
|
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
Definition at line 1652 of file class.t3lib_div.php. Referenced by tx_rtehtmlarea_base::buildJSLangArray(), t3lib_TCEmain::checkValue_flex(), t3lib_tsStyleConfig::ext_mergeIncomingWithExisting(), t3lib_TCEmain::fillInFieldArray(), t3lib_BEfunc::getModTSconfig(), t3lib_BEfunc::getPagesTSconfig(), t3lib_TCEmain::getTableEntries(), t3lib_BEfunc::getTCEFORM_TSconfig(), GParrayMerged(), t3lib_extobjbase::incLocalLang(), language::includeLLFile(), linkThisUrl(), tx_belog_webinfo::localLang(), tx_rtehtmlarea_user::main_user(), tslib_fe::mergingWithGetVars(), tslib_pibase::pi_linkTP_keepPIvars(), tslib_pibase::pi_setPiVarDefaults(), t3lib_TCEmain::process_cmdmap(), t3lib_BEfunc::RTEsetup(), and language::sL(). |
|
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;"
Definition at line 4461 of file class.t3lib_div.php. Referenced by t3lib_userAuth::checkAuthentication(), tslib_feUserAuth::fetchGroupData(), tx_sv_auth::getUser(), t3lib_modSettings::processStoreControl(), and t3lib_userAuth::start(). |
|
Breaks up a single line of text for emails Usage: 5
Definition at line 574 of file class.t3lib_div.php. Referenced by user_plaintext::breakLines(), and breakTextForEmail(). |
|
Breaks up the text for emails Usage: 1
Definition at line 555 of file class.t3lib_div.php. References array_merge(), and breakLinesForEmail(). |
|
Calculates the input with parenthesis levels Usage: 2
Definition at line 1260 of file class.t3lib_div.php. References calcPriority(). Referenced by tslib_cObj::stdWrap(). |
|
Calculates the input by +,-,*,/,%,^ with priority to + and - Usage: 1
Definition at line 1219 of file class.t3lib_div.php. Referenced by calcParenthesis(). |
|
Calls a userdefined function/method in class Such a function/method should look like this: "function proc(&$params, &$ref) {...}" Usage: 17
Definition at line 3828 of file class.t3lib_div.php. References getFileAbsFileName(), isFirstPartOfStr(), makeInstance(), and revExplode(). Referenced by t3lib_userAuthGroup::calcPerms(), tslib_fe::checkAlternativeIdMethods(), t3lib_TCEmain::clear_cache(), tslib_fe::connectToDB(), tslib_fe::determineId(), t3lib_pageSelect::enableFields(), t3lib_tsfeBeUserAuth::extEditAction(), t3lib_TCEforms::formatValue(), t3lib_userAuthGroup::getPagePermsClause(), t3lib_BEfunc::getProcessedValue(), t3lib_fullsearch::getQueryResultCode(), t3lib_TCEforms::getSingleField_typeUser(), tslib_fe::headerNoCache(), t3lib_parsehtml::HTMLcleaner(), tslib_fe::initFEuser(), t3lib_userAuth::logoff(), tslib_fe::pageNotFoundHandler(), t3lib_TSparser::parseSub(), t3lib_transferData::procItems(), t3lib_TCEforms::procItems(), t3lib_TCEforms::renderWizards(), t3lib_fullsearch::resultRowDisplay(), tslib_gifBuilder::start(), t3lib_userAuth::start(), tslib_fe::tslib_fe(), and SC_mod_tools_em_index::tsStyleConfigForm(). |
|
Splits the input query-parameters into an array with certain parameters filtered out. Used to create the cHash value
Definition at line 3508 of file class.t3lib_div.php. References inList(). Referenced by tslib_fe::cHashParams(), tslib_fe::makeCacheHash(), tx_indexedsearch_indexer::makeCHash(), and tslib_cObj::typoLink(). |
|
Client Browser Information Usage: 4
Definition at line 3192 of file class.t3lib_div.php. References getIndpEnv(). Referenced by tx_rtehtmlarea_parse_html::main(), t3lib_TCEforms::t3lib_TCEforms(), and tslib_fe::tslib_fe(). |
|
Match fully qualified domain name with list of strings with wildcard
Definition at line 805 of file class.t3lib_div.php. References trimExplode(). Referenced by t3lib_matchCondition::evalConditionStr(). |
|
Match IP number with list of numbers with wildcard Dispatcher method for switching into specialised IPv4 and IPv6 methods. Usage: 10
Definition at line 610 of file class.t3lib_div.php. References cmpIPv4(), cmpIPv6(), and validIPv6(). Referenced by t3lib_tsfeBeUserAuth::checkBackendAccessSettingsFromInitPhp(), t3lib_beUserAuth::checkLockToIP(), t3lib_matchCondition::evalConditionStr(), and tx_sv_auth::getGroups(). |
|
Match IPv4 number with list of numbers with wildcard
Definition at line 626 of file class.t3lib_div.php. References trimExplode(). Referenced by cmpIP(). |
|
Match IPv6 address with a list of IPv6 prefixes
Definition at line 668 of file class.t3lib_div.php. References IPv6Hex2Bin(), normalizeIPv6(), trimExplode(), and validIPv6(). Referenced by cmpIP(). |
|
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)
Definition at line 936 of file class.t3lib_div.php. References int_from_ver(). Referenced by t3lib_BEfunc::displayWarningMessages(), t3lib_matchCondition::evalConditionStr(), and tslib_fe::getConfigArray(). |
|
Returns an array with selected keys from incoming data. (Better read source code if you want to find out...) Usage: 3
Definition at line 1566 of file class.t3lib_div.php. Referenced by SC_alt_doc::compileStoreDat(), and template::makeShortcutUrl(). |
|
Returns microtime input to milliseconds Usage: 2
Definition at line 1183 of file class.t3lib_div.php. |
|
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. (DEPRECATED: Works only for western europe single-byte charsets! Use t3lib_cs::specCharsToASCII() instead!) ä => ae, Ö => Oe
Definition at line 1107 of file class.t3lib_div.php. |
|
Takes a row and returns a CSV string of the values with $delim (default is ,) and $quote (default is ") as separator chars. Usage: 5
Definition at line 1698 of file class.t3lib_div.php. Referenced by t3lib_fullsearch::csvValues(), and localRecordList::setCsvRow(). |
|
strtoupper which converts danish (and other characters) characters as well (DEPRECATED, use t3lib_cs::conv_case() instead or for HTML output, wrap your content in ...) Usage: 0
Definition at line 1092 of file class.t3lib_div.php. |
|
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
Definition at line 2793 of file class.t3lib_div.php. References testInt(). Referenced by tx_install::generateConfigForm(), and tx_install::init(). |
|
Returns a string with a list of ascii-values for the first $characters characters in $string Usage: 0
Definition at line 2733 of file class.t3lib_div.php. |
|
Displays the "path" of the function call stack in a string, using debug_backtrace
Definition at line 2824 of file class.t3lib_div.php. Referenced by t3lib_DB::debug(). |
|
Displays an array as rows in a table. Useful to debug output like an array of database records.
Definition at line 2846 of file class.t3lib_div.php. |
|
Re-converts HTML entities if they have been converted by htmlspecialchars() Usage: 10
Definition at line 1301 of file class.t3lib_div.php. Referenced by t3lib_BEfunc::getFuncMenu(), t3lib_TCEforms::getSingleField(), t3lib_TCEforms::getSingleField_typeSelect_checkbox(), t3lib_TCEforms::getSingleField_typeSelect_singlebox(), template::getTabMenu(), language::sL(), and tslib_cObj::stdWrap(). |
|
Developer 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');
Definition at line 4440 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_svbase::devLog(), template::endPage(), tslib_feUserAuth::fetchGroupData(), t3lib_userAuth::fetchUserSession(), tx_sv_auth::getGroups(), tx_sv_auth::getUser(), tslib_fe::initUserGroups(), t3lib_userAuth::logoff(), t3lib_modSettings::processStoreControl(), t3lib_userAuth::setAndSaveSessionData(), t3lib_modSettings::setStoreList(), t3lib_userAuth::start(), t3lib_modSettings::writeStoredSetting(), and t3lib_userAuth::writeUC(). |
|
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
Definition at line 1032 of file class.t3lib_div.php. References revExplode(). |
|
Encode header lines Email headers must be ASCII, therefore they will be encoded to quoted_printable (default) or base64.
Definition at line 4191 of file class.t3lib_div.php. References quoted_printable(). Referenced by t3lib_htmlmail::add_header(), plainMailEncoded(), and t3lib_htmlmail::setHeaders(). |
|
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.
Definition at line 863 of file class.t3lib_div.php. |
|
Explodes a string with GETvars (eg. "&id=1&type=2&ext[mykey]=3") into an array
Definition at line 1540 of file class.t3lib_div.php. Referenced by SC_db_new_content_el::removeInvalidElements(). |
|
Truncate string Returns a new string of max. $chars length. If the string is longer, it will be truncated and appended with '...'. DEPRECATED. Works ONLY for single-byte charsets! USE t3lib_div::fixed_lgd_cs() instead Usage: 39
Definition at line 499 of file class.t3lib_div.php. Referenced by user_wapversion::cBodytext(), user_wapversion::contentAbstract(), tx_indexedsearch_modfunc1::drawTableOfIndexedPages(), tslib_cObj::editPanel(), tx_rtehtmlarea_select_image::expandFolder(), tx_rtehtmlarea_browse_links::expandFolder(), tx_rtehtmlarea_browse_links::expandPage(), SC_mod_tools_em_index::extensionListRow(), SC_mod_tools_em_index::extensionTitleIconHeader(), tx_rtehtmlarea_browse_links::fileList(), t3lib_timeTrack::fixCLen(), mod_user_task::fixed_lgd(), fixed_lgd_cs(), fixed_lgd_pre(), fileList::formatDirList(), fileList::formatFileList(), tx_install::generateConfigForm(), SC_mod_tools_isearch_index::getPhashExternalDocs(), SC_mod_tools_isearch_index::getPhashT3pages(), TBE_browser_recordList::linkWrapItems(), SC_alt_shortcut::main(), SC_mod_web_perm_index::notEdit(), tx_rtehtmlarea_browse_links::parseCurUrl(), tx_rtehtmlarea_image_localFolderTree::printTree(), localFolderTree::printTree(), and tx_rtehtmlarea_browse_links::TBE_dragNDrop(). |
|
Truncates a string with appended/prepended "..." and takes backend character set into consideration Use only from backend! Usage: 75
Definition at line 538 of file class.t3lib_div.php. References fixed_lgd(). Referenced by t3lib_diff::addClearBuffer(), t3lib_clipboard::confirmMsg(), tx_cms_layout::dataFields(), t3lib_TCEforms::dbFileIcons(), SC_mod_user_ws_index::displayWorkspaceOverview_pageTreeIconTitle(), browse_links::expandFolder(), tx_rtehtmlarea_browse_links::expandFolder(), browse_links::expandPage(), tx_rtehtmlarea_browse_links::expandPage(), tx_impexp::export_addRecord(), browse_links::fileList(), tx_rtehtmlarea_browse_links::fileList(), t3lib_TCEforms::foreignTable(), t3lib_admin::genTree(), template::getFileheader(), template::getHeader(), t3lib_BEfunc::getProcessedValue(), t3lib_BEfunc::getRecordTitle(), t3lib_TCEforms::getSingleField_typeFlex_draw(), t3lib_TCEforms::getSingleField_typeGroup(), tx_cms_layout::getTable_tt_content(), t3lib_treeView::getTitleStr(), recordList::linkWrapItems(), TBE_browser_recordList::linkWrapItems(), tx_wizardsortpages_webfunc_2::main(), tx_wizardcrpages_webfunc_2::main(), tx_impexp_modfunc1::main(), SC_alt_shortcut::main(), SC_alt_db_navframe::main(), SC_mod_web_ts_index::main(), SC_mod_web_perm_index::main(), SC_mod_web_info_index::main(), SC_mod_web_func_index::main(), SC_mod_web_perm_index::notEdit(), tx_impexp_modfunc1::overview_main(), browse_links::parseCurUrl(), tx_rtehtmlarea_browse_links::parseCurUrl(), t3lib_positionMap::positionTree(), t3lib_clipboard::printContentFromTab(), clickMenu::printDBClickMenu(), tx_indexedsearch_modfunc1::printPhashRow(), localFolderTree::printTree(), printAllPageTree_perms::printTree(), t3lib_loadDBGroup::readyForInterface(), tx_cms_webinfo_lang::renderL10nTable(), SC_mod_web_ts_index::renderList(), SC_db_layout::renderQuickEdit(), tx_cms_layout::renderText(), t3lib_TCEforms::replaceTableWrap(), t3lib_transferData::selectAddForeign(), tx_impexp::singleRecordLines(), browse_links::TBE_dragNDrop(), tx_rtehtmlarea_browse_links::TBE_dragNDrop(), tx_cms_layout::tt_board_drawItem(), fileList::writeTop(), and localRecordList::writeTop(). |
|
Truncate 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 DEPRECATED. Use either fixed_lgd() or fixed_lgd_cs() (with negative input value for $chars) Usage: 6
Definition at line 524 of file class.t3lib_div.php. References fixed_lgd(). Referenced by t3lib_timeTrack::printTSlog(). |
|
Setting file system mode & group ownership of file
Definition at line 2434 of file class.t3lib_div.php. Referenced by tx_rtehtmlarea_base::buildJSFile(), t3lib_stdGraphic::combineExec(), t3lib_extFileFunctions::func_copy(), tslib_fe::getConfigArray(), t3lib_stdGraphic::imageMagickExec(), upload_copy_move(), writeFile(), and tx_rtehtmlarea_base::writeJSFileToTypo3tempDir(). |
|
Fixes a path for windows-backslashes and reduces double-slashes to single slashes Usage: 2
Definition at line 2653 of file class.t3lib_div.php. Referenced by t3lib_TCEmain::checkValue_group_select_file(). |
|
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
Definition at line 1365 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_em_index::showExtDetails(), and tx_install::typo3conf_edit(). |
|
Formats the input integer $sizeInBytes as bytes/kilobytes/megabytes (-/K/M) Usage: 53
Definition at line 1148 of file class.t3lib_div.php. Referenced by tslib_cObj::bytes(), t3lib_TCEmain::checkValue_group_select_file(), tx_impexp::export_addRecord(), SC_mod_tools_em_index::extDumpTables(), t3lib_tsfeBeUserAuth::extGetCategory_info(), fileList::formatFileList(), t3lib_TCEforms::formatValue(), SC_mod_tools_isearch_index::getPhashExternalDocs(), SC_mod_tools_isearch_index::getPhashT3pages(), tx_rtehtmlarea_user::main_user(), tx_indexedsearch::makeInfo(), and tx_install::typo3conf_edit(). |
|
Function to compensate for FreeType2 96 dpi Usage: 21
Definition at line 4295 of file class.t3lib_div.php. Referenced by t3lib_stdGraphic::ImageTTFBBoxWrapper(), t3lib_stdGraphic::ImageTTFTextWrapper(), and tx_install::isTTF(). |
|
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
Definition at line 2535 of file class.t3lib_div.php. Referenced by tx_indexedsearch_crawler::crawler_execute_type2(), SC_mod_tools_dbint_index::findFile(), SC_mod_tools_dbint_index::func_filesearch(), getAllFilesAndFoldersInPath(), t3lib_folderTree::getCount(), t3lib_folderTree::getFolderTree(), SC_mod_tools_em_index::getInstExtList(), and SC_mod_tools_em_index::makeDetailedExtensionAnalysis(). |
|
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 a attribute is empty (I call it 'an option'), then the value for the key is empty. You can check if it existed with isset() Usage: 8
Definition at line 1740 of file class.t3lib_div.php. References split_tag_attributes(). Referenced by tslib_cObj::_parseFunc(), tslib_cObj::addParams(), t3lib_TSparser::checkIncludeLines(), tslib_cObj::encaps_lineSplit(), browse_links::init(), tx_rtehtmlarea_browse_links::init(), tslib_pibase::pi_openAtagHrefInJSwindow(), tx_indexedsearch_indexer::splitHTMLContent(), and xmlGetHeaderAttribs(). |
|
Recursively gather all files and folders of a path. Usage: 5
Definition at line 2614 of file class.t3lib_div.php. References get_dirs(), and getFilesInDir(). Referenced by t3lib_TCEforms::addSelectOptionsToItemArray(), tx_lowlevel_cleaner_core::clean_lost_files_analyze(), tx_indexedsearch_crawler::crawler_execute_type2(), SC_mod_tools_em_index::getClassIndexLocallangFiles(), SC_mod_tools_em_index::getFileListOfExtension(), and SC_mod_tools_em_index::removeExtDirectory(). |
|
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
Definition at line 3310 of file class.t3lib_div.php. References t3lib_extMgm::extPath(), isAbsPath(), isFirstPartOfStr(), t3lib_extMgm::isLoaded(), and validPathStr(). Referenced by t3lib_TCEforms::addSelectOptionsToItemArray(), callUserFunction(), t3lib_TSparser::checkIncludeLines(), tx_impexp::checkOrCreateDir(), tx_indexedsearch_crawler::crawler_execute_type2(), tx_impexp::export_addFilesFromRelations(), tx_indexedsearch_indexer::extractLinks(), t3lib_softrefproc::fileadminReferences(), t3lib_softrefproc::findRef_images(), t3lib_softrefproc::findRef_TStemplate(), t3lib_BEfunc::getFlexFormDS(), t3lib_TCEforms::getIcon(), t3lib_TCEforms::getSingleField_typeGroup(), getUserObj(), 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_recordList::initializeLanguages(), t3lib_cs::initToASCII(), t3lib_cs::initUnicodeData(), tx_tstemplateinfo::main(), tx_rtehtmlarea_pi1::main(), SC_view_help::make_seeAlso(), makeInstanceService(), tx_indexedsearch::makeItemTypeIcon(), tx_indexedsearch_modfunc1::makeItemTypeIcon(), SC_index::makeLoginBoxImage(), tslib_fe::pageNotFoundHandler(), SC_view_help::printImage(), tx_impexp::processSoftReferences_saveFile(), tx_impexp::processSoftReferences_saveFile_createRelFile(), readLLfile(), readLLXMLfile(), tx_cssstyledcontent_pi1::render_uploads(), t3lib_TCEforms::renderWizards(), resolveSheetDefInDS(), tx_dbal_handler_xmldb::saveDataSource(), t3lib_softrefproc::setTypoLinkPartsElement(), t3lib_parsehtml_proc::TS_images_db(), tx_impexp::writeFileVerify(), and tx_rtehtmlarea_base::writeJSFileToTypo3tempDir(). |
|
Returns an array with the names of files in a specific path Usage: 18
Definition at line 2560 of file class.t3lib_div.php. Referenced by tx_rtehtmlarea_select_image::expandFolder(), browse_links::expandFolder(), tx_rtehtmlarea_browse_links::expandFolder(), SC_mod_tools_log_index::exportData(), SC_mod_tools_dbint_index::findFile(), getAllFilesAndFoldersInPath(), SC_mod_tools_em_index::getInstExtList(), SC_mod_tools_log_index::importData(), tx_impexp_modfunc1::main(), tx_rtehtmlarea_user::main_user(), SC_index::makeLoginBoxImage(), tx_install::stepOutput(), browse_links::TBE_dragNDrop(), tx_rtehtmlarea_browse_links::TBE_dragNDrop(), browse_links::TBE_expandFolder(), tx_rtehtmlarea_browse_links::TBE_expandFolder(), tx_install::typo3conf_edit(), and tx_install::typo3TempManager(). |
|
Get the fully-qualified domain name of the host. Usage: 2
Definition at line 3249 of file class.t3lib_div.php. Referenced by t3lib_htmlmail::start(). |
|
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
Definition at line 2987 of file class.t3lib_div.php. References getIndpEnv(). |
|
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 HTTP_SERVER_VARS/ENV_VARS to get reliable values for all situations. Usage: 226
Definition at line 46 of file incfile.php. Referenced by tslib_fe::ADMCMD_preview(), alt_menu_functions::adminFunctions(), tslib_fe::checkAlternativeIdMethods(), t3lib_userAuth::checkAuthentication(), t3lib_tsfeBeUserAuth::checkBackendAccessSettingsFromInitPhp(), t3lib_beUserAuth::checkLockToIP(), tx_install::checkPassword(), SC_mod_tools_log_index::checkUpload(), clientInfo(), clickMenu::DB_db_list(), tx_rtehtmlarea_pi2::drawRTE(), tx_rtehtmlarea_base::drawRTE(), tslib_cObj::editIcons(), t3lib_BEfunc::editOnClick(), tslib_cObj::editPanelLinkWrap(), tslib_cObj::editPanelLinkWrap_doWrap(), t3lib_beUserAuth::emailAtLogin(), t3lib_matchCondition::evalConditionStr(), t3lib_userAuthGroup::fetchGroups(), browse_links::fileList(), tx_rtehtmlarea_browse_links::fileList(), tslib_fe::findDomainRecord(), SC_alt_main::generateJScode(), wsol_preview::generateUrls(), t3lib_userAuth::getAuthInfoArray(), tslib_fe::getConfigArray(), tslib_cObj::getData(), t3lib_matchCondition::getGP_ENV_TSFE(), getIndpEnv(), t3lib_BEfunc::getPathType_web_nonweb(), tslib_cObj::getQueryArguments(), tx_cms_layout::getTable_tt_content(), getThisUrl(), t3lib_parsehtml::HTMLcleaner(), SC_mod_tools_log_index::importData(), tx_rtehtmlarea_user::init(), user_feAdmin::init(), browse_links::init(), tx_rtehtmlarea_browse_links::init(), t3lib_basicFileFunctions::init(), SC_index::init(), t3lib_userAuth::ipLockClause_remoteIPNumber(), template::issueCommand(), tx_cms_layout::languageSelector(), tx_indexedsearch::linkPage(), linkThisScript(), fileList::linkWrapFile(), localFolderTree::localFolderTree(), locationHeaderUrl(), SC_wizard_list::main(), SC_wizard_add::main(), SC_tce_file::main(), SC_tce_db::main(), SC_db_list::main(), SC_alt_file_navframe::main(), SC_alt_db_navframe::main(), SC_mod_web_view_index::main(), t3lib_queryGenerator::makeOptionList(), localRecordList::makeReturnUrl(), template::makeShortcutIcon(), t3lib_fullsearch::makeValueList(), tslib_cObj::netprintApplication_offsiteLinkWrap(), tx_cms_layout::newContentElementOnClick(), t3lib_TCEmain::notifyStageChange(), t3lib_positionMap::onClickInsertRecord(), TSpagegen::pagegenInit(), tslib_fe::pageNotFoundHandler(), template::parseTime(), tx_install::phpinformation(), tslib_pibase::pi_getEditIcon(), tx_rtehtmlarea_select_image::preinit(), SC_alt_doc::preInit(), SC_mod_user_ws_workspaceForms::processData(), SC_alt_doc::processData(), TSpagegen::renderContentWithHeader(), mod_user_task::sendEmail(), SC_alt_doc::setDocument(), tslib_fe::setIDfromArgV(), t3lib_parsehtml_proc::siteUrl(), t3lib_userAuth::start(), t3lib_formmail::start(), TBE_browser_recordList::TBE_browser_recordList(), t3lib_beUserAuth::trackBeUser(), t3lib_parsehtml_proc::TS_images_db(), t3lib_parsehtml_proc::TS_images_rte(), tx_cms_layout::tt_content_drawHeader(), t3lib_BEfunc::viewOnClick(), template::viewPageIcon(), tx_version_cm1::workspaceMgm(), t3lib_userAuthGroup::writelog(), and tx_indexedsearch::writeSearchStat(). |
|
Returns the HOST+DIR-PATH of the current script (The URL, but without 'http://' and without script-filename) Usage: 1
Definition at line 2924 of file class.t3lib_div.php. References dirname(), and getIndpEnv(). |
|
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
Definition at line 2308 of file class.t3lib_div.php. Referenced by t3lib_stdGraphic::cacheImageDimensions(), SC_mod_tools_em_terconnection::fetchExtension(), SC_mod_tools_em_index::fetchMetaData(), SC_mod_tools_em_terconnection::fetchTranslation(), SC_mod_tools_em_terconnection::fetchTranslationStatus(), t3lib_stdGraphic::getCachedImageDimensions(), t3lib_htmlmail::getMimeType(), t3lib_parsehtml_proc::getURL(), t3lib_htmlmail::getURL(), tx_indexedsearch_indexer::getUrlHeaders(), SC_mod_tools_em_xmlhandler::loadExtensionsXML(), SC_mod_tools_em_xmlhandler::loadReviewStates(), and tslib_fe::pageNotFoundHandler(). |
|
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
Definition at line 3926 of file class.t3lib_div.php. References getFileAbsFileName(), isFirstPartOfStr(), makeInstance(), and revExplode(). Referenced by t3lib_matchCondition::__construct(), tx_indexedsearch_crawler::crawler_execute(), tx_indexedsearch_crawler::crawler_init(), t3lib_userAuthGroup::fetchGroups(), t3lib_BEfunc::getFlexFormDS(), t3lib_TCEforms::getMainFields(), t3lib_TCEforms::getSingleField_typeInput(), tx_indexedsearch::hookRequest(), tx_indexedsearch_modfunc2::hookRequest(), tx_cssstyledcontent_pi1::hookRequest(), tx_indexedsearch_indexer::init(), tx_indexedsearch::initialize(), tx_indexedsearch_indexer::initializeExternalParsers(), tx_wizardcrpages_webfunc_2::main(), tx_indexedsearch_modfunc1::main(), SC_show_item::main(), SC_browse_links::main(), SC_alt_topmenu_dummy::main(), tx_rtehtmlarea_parse_html::main_parse_html(), t3lib_TCEmain::moveRecord(), t3lib_TCEmain::process_cmdmap(), t3lib_TCEmain::process_datamap(), t3lib_parsehtml_proc::RTE_transform(), t3lib_BEfunc::RTEgetObj(), t3lib_BEfunc::softRefParserObj(), and t3lib_matchCondition::whichDevice(). |
|
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
Definition at line 397 of file class.t3lib_div.php. References imageMagickCommand(). Referenced by t3lib_stdGraphic::imageMagickConvert(), t3lib_iconWorks::makeIcon(), and t3lib_stdGraphic::output(). |
|
Returns the GET/POST global arrays merged with POST taking precedence. Usage: 1
Definition at line 353 of file class.t3lib_div.php. References array_merge_recursive_overrule(), and stripSlashesOnArray(). Referenced by tslib_pibase::tslib_pibase(). |
|
GET/POST variable Returns the 'GLOBAL' value of incoming data from 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
Definition at line 336 of file class.t3lib_div.php. References stripSlashesOnArray(). |
|
Responds on input localization setting value whether the page it comes from should be hidden if no translation exists or not.
Definition at line 3531 of file class.t3lib_div.php. Referenced by tslib_menu::filterMenuPages(), tslib_menu::makeMenu(), tx_cms_webinfo_lang::renderL10nTable(), and tslib_fe::settingLanguage(). |
|
Inverse version of htmlspecialchars() Usage: 4
Definition at line 1286 of file class.t3lib_div.php. Referenced by tx_indexedsearch_indexer::extractLinks(), t3lib_softrefproc::findRef_images(), t3lib_softrefproc::findRef_TStemplate(), t3lib_parsehtml::get_tag_attributes(), tx_indexedsearch_crawler::indexExtUrl(), SC_alt_doc::makeDocSel(), and user_plaintext::parseBody(). |
|
Compile the command for running ImageMagick/GraphicsMagick.
Definition at line 4485 of file class.t3lib_div.php. Referenced by t3lib_stdGraphic::combineExec(), gif_compress(), t3lib_iconWorks::imagecopyresized(), t3lib_stdGraphic::imageMagickExec(), t3lib_stdGraphic::imageMagickIdentify(), and png_to_gif_by_imagemagick(). |
|
Implodes a multidim-array into GET-parameters (eg. ¶m[key][key2]=value2¶m[key][key3]=value3) Usage: 24
Definition at line 1515 of file class.t3lib_div.php. Referenced by 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(), tx_rtehtmlarea_browse_links::init(), SC_alt_doc::init(), tx_indexedsearch::linkPage(), tx_cms_layout::linkRTEbutton(), linkThisScript(), linkThisUrl(), tslib_fe::makeCacheHash(), tx_indexedsearch_indexer::makeCHash(), template::makeShortcutUrl(), tx_indexedsearch_modfunc1::printPhashRow(), SC_alt_doc::processData(), SC_db_new_content_el::removeInvalidElements(), and t3lib_TCEforms::renderWizards(). |
|
Implodes attributes in the array $arr for an attribute list in eg. and HTML tag (with quotes) Usage: 14
Definition at line 1811 of file class.t3lib_div.php. Referenced by tslib_cObj::addParams(), tslib_cObj::encaps_lineSplit(), implodeParams(), TSpagegen::renderContentWithHeader(), t3lib_parsehtml_proc::TS_images_db(), and t3lib_parsehtml_proc::TS_images_rte(). |
|
Implodes attributes in the array $arr for an attribute list in eg. and HTML tag (with quotes)
Definition at line 1838 of file class.t3lib_div.php. References implodeAttributes(). |
|
Check if an item exists in an array Please note that the order of parameters is reverse compared to the php4-function in_array()!!! Usage: 3
Definition at line 1396 of file class.t3lib_div.php. Referenced by t3lib_BEfunc::blindGroupNames(), and tslib_menu::filterMenuPages(). |
|
Init system error log.
Definition at line 4307 of file class.t3lib_div.php. |
|
Check for item in list Check if an item exists in a comma-separated list of items. Usage: 163
Definition at line 835 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_base::buildJSFontfacesConfig(), cHashParams(), tslib_cObj::checkIf(), t3lib_TCEmain::checkModifyAccessList(), t3lib_loadModules::checkModWorkspace(), t3lib_TCEmain::checkValue(), t3lib_userAuthGroup::checkWorkspace(), t3lib_sqlparser::compileWhereClause(), t3lib_htmlmail::constructHTML_media(), t3lib_stdGraphic::copyImageOntoImage(), t3lib_TCEmain::copyPages(), t3lib_TCEmain::copyRecord(), tx_version_cm1::createDiffView(), SC_mod_user_ws_index::createDiffView(), t3lib_fullsearch::csvRowTitles(), tslib_cObj::DBgetInsert(), tslib_cObj::DBgetUpdate(), tslib_cObj::DBmayFEUserEdit(), ux_t3lib_DB::debugHandler(), clickMenu::enableDisableItems(), t3lib_matchCondition::evalConditionStr(), user_feAdmin::evalValues(), browse_links::expandPage(), tx_rtehtmlarea_browse_links::expandPage(), 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(), tx_rtehtmlarea_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(), tslib_cObj::getBorderAttr(), 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_BEfunc::getProcessedValue(), t3lib_BEfunc::getRecordWSOL(), tslib_gifBuilder::getResource(), t3lib_TCEforms::getSingleField(), t3lib_TCEforms::getSingleField_typeFlex_draw(), t3lib_TCEforms::getSingleField_typeSelect(), tx_sv_auth::getSubGroups(), localRecordList::getTable(), tx_cms_layout::getTableMenu(), t3lib_softrefproc::getTypoLinkParts(), t3lib_userAuth::hashLockClause_getHashInt(), tslib_cObj::HMENU(), tslib_cObj::imageLinkWrap(), t3lib_stdGraphic::imageMagickConvert(), SC_mod_tools_log_index::importData(), tx_impexp::includeSoftref(), t3lib_TStemplate::includeStaticTypoScriptSources(), tx_indexedsearch::initialize(), SC_mod_user_ws_workspaceForms::initTCEForms(), t3lib_basicFileFunctions::is_allowed(), t3lib_TCEforms::isDisplayCondition(), fileList::isImage(), tslib_menu::isSubMenu(), SC_db_new::isTableAllowedForThisPage(), recordList::linkUrlMail(), recordList::listURL(), TBE_browser_recordList::listURL(), t3lib_TCEmain::localize(), tx_wizardsortpages_webfunc_2::main(), tx_tstemplateinfo::main(), SC_mod_tools_em_index::main(), SC_file_edit::main(), SC_alt_doc::main(), SC_mod_tools_log_index::main(), tslib_menu::makeMenu(), t3lib_queryGenerator::makeOptionList(), 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_tstemplateinfo::resourceListForCopy(), t3lib_fullsearch::resultRowDisplay(), t3lib_fullsearch::resultRowTitles(), SC_mod_tools_em_index::showExtDetails(), tx_impexp::singleRecordLines(), t3lib_stdGraphic::splitString(), t3lib_formmail::start(), tslib_menu::subMenu(), SC_mod_tools_log_index::tableSelector(), browse_links::TBE_dragNDrop(), tx_rtehtmlarea_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(), and tx_version_cm1::versioningMgm(). |
|
Returns an integer from a three part version number, eg '4.12.3' -> 4012003 Usage: 2
Definition at line 923 of file class.t3lib_div.php. Referenced by tx_coreupdates_compatversion::checkUserInput(), compat_version(), tx_rtehtmlarea_pi2::drawRTE(), tx_rtehtmlarea_base::drawRTE(), tx_rtehtmlarea_browse_links::init(), tx_rtehtmlarea_base::isAvailable(), TBE_browser_recordList::linkWrapItems(), localFolderTree::printTree(), and tx_coreupdates_compatversion::showChangesNeeded(). |
|
Explodes a $string delimited by $delim and passes each item in the array through intval(). Corresponds to explode(), but with conversion to integers for all values. Usage: 76
Definition at line 1413 of file class.t3lib_div.php. Referenced by t3lib_stdGraphic::adjust(), t3lib_stdGraphic::calcTextCordsForMap(), t3lib_queryGenerator::cleanInputVal(), t3lib_DB::cleanIntList(), t3lib_stdGraphic::copyGifOntoGif(), t3lib_stdGraphic::crop(), tslib_cObj::DBmayFEUserEditSelect(), 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(), tslib_menu::getBannedUids(), t3lib_pageSelect::getMultipleGroupsWhereClause(), tslib_fe::getPageShortcut(), tslib_cObj::getSlidePids(), tx_sv_auth::getSubGroups(), tslib_cObj::getWhere(), tslib_cObj::imageLinkWrap(), t3lib_stdGraphic::IMparams(), t3lib_TStemplate::includeStaticTypoScriptSources(), tx_indexedsearch::initialize(), SC_db_new_content_el::main(), SC_db_layout::main(), SC_move_el::main(), t3lib_stdGraphic::makeBox(), t3lib_stdGraphic::makeEmboss(), tslib_imgmenu::makeImageMap(), tslib_menu::makeMenu(), t3lib_queryGenerator::makeSelectorTable(), t3lib_stdGraphic::makeShadow(), t3lib_stdGraphic::objPosition(), TSpagegen::pagegenInit(), 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_stdGraphic::txtPosition(), and t3lib_userAuthGroup::workspaceInit(). |
|
Forces the integer $theInt into the boundaries of $min and $max. If the $theInt is 'false' then the $zeroValue is applied. Usage: 224
Definition at line 894 of file class.t3lib_div.php. Referenced by SC_mod_tools_log_index::addRecordsForPid(), t3lib_TCEforms::addSelectOptionsToItemArray(), tx_indexedsearch_indexer::bodyDescription(), user_plaintext::breakBulletlist(), tslib_cObj::COLUMNS(), t3lib_stdGraphic::convertColor(), t3lib_stdGraphic::copyGifOntoGif(), tx_indexedsearch_crawler::crawler_execute_type1(), t3lib_TCEforms::dbFileIcons(), tslib_cObj::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(), tslib_fe::getConfigArray(), tx_indexedsearch::getDisplayResults(), t3lib_TCEforms::getExcludeElements(), tslib_cObj::getImgResource(), tslib_cObj::getQuery(), tx_indexedsearch::getResultRows(), t3lib_TCEforms::getSingleField_typeGroup(), 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(), 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(), t3lib_userAuth::ipLockClause_remoteIPNumber(), tx_rtehtmlarea_select_image::magicProcess(), SC_file_upload::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(), modifyHTMLColor(), 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(), t3lib_sqlengine::processAccordingToConfig(), tx_cssstyledcontent_pi1::render_table(), tx_cssstyledcontent_pi1::render_textpic(), tx_sysaction::renderActions(), user_plaintext::renderHeader(), SC_db_layout::renderListContent(), SC_mod_tools_em_index::renderVersion(), t3lib_TCEforms::renderWizards(), tslib_cObj::SEARCHRESULT(), t3lib_TCEmain::setHistory(), tslib_gifBuilder::start(), recordList::start(), t3lib_userAuth::start(), t3lib_formmail::start(), SC_mod_user_setup_index::storeIncomingData(), t3lib_parsehtml_proc::TS_transform_rte(), t3lib_stdGraphic::v5_blur(), t3lib_stdGraphic::v5_sharpen(), t3lib_userAuthGroup::workspaceVersioningTypeAccess(), and t3lib_userAuthGroup::workspaceVersioningTypeGetClosest(). |
|
Returns the $integer if greater than zero, otherwise returns zero. Usage: 1
Definition at line 910 of file class.t3lib_div.php. Referenced by user_feAdmin::evalValues(). |
|
[Describe function...]
Definition at line 711 of file class.t3lib_div.php. Referenced by cmpIPv6(). |
|
Checks if the $path is absolute or relative (detecting either '/' or 'x:/' as first part of string) and returns true if so. Usage: 8
Definition at line 3357 of file class.t3lib_div.php. Referenced by tslib_cObj::clean_directory(), tx_indexedsearch_crawler::crawler_execute_type2(), tslib_fe::getConfigArray(), getFileAbsFileName(), tx_indexedsearch_indexer::indexRegularDocument(), isAllowedAbsPath(), loadTCA(), alt_menu_functions::mIconFile(), alt_menu_functions::mIconFilename(), SC_alt_shortcut::mIconFilename(), and t3lib_stdGraphic::prependAbsolutePath(). |
|
Returns true if the path is absolute, without backpath '..' and within the PATH_site OR within the lockRootPath Usage: 5
Definition at line 3368 of file class.t3lib_div.php. References isAbsPath(), isFirstPartOfStr(), and validPathStr(). Referenced by t3lib_svbase::checkInputFile(), tx_indexedsearch_crawler::crawler_execute_type2(), t3lib_clipboard::exportClipElementParameters(), tx_indexedsearch_indexer::extractLinks(), tslib_fe::getConfigArray(), tx_indexedsearch_indexer::indexRegularDocument(), SC_show_item::init(), t3lib_clipboard::printContentFromTab(), clickMenu::printFileClickMenu(), and t3lib_svbase::writeFile(). |
|
Returns true if the first part of $str matches the string $partStr Usage: 59
Definition at line 1132 of file class.t3lib_div.php. Referenced by tx_sysaction::action_getUserMainDir(), t3lib_userAuthGroup::addFileMount(), t3lib_extMgm::addService(), tslib_cObj::callUserFunction(), callUserFunction(), tx_indexedsearch_crawler::checkDeniedSuburls(), t3lib_basicFileFunctions::checkPathAgainstMounts(), tx_indexedsearch_crawler::checkUrl(), t3lib_refindex::createEntryData_fileRels(), browse_links::createFolder(), tx_rtehtmlarea_browse_links::createFolder(), SC_view_help::createGlossaryIndex(), t3lib_stdGraphic::createTempSubDir(), tx_lowlevel_cleaner_core::double_files_analyze(), t3lib_matchCondition::evalConditionStr(), 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(), getFileAbsFileName(), t3lib_BEfunc::getPathType_web_nonweb(), tx_impexp::getRTEoriginalFilename(), getUserObj(), t3lib_parsehtml::HTMLcleaner(), t3lib_basicFileFunctions::is_webpath(), isAllowedAbsPath(), browse_links::isWebFolder(), tx_rtehtmlarea_browse_links::isWebFolder(), fileList::linkWrapFile(), llXmlAutoFileName(), SC_mod_tools_em_index::makeDetailedExtensionAnalysis(), SC_show_item::makeRef(), fileList::makeRef(), tslib_fe::pageNotFoundHandler(), browse_links::parseCurUrl(), tx_rtehtmlarea_browse_links::parseCurUrl(), tx_impexp::processSoftReferences_saveFile(), tx_impexp::processSoftReferences_saveFile_createRelFile(), t3lib_BEfunc::referenceCount(), SC_mod_tools_em_index::removeExtDirectory(), removePrefixPathFromList(), SC_view_help::render_TOC(), SC_show_item::renderFileInfo(), tx_lowlevel_cleaner_core::RTEmagic_files_analyze(), t3lib_softrefproc::setTypoLinkPartsElement(), SC_mod_tools_em_index::showExtDetails(), t3lib_parsehtml_proc::TS_images_db(), tx_install::typo3conf_edit(), unlink_tempfile(), tx_impexp::unlinkTempFiles(), tx_rtehtmlarea_select_image::uploadForm(), browse_links::uploadForm(), tx_rtehtmlarea_browse_links::uploadForm(), tx_impexp::verifyFolderAccess(), and writeFileToTypo3tempDir(). |
|
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
Definition at line 2940 of file class.t3lib_div.php. References _GET(), getIndpEnv(), and implodeArrayForUrl(). Referenced by t3lib_clipboard::deleteUrl(), template::getVersionSelector(), ext_posMap_tt_content::linkPageTitle(), ext_posMap_pages::linkPageTitle(), tx_cms_layout::linkRTEbutton(), SC_db_layout::local_linkThisScript(), tx_extrapagecmoptions::main(), t3lib_clipboard::pasteUrl(), t3lib_clipboard::printClipboard(), template::redirectUrls(), t3lib_clipboard::removeUrl(), t3lib_clipboard::selUrlDB(), t3lib_clipboard::selUrlFile(), SC_alt_doc::shortCutLink(), SC_mod_tools_em_index::showExtDetails(), t3lib_TCEforms::thisReturnUrl(), and SC_mod_tools_em_index::updatesForm(). |
|
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
Definition at line 2964 of file class.t3lib_div.php. References array_merge_recursive_overrule(), and implodeArrayForUrl(). |
|
Returns auto-filename for locallang-XML localizations.
Definition at line 3698 of file class.t3lib_div.php. References isFirstPartOfStr(), and revExplode(). Referenced by readLLXMLfile(). |
|
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
Definition at line 3746 of file class.t3lib_div.php. References isAbsPath(). Referenced by 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(), tx_version_cm1::createDiffView(), SC_mod_user_ws_index::createDiffView(), tx_cms_layout::dataFields(), user_feAdmin::deleteFilesFromRecord(), local_beUserAuth::ext_printOverview(), t3lib_TCEmain::extFileFields(), t3lib_TCEmain::extFileFunctions(), t3lib_transferData::fetchRecord(), localRecordList::fieldSelectBox(), t3lib_TCEmain::fillInFieldArray(), t3lib_TCEmain::fixCopyAfterDuplFields(), SC_mod_user_ws_workspaceForms::fixTCAUserField(), t3lib_TCEmain::fixUniqueInPid(), recordList::generateList(), tslib_fe::getCompressedTCarray(), t3lib_admin::getDBFields(), t3lib_TCEforms::getDefaultRecord(), t3lib_BEfunc::getExcludeFields(), t3lib_TCEmain::getExcludeListArray(), t3lib_BEfunc::getExplicitAuthFieldValues(), t3lib_admin::getFileFields(), t3lib_admin::getGroupFields(), t3lib_BEfunc::getItemLabel(), t3lib_BEfunc::getLabelFromItemlist(), t3lib_TCEforms::getListedFields(), t3lib_TCEforms::getMainFields(), SC_mod_user_ws_workspaceForms::getOwnerUser(), t3lib_TCEforms::getPaletteFields(), t3lib_BEfunc::getProcessedValue(), t3lib_fullsearch::getProcessedValueExtra(), t3lib_refindex::getRelations(), t3lib_TCEforms::getSingleField(), t3lib_TCEforms::getSingleHiddenField(), t3lib_TCEforms::getSoloField(), 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(), SC_show_item::init(), t3lib_treeView::init(), t3lib_queryGenerator::init(), t3lib_recordList::initializeLanguages(), t3lib_TCEmain::localize(), t3lib_admin::lostRecords(), SC_wizard_edit::main(), tx_tstemplateinfo::main(), SC_mod_tools_config_index::main(), SC_view_help::make_seeAlso(), localRecordList::makeControl(), SC_mod_tools_em_index::makeDetailedExtensionAnalysis(), recordList::makeFieldList(), t3lib_queryGenerator::makeFieldList(), t3lib_queryGenerator::makeOptionList(), recordList::makeSearchString(), t3lib_fullsearch::makeValueList(), t3lib_TCEmain::newFieldArray(), SC_view_help::printItem(), 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(), recordHistory::renderDiff(), SC_db_layout::renderListContent(), t3lib_transferData::renderRecord(), t3lib_transferData::renderRecordRaw(), t3lib_fullsearch::search(), t3lib_admin::selectNonEmptyRecordsWithFkeys(), tx_impexp::setFlexFormRelations(), recordList::showSysNotesForPage(), tslib_feTCE::start(), t3lib_BEfunc::thumbCode(), tx_cms_layout::tt_content_drawHeader(), tx_version_cm1::versioningMgm(), and t3lib_admin::whereIsRecordReferenced(). |
|
Prefixes a URL used with 'header-location' with 'http://...' depending on whether it has it already.
Definition at line 2693 of file class.t3lib_div.php. References getIndpEnv(). Referenced by SC_index::checkRedirect(), SC_alt_doc::closeDocument(), SC_tce_file::finish(), SC_tce_db::finish(), tslib_fe::getConfigArray(), SC_wizard_table::getConfigCode(), SC_wizard_forms::getConfigCode(), SC_mod_tools_log_index::importData(), SC_wizard_add::init(), SC_index::init(), recordList::localizationRedirect(), SC_alt_doc::localizationRedirect(), SC_logout::logout(), SC_wizard_list::main(), SC_wizard_edit::main(), SC_wizard_add::main(), SC_mod_user_ws_workspaceForms::main(), recordHistory::main(), tx_install::outputExitBasedOnStep(), tslib_fe::pageNotFoundHandler(), SC_mod_web_view_index::printContent(), SC_db_layout::renderQuickEdit(), SC_mod_tools_em_index::requestInstallExtensions(), SC_alt_doc::setDocument(), tx_beuser_switchbackuser::switchBack(), and SC_mod_tools_be_user_index::switchUser(). |
|
Make instance of class Takes the class-extensions API of TYPO3 into account Please USE THIS instead of the PHP "new" keyword. Eg. "$obj = new myclass;" should be "$obj = t3lib_div::makeInstance("myclass")" instead! Usage: 447
Definition at line 3984 of file class.t3lib_div.php. Referenced by tx_sysaction::action_t1_createUpdateBeUser(), t3lib_TCEforms::addSelectOptionsToItemArray(), wslib::autoPublishWorkspaces(), SC_wizard_tsconfig::browseTSprop(), SC_mod_user_ws_workspaceForms::buildEditForm(), SC_mod_user_ws_workspaceForms::buildNewForm(), callUserFunction(), tx_install::check_mail(), SC_mod_tools_em_index::checkClearCache(), t3lib_SCbase::checkExtObj(), browse_links::checkFolder(), tx_rtehtmlarea_browse_links::checkFolder(), 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_basicFileFunctions::cleanFileName(), t3lib_flexformtools::cleanFlexFormXML(), SC_db_layout::clearCache(), SC_db_list::clearCache(), SC_mod_web_ts_index::clearCache(), tslib_cObj::cObjGetSingle(), tx_impexp::compareRecords(), SC_mod_tools_be_user_index::compareUsers(), tslib_cObj::CONTENT(), t3lib_TCEmain::copyRecord(), t3lib_TCEmain::copyRecord_procBasedOnFieldType(), t3lib_TCEmain::copyRecord_procFilesRefs(), tx_indexedsearch_files::crawler_execute(), tx_indexedsearch_crawler::crawler_execute_type2(), tx_version_cm1::createDiffView(), SC_mod_user_ws_index::createDiffView(), user_feAdmin::createFileFuncObj(), SC_mod_web_ts_index::createTemplate(), tslib_cObj::CTABLE(), tslib_fe::determineId(), tx_version_cm1::displayWorkspaceOverview(), SC_mod_user_ws_index::displayWorkspaceOverview(), tx_indexedsearch_modfunc1::drawTableOfIndexedPages(), tslib_cObj::editPanel(), tx_dbal_handler_rawmysql::exec_SELECTquery(), t3lib_sqlengine::exec_SELECTquery(), tx_rtehtmlarea_select_image::expandFolder(), tx_impexp::export_addRecord(), SC_mod_tools_log_index::exportData(), local_beUserAuth::ext_compileUserInfoForHash(), t3lib_tsStyleConfig::ext_mergeIncomingWithExisting(), local_beUserAuth::ext_printOverview(), t3lib_tsfeBeUserAuth::extEditAction(), tx_indexedsearch_indexer::extractHyperLinks(), tx_indexedsearch_indexer::extractLinks(), tslib_fe::fetch_the_id(), t3lib_userAuthGroup::fetchGroupData(), browse_links::fileList(), tx_rtehtmlarea_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(), SC_wizard_table::getConfigCode(), SC_wizard_forms::getConfigCode(), t3lib_transferData::getDataIdList(), t3lib_install::getFieldDefinitions_sqlContent_parseTypes(), tx_impexp::getFileProcObj(), tslib_cObj::getImgResource(), tx_impexp::getNewTCE(), SC_mod_user_ws_workspaceForms::getOwnerUser(), t3lib_BEfunc::getPagesTSconfig(), SC_mod_web_perm_index::getRecursiveSelect(), t3lib_refindex::getRelations(), t3lib_refindex::getRelations_procDB(), t3lib_refindex::getRelations_procFiles(), tslib_gifBuilder::getResource(), tx_indexedsearch::getSearchWords(), recordList::getTreeObject(), tx_indexedsearch_modfunc1::getUidRootLineForClosestTemplate(), tx_indexedsearch_crawler::getUidRootLineForClosestTemplate(), getUserObj(), tslib_feUserAuth::getUserTSconf(), ux_t3lib_DB::handler_init(), t3lib_syntaxhl::highLight_DS(), t3lib_syntaxhl::highLight_FF(), tslib_cObj::HMENU(), tslib_cObj::HTMLparser_TSbridge(), tslib_cObj::imageLinkWrap(), t3lib_stdGraphic::imageMagickConvert(), SC_mod_tools_log_index::importData(), 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_acronym::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_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(), tx_rtehtmlarea_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_doc::init(), SC_alt_db_navframe::init(), SC_alt_clickmenu::init(), t3lib_stdGraphic::init(), SC_mod_user_setup_index::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_tools_log_index::init(), SC_mod_web_perm_index::init(), SC_mod_user_ws_index::init(), SC_tce_file::initClipboard(), SC_tce_db::initClipboard(), tslib_fe::initFEuser(), tx_tstemplateobjbrowser::initialize_editor(), tx_tstemplateinfo::initialize_editor(), tx_tstemplateceditor::initialize_editor(), tx_tstemplateanalyzer::initialize_editor(), SC_mod_user_ws_workspaceForms::initTCEForms(), tslib_fe::initTemplate(), SC_mod_tools_be_user_index::initUsers(), tx_sysaction::JScode(), tx_rtehtmlarea_select_image::magicProcess(), SC_wizard_edit::main(), SC_wizard_add::main(), SC_tce_file::main(), tx_wizardsortpages_webfunc_2::main(), tx_wizardcrpages_webfunc_2::main(), tx_tstemplateobjbrowser::main(), tx_tstemplateinfo::main(), tx_tstemplateceditor::main(), tx_rtehtmlarea_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(), SC_browse_links::main(), SC_alt_topmenu_dummy::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_clickmenu::main(), tx_version_cm1::main(), SC_mod_web_ts_index::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(), browse_links::main_db(), tx_rtehtmlarea_browse_links::main_db(), browse_links::main_file(), tx_rtehtmlarea_browse_links::main_file(), tx_rtehtmlarea_parse_html::main_parse_html(), browse_links::main_rte(), tx_rtehtmlarea_browse_links::main_rte(), tslib_frameset::make(), SC_alt_doc::makeEditForm(), tslib_imgmenu::makeImageMap(), makeInstanceService(), tslib_menu::makeMenu(), t3lib_TStemplate::matching(), tslib_cObj::mergeTSRef(), tx_lowlevel_cleaner::moduleContent(), tslib_cObj::netprintApplication_offsiteLinkWrap(), SC_mod_web_perm_index::notEdit(), SC_mod_web_ts_index::noTemplate(), tx_lowlevel_cleaner_core::orphan_records_analyze(), tslib_cObj::OTABLE(), SC_db_new::pagesOnly(), tslib_cObj::parseFunc(), recordHistory::performRollback(), tslib_pibase::pi_getEditPanel(), t3lib_positionMap::positionTree(), SC_alt_shortcut::preinit(), t3lib_TCEmain::printLogErrorMessages(), t3lib_extFileFunctions::printLogErrorMessages(), t3lib_TCEmain::process_datamap(), SC_mod_user_ws_workspaceForms::processData(), SC_alt_doc::processData(), clickMenu::processingByExtClassArray(), tx_indexedsearch_modfunc1::processPageKeywords(), tx_impexp::processSoftReferences(), tx_version_cm1::publishAction(), SC_mod_user_ws_index::publishAction(), t3lib_fullsearch::queryMaker(), tslib_cObj::RECORDS(), tx_indexedsearch_modfunc1::reindexPhash(), t3lib_TCEmain::remapListedDBRecords_procDBRefs(), SC_view_help::render_TOC(), tx_sysaction::renderActions(), TSpagegen::renderContentWithHeader(), t3lib_TCEforms::renderDefaultLanguageDiff(), recordHistory::renderDiff(), SC_show_item::renderFileInfo(), SC_db_layout::renderListContent(), t3lib_transferData::renderRecord_flexProc(), t3lib_transferData::renderRecord_groupProc(), t3lib_transferData::renderRecord_typesProc(), tx_tstemplateinfo::resourceListForCopy(), t3lib_fullsearch::resultRowDisplay(), t3lib_fullsearch::saveQueryInAction(), tslib_cObj::SEARCHRESULT(), t3lib_transferData::selectAddSpecial(), t3lib_admin::selectNonEmptyRecordsWithFkeys(), mod_user_task::sendEmail(), user_feAdmin::sendHTMLMail(), user_feAdmin::setCObjects(), tx_impexp::setFlexFormRelations(), SC_mod_user_setup_index::simulateUser(), tx_dbal_handler_rawmysql::sql_query(), t3lib_sqlengine::sql_query(), tslib_gifBuilder::start(), tslib_cObj::stdWrap(), SC_mod_user_setup_index::storeIncomingData(), tx_version_cm1::subElements(), SC_mod_user_ws_index::subElements(), tslib_menu::subMenu(), SC_view_help::substituteGlossaryWords(), tslib_cObj::TEMPLATE(), SC_mod_web_ts_index::templateMenu(), 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(), t3lib_refindex::updateIndex(), t3lib_TCEmain::updateRefIndex(), t3lib_tsparser_ext::upload_copy_file(), SC_mod_tools_em_terconnection::uploadToTER(), ux_t3lib_DB::ux_t3lib_DB(), tx_version_cm1::versioningMgm(), t3lib_admin::whereIsRecordReferenced(), SC_db_new_content_el::wizardArray(), and tslib_tmenu::writeMenu(). |
|
Return classname for new instance Takes the class-extensions API of TYPO3 into account Usage: 17
Definition at line 3996 of file class.t3lib_div.php. Referenced by tslib_cObj::callUserFunction(), local_beUserAuth::ext_getReadableButNonmounted(), local_beUserAuth::ext_printOverview(), t3lib_fullsearch::getQueryResultCode(), tslib_eidtools::initFeUser(), user_wapversion::main_wapversion(), user_xmlversion::main_xmlversion(), and user_feAdmin::sendHTMLMail(). |
|
Find the best service and check if it works. Returns object of the service class.
Definition at line 4010 of file class.t3lib_div.php. References t3lib_extMgm::deactivateService(), t3lib_extMgm::findService(), getFileAbsFileName(), makeInstance(), trimExplode(), and view_array(). Referenced by t3lib_userAuth::checkAuthentication(), and tslib_feUserAuth::fetchGroupData(). |
|
Subfunction for substUrlsInPlainText() above. Usage: 2
Definition at line 4268 of file class.t3lib_div.php. |
|
Makes a positive integer hash out of the first 7 chars from the md5 hash of the input Usage: 5
Definition at line 954 of file class.t3lib_div.php. Referenced by tx_indexedsearch_crawler::crawler_init(), t3lib_TStemplate::getCurrentPageData(), t3lib_userAuth::hashLockClause_getHashInt(), and t3lib_TStemplate::start(). |
|
milliseconds microtime recalculated to t3lib_div::milliseconds(1/1000 sec) Usage: 20
Definition at line 3180 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_UPDATEquery(), tx_indexedsearch_indexer::indexRegularDocument(), tx_indexedsearch_indexer::indexTypo3PageContent(), and tx_lowlevel_cleaner_core::orphan_records_analyze(). |
|
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
Definition at line 2494 of file class.t3lib_div.php. Referenced by 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_rtehtmlarea_pi1::main(), and tx_impexp::processSoftReferences_saveFile_createRelFile(). |
|
Creates a directory - including parent directories if necessary - in the file system
Definition at line 2513 of file class.t3lib_div.php. Referenced by SC_mod_tools_em_index::createDirsInPath(), SC_mod_tools_em_index::installTranslationsForExtension(), SC_mod_tools_em_index::updateTranslation(), and writeFileToTypo3tempDir(). |
|
Modifies a HTML Hex color by adding/subtracting $R,$G and $B integers Usage: 11
Definition at line 1048 of file class.t3lib_div.php. References intInRange(). Referenced by modifyHTMLColorAll(), and t3lib_queryGenerator::printCodeArray(). |
|
Modifies a HTML Hex color by adding/subtracting $all integer from all R/G/B channels Usage: 6
Definition at line 1068 of file class.t3lib_div.php. References modifyHTMLColor(). Referenced by t3lib_TCEforms::t3lib_TCEforms(). |
|
Normalize an IPv6 address to full length
Definition at line 726 of file class.t3lib_div.php. Referenced by cmpIPv6(). |
|
Simple substitute for the PHP function mail() which allows you to specify encoding and character set The fifth parameter, $enc, will allow you to specify 'base64' encryption for the output (set $enc=base64) Further the output has the charset set to ISO-8859-1 by default. Usage: 4
Definition at line 4074 of file class.t3lib_div.php. References encodeHeader(), quoted_printable(), and trimExplode(). Referenced by tx_install::check_mail(), and t3lib_TCEmain::notifyStageChange(). |
|
Converts a png file to gif This converts a png file to gif IF the FLAG $GLOBALS['TYPO3_CONF_VARS']['FE']['png_to_gif'] is set true. Usage: 5
Definition at line 425 of file class.t3lib_div.php. References imageMagickCommand(). Referenced by tslib_cObj::cImage(), tslib_tmenu::getBeforeAfter(), and tslib_imgmenu::makeImageMap(). |
|
Prints an array Usage: 6
Definition at line 2778 of file class.t3lib_div.php. References view_array(). |
|
Implementation of quoted-printable encode. This functions is buggy. It seems that in the part where the lines are breaked every 76th character, that it fails if the break happens right in a quoted_printable encode character! See RFC 1521, section 5.1 Quoted-Printable Content-Transfer-Encoding Usage: 2
Definition at line 4144 of file class.t3lib_div.php. Referenced by encodeHeader(), t3lib_htmlmail::encodeMsg(), plainMailEncoded(), and t3lib_htmlmail::quoted_printable(). |
|
Quotes a string for usage as JS parameter. Depends wheter the value is used in script tags (it doesn't need/must not get htmlspecialchared in this case)
Definition at line 4566 of file class.t3lib_div.php. Referenced by tslib_cObj::getUpdateJS(), TBE_browser_recordList::linkWrapItems(), and TBE_PageTree::wrapTitle(). |
|
rawurlencode which preserves "/" chars Usefull when filepaths should keep the "/" chars, but have all other special chars encoded. Usage: 5
Definition at line 1339 of file class.t3lib_div.php. |
|
Version of rawurlencode() where all spaces (20) are re-converted to space-characters. Usefull when passing text to JavaScript where you simply url-encode it to get around problems with syntax-errors, linebreaks etc. Usage: 4
Definition at line 1327 of file class.t3lib_div.php. |
|
Returns filename of the png/gif version of the input file (which can be png or gif). If input file type does not match the wanted output type a conversion is made and temp-filename returned. Usage: 2
Definition at line 450 of file class.t3lib_div.php. Referenced by t3lib_iconWorks::imagecreatefrom(). |
|
Includes a locallang file and returns the $LOCAL_LANG array found inside.
Definition at line 3546 of file class.t3lib_div.php. References getFileAbsFileName(), and readLLXMLfile(). Referenced by tx_rtehtmlarea_pi2::drawRTE(), tslib_pibase::pi_loadLL(), and language::readLLfile(). |
|
Includes a locallang-xml file and returns the $LOCAL_LANG array Works only when the frontend or backend has been initialized with a charset conversion object. See first code lines.
Definition at line 3570 of file class.t3lib_div.php. References getFileAbsFileName(), llXmlAutoFileName(), writeFileToTypo3tempDir(), and xml2array(). Referenced by readLLfile(). |
|
Removes the value $cmpValue from the $array if found there. Returns the modified array Usage: 3
Definition at line 1486 of file class.t3lib_div.php. Referenced by t3lib_TCEmain::checkValue_group_select_file(), tx_version_cm1::pageSubContent(), and tslib_menu::start(). |
|
Removes the absolute part of all files/folders in fileArr Usage: 2
Definition at line 2637 of file class.t3lib_div.php. References isFirstPartOfStr(). Referenced by t3lib_TCEforms::addSelectOptionsToItemArray(), tx_lowlevel_cleaner_core::clean_lost_files_analyze(), tx_indexedsearch_crawler::crawler_execute_type2(), SC_mod_tools_em_index::getClassIndexLocallangFiles(), and SC_mod_tools_em_index::removeExtDirectory(). |
|
Resolves ALL sheet definitions in dataStructArray If no sheet is found, then the default "sDEF" will be created with the dataStructure inside.
Definition at line 3799 of file class.t3lib_div.php. References resolveSheetDefInDS(). |
|
Resolves "../" sections in the input path string. For example "fileadmin/directory/../other_directory/" will be resolved to "fileadmin/other_directory/" Usage: 2
Definition at line 2665 of file class.t3lib_div.php. Referenced by t3lib_loadModules::checkMod(), alt_menu_functions::getNavFramePrefix(), SC_index::makeLoginBoxImage(), t3lib_stdGraphic::prependAbsolutePath(), tx_impexp::processSoftReferences_saveFile_createRelFile(), and alt_menu_functions::topMenu(). |
|
Looks for a sheet-definition in the input data structure array. If found it will return the data structure for the sheet given as $sheet (if found). If the sheet definition is in an external file that file is parsed and the data structure inside of that is returned. Usage: 5
Definition at line 3766 of file class.t3lib_div.php. References getFileAbsFileName(), and xml2array(). Referenced by t3lib_TCEmain::checkValue_flex_procInData(), t3lib_TCEforms::getSingleField_typeFlex(), t3lib_transferData::renderRecord_flexProc_procInData(), resolveAllSheetsInDS(), and t3lib_flexformtools::traverseFlexFormXMLData(). |
|
Reverse explode which explodes the string counting from behind. Thus t3lib_div::revExplode(':','my:words:here',2) will return array('my:words','here') Usage: 8
Definition at line 1432 of file class.t3lib_div.php. |
|
Removes comma (if present) in the end of string Usage: 2
Definition at line 1079 of file class.t3lib_div.php. Referenced by SC_mod_tools_dbint_index::func_records(). |
|
Removes an item from a comma-separated list of items. Usage: 1
Definition at line 847 of file class.t3lib_div.php. Referenced by fileList::getTable(). |
|
Returns the first 10 positions of the MD5-hash (changed from 6 to 10 recently) Usage: 37
Definition at line 967 of file class.t3lib_div.php. Referenced by tx_indexedsearch_indexer::extractHyperLinks(), tslib_gifBuilder::fileName(), tslib_cObj::getImgResource(), t3lib_stdGraphic::imageMagickConvert(), SC_alt_clickmenu::init(), tslib_fe::makeCacheHash(), tx_indexedsearch_indexer::makeCHash(), t3lib_modSettings::processStoreControl(), t3lib_parsehtml_proc::TS_images_db(), t3lib_extMgm::typo3_loadExtensions(), and template::wrapClickMenuOnIcon(). |
|
Either slashes ($cmd=add) or strips ($cmd=strip) array $arr depending on $cmd Usage: 0
Definition at line 1635 of file class.t3lib_div.php. |
|
This function is used to escape any ' -characters when transferring text to JavaScript! Usage: 3
Definition at line 1314 of file class.t3lib_div.php. |
|
Splits a reference to a file in 5 parts Usage: 43
Definition at line 994 of file class.t3lib_div.php. Referenced by tx_impexp::addFiles(), tslib_fe::checkAlternativeIdMethods(), t3lib_TCEmain::checkValue_group_select_file(), tslib_cObj::filelink(), tslib_cObj::filelist(), tslib_cObj::fileResource(), t3lib_extFileFunctions::findRecycler(), t3lib_extFileFunctions::func_copy(), t3lib_extFileFunctions::func_edit(), t3lib_extFileFunctions::func_move(), t3lib_extFileFunctions::func_newfile(), t3lib_extFileFunctions::func_rename(), t3lib_extFileFunctions::func_unzip(), t3lib_extFileFunctions::func_upload(), template::getFileheader(), SC_mod_tools_em_index::getFileListOfExtension(), t3lib_TStemplate::getFileName(), tslib_cObj::getImgResource(), t3lib_basicFileFunctions::getTotalFileInfo(), t3lib_basicFileFunctions::getUniqueName(), t3lib_stdGraphic::IMreduceColors(), tx_tstemplateinfo::main(), tslib_cObj::MULTIMEDIA(), tx_tstemplateinfo::procesResources(), fileList::readDirectory(), SC_show_item::renderFileInfo(), SC_mod_tools_em_index::showExtDetails(), t3lib_BEfunc::thumbCode(), t3lib_tsparser_ext::upload_copy_file(), and tx_impexp::writeFileVerify(). |
|
Returns an array with the 'components' from an attribute list from an HTML tag. The result is normally analyzed by get_tag_attributes Removes tag-name if found Usage: 2
Definition at line 1777 of file class.t3lib_div.php. Referenced by get_tag_attributes(). |
|
This splits a string by the chars in $operators (typical /+-*) and returns an array with them in Usage: 2
Definition at line 1197 of file class.t3lib_div.php. Referenced by tslib_cObj::calc(), and tslib_gifBuilder::calcOffset(). |
|
Standard authentication code (used in Direct Mail, checkJumpUrl and setfixed links computations) Usage: 2
Definition at line 3477 of file class.t3lib_div.php. References trimExplode(). |
|
StripSlash array This function traverses a multidimentional array and strips slashes to the values. NOTE that the input array is and argument by reference.!! Twin-function to addSlashesOnArray Usage: 10
Definition at line 1613 of file class.t3lib_div.php. Referenced by _GET(), _GP(), _POST(), t3lib_TCEmain::fillInFieldArray(), GParrayMerged(), and GPvar(). |
|
Takes a clear-text message body for a plain text email, finds all 'http://' links and if they are longer than 76 chars they are converted to a shorter URL with a hash parameter. The real parameter is stored in the database and the hash-parameter/URL will be redirected to the real parameter when the link is clicked. This function is about preserving long links in messages. Usage: 3
Definition at line 4234 of file class.t3lib_div.php. |
|
System error log; This should be implemented around the source code, including the Core and both frontend and backend, logging serious errors. If you want to implement the sysLog in your applications, simply add lines like: t3lib_div::sysLog('[write message in English here]', 'extension key');
Definition at line 4357 of file class.t3lib_div.php. Referenced by ux_t3lib_DB::handler_init(), SC_mod_tools_em_index::importExtFromRep(), t3lib_TSparser::parseSub(), t3lib_DB::sql_pconnect(), t3lib_DB::sql_select_db(), t3lib_userAuth::start(), and t3lib_install::writeToLocalconf_control(). |
|
Create temporary filename (Create file with unique file name) This function should be used for getting temporary filenames - will make your applications safe for open_basedir = on REMEMBER to delete the temporary files after use! This is done by t3lib_div::unlink_tempfile() Usage: 7
Definition at line 3463 of file class.t3lib_div.php. Referenced by SC_mod_tools_em_index::fetchMetaData(), t3lib_diff::getDiff(), tx_impexp::import_addFileNameToBeCopied(), tx_indexedsearch_indexer::indexExternalUrl(), tx_tstemplateinfo::main(), tx_rtehtmlarea_pi1::main(), tx_indexed_search_extparse::readFileContent(), tx_rtehtmlarea_pi1::spellCheckHandler(), t3lib_svbase::tempFile(), and upload_to_tempfile(). |
|
Tests if the input is an integer. Usage: 77
Definition at line 1120 of file class.t3lib_div.php. Referenced by array2xml(), tslib_cObj::calcAge(), SC_wizard_table::changeFunc(), SC_wizard_forms::changeFunc(), tslib_fe::checkAndSetAlias(), user_feAdmin::compileMail(), t3lib_loadDBGroup::convertPosNeg(), debug(), tslib_fe::determineId(), SC_mod_user_ws_index::displayWorkspaceOverview_list(), t3lib_TCEmain::doesRecordExist(), SC_alt_main::editPageHandling(), SC_alt_shortcut::editPageIdFunc(), tslib_cObj::editPanelLinkWrap(), t3lib_matchCondition::evalConditionStr(), browse_links::expandPage(), tx_rtehtmlarea_browse_links::expandPage(), t3lib_tsparser_ext::ext_getObjTree(), tslib_cObj::fillInMarkerArray(), t3lib_timeTrack::fixContent(), t3lib_TCEforms::getExcludeElements(), t3lib_BEfunc::getFlexFormDS(), tx_install::getItemArrayType(), t3lib_BEfunc::getPidForModTSconfig(), t3lib_TCEforms::getSingleField(), t3lib_BEfunc::getTSconfig_pidValue(), t3lib_softrefproc::getTypoLinkParts(), SC_wizard_add::init(), t3lib_clipboard::initializeClipboard(), tslib_cObj::listNum(), SC_wizard_edit::main(), SC_alt_shortcut::main(), SC_alt_doc::makeButtonPanel(), tslib_menu::makeMenu(), browse_links::parseCurUrl(), tx_rtehtmlarea_browse_links::parseCurUrl(), tslib_pibase::pi_getFFvalueFromSheetArray(), tslib_pibase::pi_isOnlyFields(), SC_alt_shortcut::preprocess(), t3lib_TCEmain::process_datamap(), tx_impexp::processSoftReferences_substTokens(), t3lib_loadDBGroup::readList(), SC_mod_web_ts_index::renderList(), t3lib_TCEforms::renderWizards(), tslib_cObj::SEARCHRESULT(), user_feAdmin::sendInfoMail(), t3lib_TCEmain::setTSconfigPermissions(), t3lib_softrefproc::setTypoLinkPartsElement(), t3lib_parsehtml_proc::TS_links_rte(), tx_install::typo3TempManager(), tslib_cObj::typoLink(), tx_tstemplateobjbrowser::verify_TSobjects(), and t3lib_arrayBrowser::wrapArrayKey(). |
|
Explodes a string and trims all values for whitespace in the ends. If $onlyNonEmptyValues is set, then all blank ('') values are removed. Usage: 256
Definition at line 1452 of file class.t3lib_div.php. |
|
Remove duplicate values from an array This function is deprecated, use the PHP function array_unique instead Usage: 0
Definition at line 1474 of file class.t3lib_div.php. |
|
Takes comma-separated lists and arrays and removes all duplicates If a value in the list is trim(empty), the value is ignored. Usage: 16
Definition at line 980 of file class.t3lib_div.php. References trimExplode(). Referenced by t3lib_userAuthGroup::fetchGroupData(), tslib_cObj::filelist(), t3lib_BEfunc::getRecordWSOL(), fileList::getTable(), and t3lib_basicFileFunctions::init(). |
|
Deletes (unlink) a temporary filename in 'PATH_site."typo3temp/"' given as input. The function will check that the file exists, is in PATH_site."typo3temp/" and does not contain back-spaces ("../") so it should be pretty safe. Use this after upload_to_tempfile() or tempnam() from this class! Usage: 9
Definition at line 3447 of file class.t3lib_div.php. References isFirstPartOfStr(), and validPathStr(). Referenced by SC_mod_tools_em_index::fetchMetaData(), SC_mod_tools_log_index::importData(), SC_mod_tools_em_index::importExtFromRep(), user_feAdmin::init(), tx_tstemplateinfo::main(), tx_rtehtmlarea_pi1::main(), tx_rtehtmlarea_pi1::spellCheckHandler(), t3lib_formmail::start(), tx_impexp::unlinkTempFiles(), t3lib_svbase::unlinkTempFiles(), and t3lib_tsparser_ext::upload_copy_file(). |
|
Explode a string (normally a list of filenames) with whitespaces by considering quotes in that string. This is mostly needed by the imageMagickCommand function above.
Definition at line 4532 of file class.t3lib_div.php. Referenced by t3lib_parsehtml_proc::TS_links_rte(), and tslib_cObj::typoLink(). |
|
Moves $source file to $destination if uploaded, otherwise try to make a copy Usage: 4
Definition at line 3403 of file class.t3lib_div.php. References fixPermissions(). Referenced by t3lib_TCEmain::checkValue_group_select_file(), t3lib_extFileFunctions::func_upload(), and user_feAdmin::processFiles(). |
|
Will move an uploaded file (normally in "/tmp/xxxxx") to a temporary filename in PATH_site."typo3temp/" from where TYPO3 can use it under safe_mode. Use this function to move uploaded files to where you can work on them. REMEMBER to use t3lib_div::unlink_tempfile() afterwards - otherwise temp-files will build up! They are NOT automatically deleted in PATH_site."typo3temp/"! Usage: 6
Definition at line 3429 of file class.t3lib_div.php. References tempnam(). Referenced by SC_mod_tools_em_index::importExtFromRep(), tx_tstemplateinfo::main(), user_feAdmin::processFiles(), t3lib_formmail::start(), and t3lib_tsparser_ext::upload_copy_file(). |
|
Checking syntax of input email address Usage: 5
Definition at line 1350 of file class.t3lib_div.php. Referenced by tslib_cObj::checkEmail(), t3lib_readmail::extractNameEmail(), and recordList::linkUrlMail(). |
|
Validate a given IP address to the IPv6 address format. Example for possible format: 43FBBB3F:A0A0:0 | ::1
Definition at line 782 of file class.t3lib_div.php. |
|
Checks for malicious file paths. Returns true if no '//', '..' or '\' is in the $theFile This should make sure that the path is not pointing 'backwards' and further doesn't contain double/back slashes. So it's compatible with the UNIX style path strings valid for TYPO3 internally. Usage: 14
Definition at line 3346 of file class.t3lib_div.php. Referenced by t3lib_userAuthGroup::addFileMount(), tslib_cObj::clean_directory(), t3lib_parsehtml_proc::evalWriteFile(), getFileAbsFileName(), t3lib_cs::initCharset(), t3lib_cs::initUnicodeData(), isAllowedAbsPath(), t3lib_basicFileFunctions::isPathValid(), tx_install::typo3conf_edit(), unlink_tempfile(), and writeFileToTypo3tempDir(). |
|
Verifies the input filename againts the 'fileDenyPattern'. Returns true if OK. Usage: 2
Definition at line 3385 of file class.t3lib_div.php. Referenced by t3lib_basicFileFunctions::checkIfAllowed(), and user_feAdmin::processFiles(). |
|
Returns HTML-code, which is a visual representation of a multidimensional array use t3lib_div::print_array() in order to print an array Returns false if $array_in is not an array Usage: 31
Definition at line 2750 of file class.t3lib_div.php. Referenced by t3lib_DB::debug(), SC_mod_tools_em_index::extensionListRow(), SC_mod_tools_em_index::extInformationArray(), tslib_cObj::getData(), tx_cms_webinfo_lang::getLocalizedElementInfo(), t3lib_fullsearch::getQueryResultCode(), tx_lowlevel_cleaner_core::html_printInfo(), makeInstanceService(), tx_install::phpinformation(), print_array(), tx_impexp::printErrorLog(), t3lib_timeTrack::printTSlog(), tx_indexedsearch_modfunc1::reindexPhash(), and tx_indexedsearch_modfunc1::showDetailsForPhash(). |
|
Wraps JavaScript code XHTML ready with <script>-tags Automatic re-identing of the JS code is done by using the first line as ident reference. This is nice for identing JS code with PHP code on the same level.
Definition at line 1853 of file class.t3lib_div.php. |
|
Writes $content to the file $file Usage: 30
Definition at line 2409 of file class.t3lib_div.php. References fixPermissions(). Referenced by tx_dbal_handler_xmldb::admin_query(), ux_t3lib_DB::cacheFieldInfo(), SC_mod_tools_em_index::checkUploadFolder(), SC_mod_tools_em_index::extDumpTables(), SC_mod_tools_em_index::fetchMetaData(), t3lib_TCEmain::fillInFieldArray(), t3lib_extFileFunctions::func_edit(), t3lib_extFileFunctions::func_newfile(), t3lib_diff::getDiff(), tx_impexp::import_addFileNameToBeCopied(), SC_mod_tools_log_index::importData(), SC_mod_tools_em_index::importExtFromRep(), tx_indexedsearch_indexer::indexExternalUrl(), TSpagegen::inline2TempFile(), SC_mod_tools_em_index::installTranslationsForExtension(), tx_tstemplateinfo::main(), tx_impexp::processSoftReferences_saveFile_createRelFile(), tx_dbal_handler_xmldb::saveDataSource(), SC_mod_tools_em_xmlhandler::saveExtensionsXML(), SC_mod_tools_em_index::showExtDetails(), t3lib_parsehtml_proc::TS_images_db(), tx_install::typo3conf_edit(), SC_mod_tools_em_index::updateLocalEM_CONF(), SC_mod_tools_em_index::updateTranslation(), t3lib_extMgm::writeCacheFiles(), writeFileToTypo3tempDir(), tx_impexp::writeFileVerify(), t3lib_install::writeToLocalconf_control(), and tx_dbal_handler_xmldb::xmlDB_writeStructure(). |
|
Writes $content to a filename in the typo3temp/ folder (and possibly one or two subfolders...) Accepts an additional subdirectory in the file path!
Definition at line 2451 of file class.t3lib_div.php. References isFirstPartOfStr(), mkdir_deep(), validPathStr(), and writeFile(). Referenced by t3lib_cs::initCharset(), t3lib_cs::initToASCII(), t3lib_cs::initUnicodeData(), readLLXMLfile(), and t3lib_TCEmain::version_swap(). |
|
Converts an XML string to a PHP array. This is the reverse function of array2xml() Usage: 17
Definition at line 2120 of file class.t3lib_div.php. Referenced by t3lib_TCEmain::checkValue_flex(), t3lib_TCEmain::copyRecord_procBasedOnFieldType(), SC_wizard_table::getConfigCode(), SC_wizard_forms::getConfigCode(), t3lib_BEfunc::getFlexFormDS(), t3lib_refindex::getRelations(), t3lib_TCEforms::getSingleField_typeFlex(), t3lib_syntaxhl::highLight_DS(), t3lib_syntaxhl::highLight_FF(), tx_impexp::loadFile(), tx_adodb_checkconnectionwizard::main(), tslib_pibase::pi_initPIflexForm(), tx_impexp::processSoftReferences(), tx_dbal_handler_xmldb::readDataSource(), readLLXMLfile(), t3lib_TCEmain::remapListedDBRecords(), t3lib_transferData::renderRecord_flexProc(), resolveSheetDefInDS(), tx_impexp::setFlexFormRelations(), t3lib_flexformtools::traverseFlexFormXMLData(), and tx_dbal_handler_xmldb::xmlDB_readStructure(). |
|
Parses XML input into a PHP array with associative keys Usage: 0
Definition at line 1884 of file class.t3lib_div.php. References xmlRecompileFromStructValArray(). Referenced by tx_indexed_search_extparse::readFileContent(). |
|
Extract the encoding scheme as found in the first line of an XML document (typically) Usage: 1
Definition at line 2274 of file class.t3lib_div.php. References get_tag_attributes(). Referenced by t3lib_TCEforms::getSingleField_typeFlex(), and t3lib_flexformtools::traverseFlexFormXMLData(). |
|
This implodes an array of XML parts (made with xml_parse_into_struct()) into XML again. Usage: 2
Definition at line 2230 of file class.t3lib_div.php. Referenced by xml2tree(). |