[xoops-cvslog 3561] CVS update: xoops2jp/html/modules/user/admin/actions

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 7月 13日 (木) 19:43:31 JST


Index: xoops2jp/html/modules/user/admin/actions/GroupEditAction.class.php
diff -u xoops2jp/html/modules/user/admin/actions/GroupEditAction.class.php:1.1.2.3 xoops2jp/html/modules/user/admin/actions/GroupEditAction.class.php:1.1.2.4
--- xoops2jp/html/modules/user/admin/actions/GroupEditAction.class.php:1.1.2.3	Tue Mar 28 22:31:14 2006
+++ xoops2jp/html/modules/user/admin/actions/GroupEditAction.class.php	Thu Jul 13 19:43:31 2006
@@ -1,43 +1,52 @@
 <?php
+/**
+ * @package user
+ * @version $Id: GroupEditAction.class.php,v 1.1.2.4 2006/07/13 10:43:31 minahito Exp $
+ */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
 require_once XOOPS_MODULE_PATH . "/user/class/AbstractEditAction.class.php";
-require_once XOOPS_MODULE_PATH . "/user/admin/forms/GroupEditForm.class.php";
+require_once XOOPS_MODULE_PATH . "/user/admin/forms/GroupAdminEditForm.class.php";
 
 class User_GroupEditAction extends User_AbstractEditAction
 {
 	function _getId()
 	{
-		return isset($_REQUEST['groupid']) ? intval($_REQUEST['groupid']) : 0;
+		return xoops_getrequest('groupid');
 	}
 	
 	function &_getHandler()
 	{
-		$handler =& xoops_gethandler('group');
+		$handler =& xoops_getmodulehandler('groups');
 		return $handler;
 	}
 
 	function _setupActionForm()
 	{
-		$this->mActionForm =& new User_GroupEditForm();
+		$this->mActionForm =& new User_GroupAdminEditForm();
 		$this->mActionForm->prepare();
 	}
 
-	function executeViewInput(&$controller,&$xoopsUser,&$renderSystem)
+	function executeViewInput(&$controller, &$xoopsUser, &$render)
 	{
-		$renderSystem->setTemplateName("group_edit.html");
-		$renderSystem->setAttribute("actionForm",$this->mActionForm);
+		$render->setTemplateName("group_edit.html");
+		$render->setAttribute("actionForm", $this->mActionForm);
 	}
 
-	function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem)
+	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
 	{
 		$controller->executeForward("index.php?action=GroupList");
 	}
 
-	function executeViewError(&$controller,&$xoopsUser,&$renderSystem)
+	function executeViewError(&$controller, &$xoopsUser, &$render)
 	{
-		XCube_Utils::redirectHeader("index.php?action=GroupList", 1, "*ERROR*");
+		$controller->executeRedirect("index.php?action=GroupList", 1, _AD_USER_ERROR_DBUPDATE_FAILED);
+	}
+
+	function executeViewCancel(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("index.php?action=GroupList");
 	}
 }
 


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る