[xoops-cvslog 2676] CVS update: xoops2jp/html/modules/base/admin/forms

Back to archive index

Minahito minah****@users*****
2006年 4月 7日 (金) 13:47:35 JST


Index: xoops2jp/html/modules/base/admin/forms/BlockUninstallForm.class.php
diff -u xoops2jp/html/modules/base/admin/forms/BlockUninstallForm.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/forms/BlockUninstallForm.class.php:1.1.2.2
--- xoops2jp/html/modules/base/admin/forms/BlockUninstallForm.class.php:1.1.2.1	Wed Apr  5 19:58:07 2006
+++ xoops2jp/html/modules/base/admin/forms/BlockUninstallForm.class.php	Fri Apr  7 13:47:35 2006
@@ -2,40 +2,18 @@
 
 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";
+require_once XOOPS_MODULE_PATH . "/base/admin/forms/CustomBlockDeleteForm.class.php";
 
-class Legacy_BlockUninstallForm extends XCube_ActionForm
+class Legacy_BlockUninstallForm extends Legacy_CustomBlockDeleteForm
 {
 	function getTokenName()
 	{
 		return "module.base.BlockUninstallForm.TOKEN" . $this->get('bid');
 	}
 
-	function prepare()
-	{
-		//
-		// Set form properties
-		//
-		$this->mFormProperties['bid'] =& new XCube_IntProperty('bid');
-	
-		//
-		// Set field properties
-		//
-	
-		$this->mFieldProperties['bid'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['bid']->setDependsByArray(array('required'));
-		$this->mFieldProperties['bid']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BID);
-	}
-
-	function load(&$obj)
-	{
-		$this->set('bid', $obj->get('bid'));
-	}
-
 	function update(&$obj)
 	{
-		$obj->set('bid', $this->get('bid'));
+		parent::update($obj);
 		$obj->set('last_modified', time());
 		$obj->set('visible', false);
 	}


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