1 | <?php |
||
7 | class AdminSecurity extends Security |
||
|
|||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private static $allowed_actions = array( |
||
13 | 'passwordsent', |
||
14 | 'ChangePasswordForm' |
||
15 | ); |
||
16 | |||
17 | /** |
||
18 | * Template thats used to render the pages. |
||
19 | * |
||
20 | * @config |
||
21 | * @var string |
||
22 | */ |
||
23 | private static $template_main = 'AdminLogin'; |
||
24 | |||
25 | /** |
||
26 | * @return void |
||
27 | */ |
||
28 | public function init() |
||
45 | |||
46 | /** |
||
47 | * @param null $action |
||
48 | * @return string |
||
49 | */ |
||
50 | public function Link($action = null) |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | public static function isAdminLogin() |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public static function getBackUrl() |
||
74 | |||
75 | /** |
||
76 | * @param SS_HTTPRequest $request |
||
77 | * @return SS_HTTPResponse|HTMLText |
||
78 | */ |
||
79 | public function passwordsent($request) |
||
83 | |||
84 | /** |
||
85 | * @see Security::getPasswordResetLink() |
||
86 | * We overload this, so we can add the BackURL to the password resetlink |
||
87 | * @param Member $member |
||
88 | * @param string $autologinToken |
||
89 | * @return string |
||
90 | */ |
||
91 | public static function getPasswordResetLink($member, $autologinToken) |
||
98 | |||
99 | /** |
||
100 | * @return ChangePasswordForm |
||
101 | */ |
||
102 | public function ChangePasswordForm() |
||
106 | } |
||
107 |
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.