initial setup of framework code
[cacert-mgr.git] / manager / library / actions / ActionIndex.php
1 <?php
2
3 require_once (FWACTIONS_PATH . '/FWAction.php');
4
5 class Index extends FWAction {
6 /**
7 * get a list of required permissions that are needed to access this action
8 * @return array
9 */
10 public static function getRequiredPermissions() {
11 return array();
12 }
13
14 /**
15 * get a role that is required for accessing that action
16 * @return string
17 */
18 public static function getRequiredRole() {
19 return 'User';
20 }
21
22 /**
23 * sort order for top navigation
24 * @return integer
25 */
26 public static function getTopNavPrio() {
27 return 1;
28 }
29
30 /**
31 * controller to invoke
32 * @return string
33 */
34 public static function getController() {
35 return 'index';
36 }
37
38 /**
39 * action to invoke
40 * @return string
41 */
42 public static function getAction() {
43 return 'index';
44 }
45
46 /**
47 * get text for menu, caller is responsible for translating
48 * @return string
49 */
50 public static function getMenuText() {
51 return 'Dashboard';
52 }
53 }