|
@@ 1051-1064 (lines=14) @@
|
| 1048 |
|
* |
| 1049 |
|
* @return array Associative array with options |
| 1050 |
|
*/ |
| 1051 |
|
protected function getAllAvailableOperandsOptions() |
| 1052 |
|
{ |
| 1053 |
|
$allOptions = []; |
| 1054 |
|
$blindSettings = $this->settings['blind']; |
| 1055 |
|
if (!$blindSettings['defaultOperand']) { |
| 1056 |
|
$allOptions = [ |
| 1057 |
|
0 => LocalizationUtility::translate('defaultOperands.0', 'IndexedSearch'), |
| 1058 |
|
1 => LocalizationUtility::translate('defaultOperands.1', 'IndexedSearch') |
| 1059 |
|
]; |
| 1060 |
|
} |
| 1061 |
|
// disable single entries by TypoScript |
| 1062 |
|
$allOptions = $this->removeOptionsFromOptionList($allOptions, $blindSettings['defaultOperand']); |
| 1063 |
|
return $allOptions; |
| 1064 |
|
} |
| 1065 |
|
|
| 1066 |
|
/** |
| 1067 |
|
* get the values for the "media type" selector |
|
@@ 1258-1271 (lines=14) @@
|
| 1255 |
|
* |
| 1256 |
|
* @return array Associative array with options |
| 1257 |
|
*/ |
| 1258 |
|
protected function getAllAvailableGroupOptions() |
| 1259 |
|
{ |
| 1260 |
|
$allOptions = []; |
| 1261 |
|
$blindSettings = $this->settings['blind']; |
| 1262 |
|
if (!$blindSettings['groupBy']) { |
| 1263 |
|
$allOptions = [ |
| 1264 |
|
'sections' => LocalizationUtility::translate('groupBy.sections', 'IndexedSearch'), |
| 1265 |
|
'flat' => LocalizationUtility::translate('groupBy.flat', 'IndexedSearch') |
| 1266 |
|
]; |
| 1267 |
|
} |
| 1268 |
|
// disable single entries by TypoScript |
| 1269 |
|
$allOptions = $this->removeOptionsFromOptionList($allOptions, $blindSettings['groupBy.']); |
| 1270 |
|
return $allOptions; |
| 1271 |
|
} |
| 1272 |
|
|
| 1273 |
|
/** |
| 1274 |
|
* get the values for the "sortDescending" selector |
|
@@ 1278-1291 (lines=14) @@
|
| 1275 |
|
* |
| 1276 |
|
* @return array Associative array with options |
| 1277 |
|
*/ |
| 1278 |
|
protected function getAllAvailableSortDescendingOptions() |
| 1279 |
|
{ |
| 1280 |
|
$allOptions = []; |
| 1281 |
|
$blindSettings = $this->settings['blind']; |
| 1282 |
|
if (!$blindSettings['descending']) { |
| 1283 |
|
$allOptions = [ |
| 1284 |
|
0 => LocalizationUtility::translate('sortOrders.descending', 'IndexedSearch'), |
| 1285 |
|
1 => LocalizationUtility::translate('sortOrders.ascending', 'IndexedSearch') |
| 1286 |
|
]; |
| 1287 |
|
} |
| 1288 |
|
// disable single entries by TypoScript |
| 1289 |
|
$allOptions = $this->removeOptionsFromOptionList($allOptions, $blindSettings['descending.']); |
| 1290 |
|
return $allOptions; |
| 1291 |
|
} |
| 1292 |
|
|
| 1293 |
|
/** |
| 1294 |
|
* get the values for the "results" selector |