Public Member Functions | |
| keepItemsInArray (array $array, $keepItems, $getValueFunc=null) | |
Static Public Member Functions | |
| static | _GP ($var) |
| static | _GET ($var=NULL) |
| static | _POST ($var=NULL) |
| static | _GETset ($inputGet, $key='') |
| static | GPvar ($var, $strip=0) |
| static | GParrayMerged ($var) |
| static | removeXSS ($string) |
| static | gif_compress ($theFile, $type) |
| static | png_to_gif_by_imagemagick ($theFile) |
| static | read_png_gif ($theFile, $output_png=0) |
| static | fixed_lgd ($string, $origChars, $preStr='...') |
| static | fixed_lgd_pre ($string, $chars) |
| static | fixed_lgd_cs ($string, $chars) |
| static | breakTextForEmail ($str, $implChar="\n", $charWidth=76) |
| static | breakLinesForEmail ($str, $implChar="\n", $charWidth=76) |
| static | cmpIP ($baseIP, $list) |
| static | cmpIPv4 ($baseIP, $list) |
| static | cmpIPv6 ($baseIP, $list) |
| static | IPv6Hex2Bin ($hex) |
| static | normalizeIPv6 ($address) |
| static | validIP ($ip) |
| static | validIPv4 ($ip) |
| static | validIPv6 ($ip) |
| static | cmpFQDN ($baseIP, $list) |
| static | inList ($list, $item) |
| static | rmFromList ($element, $list) |
| static | expandList ($list) |
| static | intInRange ($theInt, $min, $max=2000000000, $zeroValue=0) |
| static | intval_positive ($theInt) |
| static | int_from_ver ($verNumberStr) |
| static | compat_version ($verNumberStr) |
| static | md5int ($str) |
| static | shortMD5 ($input, $len=10) |
| static | uniqueList ($in_list, $secondParameter=NULL) |
| static | split_fileref ($fileref) |
| static | dirname ($path) |
| static | modifyHTMLColor ($color, $R, $G, $B) |
| static | modifyHTMLColorAll ($color, $all) |
| static | rm_endcomma ($string) |
| static | danish_strtoupper ($string) |
| static | convUmlauts ($str) |
| static | testInt ($var) |
| static | isFirstPartOfStr ($str, $partStr) |
| static | formatSize ($sizeInBytes, $labels='') |
| static | convertMicrotime ($microtime) |
| static | splitCalc ($string, $operators) |
| static | calcPriority ($string) |
| static | calcParenthesis ($string) |
| static | htmlspecialchars_decode ($value) |
| static | deHSCentities ($str) |
| static | slashJS ($string, $extended=0, $char="'") |
| static | rawUrlEncodeJS ($str) |
| static | rawUrlEncodeFP ($str) |
| static | validEmail ($email) |
| static | isBrokenEmailEnvironment () |
| static | normalizeMailAddress ($address) |
| static | formatForTextarea ($content) |
| static | strtoupper ($str) |
| static | strtolower ($str) |
| static | generateRandomBytes ($count) |
| static | inArray (array $in_array, $item) |
| static | intExplode ($delim, $string, $onlyNonEmptyValues=false, $limit=0) |
| static | revExplode ($delim, $string, $count=0) |
| static | trimExplode ($delim, $string, $onlyNonEmptyValues=false, $limit=0) |
| static | uniqueArray (array $valueArray) |
| static | removeArrayEntryByValue (array $array, $cmpValue) |
| static | implodeArrayForUrl ($name, array $theArray, $str= '', $skipBlank=false, $rawurlencodeParamName=false) |
| static | explodeUrl2Array ($string, $multidim=FALSE) |
| static | compileSelectedGetVarsFromArray ($varList, array $getArray, $GPvarAlt=1) |
| static | addSlashesOnArray (array &$theArray) |
| static | stripSlashesOnArray (array &$theArray) |
| static | slashArray (array $arr, $cmd) |
| static | array_merge_recursive_overrule (array $arr0, array $arr1, $notAddKeys=0, $includeEmtpyValues=true) |
| static | array_merge (array $arr1, array $arr2) |
| static | csvValues (array $row, $delim=',', $quote='"') |
| static | array2json (array $jsonArray) |
| static | removeDotsFromTS (array $ts) |
| static | get_tag_attributes ($tag) |
| static | split_tag_attributes ($tag) |
| static | implodeAttributes (array $arr, $xhtmlSafe=FALSE, $dontOmitBlankAttribs=FALSE) |
| static | implodeParams (array $arr, $xhtmlSafe=FALSE, $dontOmitBlankAttribs=FALSE) |
| static | wrapJS ($string, $linebreak=TRUE) |
| static | xml2tree ($string, $depth=999) |
| static | array2xml_cs (array $array, $docTag='phparray', array $options=array(), $charset='') |
| static | array2xml (array $array, $NSprefix='', $level=0, $docTag='phparray', $spaceInd=0, array $options=array(), array $stackData=array()) |
| static | xml2array ($string, $NSprefix='', $reportDocTag=FALSE) |
| static | xmlRecompileFromStructValArray (array $vals) |
| static | xmlGetHeaderAttribs ($xmlData) |
| static | minifyJavaScript ($script, &$error= '') |
| static | getURL ($url, $includeHeader=0, $requestHeaders=false, &$report=NULL) |
| static | writeFile ($file, $content) |
| static | fixPermissions ($file) |
| static | writeFileToTypo3tempDir ($filepath, $content) |
| static | mkdir ($theNewFolder) |
| static | mkdir_deep ($destination, $deepDir) |
| static | rmdir ($path, $removeNonEmpty=false) |
| static | get_dirs ($path) |
| static | getFilesInDir ($path, $extensionList='', $prependPath=0, $order='', $excludePattern='') |
| static | getAllFilesAndFoldersInPath (array $fileArr, $path, $extList='', $regDirs=0, $recursivityLevels=99, $excludePattern='') |
| static | removePrefixPathFromList (array $fileArr, $prefixToRemove) |
| static | fixWindowsFilePath ($theFile) |
| static | resolveBackPath ($pathStr) |
| static | locationHeaderUrl ($path) |
| static | debug_ordvalue ($string, $characters=100) |
| static | view_array ($array_in) |
| static | print_array ($array_in) |
| static | debug ($var='', $brOrHeader=0) |
| static | debug_trail () |
| static | debugRows ($rows, $header='', $returnHTML=FALSE) |
| static | getThisUrl () |
| static | linkThisScript (array $getParams=array()) |
| static | linkThisUrl ($url, array $getParams=array()) |
| static | redirect ($url, $httpStatus=t3lib_div::HTTP_STATUS_303) |
| static | getIndpEnv ($getEnvName) |
| static | milliseconds () |
| static | clientInfo ($useragent='') |
| static | getHostname ($requestHost=TRUE) |
| static | getFileAbsFileName ($filename, $onlyRelative=TRUE, $relToTYPO3_mainDir=FALSE) |
| static | validPathStr ($theFile) |
| static | isAbsPath ($path) |
| static | isAllowedAbsPath ($path) |
| static | verifyFilenameAgainstDenyPattern ($filename) |
| static | upload_copy_move ($source, $destination) |
| static | upload_to_tempfile ($uploadedFileName) |
| static | unlink_tempfile ($uploadedTempFileName) |
| static | tempnam ($filePrefix) |
| static | stdAuthCode ($uid_or_record, $fields='', $codeLength=8) |
| static | cHashParams ($addQueryParams) |
| static | hideIfNotTranslated ($l18n_cfg_fieldValue) |
| static | readLLfile ($fileRef, $langKey, $charset='') |
| static | readLLPHPfile ($fileRef, $langKey, $charset='') |
| static | readLLXMLfile ($fileRef, $langKey, $charset='') |
| static | llXmlAutoFileName ($fileRef, $language) |
| static | loadTCA ($table) |
| static | resolveSheetDefInDS ($dataStructArray, $sheet='sDEF') |
| static | resolveAllSheetsInDS (array $dataStructArray) |
| static | callUserFunction ($funcName, &$params, &$ref, $checkPrefix='user_', $errorMode=0) |
| static & | getUserObj ($classRef, $checkPrefix='user_', $silent=0) |
| static & | makeInstance ($className) |
| static | makeInstanceClassName ($className) |
| static & | makeInstanceService ($serviceType, $serviceSubType='', $excludeServiceKeys=array()) |
| static | requireOnce ($requireFile) |
| static | plainMailEncoded ($email, $subject, $message, $headers='', $encoding='quoted-printable', $charset='', $dontEncodeHeader=false) |
| static | quoted_printable ($string, $maxlen=76) |
| static | encodeHeader ($line, $enc='quoted-printable', $charset='iso-8859-1') |
| static | substUrlsInPlainText ($message, $urlmode='76', $index_script_url='') |
| static | makeRedirectUrl ($inUrl, $l=0, $index_script_url='') |
| static | freetypeDpiComp ($font_size) |
| static | initSysLog () |
| static | sysLog ($msg, $extKey, $severity=0) |
| static | devLog ($msg, $extKey, $severity=0, $dataVar=FALSE) |
| static | arrayToLogString (array $arr, $valueList=array(), $valueLength=20) |
| static | imageMagickCommand ($command, $parameters, $path='') |
| static | unQuoteFilenames ($parameters, $unQuote=FALSE) |
| static | quoteJSvalue ($value, $inScriptTags=false) |
Public Attributes | |
| const | SYSLOG_SEVERITY_INFO = 0 |
| const | SYSLOG_SEVERITY_NOTICE = 1 |
| const | SYSLOG_SEVERITY_WARNING = 2 |
| const | SYSLOG_SEVERITY_ERROR = 3 |
| const | SYSLOG_SEVERITY_FATAL = 4 |
| const | HTTP_STATUS_100 = 'HTTP/1.1 100 Continue' |
| const | HTTP_STATUS_101 = 'HTTP/1.1 101 Switching Protocols' |
| const | HTTP_STATUS_200 = 'HTTP/1.1 200 OK' |
| const | HTTP_STATUS_201 = 'HTTP/1.1 201 Created' |
| const | HTTP_STATUS_202 = 'HTTP/1.1 202 Accepted' |
| const | HTTP_STATUS_203 = 'HTTP/1.1 203 Non-Authoritative Information' |
| const | HTTP_STATUS_204 = 'HTTP/1.1 204 No Content' |
| const | HTTP_STATUS_205 = 'HTTP/1.1 205 Reset Content' |
| const | HTTP_STATUS_206 = 'HTTP/1.1 206 Partial Content' |
| const | HTTP_STATUS_300 = 'HTTP/1.1 300 Multiple Choices' |
| const | HTTP_STATUS_301 = 'HTTP/1.1 301 Moved Permanently' |
| const | HTTP_STATUS_302 = 'HTTP/1.1 302 Found' |
| const | HTTP_STATUS_303 = 'HTTP/1.1 303 See Other' |
| const | HTTP_STATUS_304 = 'HTTP/1.1 304 Not Modified' |
| const | HTTP_STATUS_305 = 'HTTP/1.1 305 Use Proxy' |
| const | HTTP_STATUS_307 = 'HTTP/1.1 307 Temporary Redirect' |
| const | HTTP_STATUS_400 = 'HTTP/1.1 400 Bad Request' |
| const | HTTP_STATUS_401 = 'HTTP/1.1 401 Unauthorized' |
| const | HTTP_STATUS_402 = 'HTTP/1.1 402 Payment Required' |
| const | HTTP_STATUS_403 = 'HTTP/1.1 403 Forbidden' |
| const | HTTP_STATUS_404 = 'HTTP/1.1 404 Not Found' |
| const | HTTP_STATUS_405 = 'HTTP/1.1 405 Method Not Allowed' |
| const | HTTP_STATUS_406 = 'HTTP/1.1 406 Not Acceptable' |
| const | HTTP_STATUS_407 = 'HTTP/1.1 407 Proxy Authentication Required' |
| const | HTTP_STATUS_408 = 'HTTP/1.1 408 Request Timeout' |
| const | HTTP_STATUS_409 = 'HTTP/1.1 409 Conflict' |
| const | HTTP_STATUS_410 = 'HTTP/1.1 410 Gone' |
| const | HTTP_STATUS_411 = 'HTTP/1.1 411 Length Required' |
| const | HTTP_STATUS_412 = 'HTTP/1.1 412 Precondition Failed' |
| const | HTTP_STATUS_413 = 'HTTP/1.1 413 Request Entity Too Large' |
| const | HTTP_STATUS_414 = 'HTTP/1.1 414 Request-URI Too Long' |
| const | HTTP_STATUS_415 = 'HTTP/1.1 415 Unsupported Media Type' |
| const | HTTP_STATUS_416 = 'HTTP/1.1 416 Requested Range Not Satisfiable' |
| const | HTTP_STATUS_417 = 'HTTP/1.1 417 Expectation Failed' |
| const | HTTP_STATUS_500 = 'HTTP/1.1 500 Internal Server Error' |
| const | HTTP_STATUS_501 = 'HTTP/1.1 501 Not Implemented' |
| const | HTTP_STATUS_502 = 'HTTP/1.1 502 Bad Gateway' |
| const | HTTP_STATUS_503 = 'HTTP/1.1 503 Service Unavailable' |
| const | HTTP_STATUS_504 = 'HTTP/1.1 504 Gateway Timeout' |
| const | HTTP_STATUS_505 = 'HTTP/1.1 505 Version Not Supported' |
Definition at line 232 of file class.t3lib_div.php.
| static t3lib_div::_GET | ( | $ | var = NULL |
) | [static] |
Returns the global GET array (or value from) normalized to contain un-escaped values. ALWAYS use this API function to acquire the GET variables! Usage: 27
| string | Optional pointer to value in GET array (basically name of GET var) |
Definition at line 331 of file class.t3lib_div.php.
References $value, and stripSlashesOnArray().
Referenced by tslib_fe::ADMCMD_preview(), tx_feedit_adminpanel::display(), t3lib_BEfunc::displayWarningMessages(), SC_alt_main::editPageHandling(), SC_mod_tools_dbint_index::func_records(), t3lib_BEfunc::getFuncMenu(), tx_felogin_pi1::getPreserveGetVars(), tslib_cObj::getQueryArguments(), SC_show_item::init(), linkThisScript(), tx_tstemplateobjbrowser::main(), tx_tstemplateanalyzer::main(), SC_logomenu::main(), SC_file_list::main(), SC_db_list::main(), SC_alt_clickmenu::main(), SC_mod_tools_config_index::main(), SC_mod_user_ws_index::main(), tslib_fe::makeCacheHash(), template::makeShortcutUrl(), tslib_fe::mergingWithGetVars(), tx_tstemplateobjbrowser::modMenu(), TSpagegen::pagegenInit(), SC_alt_doc::preInit(), t3lib_TStemplate::processTemplate(), SC_db_layout::renderQuickEdit(), tx_indexedsearch_modfunc2::showStats(), t3lib_userAuth::start(), SC_alt_main::startModule(), template::template(), and SC_mod_tools_em_index::translationHandling().
| static t3lib_div::_GETset | ( | $ | inputGet, | |
| $ | key = '' | |||
| ) | [static] |
Writes input value to $_GET Usage: 2
| mixed | Array to write to $_GET. Values should NOT be escaped at input time (but will be escaped before writing according to TYPO3 standards). | |
| string | Alternative key; If set, this will not set the WHOLE GET array, but only the key in it specified by this value! |
Definition at line 364 of file class.t3lib_div.php.
References $GLOBALS, $key, and addSlashesOnArray().
Referenced by tslib_fe::ADMCMD_preview(), and tslib_fe::mergingWithGetVars().
| static t3lib_div::_GP | ( | $ | var | ) | [static] |
Returns the 'GLOBAL' value of incoming data from POST or GET, with priority to POST (that is equalent to 'GP' order) Strips slashes from all output, both strings and arrays. This function substitutes t3lib_div::GPvar() To enhancement security in your scripts, please consider using t3lib_div::_GET or t3lib_div::_POST if you already know by which method your data is arriving to the scripts! Usage: 537
| string | GET/POST var to return |
Definition at line 313 of file class.t3lib_div.php.
References $value, and stripSlashesOnArray().
Referenced by tx_t3editor::__construct(), WorkspaceSelector::__construct(), tx_sysaction::action_t1_createUpdateBeUser(), tslib_fe::ADMCMD_preview(), SC_mod_tools_em_index::checkDBupdates(), t3lib_SCbase::checkExtObj(), t3lib_extobjbase::checkExtObj(), tx_install::checkPassword(), SC_mod_tools_log_index::checkUpload(), t3lib_TCEmain::checkValue_flex(), SC_mod_web_ts_index::clearCache(), tx_opendocs::closeDocument(), SC_mod_tools_be_user_index::compareUsers(), SC_mod_web_ts_index::createTemplate(), tslib_fe::determineId(), user_feAdmin::displayCreateScreen(), user_feAdmin::displayEditForm(), recordHistory::displaySettings(), tx_version_cm1::displayWorkspaceOverview(), tx_version_cm1::displayWorkspaceOverview_allStageCmd(), tx_feedit_editpanel::editContent(), tx_feedit_editpanel::editIcons(), tx_feedit_editpanel::editPanelLinkWrap(), tx_rtehtmlarea_select_image::expandFolder(), localPageTree::ext_tree(), SC_mod_tools_em_index::extensionList_import(), tslib_fe::fetch_the_id(), SC_mod_tools_dbint_index::func_filesearch(), SC_mod_tools_dbint_index::func_refindex(), tx_install::generateConfigForm(), wsol_preview::generateUrls(), SC_mod_tools_em_index::getButtons(), SC_mod_tools_log_index::getButtons(), tslib_cObj::getData(), tx_feedit_adminpanel::getEditModule(), tslib_cObj::getFieldDefaultValue(), SC_mod_tools_em_index::getFuncMenu(), t3lib_matchCondition::getGP_ENV_TSFE(), tslib_feUserAuth::getLoginFormData(), t3lib_userAuth::getLoginFormData(), SC_mod_user_ws_workspaceForms::getModuleParameters(), t3lib_fullsearch::getQueryResultCode(), tx_openid_sv1::getReturnURL(), t3lib_TCEforms::getSingleField(), tx_openid_sv1::getUser(), wslib_gui::getWorkspaceOverview(), t3lib_extobjbase::handleExternalFunctionValue(), tx_rtehtmlarea_dam_browse_media::imageInsert(), SC_wizard_tsconfig::init(), SC_wizard_table::init(), SC_wizard_rte::init(), SC_wizard_list::init(), SC_wizard_forms::init(), SC_wizard_edit::init(), SC_wizard_colorpicker::init(), SC_wizard_add::init(), SC_view_help::init(), SC_tce_file::init(), SC_tce_db::init(), tx_rtehtmlarea_parse_html::init(), tx_rtehtmlarea_user::init(), tx_rtehtmlarea_dam_browse_media::init(), tx_rtehtmlarea_dam_browse_links::init(), tx_rtehtmlarea_browse_links::init(), user_feAdmin::init(), SC_db_new_content_el::init(), SC_db_layout::init(), SC_move_el::init(), SC_mod_user_ws_publish::init(), SC_mod_tools_em_index::init(), SC_file_upload::init(), SC_file_rename::init(), SC_file_newfolder::init(), SC_file_list::init(), SC_file_edit::init(), SC_db_new::init(), SC_db_list::init(), browse_links::init(), SC_browse_links::init(), SC_alt_palette::init(), SC_alt_menu::init(), SC_alt_file_navframe::init(), SC_alt_doc::init(), SC_alt_db_navframe::init(), SC_alt_clickmenu::init(), clickMenu::init(), t3lib_SCbase::init(), SC_mod_web_view_index::init(), SC_mod_web_ts_index::init(), SC_mod_tools_be_user_index::init(), SC_mod_web_perm_index::init(), SC_index::init(), tx_openid_sv1::initAuth(), t3lib_frontendedit::initConfigOptions(), tslib_fe::initFEuser(), t3lib_treeView::initializePositionSaving(), t3lib_folderTree::initializePositionSaving(), tx_rtehtmlarea_select_image::initVariables(), tx_rtehtmlarea_browse_links::initVariables(), tx_rtehtmlarea_select_image::insertImage(), tx_rtehtmlarea_select_image::insertMagicImage(), tx_install::isTTF(), tx_rtehtmlarea_dam_browse_media::isValid(), tx_rtehtmlarea_dam_browse_links::isValid(), tslib_fe::jumpUrl(), SC_alt_doc::localizationRedirect(), tx_install::loginForm(), SC_logout::logout(), SC_wizard_colorpicker::main(), tx_wizardsortpages_webfunc_2::main(), tx_wizardcrpages_webfunc_2::main(), tx_tstemplateobjbrowser::main(), tx_tstemplateinfo::main(), tx_tstemplateceditor::main(), tx_rtehtmlarea_parse_html::main(), tx_openid_eID::main(), tx_indexedsearch_modfunc1::main(), tx_impexp_modfunc1::main(), tx_impexp_clickmenu::main(), tx_felogin_pi1::main(), tx_extrapagecmoptions::main(), SC_show_item::main(), wsol_preview::main(), SC_mod_user_ws_workspaceForms::main(), recordHistory::main(), SC_browser::main(), SC_alt_mod_frameset::main(), SC_alt_clickmenu::main(), tx_version_cm1::main(), SC_mod_tools_config_index::main(), SC_mod_tools_log_index::main(), tx_dbal_module1::main(), SC_mod_tools_be_user_index::main(), tx_rtehtmlarea_acronym_mod::main_acronym(), browse_links::main_file(), tx_rtehtmlarea_parse_html::main_parse_html(), tx_rtehtmlarea_select_image::main_rte(), tx_rtehtmlarea_dam_browse_media::main_rte(), tx_rtehtmlarea_user::main_user(), SC_db_layout::menuConfig(), SC_mod_tools_em_index::menuConfig(), SC_file_list::menuConfig(), SC_db_list::menuConfig(), t3lib_SCbase::menuConfig(), tx_version_cm1::menuConfig(), SC_mod_tools_dbint_index::menuConfig(), SC_mod_tools_config_index::menuConfig(), SC_mod_tools_isearch_index::menuConfig(), SC_mod_tools_be_user_index::menuConfig(), SC_mod_tools_log_index::menuConfig(), SC_mod_web_perm_index::menuConfig(), SC_mod_user_ws_index::menuConfig(), tx_lowlevel_cleaner::moduleContent(), tx_tsconfighelp_module1::moduleContent(), SC_mod_user_ws_index::moduleContent_publish(), TSpagegen::pagegenInit(), user_feAdmin::parseValues(), SC_alt_shortcut::preinit(), SC_alt_doc::preInit(), tx_dbal_module1::printCachedInfo(), tx_dbal_module1::printLogMgm(), tx_dbal_module1::printSqlCheck(), webPageTree::printTree(), filelistFolderTree::printTree(), tx_t3editor_TSrefLoader::processAjaxRequest(), tx_t3editor_codecompletion::processAjaxRequest(), t3lib_TCEforms_inline::processAjaxRequest(), t3lib_TCEforms_inline::processAjaxRequestConstruct(), SC_mod_user_ws_workspaceForms::processData(), SC_alt_doc::processData(), user_feAdmin::procesSetFixed(), SC_mod_tools_log_index::processPresets(), t3lib_modSettings::processStoreControl(), t3lib_fullsearch::procesStoreControl(), recordHistory::recordHistory(), template::redirectUrls(), tx_sysaction::renderActions(), tx_rtehtmlarea_dam_browse_media::renderFileList(), SC_mod_tools_em_index::requestInstallExtensions(), recordHistory::resolveShUid(), tx_t3editor::saveCode(), tx_t3editor::saveCodeTsTemplateInfo(), t3lib_frontendedit::saveConfigOptions(), tslib_cObj::SEARCHRESULT(), user_feAdmin::sendInfoMail(), SC_mod_tools_em_index::showExtDetails(), tx_felogin_pi1::showLogin(), SC_mod_user_setup_index::simulateUser(), recordList::start(), tslib_fe::statistics(), SC_mod_user_setup_index::storeIncomingData(), SC_mod_tools_be_user_index::switchUser(), tx_rtehtmlarea_select_image::TBE_dragNDrop(), browse_links::TBE_dragNDrop(), SC_mod_web_ts_index::templateMenu(), alt_menu_functions::topMenu(), SC_mod_tools_em_index::tsStyleConfigForm(), and tx_install::tx_install().
| static t3lib_div::_POST | ( | $ | var = NULL |
) | [static] |
Returns the global POST array (or value from) normalized to contain un-escaped values. ALWAYS use this API function to acquire the POST variables! Usage: 41
| string | Optional pointer to value in POST array (basically name of POST var) |
Definition at line 348 of file class.t3lib_div.php.
References $value, and stripSlashesOnArray().
Referenced by SC_mod_web_perm_ajax::__construct(), tslib_fe::ADMCMD_preview(), SC_mod_tools_em_index::checkClearCache(), SC_mod_tools_em_index::checkUploadFolder(), SC_wizard_colorpicker::colorImage(), ShortcutMenu::createAjaxShortcut(), ShortcutMenu::deleteAjaxShortcut(), SC_mod_user_ws_index::execute(), tslib_fe::fe_tce(), tslib_cObj::FORM(), SC_mod_web_ts_index::getButtons(), tslib_feUserAuth::getLoginFormData(), t3lib_userAuth::getLoginFormData(), tslib_cObj::getQueryArguments(), SC_mod_tools_log_index::importData(), t3lib_frontendedit::initConfigOptions(), 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(), SC_mod_user_ws_index::moduleContent_publish(), t3lib_queryGenerator::procesData(), tx_version_cm1::publishAction(), tx_lowlevel_cleaner::quickDBlookUp(), SC_mod_tools_em_index::requestInstallExtensions(), tx_t3editor::saveCodeTsTemplateInfo(), ModuleMenu::saveMenuState(), tslib_cObj::SEARCHRESULT(), tslib_fe::sendFormmail(), ShortcutMenu::setAjaxShortcut(), WorkspaceSelector::setWorkspace(), 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().
| static t3lib_div::addSlashesOnArray | ( | array &$ | theArray | ) | [static] |
AddSlash array This function traverses a multidimentional array and adds slashes to the values. NOTE that the input array is and argument by reference.!! Twin-function to stripSlashesOnArray Usage: 8
| array | Multidimensional input array, (REFERENCE!) |
Definition at line 1828 of file class.t3lib_div.php.
Referenced by _GETset().
| static t3lib_div::array2json | ( | array $ | jsonArray | ) | [static] |
Creates recursively a JSON literal from a multidimensional associative array. Uses native function of PHP >= 5.2.0
| array | $jsonArray: The array to be transformed to JSON |
Definition at line 1950 of file class.t3lib_div.php.
| static t3lib_div::array2xml | ( | array $ | array, | |
| $ | NSprefix = '', |
|||
| $ | level = 0, |
|||
| $ | docTag = 'phparray', |
|||
| $ | spaceInd = 0, |
|||
| array $ | options = array(), |
|||
| array $ | stackData = array() | |||
| ) | [static] |
Deprecated to call directly (unless you are aware of using XML prologues)! Use "array2xml_cs" instead (which adds an XML-prologue)
Converts a PHP array into an XML string. The XML output is optimized for readability since associative keys are used as tagnames. This also means that only alphanumeric characters are allowed in the tag names AND only keys NOT starting with numbers (so watch your usage of keys!). However there are options you can set to avoid this problem. Numeric keys are stored with the default tagname "numIndex" but can be overridden to other formats) The function handles input values from the PHP array in a binary-safe way; All characters below 32 (except 9,10,13) will trigger the content to be converted to a base64-string The PHP variable type of the data IS preserved as long as the types are strings, arrays, integers and booleans. Strings are the default type unless the "type" attribute is set. The output XML has been tested with the PHP XML-parser and parses OK under all tested circumstances with 4.x versions. However, with PHP5 there seems to be the need to add an XML prologue a la <?xml version="1.0" encoding="[charset]" standalone="yes" ?> - otherwise UTF-8 is assumed! Unfortunately, many times the output from this function is used without adding that prologue meaning that non-ASCII characters will break the parsing!! This suchs of course! Effectively it means that the prologue should always be prepended setting the right characterset, alternatively the system should always run as utf-8! However using MSIE to read the XML output didn't always go well: One reason could be that the character encoding is not observed in the PHP data. The other reason may be if the tag-names are invalid in the eyes of MSIE. Also using the namespace feature will make MSIE break parsing. There might be more reasons... Usage: 5
| array | The input PHP array with any kind of data; text, binary, integers. Not objects though. | |
| string | tag-prefix, eg. a namespace prefix like "T3:" | |
| integer | Current recursion level. Don't change, stay at zero! | |
| string | Alternative document tag. Default is "phparray". | |
| integer | If greater than zero, then the number of spaces corresponding to this number is used for indenting, if less than zero - no indentation, if zero - a single chr(9) (TAB) is used | |
| array | Options for the compilation. Key "useNindex" => 0/1 (boolean: whether to use "n0, n1, n2" for num. indexes); Key "useIndexTagForNum" => "[tag for numerical indexes]"; Key "useIndexTagForAssoc" => "[tag for associative indexes"; Key "parentTagMap" => array('parentTag' => 'thisLevelTag') | |
| string | Stack data. Don't touch. |
Definition at line 2261 of file class.t3lib_div.php.
References $content, and testInt().
Referenced by array2xml_cs(), t3lib_flexformtools::flexArray2Xml(), tx_dbal_handler_xmldb::saveDataSource(), and tx_dbal_handler_xmldb::xmlDB_writeStructure().
| static t3lib_div::array2xml_cs | ( | array $ | array, | |
| $ | docTag = 'phparray', |
|||
| array $ | options = array(), |
|||
| $ | charset = '' | |||
| ) | [static] |
Turns PHP array into XML. See array2xml()
| array | The input PHP array with any kind of data; text, binary, integers. Not objects though. | |
| string | Alternative document tag. Default is "phparray". | |
| array | Options for the compilation. See array2xml() for description. | |
| string | Forced charset to prologue |
Definition at line 2220 of file class.t3lib_div.php.
References $GLOBALS, and array2xml().
Referenced by SC_wizard_table::getConfigCode(), and SC_wizard_forms::getConfigCode().
| static t3lib_div::array_merge | ( | array $ | arr1, | |
| array $ | arr2 | |||
| ) | [static] |
An array_merge function where the keys are NOT renumbered as they happen to be with the real php-array_merge function. It is "binary safe" in the sense that integer keys are overridden as well. Usage: 16
| array | First array | |
| array | Second array |
Definition at line 1919 of file class.t3lib_div.php.
Referenced by t3lib_TCEmain::_ACTION_FLEX_FORMdata(), and tslib_feUserAuth::fetchGroupData().
| static t3lib_div::array_merge_recursive_overrule | ( | array $ | arr0, | |
| array $ | arr1, | |||
| $ | notAddKeys = 0, |
|||
| $ | includeEmtpyValues = true | |||
| ) | [static] |
Merges two arrays recursively and "binary safe" (integer keys are overridden as well), overruling similar values in the first array ($arr0) with the values of the second array ($arr1) In case of identical keys, ie. keeping the values of the second. Usage: 0
| array | First array | |
| array | Second array, overruling the first array | |
| boolean | If set, keys that are NOT found in $arr0 (first array) will not be set. Thus only existing value can/will be overruled from second array. | |
| boolean | If set, values from $arr1 will overrule if they are empty or zero. Default: true |
Definition at line 1887 of file class.t3lib_div.php.
Referenced by tx_rtehtmlarea_base::buildJSLangArray(), tx_rtehtmlarea_base::buildJSMainLangArray(), t3lib_TCEmain::checkValue_flex(), t3lib_tsStyleConfig::ext_mergeIncomingWithExisting(), t3lib_TCEmain::fillInFieldArray(), tslib_fe::getConfigArray(), 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_rtehtmlareaapi::main(), tx_rtehtmlarea_user::main_user(), t3lib_TStemplate::mergeConstantsFromPageTSconfig(), tslib_fe::mergingWithGetVars(), t3lib_TCEforms::overrideFieldConf(), tslib_pibase::pi_linkTP_keepPIvars(), tslib_pibase::pi_setPiVarDefaults(), t3lib_TCEmain::process_cmdmap(), t3lib_TCEmain::process_datamap(), t3lib_BEfunc::RTEsetup(), language::sL(), and template::template().
| static t3lib_div::arrayToLogString | ( | array $ | arr, | |
| $ | valueList = array(), |
|||
| $ | valueLength = 20 | |||
| ) | [static] |
Converts a one dimensional array to a one line string which can be used for logging or debugging output Example: "loginType: FE; refInfo: Array; HTTP_HOST: www.example.org; REMOTE_ADDR: 192.168.1.5; REMOTE_HOST:; security_level:; showHiddenRecords: 0;"
| array | Data array which should be outputted | |
| mixed | List of keys which should be listed in the output string. Pass a comma list or an array. An empty list outputs the whole array. | |
| integer | Long string values are shortened to this length. Default: 20 |
Definition at line 5174 of file class.t3lib_div.php.
Referenced by t3lib_userAuth::checkAuthentication(), tslib_feUserAuth::fetchGroupData(), tx_sv_auth::getUser(), tx_lowlevel_syslog::main(), t3lib_modSettings::processStoreControl(), t3lib_userAuth::start(), and t3lib_formmail::start().
| static t3lib_div::breakLinesForEmail | ( | $ | str, | |
| $ | implChar = "\n", |
|||
| $ | charWidth = 76 | |||
| ) | [static] |
Breaks up a single line of text for emails Usage: 5
| string | The string to break up | |
| string | The string to implode the broken lines with (default/typically ) | |
| integer | The line length |
Definition at line 641 of file class.t3lib_div.php.
References $lines.
Referenced by user_plaintext::breakLines(), and breakTextForEmail().
| static t3lib_div::breakTextForEmail | ( | $ | str, | |
| $ | implChar = "\n", |
|||
| $ | charWidth = 76 | |||
| ) | [static] |
Breaks up the text for emails Usage: 1
| string | The string to break up | |
| string | The string to implode the broken lines with (default/typically ) | |
| integer | The line length |
Definition at line 622 of file class.t3lib_div.php.
References $lines, and breakLinesForEmail().
| static t3lib_div::calcParenthesis | ( | $ | string | ) | [static] |
Calculates the input with parenthesis levels Usage: 2
| string | Input string, eg "(123 + 456) / 789 - 4" |
Definition at line 1345 of file class.t3lib_div.php.
References $value, and calcPriority().
Referenced by tslib_cObj::stdWrap().
| static t3lib_div::calcPriority | ( | $ | string | ) | [static] |
Calculates the input by +,-,*,/,%,^ with priority to + and - Usage: 1
| string | Input string, eg "123 + 456 / 789 - 4" |
Definition at line 1303 of file class.t3lib_div.php.
Referenced by calcParenthesis().
| static t3lib_div::callUserFunction | ( | $ | funcName, | |
| &$ | params, | |||
| &$ | ref, | |||
| $ | checkPrefix = 'user_', |
|||
| $ | errorMode = 0 | |||
| ) | [static] |
Calls a userdefined function/method in class Such a function/method should look like this: "function proc(&$params, &$ref) {...}" Usage: 17
| string | Function/Method reference, '[file-reference":"]["&"]class/function["->"method-name]'. You can prefix this reference with "[file-reference]:" and t3lib_div::getFileAbsFileName() will then be used to resolve the filename and subsequently include it by "require_once()" which means you don't have to worry about including the class file either! Example: "EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL". Finally; you can prefix the class name with "&" if you want to reuse a |