1: <?php
2: 3: 4: 5:
6:
7: if (!defined('XOOPS_ROOT_PATH')) exit();
8:
9: require_once XOOPS_MODULE_PATH . "/user/class/AbstractEditAction.class.php";
10: require_once XOOPS_MODULE_PATH . "/user/admin/forms/GroupAdminEditForm.class.php";
11:
12: class User_GroupEditAction extends User_AbstractEditAction
13: {
14: function _getId()
15: {
16: return xoops_getrequest('groupid');
17: }
18:
19: function &_getHandler()
20: {
21: $handler =& xoops_getmodulehandler('groups');
22: return $handler;
23: }
24:
25: function _setupActionForm()
26: {
27: $this->mActionForm =new User_GroupAdminEditForm();
28: $this->mActionForm->prepare();
29: }
30:
31: function executeViewInput(&$controller, &$xoopsUser, &$render)
32: {
33: $render->setTemplateName("group_edit.html");
34: $render->setAttribute("actionForm", $this->mActionForm);
35: }
36:
37: function executeViewSuccess(&$controller, &$xoopsUser, &$render)
38: {
39: $controller->executeForward("index.php?action=GroupList");
40: }
41:
42: function executeViewError(&$controller, &$xoopsUser, &$render)
43: {
44: $controller->executeRedirect("index.php?action=GroupList", 1, _MD_USER_ERROR_DBUPDATE_FAILED);
45: }
46:
47: function executeViewCancel(&$controller, &$xoopsUser, &$render)
48: {
49: $controller->executeForward("index.php?action=GroupList");
50: }
51: }
52:
53: ?>
54: