1 | <?php |
||
15 | class UserController implements InjectionAwareInterface |
||
16 | { |
||
17 | use InjectionAwareTrait; |
||
18 | |||
19 | private $session; |
||
20 | private $userService; |
||
21 | private $response; |
||
22 | private $view; |
||
23 | private $pageRender; |
||
24 | |||
25 | |||
26 | |||
27 | /** |
||
28 | * Initiate the controller. |
||
29 | * @return void |
||
30 | */ |
||
31 | 8 | public function init() |
|
39 | |||
40 | |||
41 | |||
42 | /** |
||
43 | * Login-page |
||
44 | * |
||
45 | * @throws Exception |
||
46 | * |
||
47 | * @return void |
||
48 | */ |
||
49 | 1 | public function getPostLogin() |
|
68 | |||
69 | |||
70 | |||
71 | /** |
||
72 | * Create user page. |
||
73 | * |
||
74 | * @throws Exception |
||
75 | * |
||
76 | * @return void |
||
77 | */ |
||
78 | 1 | public function getPostCreateUser() |
|
93 | |||
94 | |||
95 | |||
96 | /** |
||
97 | * Uppdatera användare. |
||
98 | * |
||
99 | * @param integer $id User id. |
||
100 | * |
||
101 | * @throws Exception |
||
102 | * |
||
103 | * @return void |
||
104 | */ |
||
105 | 1 | public function getPostUpdateUser($id) |
|
133 | |||
134 | |||
135 | |||
136 | /** |
||
137 | * Handler with form to delete an item. |
||
138 | * |
||
139 | * @return void |
||
140 | */ |
||
141 | 1 | public function getPostDeleteUser($id) |
|
167 | |||
168 | |||
169 | |||
170 | /** |
||
171 | * Logout user. |
||
172 | * |
||
173 | * @return void |
||
174 | */ |
||
175 | 1 | public function logout() |
|
180 | } |
||
181 |