2 namespace TYPO3\CMS\Dbal\RecordList;
39 if (is_numeric($this->searchString)) {
40 $queryPart =
' AND (uid=' . (int)$this->searchString .
' OR ';
42 $queryPart =
' AND (';
44 if (
$GLOBALS[
'TYPO3_DB']->runningADOdbDriver(
'oci8')) {
45 foreach (
$GLOBALS[
'TCA'][
$table][
'columns'] as $fieldName => $info) {
46 if (
$GLOBALS[
'TYPO3_DB']->cache_fieldType[
$table][$fieldName][
'metaType'] ===
'B') {
47 }
elseif ($info[
'config'][
'type'] ===
'text' || $info[
'config'][
'type'] ===
'input' && !preg_match(
'/date|time|int/', $info[
'config'][
'eval'])) {
48 $queryPart .= $or . $fieldName .
' LIKE \'%' .
$GLOBALS[
'TYPO3_DB']->quoteStr($this->searchString,
$table) .
'%\'';
54 foreach (
$GLOBALS[
'TCA'][
$table][
'columns'] as $fieldName => $info) {
55 if ($info[
'config'][
'type'] ===
'text' || $info[
'config'][
'type'] ===
'input' && !preg_match(
'/date|time|int/', $info[
'config'][
'eval'])) {
56 $sfields[] = $fieldName;
60 if (!empty($sfields)) {
61 $like =
' LIKE \'%' .
$GLOBALS[
'TYPO3_DB']->quoteStr($this->searchString,
$table) .
'%\'';
63 $queryPart .= implode(($like .
' OR '), $sfields) . $like;
67 return $queryPart .
')';