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

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 5月 19日 (金) 20:05:28 JST


Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php
diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php:1.1.2.1
--- /dev/null	Fri May 19 20:05:28 2006
+++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php	Fri May 19 20:05:28 2006
@@ -0,0 +1,51 @@
+<?php
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+require_once XOOPS_MODULE_PATH . "/legacyRender/admin/class/AbstractEditAction.class.php";
+require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/TplsetUploadForm.class.php";
+
+class LegacyRender_TplsetUploadAction extends LegacyRender_AbstractEditAction
+{
+	function _getId()
+	{
+		return isset($_REQUEST['tplset_id']) ? intval($_REQUEST['tplset_id']) : 0;
+	}
+
+	function &_getHandler()
+	{
+		$handler = xoops_getmodulehandler('tplset');
+		return $handler;
+	}
+
+	function _setupActionForm()
+	{
+		$this->mActionForm =& new LegacyRender_TplsetUploadForm();
+		$this->mActionForm->prepare();
+	}
+
+	function isEnableCreate()
+	{
+		return true;
+	}
+
+	function executeViewInput(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("tplset_upload.html");
+		$render->setAttribute('actionForm', $this->mActionForm);
+		$render->setAttribute('object', $this->mObject);
+	}
+
+	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
+	{
+		header("location: ./index.php?action=TplsetList");
+		exit();
+	}
+
+	function executeViewError(&$controller, &$xoopsUser, &$render)
+	{
+		redirect_header("./index.php?action=TplsetList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED);
+	}
+}
+
+?>


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