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

Back to archive index

Minahito minah****@users*****
2006年 5月 29日 (月) 16:07:06 JST


Index: xoops2jp/html/modules/base/forms/ImageUploadForm.class.php
diff -u xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.1 xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.2
--- xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.1	Thu May 25 18:31:49 2006
+++ xoops2jp/html/modules/base/forms/ImageUploadForm.class.php	Mon May 29 16:07:06 2006
@@ -4,7 +4,6 @@
 
 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/ImageAdminEditForm.class.php";
 
 class Legacy_ImageUploadForm extends XCube_ActionForm
 {
@@ -52,7 +51,7 @@
 	 */	
 	function validateImgcat_id()
 	{
-		$imgcat_id = $this->get('imgcat_id');
+		$imgcat_id = $this->getImgcatId();
 		if ($imgcat_id != null) {
 			$root =& XCube_Root::getSingleton();
 			$xoopsUser =& $root->mController->getXoopsUser();
@@ -87,7 +86,7 @@
 		parent::validate();
 		
 		$handler =& xoops_getmodulehandler('imagecategory', 'base');
-		$category =& $handler->get($this->get('imgcat_id'));
+		$category =& $handler->get($this->getImgcatId());
 		
 		$formFile = $this->get('image_name');
 
@@ -107,6 +106,11 @@
 			}
 		}
 	}
+	
+	function getImgcatId()
+	{
+		return $this->get('imgcat_id');
+	}
 
 	function load(&$obj)
 	{
@@ -121,10 +125,10 @@
 	{
 		$obj->set('image_nicename', $this->get('image_nicename'));
 		$obj->set('image_display', true);
-		$obj->set('imgcat_id', $this->get('imgcat_id'));
+		$obj->set('imgcat_id', $this->getImgcatId());
 		
 		$handler =& xoops_getmodulehandler('imagecategory', 'base');
-		$category =& $handler->get($this->get('imgcat_id'));
+		$category =& $handler->get($this->getImgcatId());
 
 		$this->mFormFile = $this->get('image_name');
 		


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