[BUGFIX] t3lib_BEfunc::getViewDomain() returns wrong or no domain
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_fullsearch.php
index df35070..27d9acd 100644 (file)
  * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
  * @coauthor   Jo Hasenau <info@cybercraft.de>
  */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- *
- *   88: class t3lib_fullsearch
- *  103:        function form()
- *  117:        function makeStoreControl()
- *  156:        function initStoreArray()
- *  176:        function cleanStoreQueryConfigs($storeQueryConfigs,$storeArray)
- *  193:        function addToStoreQueryConfigs($storeQueryConfigs,$index)
- *  209:        function saveQueryInAction($uid)
- *  256:        function loadStoreQueryConfigs($storeQueryConfigs,$storeIndex,$writeArray)
- *  272:        function procesStoreControl()
- *  344:        function queryMaker()
- *  414:        function getQueryResultCode($mQ,$res,$table)
- *  534:        function csvValues($row, $delim=',', $quote='"', $conf=array(), $table='')
- *  550:        function tableWrap($str)
- *  559:        function search()
- *  614:        function resultRowDisplay($row,$conf,$table)
- *  662:        function getProcessedValueExtra($table, $fN, $fV, $conf, $splitString)
- *  781:        function getTreeList($id, $depth, $begin = 0, $perms_clause)
- *  818:        function makeValueList($fN, $fV, $conf, $table, $splitString)
- * 1028:        function resultRowTitles($row,$conf,$table)
- * 1058:        function csvRowTitles($row, $conf, $table)
- *
- * TOTAL FUNCTIONS: 19
- * (This index is automatically created/updated by the extension "extdeveval")
- *
- */
 
 
 /**
@@ -965,8 +935,7 @@ class t3lib_fullsearch {
                                        $labelField = $GLOBALS['TCA'][$from_table]['ctrl']['label'];
                                        $altLabelField = $GLOBALS['TCA'][$from_table]['ctrl']['label_alt'];
                                        if ($GLOBALS['TCA'][$from_table]['columns'][$labelField]['config']['items']) {
-                                               reset($GLOBALS['TCA'][$from_table]['columns'][$labelField]['config']['items']);
-                                               while (list(, $labelArray) = each($GLOBALS['TCA'][$from_table]['columns'][$labelField]['config']['items'])) {
+                                               foreach ($GLOBALS['TCA'][$from_table]['columns'][$labelField]['config']['items'] as $labelArray) {
                                                        if (substr($labelArray[0], 0, 4) == 'LLL:') {
                                                                $labelFieldSelect[$labelArray[1]] = $GLOBALS['LANG']->sL($labelArray[0]);
                                                        } else {
@@ -976,7 +945,6 @@ class t3lib_fullsearch {
                                                $useSelectLabels = 1;
                                        }
                                        if ($GLOBALS['TCA'][$from_table]['columns'][$altLabelField]['config']['items']) {
-                                               reset($GLOBALS['TCA'][$from_table]['columns'][$altLabelField]['config']['items']);
                                                foreach ($GLOBALS['TCA'][$from_table]['columns'][$altLabelField]['config']['items'] as $altLabelArray) {
                                                        if (substr($altLabelArray[0], 0, 4) == 'LLL:') {
                                                                $altLabelFieldSelect[$altLabelArray[1]] = $GLOBALS['LANG']->sL($altLabelArray[0]);
@@ -1017,7 +985,6 @@ class t3lib_fullsearch {
                                                }
                                                $GLOBALS['TYPO3_DB']->sql_free_result($res);
                                        }
-                                       reset($this->tableArray[$from_table]);
                                        foreach ($this->tableArray[$from_table] as $key => $val) {
                                                $GLOBALS['SOBE']->MOD_SETTINGS['labels_noprefix'] = $GLOBALS['SOBE']->MOD_SETTINGS['labels_noprefix'] == 1 ? 'on' :
                                                                $GLOBALS['SOBE']->MOD_SETTINGS['labels_noprefix'];