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

Back to archive index

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


Index: xoops2jp/html/modules/legacyRender/admin/forms/TplsetEditForm.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplsetEditForm.class.php:1.1.2.4 xoops2jp/html/modules/legacyRender/admin/forms/TplsetEditForm.class.php:1.1.2.5
--- xoops2jp/html/modules/legacyRender/admin/forms/TplsetEditForm.class.php:1.1.2.4	Tue Mar 28 22:30:48 2006
+++ xoops2jp/html/modules/legacyRender/admin/forms/TplsetEditForm.class.php	Mon Jul 10 20:11:54 2006
@@ -1,14 +1,24 @@
 <?php
+/**
+ * @package legacyRender
+ * @version $Id: TplsetEditForm.class.php,v 1.1.2.5 2006/07/10 11:11:54 minahito Exp $
+ */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
 require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php";
+require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php";
 
 /**
  * This class is generated by makeActionForm tool.
  */
-class TplsetEditForm extends XCube_ActionForm
+class LegacyRender_TplsetEditForm extends XCube_ActionForm
 {
+	function getTokenName()
+	{
+		return "module.legacyRender.TplsetEditForm.TOKEN" . $this->get('tplset_id');
+	}
+
 	function prepare()
 	{
 		//
@@ -30,23 +40,19 @@
 		$this->mFieldProperties['tplset_desc']->addMessage('maxlength', _AD_LEGACYRENDER_ERROR_MAXLENGTH, _AD_LEGACYRENDER_LANG_TPLSET_DESC, '255');
 		$this->mFieldProperties['tplset_desc']->addVar('maxlength', 255);
 	}
-	function getTokenName()
-	{
-		return "module.legacyRender.TplsetEditForm.TOKEN";
-	}
 
 	function load(&$obj)
 	{
-		$this->setVar('tplset_id', $obj->get('tplset_id'));
-		$this->setVar('tplset_desc', $obj->get('tplset_desc'));
-		$this->setVar('tplset_credits', $obj->get('tplset_credits'));
+		$this->set('tplset_id', $obj->get('tplset_id'));
+		$this->set('tplset_desc', $obj->get('tplset_desc'));
+		$this->set('tplset_credits', $obj->get('tplset_credits'));
 	}
 
 	function update(&$obj)
 	{
-		$obj->setVar('tplset_id', $this->get('tplset_id'));
-		$obj->setVar('tplset_desc', $this->get('tplset_desc'));
-		$obj->setVar('tplset_credits', $this->get('tplset_credits'));
+		$obj->set('tplset_id', $this->get('tplset_id'));
+		$obj->set('tplset_desc', $this->get('tplset_desc'));
+		$obj->set('tplset_credits', $this->get('tplset_credits'));
 	}
 }
 


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