Total Complexity | 8 |
Total Lines | 68 |
Duplicated Lines | 0 % |
Coverage | 29.4% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class AuthFiles { |
||
6 | protected $viewBase; |
||
7 | |||
8 | 1 | public function __construct() { |
|
9 | 1 | $this->viewBase = "@framework/auth"; |
|
10 | 1 | } |
|
11 | |||
12 | /** |
||
13 | * To override |
||
14 | * The login view |
||
15 | * |
||
16 | * @return string |
||
17 | */ |
||
18 | public function getViewIndex() { |
||
19 | return $this->viewBase . "/index.html"; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * To override |
||
24 | * The info view, displays the connected user and a logout button |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getViewInfo() { |
||
29 | return $this->viewBase . "/info.html"; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * To override |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getViewNoAccess() { |
||
38 | return $this->viewBase . "/noAccess.html"; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Returns the base template for all Auth actions if getBaseTemplate return a base template filename |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getViewBaseTemplate() { |
||
47 | return $this->viewBase . "/baseTemplate.html"; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * To override |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getViewDisconnected() { |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getViewMessage() { |
||
64 | return $this->viewBase . "/message.html"; |
||
65 | } |
||
66 | 1 | ||
67 | 1 | /** |
|
68 | * To override |
||
69 | * Returns the base template filename, default : null |
||
70 | */ |
||
71 | public function getBaseTemplate() { |
||
73 | } |
||
74 | } |
||
75 | |||
76 |