Total Complexity | 7 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class HomePageCommon |
||
10 | { |
||
11 | /** |
||
12 | * Fallback path in case no home page set for the user |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected static $defaultPath = 'view/user.settings'; |
||
17 | |||
18 | /** |
||
19 | * Collect all home pages from module joints |
||
20 | * |
||
21 | * @return array |
||
22 | */ |
||
23 | public static function getAvailableHomePages() |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Get the current user home page |
||
39 | * |
||
40 | * @return HomePage |
||
41 | */ |
||
42 | public static function getUserHomePage() |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Get the current user home page path |
||
51 | * |
||
52 | * @return HomePage |
||
53 | */ |
||
54 | public static function getUserHomePagePath() |
||
61 |