1 | <?php |
||
4 | class UpdateSecondHandProduct extends Controller |
||
|
|||
5 | { |
||
6 | |||
7 | private static $allowed_actions = array( |
||
8 | 'unpublish' => '->MyPermissionCheck', |
||
9 | 'archive' => '->MyPermissionCheck' |
||
10 | ); |
||
11 | |||
12 | |||
13 | /** |
||
14 | * make the page less easy to access |
||
15 | * (but still accessible) |
||
16 | * - code => ip address |
||
17 | * @var string |
||
18 | */ |
||
19 | private static $secret_codes = array(); |
||
20 | |||
21 | function init() |
||
28 | |||
29 | function unpublish($request) |
||
42 | |||
43 | function archive($request) |
||
62 | |||
63 | /** |
||
64 | * @return Boolean |
||
65 | */ |
||
66 | function MyPermissionCheck() |
||
72 | } |
||
73 |
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.