src/DataSource/NextrasDataSource.php 1 location
|
@@ 190-194 (lines=5) @@
|
| 187 |
|
continue; |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
if ($filter->hasSplitWordsSearch() === FALSE) { |
| 191 |
|
$words = [$value]; |
| 192 |
|
} else { |
| 193 |
|
$words = explode(' ', $value); |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
foreach ($words as $word) { |
| 197 |
|
$expr .= "%column LIKE %s OR "; |
src/DataSource/ArrayDataSource.php 1 location
|
@@ 164-168 (lines=5) @@
|
| 161 |
|
return $row[$column] == $value; |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
if ($filter instanceof FilterText && $filter->hasSplitWordsSearch() === FALSE) { |
| 165 |
|
$words = [$value]; |
| 166 |
|
} else { |
| 167 |
|
$words = explode(' ', $value); |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
$row_value = strtolower(Strings::toAscii($row[$column])); |
| 171 |
|
|
src/DataSource/DibiFluentDataSource.php 1 location
|
@@ 174-178 (lines=5) @@
|
| 171 |
|
continue; |
| 172 |
|
} |
| 173 |
|
|
| 174 |
|
if ($filter->hasSplitWordsSearch() === FALSE) { |
| 175 |
|
$words = [$value]; |
| 176 |
|
} else { |
| 177 |
|
$words = explode(' ', $value); |
| 178 |
|
} |
| 179 |
|
|
| 180 |
|
foreach ($words as $word) { |
| 181 |
|
$escaped = $this->data_source->getConnection()->getDriver()->escapeLike($word, 0); |
src/DataSource/DoctrineCollectionDataSource.php 1 location
|
@@ 179-183 (lines=5) @@
|
| 176 |
|
continue; |
| 177 |
|
} |
| 178 |
|
|
| 179 |
|
if ($filter->hasSplitWordsSearch() === FALSE) { |
| 180 |
|
$words = [$value]; |
| 181 |
|
} else { |
| 182 |
|
$words = explode(' ', $value); |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
foreach ($words as $word) { |
| 186 |
|
$exprs[] = Criteria::expr()->contains($column, $word); |
src/DataSource/NetteDatabaseTableDataSource.php 1 location
|
@@ 179-183 (lines=5) @@
|
| 176 |
|
$like .= "$column = ? OR "; |
| 177 |
|
$args[] = "$value"; |
| 178 |
|
} else { |
| 179 |
|
if ($filter->hasSplitWordsSearch() === FALSE) { |
| 180 |
|
$words = [$value]; |
| 181 |
|
} else { |
| 182 |
|
$words = explode(' ', $value); |
| 183 |
|
} |
| 184 |
|
foreach ($words as $word) { |
| 185 |
|
$like .= "$column LIKE ? OR "; |
| 186 |
|
$args[] = "%$word%"; |
src/DataSource/DoctrineDataSource.php 1 location
|
@@ 281-285 (lines=5) @@
|
| 278 |
|
continue; |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
if ($filter->hasSplitWordsSearch() === FALSE) { |
| 282 |
|
$words = [$value]; |
| 283 |
|
} else { |
| 284 |
|
$words = explode(' ', $value); |
| 285 |
|
} |
| 286 |
|
|
| 287 |
|
foreach ($words as $word) { |
| 288 |
|
$exprs[] = $this->data_source->expr()->like($c, $this->data_source->expr()->literal("%$word%")); |