eZ/Publish/API/Repository/Tests/SearchServiceTest.php 1 location
|
@@ 4435-4443 (lines=9) @@
|
| 4432 |
|
* |
| 4433 |
|
* @return string |
| 4434 |
|
*/ |
| 4435 |
|
protected function printResult(SearchResult $result) |
| 4436 |
|
{ |
| 4437 |
|
$printed = ''; |
| 4438 |
|
foreach ($result->searchHits as $hit) { |
| 4439 |
|
$printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']); |
| 4440 |
|
} |
| 4441 |
|
|
| 4442 |
|
return $printed; |
| 4443 |
|
} |
| 4444 |
|
|
| 4445 |
|
/** |
| 4446 |
|
* Simplify search result. |
eZ/Publish/API/Repository/Tests/SearchServiceLocationTest.php 1 location
|
@@ 1120-1128 (lines=9) @@
|
| 1117 |
|
* |
| 1118 |
|
* @return string |
| 1119 |
|
*/ |
| 1120 |
|
protected function printResult(SearchResult $result) |
| 1121 |
|
{ |
| 1122 |
|
$printed = ''; |
| 1123 |
|
foreach ($result->searchHits as $hit) { |
| 1124 |
|
$printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']); |
| 1125 |
|
} |
| 1126 |
|
|
| 1127 |
|
return $printed; |
| 1128 |
|
} |
| 1129 |
|
|
| 1130 |
|
/** |
| 1131 |
|
* Simplify search result. |