1 | <?php |
||
23 | class View |
||
24 | { |
||
25 | /** |
||
26 | * @var \Aimeos\Shop\Base\I18n |
||
27 | * @Flow\Inject |
||
28 | */ |
||
29 | protected $i18n; |
||
30 | |||
31 | /** |
||
32 | * @var \Neos\FluidAdaptor\View\StandaloneView |
||
33 | * @Flow\Inject |
||
34 | */ |
||
35 | protected $view; |
||
36 | |||
37 | /** |
||
38 | * @Flow\Inject |
||
39 | * @var \Neos\Flow\Security\Context |
||
40 | */ |
||
41 | protected $security; |
||
42 | |||
43 | |||
44 | /** |
||
45 | * Creates the view object for the HTML client. |
||
46 | * |
||
47 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object |
||
48 | * @param \Neos\Flow\Mvc\Routing\UriBuilder $uriBuilder URL builder object |
||
49 | * @param array $templatePaths List of base path names with relative template paths as key/value pairs |
||
50 | * @param \Neos\Flow\Mvc\RequestInterface|null $request Request object |
||
51 | * @param string|null $langid Language ID |
||
52 | * @return \Aimeos\MW\View\Iface View object |
||
53 | */ |
||
54 | public function create( \Aimeos\MShop\Context\Item\Iface $context, |
||
77 | |||
78 | |||
79 | /** |
||
80 | * Adds the "access" helper to the view object |
||
81 | * |
||
82 | * @param \Aimeos\MW\View\Iface $view View object |
||
83 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object |
||
84 | * @return \Aimeos\MW\View\Iface Modified view object |
||
85 | */ |
||
86 | protected function addAccess( \Aimeos\MW\View\Iface $view, \Aimeos\MShop\Context\Item\Iface $context ) |
||
93 | |||
94 | |||
95 | /** |
||
96 | * Adds the "config" helper to the view object |
||
97 | * |
||
98 | * @param \Aimeos\MW\View\Iface $view View object |
||
99 | * @param \Aimeos\MW\Config\Iface $config Configuration object |
||
100 | * @return \Aimeos\MW\View\Iface Modified view object |
||
101 | */ |
||
102 | protected function addConfig( \Aimeos\MW\View\Iface $view, \Aimeos\MW\Config\Iface $config ) |
||
110 | |||
111 | |||
112 | /** |
||
113 | * Adds the "access" helper to the view object |
||
114 | * |
||
115 | * @param \Aimeos\MW\View\Iface $view View object |
||
116 | * @return \Aimeos\MW\View\Iface Modified view object |
||
117 | */ |
||
118 | protected function addCsrf( \Aimeos\MW\View\Iface $view ) |
||
129 | |||
130 | |||
131 | /** |
||
132 | * Adds the "number" helper to the view object |
||
133 | * |
||
134 | * @param \Aimeos\MW\View\Iface $view View object |
||
135 | * @param \Aimeos\MW\Config\Iface $config Configuration object |
||
136 | * @return \Aimeos\MW\View\Iface Modified view object |
||
137 | */ |
||
138 | protected function addNumber( \Aimeos\MW\View\Iface $view, \Aimeos\MW\Config\Iface $config ) |
||
149 | |||
150 | |||
151 | /** |
||
152 | * Adds the "param" helper to the view object |
||
153 | * |
||
154 | * @param \Aimeos\MW\View\Iface $view View object |
||
155 | * @param \Neos\Flow\Mvc\RequestInterface|null $request Request object |
||
156 | * @return \Aimeos\MW\View\Iface Modified view object |
||
157 | */ |
||
158 | protected function addParam( \Aimeos\MW\View\Iface $view, \Neos\Flow\Mvc\RequestInterface $request = null ) |
||
166 | |||
167 | |||
168 | /** |
||
169 | * Adds the "request" helper to the view object |
||
170 | * |
||
171 | * @param \Aimeos\MW\View\Iface $view View object |
||
172 | * @param \Neos\Flow\Mvc\RequestInterface|null $request Request object |
||
173 | * @return \Aimeos\MW\View\Iface Modified view object |
||
174 | */ |
||
175 | protected function addRequest( \Aimeos\MW\View\Iface $view, \Neos\Flow\Mvc\RequestInterface $request = null ) |
||
193 | |||
194 | |||
195 | /** |
||
196 | * Adds the "response" helper to the view object |
||
197 | * |
||
198 | * @param \Aimeos\MW\View\Iface $view View object |
||
199 | * @return \Aimeos\MW\View\Iface Modified view object |
||
200 | */ |
||
201 | protected function addResponse( \Aimeos\MW\View\Iface $view ) |
||
208 | |||
209 | |||
210 | /** |
||
211 | * Adds the "session" helper to the view object |
||
212 | * |
||
213 | * @param \Aimeos\MW\View\Iface $view View object |
||
214 | * @param \Aimeos\MW\Session\Iface $session Session object |
||
215 | * @return \Aimeos\MW\View\Iface Modified view object |
||
216 | */ |
||
217 | protected function addSession( \Aimeos\MW\View\Iface $view, \Aimeos\MW\Session\Iface $session ) |
||
224 | |||
225 | |||
226 | /** |
||
227 | * Adds the "translate" helper to the view object |
||
228 | * |
||
229 | * @param \Aimeos\MW\View\Iface $view View object |
||
230 | * @param string|null $langid ISO language code, e.g. "de" or "de_CH" |
||
231 | * @return \Aimeos\MW\View\Iface Modified view object |
||
232 | */ |
||
233 | protected function addTranslate( \Aimeos\MW\View\Iface $view, $langid ) |
||
250 | |||
251 | |||
252 | /** |
||
253 | * Adds the "url" helper to the view object |
||
254 | * |
||
255 | * @param \Aimeos\MW\View\Iface $view View object |
||
256 | * @param \Neos\Flow\Mvc\Routing\UriBuilder $uriBuilder URL builder object |
||
257 | * @param \Neos\Flow\Mvc\RequestInterface|null $request Request object |
||
258 | * @return \Aimeos\MW\View\Iface Modified view object |
||
259 | */ |
||
260 | protected function addUrl( \Aimeos\MW\View\Iface $view, |
||
288 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.