src/DataSource/ArrayDataSource.php 1 location
|
@@ 176-180 (lines=5) @@
|
| 173 |
|
return $row[$column] == $value; |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
if ($filter instanceof FilterText && $filter->hasSplitWordsSearch() === false) { |
| 177 |
|
$words = [$value]; |
| 178 |
|
} else { |
| 179 |
|
$words = explode(' ', $value); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
$row_value = strtolower(Strings::toAscii($row[$column])); |
| 183 |
|
|
src/DataSource/DibiFluentDataSource.php 1 location
|
@@ 181-185 (lines=5) @@
|
| 178 |
|
continue; |
| 179 |
|
} |
| 180 |
|
|
| 181 |
|
if ($filter->hasSplitWordsSearch() === false) { |
| 182 |
|
$words = [$value]; |
| 183 |
|
} else { |
| 184 |
|
$words = explode(' ', $value); |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
foreach ($words as $word) { |
| 188 |
|
$or[] = ["$column LIKE %~like~", $word]; |
src/DataSource/DoctrineCollectionDataSource.php 1 location
|
@@ 182-186 (lines=5) @@
|
| 179 |
|
continue; |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
if ($filter->hasSplitWordsSearch() === false) { |
| 183 |
|
$words = [$value]; |
| 184 |
|
} else { |
| 185 |
|
$words = explode(' ', $value); |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
foreach ($words as $word) { |
| 189 |
|
$exprs[] = Criteria::expr()->contains($column, $word); |
src/DataSource/DoctrineDataSource.php 1 location
|
@@ 255-259 (lines=5) @@
|
| 252 |
|
continue; |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
if ($filter->hasSplitWordsSearch() === false) { |
| 256 |
|
$words = [$value]; |
| 257 |
|
} else { |
| 258 |
|
$words = explode(' ', $value); |
| 259 |
|
} |
| 260 |
|
|
| 261 |
|
foreach ($words as $word) { |
| 262 |
|
$exprs[] = $this->data_source->expr()->like($c, $this->data_source->expr()->literal("%$word%")); |
src/DataSource/NetteDatabaseTableDataSource.php 1 location
|
@@ 194-198 (lines=5) @@
|
| 191 |
|
$like .= "$column = ? OR "; |
| 192 |
|
$args[] = "$value"; |
| 193 |
|
} else { |
| 194 |
|
if ($filter->hasSplitWordsSearch() === false) { |
| 195 |
|
$words = [$value]; |
| 196 |
|
} else { |
| 197 |
|
$words = explode(' ', $value); |
| 198 |
|
} |
| 199 |
|
foreach ($words as $word) { |
| 200 |
|
$like .= "$column LIKE ? OR "; |
| 201 |
|
$args[] = "%$word%"; |
src/DataSource/NextrasDataSource.php 1 location
|
@@ 191-195 (lines=5) @@
|
| 188 |
|
continue; |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
if ($filter->hasSplitWordsSearch() === false) { |
| 192 |
|
$words = [$value]; |
| 193 |
|
} else { |
| 194 |
|
$words = explode(' ', $value); |
| 195 |
|
} |
| 196 |
|
|
| 197 |
|
foreach ($words as $word) { |
| 198 |
|
$expr .= '%column LIKE %s OR '; |
src/DataSource/DibiFluentPostgreDataSource.php 1 location
|
@@ 35-39 (lines=5) @@
|
| 32 |
|
continue; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
if ($filter->hasSplitWordsSearch() === false) { |
| 36 |
|
$words = [$value]; |
| 37 |
|
} else { |
| 38 |
|
$words = explode(' ', $value); |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
foreach ($words as $word) { |
| 42 |
|
$escaped = $driver->escapeLike($word, 0); |