[xoops-cvslog 3492] CVS update: xoops2jp/html/modules/legacyRender/admin/actions

Back to archive index

Minahito minah****@users*****
2006年 7月 10日 (月) 20:01:34 JST


Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetEditAction.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplsetEditAction.class.php:1.1.2.4 xoops2jp/html/modules/legacyRender/admin/actions/TplsetEditAction.class.php:1.1.2.5
--- xoops2jp/html/modules/legacyRender/admin/actions/TplsetEditAction.class.php:1.1.2.4	Tue Mar 28 22:30:49 2006
+++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetEditAction.class.php	Mon Jul 10 20:01:34 2006
@@ -1,20 +1,24 @@
 <?php
+/**
+ * @version legacyRender
+ * @version $Id: TplsetEditAction.class.php,v 1.1.2.5 2006/07/10 11:01:34 minahito Exp $
+ */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
-require_once XOOPS_MODULE_PATH . "/legacyRender/admin/class/AbstractEditAction.class.php";
+require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractEditAction.class.php";
 require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/TplsetEditForm.class.php";
 
 class LegacyRender_TplsetEditAction extends LegacyRender_AbstractEditAction
 {
 	function _getId()
 	{
-		return isset($_REQUEST['tplset_id']) ? intval($_REQUEST['tplset_id']) : 0;
+		return xoops_getrequest('tplset_id');
 	}
 
 	function &_getHandler()
 	{
-		$handler = xoops_getmodulehandler('tplset');
+		$handler =& xoops_getmodulehandler('tplset');
 		return $handler;
 	}
 
@@ -31,7 +35,7 @@
 	
 	function _setupActionForm()
 	{
-		$this->mActionForm =& new TplsetEditForm();
+		$this->mActionForm =& new LegacyRender_TplsetEditForm();
 		$this->mActionForm->prepare();
 	}
 
@@ -54,13 +58,17 @@
 
 	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
 	{
-		header("location: ./index.php?action=TplsetList");
-		exit();
+		$controller->executeForward("./index.php?action=TplsetList");
 	}
 
 	function executeViewError(&$controller, &$xoopsUser, &$render)
 	{
-		redirect_header("./index.php?action=TplsetList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED);
+		$controller->executeRedirect("./index.php?action=TplsetList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED);
+	}
+
+	function executeViewCancel(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?action=TplsetList");
 	}
 }
 


xoops-cvslog メーリングリストの案内
Back to archive index