summaryrefslogtreecommitdiff
path: root/manager/library/actions
diff options
context:
space:
mode:
authorMarkus Warg <markus@mawaunix.mawa.sls>2010-03-31 16:43:49 +0200
committerMarkus Warg <markus@mawaunix.mawa.sls>2010-03-31 16:43:49 +0200
commit4f4c5ce3ccf0370f926d75e700e8b0bd2208f3f6 (patch)
tree82cb017ac68772ea36c0f522ec019bf14fbdc77a /manager/library/actions
parent8398c9048d34a1f51212ae770998fc082fc93b69 (diff)
downloadcacert-mgr-4f4c5ce3ccf0370f926d75e700e8b0bd2208f3f6.tar.gz
cacert-mgr-4f4c5ce3ccf0370f926d75e700e8b0bd2208f3f6.tar.xz
cacert-mgr-4f4c5ce3ccf0370f926d75e700e8b0bd2208f3f6.zip
initial setup of framework code
enabled features * login * crt login * top / left menu * logging * db layer
Diffstat (limited to 'manager/library/actions')
-rw-r--r--manager/library/actions/ActionIndex.php53
-rw-r--r--manager/library/actions/FWAction.php7
2 files changed, 60 insertions, 0 deletions
diff --git a/manager/library/actions/ActionIndex.php b/manager/library/actions/ActionIndex.php
new file mode 100644
index 0000000..2771bad
--- /dev/null
+++ b/manager/library/actions/ActionIndex.php
@@ -0,0 +1,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';
+ }
+}
diff --git a/manager/library/actions/FWAction.php b/manager/library/actions/FWAction.php
new file mode 100644
index 0000000..346e4fa
--- /dev/null
+++ b/manager/library/actions/FWAction.php
@@ -0,0 +1,7 @@
+<?php
+/**
+ * @author markus
+ */
+abstract class FWAction {
+
+}