1 | <?php |
||
26 | class SearchFormViewHelper extends AbstractSolrFrontendTagBasedViewHelper |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $tagName = 'form'; |
||
33 | |||
34 | /** |
||
35 | * @var TypoScriptFrontendController |
||
36 | */ |
||
37 | protected $frontendController; |
||
38 | |||
39 | /** |
||
40 | * @var bool |
||
41 | */ |
||
42 | protected $escapeChildren = true; |
||
43 | |||
44 | /** |
||
45 | * @var bool |
||
46 | */ |
||
47 | protected $escapeOutput = false; |
||
48 | |||
49 | /** |
||
50 | * Constructor |
||
51 | */ |
||
52 | 25 | public function __construct() |
|
57 | |||
58 | /** |
||
59 | * Initialize arguments. |
||
60 | * |
||
61 | * @return void |
||
62 | */ |
||
63 | 25 | public function initializeArguments() |
|
73 | |||
74 | /** |
||
75 | * Render search form tag |
||
76 | * |
||
77 | * @param int|NULL $pageUid When not set current page is used |
||
78 | * @param array|NULL $additionalFilters Additional filters |
||
79 | * @param array $additionalParams query parameters to be attached to the resulting URI |
||
80 | * @param integer $pageType type of the target page. See typolink.parameter |
||
81 | * @param boolean $noCache set this to disable caching for the target page. You should not need this. |
||
82 | * @param boolean $noCacheHash set this to supress the cHash query parameter created by TypoLink. You should not need this. |
||
83 | * @param string $section The anchor to be added to the action URI (only active if $actionUri is not set) |
||
84 | * @param boolean $absolute If set, the URI of the rendered link is absolute |
||
85 | * @param boolean $addQueryString If set, the current query parameters will be kept in the URI |
||
86 | * @param array $argumentsToBeExcludedFromQueryString arguments to be removed from the URI. Only active if $addQueryString = TRUE |
||
87 | * @param string $addQueryStringMethod Set which parameters will be kept. Only active if $addQueryString = TRUE |
||
88 | * @param bool $addSuggestUrl |
||
89 | * @return string |
||
90 | */ |
||
91 | 25 | public function render($pageUid = null, $additionalFilters = null, array $additionalParams = [], $noCache = false, $pageType = 0, $noCacheHash = false, $section = '', $absolute = false, $addQueryString = false, array $argumentsToBeExcludedFromQueryString = [], $addQueryStringMethod = null, $addSuggestUrl = true) |
|
119 | |||
120 | /** |
||
121 | * @return string |
||
122 | */ |
||
123 | 25 | protected function getQueryString() |
|
131 | |||
132 | /** |
||
133 | * Returns the eID URL for the AJAX suggestion request |
||
134 | * |
||
135 | * This link should be touched by realurl etc |
||
136 | * |
||
137 | * @return string the full URL to the eID script including the needed parameters |
||
138 | */ |
||
139 | /** |
||
140 | * @param NULL|array $additionalFilters |
||
141 | * @param int $pageUid |
||
142 | * @return string |
||
143 | */ |
||
144 | 25 | protected function getSuggestEidUrl($additionalFilters, $pageUid) |
|
164 | } |
||
165 |