eZ/Publish/API/Repository/Tests/SearchServiceLocationTest.php 1 location
|
@@ 1105-1113 (lines=9) @@
|
| 1102 |
|
* |
| 1103 |
|
* @return string |
| 1104 |
|
*/ |
| 1105 |
|
protected function printResult(SearchResult $result) |
| 1106 |
|
{ |
| 1107 |
|
$printed = ''; |
| 1108 |
|
foreach ($result->searchHits as $hit) { |
| 1109 |
|
$printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']); |
| 1110 |
|
} |
| 1111 |
|
|
| 1112 |
|
return $printed; |
| 1113 |
|
} |
| 1114 |
|
|
| 1115 |
|
/** |
| 1116 |
|
* Simplify search result. |
eZ/Publish/API/Repository/Tests/SearchServiceTest.php 1 location
|
@@ 4520-4528 (lines=9) @@
|
| 4517 |
|
* |
| 4518 |
|
* @return string |
| 4519 |
|
*/ |
| 4520 |
|
protected function printResult(SearchResult $result) |
| 4521 |
|
{ |
| 4522 |
|
$printed = ''; |
| 4523 |
|
foreach ($result->searchHits as $hit) { |
| 4524 |
|
$printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']); |
| 4525 |
|
} |
| 4526 |
|
|
| 4527 |
|
return $printed; |
| 4528 |
|
} |
| 4529 |
|
|
| 4530 |
|
/** |
| 4531 |
|
* Simplify search result. |