summaryrefslogtreecommitdiff
path: root/manager/library/actions/ActionIndex.php
blob: 2771baded281396b8aca5c44e949f57134378831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php

require_once (FWACTIONS_PATH . '/FWAction.php');

class Index extends FWAction {
	/**
	 * get a list of required permissions that are needed to access this action
	 * @return array
	 */
	public static function getRequiredPermissions() {
		return array();
	}

	/**
	 * get a role that is required for accessing that action
	 * @return string
	 */
	public static function getRequiredRole() {
		return 'User';
	}

	/**
	 * sort order for top navigation
	 * @return integer
	 */
	public static function getTopNavPrio() {
		return 1;
	}

	/**
	 * controller to invoke
	 * @return string
	 */
	public static function getController() {
		return 'index';
	}

	/**
	 * action to invoke
	 * @return string
	 */
	public static function getAction() {
		return 'index';
	}

	/**
	 * get text for menu, caller is responsible for translating
	 * @return string
	 */
	public static function getMenuText() {
		return 'Dashboard';
	}
}