1 | <?php |
||
21 | class JqadmController extends \Neos\Flow\Mvc\Controller\ActionController |
||
22 | { |
||
23 | /** |
||
24 | * @var \Aimeos\Shop\Base\Aimeos |
||
25 | * @Flow\Inject |
||
26 | */ |
||
27 | protected $aimeos; |
||
28 | |||
29 | /** |
||
30 | * @var \Aimeos\Shop\Base\Context |
||
31 | * @Flow\Inject |
||
32 | */ |
||
33 | protected $context; |
||
34 | |||
35 | /** |
||
36 | * @var \Aimeos\Shop\Base\I18n |
||
37 | * @Flow\Inject |
||
38 | */ |
||
39 | protected $i18n; |
||
40 | |||
41 | /** |
||
42 | * @var \Aimeos\Shop\Base\Locale |
||
43 | * @Flow\Inject |
||
44 | */ |
||
45 | protected $locale; |
||
46 | |||
47 | /** |
||
48 | * @var \Aimeos\Shop\Base\View |
||
49 | * @Flow\Inject |
||
50 | */ |
||
51 | protected $viewbase; |
||
52 | |||
53 | |||
54 | /** |
||
55 | * Returns the JS file content |
||
56 | * |
||
57 | * @return \Neos\Flow\Http\Response Response object |
||
58 | */ |
||
59 | public function fileAction() |
||
88 | |||
89 | |||
90 | /** |
||
91 | * Returns the HTML code for a copy of a resource object |
||
92 | * |
||
93 | * @param string Resource location, e.g. "product" |
||
94 | * @param string $site Unique site code |
||
95 | * @return string Generated output |
||
96 | */ |
||
97 | public function copyAction( $resource, $site = 'default' ) |
||
107 | |||
108 | |||
109 | /** |
||
110 | * Returns the HTML code for a new resource object |
||
111 | * |
||
112 | * @param string Resource location, e.g. "product" |
||
113 | * @param string $site Unique site code |
||
114 | * @return string Generated output |
||
115 | */ |
||
116 | public function createAction( $resource, $site = 'default' ) |
||
126 | |||
127 | |||
128 | /** |
||
129 | * Deletes the resource object or a list of resource objects |
||
130 | * |
||
131 | * @param string Resource location, e.g. "product" |
||
132 | * @param string $site Unique site code |
||
133 | * @return string Generated output |
||
134 | */ |
||
135 | public function deleteAction( $resource, $site = 'default' ) |
||
145 | |||
146 | |||
147 | /** |
||
148 | * Exports the resource object |
||
149 | * |
||
150 | * @param string Resource location, e.g. "order" |
||
151 | * @param string $site Unique site code |
||
152 | * @return string Generated output |
||
153 | */ |
||
154 | public function exportAction( $resource, $site = 'default' ) |
||
155 | { |
||
156 | $cntl = $this->createClient( $site, $resource ); |
||
157 | |||
158 | if( ( $html = $cntl->export() ) == '' ) { |
||
159 | return $this->setPsrResponse( $cntl->getView()->response() ); |
||
160 | } |
||
161 | |||
162 | return $this->getHtml( $html ); |
||
163 | } |
||
164 | |||
165 | |||
166 | /** |
||
167 | * Returns the HTML code for the requested resource object |
||
168 | * |
||
169 | * @param string Resource location, e.g. "product" |
||
170 | * @param string $site Unique site code |
||
171 | * @return string Generated output |
||
172 | */ |
||
173 | public function getAction( $resource, $site = 'default' ) |
||
183 | |||
184 | |||
185 | /** |
||
186 | * Saves a new resource object |
||
187 | * |
||
188 | * @param string Resource location, e.g. "product" |
||
189 | * @param string $site Unique site code |
||
190 | * @return string Generated output |
||
191 | */ |
||
192 | public function saveAction( $resource, $site = 'default' ) |
||
202 | |||
203 | |||
204 | /** |
||
205 | * Returns the HTML code for a list of resource objects |
||
206 | * |
||
207 | * @param string Resource location, e.g. "product" |
||
208 | * @param string $site Unique site code |
||
209 | * @return string Generated output |
||
210 | */ |
||
211 | public function searchAction( $resource, $site = 'default' ) |
||
221 | |||
222 | |||
223 | /** |
||
224 | * Returns the resource controller |
||
225 | * |
||
226 | * @param string $sitecode Unique site code |
||
227 | * @return \Aimeos\MShop\Context\Item\Iface Context item |
||
228 | */ |
||
229 | protected function createClient( $sitecode, $resource ) |
||
242 | |||
243 | |||
244 | /** |
||
245 | * Returns the generated view including the HTML code |
||
246 | * |
||
247 | * @param string $content Content from admin client |
||
248 | */ |
||
249 | protected function getHtml( $content ) |
||
258 | |||
259 | |||
260 | /** |
||
261 | * Set the response data from a PSR-7 response object |
||
262 | * |
||
263 | * @param \Psr\Http\Message\ResponseInterface $response PSR-7 response object |
||
264 | * @return string Response message content |
||
265 | */ |
||
266 | protected function setPsrResponse( \Psr\Http\Message\ResponseInterface $response ) |
||
276 | } |
||
277 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.