1 | <?php |
||
16 | class QueryController |
||
17 | { |
||
18 | /** @var \eZ\Publish\API\Repository\SearchService */ |
||
19 | private $searchService; |
||
20 | |||
21 | /** @var \eZ\Publish\Core\QueryType\ContentViewQueryTypeMapper */ |
||
22 | private $contentViewQueryTypeMapper; |
||
23 | |||
24 | public function __construct( |
||
31 | |||
32 | /** |
||
33 | * Runs a content search. |
||
34 | * |
||
35 | * @param ContentView $view |
||
36 | * @return ContentView |
||
37 | */ |
||
38 | public function contentQueryAction(ContentView $view) |
||
44 | |||
45 | /** |
||
46 | * Runs a location search. |
||
47 | * |
||
48 | * @param ContentView $view |
||
49 | * @return ContentView |
||
50 | */ |
||
51 | public function locationQueryAction(ContentView $view) |
||
57 | |||
58 | /** |
||
59 | * Runs a contentInfo search. |
||
60 | * |
||
61 | * @param ContentView $view |
||
62 | * @return ContentView |
||
63 | */ |
||
64 | public function contentInfoQueryAction(ContentView $view) |
||
70 | |||
71 | /** |
||
72 | * Runs the Query defined in $view using $method on SearchService. |
||
73 | * |
||
74 | * @param ContentView $view |
||
75 | * @param string $method Name of the SearchService method to run. |
||
76 | */ |
||
77 | private function runQuery(ContentView $view, $method) |
||
84 | } |
||
85 |