1 | <?php |
||
25 | class View |
||
26 | { |
||
27 | /** |
||
28 | * @var \Aimeos\Shop\Base\I18n |
||
29 | */ |
||
30 | private $i18n; |
||
31 | |||
32 | /** |
||
33 | * @var \Aimeos\Shop\Base\Support |
||
34 | */ |
||
35 | private $support; |
||
36 | |||
37 | |||
38 | /** |
||
39 | * Initializes the object |
||
40 | * |
||
41 | * @param \Aimeos\Shop\Base\I18n $i18n I18n object |
||
42 | * @param \Aimeos\Shop\Base\Support $support Support object |
||
43 | */ |
||
44 | public function __construct( \Aimeos\Shop\Base\I18n $i18n, \Aimeos\Shop\Base\Support $support ) |
||
49 | |||
50 | |||
51 | /** |
||
52 | * Creates the view object for the HTML client. |
||
53 | * |
||
54 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object |
||
55 | * @param array $templatePaths List of base path names with relative template paths as key/value pairs |
||
56 | * @param string|null $locale Code of the current language or null for no translation |
||
57 | * @return \Aimeos\MW\View\Iface View object |
||
58 | */ |
||
59 | public function create( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $locale = null ) |
||
80 | |||
81 | |||
82 | /** |
||
83 | * Adds the "access" helper to the view object |
||
84 | * |
||
85 | * @param \Aimeos\MW\View\Iface $view View object |
||
86 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object |
||
87 | * @return \Aimeos\MW\View\Iface Modified view object |
||
88 | */ |
||
89 | protected function addAccess( \Aimeos\MW\View\Iface $view, \Aimeos\MShop\Context\Item\Iface $context ) |
||
102 | |||
103 | |||
104 | /** |
||
105 | * Adds the "config" helper to the view object |
||
106 | * |
||
107 | * @param \Aimeos\MW\View\Iface $view View object |
||
108 | * @param \Aimeos\MW\Config\Iface $config Configuration object |
||
109 | * @return \Aimeos\MW\View\Iface Modified view object |
||
110 | */ |
||
111 | protected function addConfig( \Aimeos\MW\View\Iface $view, \Aimeos\MW\Config\Iface $config ) |
||
119 | |||
120 | |||
121 | /** |
||
122 | * Adds the "access" helper to the view object |
||
123 | * |
||
124 | * @param \Aimeos\MW\View\Iface $view View object |
||
125 | * @return \Aimeos\MW\View\Iface Modified view object |
||
126 | */ |
||
127 | protected function addCsrf( \Aimeos\MW\View\Iface $view ) |
||
134 | |||
135 | |||
136 | /** |
||
137 | * Adds the "number" helper to the view object |
||
138 | * |
||
139 | * @param \Aimeos\MW\View\Iface $view View object |
||
140 | * @param \Aimeos\MW\Config\Iface $config Configuration object |
||
141 | * @return \Aimeos\MW\View\Iface Modified view object |
||
142 | */ |
||
143 | protected function addNumber( \Aimeos\MW\View\Iface $view, \Aimeos\MW\Config\Iface $config ) |
||
154 | |||
155 | |||
156 | /** |
||
157 | * Adds the "param" helper to the view object |
||
158 | * |
||
159 | * @param \Aimeos\MW\View\Iface $view View object |
||
160 | * @return \Aimeos\MW\View\Iface Modified view object |
||
161 | */ |
||
162 | protected function addParam( \Aimeos\MW\View\Iface $view ) |
||
170 | |||
171 | |||
172 | /** |
||
173 | * Adds the "request" helper to the view object |
||
174 | * |
||
175 | * @param \Aimeos\MW\View\Iface $view View object |
||
176 | * @return \Aimeos\MW\View\Iface Modified view object |
||
177 | */ |
||
178 | protected function addRequest( \Aimeos\MW\View\Iface $view ) |
||
185 | |||
186 | |||
187 | /** |
||
188 | * Adds the "response" helper to the view object |
||
189 | * |
||
190 | * @param \Aimeos\MW\View\Iface $view View object |
||
191 | * @return \Aimeos\MW\View\Iface Modified view object |
||
192 | */ |
||
193 | protected function addResponse( \Aimeos\MW\View\Iface $view ) |
||
200 | |||
201 | |||
202 | /** |
||
203 | * Adds the "session" helper to the view object |
||
204 | * |
||
205 | * @param \Aimeos\MW\View\Iface $view View object |
||
206 | * @param \Aimeos\MW\Session\Iface $session Session object |
||
207 | * @return \Aimeos\MW\View\Iface Modified view object |
||
208 | */ |
||
209 | protected function addSession( \Aimeos\MW\View\Iface $view, \Aimeos\MW\Session\Iface $session ) |
||
216 | |||
217 | |||
218 | /** |
||
219 | * Adds the "translate" helper to the view object |
||
220 | * |
||
221 | * @param \Aimeos\MW\View\Iface $view View object |
||
222 | * @param string|null $locale ISO language code, e.g. "de" or "de_CH" |
||
223 | * @return \Aimeos\MW\View\Iface Modified view object |
||
224 | */ |
||
225 | protected function addTranslate( \Aimeos\MW\View\Iface $view, $locale ) |
||
242 | |||
243 | |||
244 | /** |
||
245 | * Adds the "url" helper to the view object |
||
246 | * |
||
247 | * @param \Aimeos\MW\View\Iface $view View object |
||
248 | * @return \Aimeos\MW\View\Iface Modified view object |
||
249 | */ |
||
250 | protected function addUrl( \Aimeos\MW\View\Iface $view ) |
||
274 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.