eZ/Publish/API/Repository/Tests/SearchServiceTest.php 1 location
|
@@ 4423-4431 (lines=9) @@
|
| 4420 |
|
* |
| 4421 |
|
* @return string |
| 4422 |
|
*/ |
| 4423 |
|
protected function printResult(SearchResult $result) |
| 4424 |
|
{ |
| 4425 |
|
$printed = ''; |
| 4426 |
|
foreach ($result->searchHits as $hit) { |
| 4427 |
|
$printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']); |
| 4428 |
|
} |
| 4429 |
|
|
| 4430 |
|
return $printed; |
| 4431 |
|
} |
| 4432 |
|
|
| 4433 |
|
/** |
| 4434 |
|
* Simplify search result. |
eZ/Publish/API/Repository/Tests/SearchServiceLocationTest.php 1 location
|
@@ 1216-1224 (lines=9) @@
|
| 1213 |
|
* |
| 1214 |
|
* @return string |
| 1215 |
|
*/ |
| 1216 |
|
protected function printResult(SearchResult $result) |
| 1217 |
|
{ |
| 1218 |
|
$printed = ''; |
| 1219 |
|
foreach ($result->searchHits as $hit) { |
| 1220 |
|
$printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']); |
| 1221 |
|
} |
| 1222 |
|
|
| 1223 |
|
return $printed; |
| 1224 |
|
} |
| 1225 |
|
|
| 1226 |
|
/** |
| 1227 |
|
* Simplify search result. |