[xoops-cvslog 3510] CVS update: xoops2jp/html/modules/legacyRender/admin/forms

Back to archive index

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


Index: xoops2jp/html/modules/legacyRender/admin/forms/TplsetCloneForm.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplsetCloneForm.class.php:1.1.2.7 xoops2jp/html/modules/legacyRender/admin/forms/TplsetCloneForm.class.php:1.1.2.8
--- xoops2jp/html/modules/legacyRender/admin/forms/TplsetCloneForm.class.php:1.1.2.7	Tue Mar 28 22:30:48 2006
+++ xoops2jp/html/modules/legacyRender/admin/forms/TplsetCloneForm.class.php	Mon Jul 10 20:11:41 2006
@@ -1,17 +1,22 @@
 <?php
+/**
+ * @package legacyRender
+ * @version $Id: TplsetCloneForm.class.php,v 1.1.2.8 2006/07/10 11:11:41 minahito Exp $
+ */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
 require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/TplsetEditForm.class.php";
+require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php";
 
 /**
  * This class is generated by makeActionForm tool.
  */
-class TplsetCloneForm extends TplsetEditForm
+class LegacyRender_TplsetCloneForm extends LegacyRender_TplsetEditForm
 {
 	function getTokenName()
 	{
-		return "module.legacyRender.TplsetCloneForm.TOKEN";
+		return "module.legacyRender.TplsetCloneForm.TOKEN" . $this->get('tplset_id');
 	}
 
 	function prepare()
@@ -55,14 +60,14 @@
 	function load(&$obj)
 	{
 		parent::load($obj);
-		$this->setVar('tplset_name', $obj->get('tplset_name'));
+		$this->set('tplset_name', $obj->get('tplset_name'));
 	}
 
 	function update(&$obj)
 	{
 		parent::update($obj);
-		$obj->setVar('tplset_name', $this->get('tplset_name'));
-		$obj->setVar('tplset_id', 0);
+		$obj->set('tplset_name', $this->get('tplset_name'));
+		$obj->set('tplset_id', 0);
 	}
 }
 


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