1 | <?php |
||
21 | class SearchResultModifier { |
||
22 | |||
23 | /** |
||
24 | * @var LanguageResultMatchFinder|null |
||
25 | */ |
||
26 | private $languageResultMatchFinder = null; |
||
27 | |||
28 | /** |
||
29 | * @since 1.0 |
||
30 | * |
||
31 | * @param LanguageResultMatchFinder $languageResultMatchFinder |
||
32 | */ |
||
33 | public function __construct( LanguageResultMatchFinder $languageResultMatchFinder ) { |
||
36 | |||
37 | /** |
||
38 | * @since 1.0 |
||
39 | * |
||
40 | * @param array &$profiles |
||
41 | */ |
||
42 | public function addSearchProfile( array &$profiles ) { |
||
52 | |||
53 | /** |
||
54 | * @since 1.0 |
||
55 | * |
||
56 | * @param SpecialSearch $search |
||
57 | * @param string $profile, |
||
58 | * @param string &$form |
||
59 | * @param array $opts |
||
60 | * |
||
61 | * @return boolean |
||
62 | */ |
||
63 | public function addSearchProfileForm( SpecialSearch $search, $profile, &$form, $opts ) { |
||
89 | |||
90 | /** |
||
91 | * @since 1.0 |
||
92 | * |
||
93 | * @param WebRequest $request |
||
94 | * @param array &$showSections |
||
95 | * |
||
96 | * @return boolean |
||
97 | */ |
||
98 | public function addLanguageFilterToPowerBox( $request, &$showSections ) { |
||
106 | |||
107 | /** |
||
108 | * @since 1.0 |
||
109 | * |
||
110 | * @param string $defaultLanguagefilter |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | public function createHtmlLanguageFilterSelector( $defaultLanguagefilter ) { |
||
137 | |||
138 | /** |
||
139 | * @since 1.0 |
||
140 | * |
||
141 | * @param WebRequest $request |
||
142 | * @param SearchResultSet|false $titleMatches |
||
143 | * @param SearchResultSet|false $textMatches |
||
144 | * |
||
145 | * @return boolean |
||
146 | */ |
||
147 | public function applyLanguageFilterToResultMatches( $request, &$titleMatches, &$textMatches ) { |
||
175 | |||
176 | } |
||
177 |