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