These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | |||
4 | /** |
||
5 | * EcommerceDevelopmentAdminDecorator adds extra functionality to the DevelopmentAdmin |
||
6 | * It creates a developer view (as in www.mysite.com/dev/) specifically for ecommerce. |
||
7 | * |
||
8 | * |
||
9 | * @authors: Nicolaas [at] Sunny Side Up .co.nz |
||
10 | * @package: ecommerce |
||
11 | * @sub-package: cms |
||
12 | * @inspiration: Silverstripe Ltd, Jeremy |
||
13 | **/ |
||
14 | class EcommerceDevelopmentAdminDecorator extends Extension |
||
0 ignored issues
–
show
|
|||
15 | { |
||
16 | private static $allowed_actions = array( |
||
0 ignored issues
–
show
|
|||
17 | 'ecommerce', |
||
18 | ); |
||
19 | |||
20 | /** |
||
21 | * handles ecommerce request or provide options to run request in the form of HTML output. |
||
22 | * |
||
23 | * @param SS_HTTPRequest |
||
24 | * |
||
25 | * @return HTML |
||
0 ignored issues
–
show
|
|||
26 | **/ |
||
27 | public function ecommerce(SS_HTTPRequest $request) |
||
0 ignored issues
–
show
|
|||
28 | { |
||
29 | return EcommerceDatabaseAdmin::create(); |
||
30 | } |
||
31 | } |
||
32 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.