summaryrefslogtreecommitdiff
path: root/manager/library/actions
diff options
context:
space:
mode:
authorMarkus Warg <mw@it-sls.de>2010-04-14 15:20:40 +0200
committerMarkus Warg <mw@it-sls.de>2010-04-14 15:20:40 +0200
commitae053ad0371d46f529a26c2a18953189620b88e4 (patch)
treeaad5ebb03e7138647f950be8960c3f7c84df0020 /manager/library/actions
parentd09a673644f87ee067f62f3de978cb046a02c7a8 (diff)
downloadcacert-mgr-ae053ad0371d46f529a26c2a18953189620b88e4.tar.gz
cacert-mgr-ae053ad0371d46f529a26c2a18953189620b88e4.tar.xz
cacert-mgr-ae053ad0371d46f529a26c2a18953189620b88e4.zip
imap class / mail controller
add imap class to access captured emails add mail controller to framework (display content)
Diffstat (limited to 'manager/library/actions')
-rw-r--r--manager/library/actions/ActionLogin.php53
-rw-r--r--manager/library/actions/ActionMail.php53
2 files changed, 106 insertions, 0 deletions
diff --git a/manager/library/actions/ActionLogin.php b/manager/library/actions/ActionLogin.php
new file mode 100644
index 0000000..02bae86
--- /dev/null
+++ b/manager/library/actions/ActionLogin.php
@@ -0,0 +1,53 @@
+<?php
+
+require_once (FWACTIONS_PATH . '/FWAction.php');
+
+class Login 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 1000;
+ }
+
+ /**
+ * controller to invoke
+ * @return string
+ */
+ public static function getController() {
+ return 'login';
+ }
+
+ /**
+ * 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 'Login';
+ }
+}
diff --git a/manager/library/actions/ActionMail.php b/manager/library/actions/ActionMail.php
new file mode 100644
index 0000000..4ed23de
--- /dev/null
+++ b/manager/library/actions/ActionMail.php
@@ -0,0 +1,53 @@
+<?php
+
+require_once (FWACTIONS_PATH . '/FWAction.php');
+
+class Mail 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 100;
+ }
+
+ /**
+ * controller to invoke
+ * @return string
+ */
+ public static function getController() {
+ return 'mail';
+ }
+
+ /**
+ * 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 'Mail';
+ }
+}