eZ/Publish/API/Repository/Tests/SearchServiceLocationTest.php 1 location
|
@@ 1103-1111 (lines=9) @@
|
| 1100 |
|
* |
| 1101 |
|
* @return string |
| 1102 |
|
*/ |
| 1103 |
|
protected function printResult(SearchResult $result) |
| 1104 |
|
{ |
| 1105 |
|
$printed = ''; |
| 1106 |
|
foreach ($result->searchHits as $hit) { |
| 1107 |
|
$printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']); |
| 1108 |
|
} |
| 1109 |
|
|
| 1110 |
|
return $printed; |
| 1111 |
|
} |
| 1112 |
|
|
| 1113 |
|
/** |
| 1114 |
|
* Simplify search result. |
eZ/Publish/API/Repository/Tests/SearchServiceTest.php 1 location
|
@@ 4611-4619 (lines=9) @@
|
| 4608 |
|
* |
| 4609 |
|
* @return string |
| 4610 |
|
*/ |
| 4611 |
|
protected function printResult(SearchResult $result) |
| 4612 |
|
{ |
| 4613 |
|
$printed = ''; |
| 4614 |
|
foreach ($result->searchHits as $hit) { |
| 4615 |
|
$printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']); |
| 4616 |
|
} |
| 4617 |
|
|
| 4618 |
|
return $printed; |
| 4619 |
|
} |
| 4620 |
|
|
| 4621 |
|
/** |
| 4622 |
|
* Simplify search result. |