diff options
author | Michael Tänzer <neo@nhng.de> | 2010-04-26 20:57:27 +0200 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2010-04-26 20:57:27 +0200 |
commit | c0b92575118607007447ed064e1b81c9bc5e4311 (patch) | |
tree | c8038004fce1ed550c2617e51f6f7d3f28a3c486 /manager/library | |
parent | 38d397043ea4c86546144b7e10c766468f7258bf (diff) | |
download | cacert-mgr-c0b92575118607007447ed064e1b81c9bc5e4311.tar.gz cacert-mgr-c0b92575118607007447ed064e1b81c9bc5e4311.tar.xz cacert-mgr-c0b92575118607007447ed064e1b81c9bc5e4311.zip |
Construct and display the AddPoints view
* define input form (draft)
* create the view and make it display the form
* add a link to the view in the topNav
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'manager/library')
-rw-r--r-- | manager/library/actions/ActionAddPoints.php | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/manager/library/actions/ActionAddPoints.php b/manager/library/actions/ActionAddPoints.php new file mode 100644 index 0000000..ef71b2f --- /dev/null +++ b/manager/library/actions/ActionAddPoints.php @@ -0,0 +1,53 @@ +<?php + +require_once (FWACTIONS_PATH . '/FWAction.php'); + +class AddPoints 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 50; + } + + /** + * controller to invoke + * @return string + */ + public static function getController() { + return 'add-points'; + } + + /** + * 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 'Add Points'; + } +} |