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) | |
| 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='') | |
| 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.
|
|
Returns the global GET array (or value from) normalized to contain un-escaped values. ALWAYS use this API function to acquire the GET variables! Usage: 27
Definition at line 280 of file class.t3lib_div.php. |
|
||||||||||||
|
Writes input value to $_GET Usage: 2
Definition at line 313 of file class.t3lib_div.php. |
|
|
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. |
|
|
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. |
|
|
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 1587 of file class.t3lib_div.php. |
|
||||||||||||||||||||||||||||||||
|
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 1999 of file class.t3lib_div.php. |
|
||||||||||||||||||||
|
Turns PHP array into XML. See array2xml()
Definition at line 1958 of file class.t3lib_div.php. |
|
||||||||||||
|
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 1683 of file class.t3lib_div.php. |
|
||||||||||||||||||||
|
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 1650 of file class.t3lib_div.php. |
|
||||||||||||||||
|
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 4396 of file class.t3lib_div.php. |
|
||||||||||||||||
|
Breaks up a single line of text for emails Usage: 5
Definition at line 574 of file class.t3lib_div.php. |
|
||||||||||||||||
|
Breaks up the text for emails Usage: 1
Definition at line 555 of file class.t3lib_div.php. |
|
|
Calculates the input with parenthesis levels Usage: 2
Definition at line 1258 of file class.t3lib_div.php. |
|
|
Calculates the input by +,-,*,/,%,^ with priority to + and - Usage: 1
Definition at line 1217 of file class.t3lib_div.php. |
|
||||||||||||||||||||||||
|
Calls a userdefined function/method in class Such a function/method should look like this: "function proc(&$params, &$ref) {...}" Usage: 17
Definition at line 3756 of file class.t3lib_div.php. |
|
|
Splits the input query-parameters into an array with certain parameters filtered out. Used to create the cHash value
Definition at line 3440 of file class.t3lib_div.php. |
|
|
Client Browser Information Usage: 4
Definition at line 3155 of file class.t3lib_div.php. |
|
||||||||||||
|
Match fully qualified domain name with list of strings with wildcard
Definition at line 805 of file class.t3lib_div.php. |
|
||||||||||||
|
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. |
|
||||||||||||
|
Match IPv4 number with list of numbers with wildcard
Definition at line 626 of file class.t3lib_div.php. |
|
||||||||||||
|
Match IPv6 address with a list of IPv6 prefixes
Definition at line 668 of file class.t3lib_div.php. |
|
|
Returns true if the current TYPO3 version (or compatibility version) is compatible to the input version
Definition at line 934 of file class.t3lib_div.php. |
|
||||||||||||||||
|
Returns an array with selected keys from incoming data. (Better read source code if you want to find out...) Usage: 3
Definition at line 1564 of file class.t3lib_div.php. |
|
|
Returns microtime input to milliseconds Usage: 2
Definition at line 1181 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 1105 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 1696 of file class.t3lib_div.php. |
|
|
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 1090 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 2756 of file class.t3lib_div.php. |
|
||||||||||||
|
Returns a string with a list of ascii-values for the first $characters characters in $string Usage: 0
Definition at line 2696 of file class.t3lib_div.php. |
|
|
Displays the "path" of the function call stack in a string, using debug_backtrace
Definition at line 2787 of file class.t3lib_div.php. |
|
||||||||||||
|
Displays an array as rows in a table. Useful to debug output like an array of database records.
Definition at line 2809 of file class.t3lib_div.php. |
|
|
Re-converts HTML entities if they have been converted by htmlspecialchars() Usage: 10
Definition at line 1299 of file class.t3lib_div.php. |
|
||||||||||||||||||||
|
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 4375 of file class.t3lib_div.php. |
|
|
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 1030 of file class.t3lib_div.php. |
|
|
Definition at line 23 of file incfile.php. |
|
||||||||||||||||
|
Encode header lines Email headers must be ASCII, therefore they will be encoded to quoted_printable (default) or base64.
Definition at line 4119 of file class.t3lib_div.php. |
|
|
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 1538 of file class.t3lib_div.php. |
|
||||||||||||||||
|
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. |
|
||||||||||||
|
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. |
|
||||||||||||
|
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. |
|
|
Setting file system mode & group ownership of file
Definition at line 2397 of fil |