eZ/Publish/API/Repository/Tests/SearchServiceTest.php 1 location
|
@@ 4627-4635 (lines=9) @@
|
| 4624 |
|
* |
| 4625 |
|
* @return string |
| 4626 |
|
*/ |
| 4627 |
|
protected function printResult(SearchResult $result) |
| 4628 |
|
{ |
| 4629 |
|
$printed = ''; |
| 4630 |
|
foreach ($result->searchHits as $hit) { |
| 4631 |
|
$printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']); |
| 4632 |
|
} |
| 4633 |
|
|
| 4634 |
|
return $printed; |
| 4635 |
|
} |
| 4636 |
|
|
| 4637 |
|
/** |
| 4638 |
|
* Simplify search result. |
eZ/Publish/API/Repository/Tests/SearchServiceLocationTest.php 1 location
|
@@ 1437-1445 (lines=9) @@
|
| 1434 |
|
* |
| 1435 |
|
* @return string |
| 1436 |
|
*/ |
| 1437 |
|
protected function printResult(SearchResult $result) |
| 1438 |
|
{ |
| 1439 |
|
$printed = ''; |
| 1440 |
|
foreach ($result->searchHits as $hit) { |
| 1441 |
|
$printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']); |
| 1442 |
|
} |
| 1443 |
|
|
| 1444 |
|
return $printed; |
| 1445 |
|
} |
| 1446 |
|
|
| 1447 |
|
/** |
| 1448 |
|
* Simplify search result. |