[xoops-cvslog 4888] CVS update: xoops2jp/html/core

Back to archive index

Minahito minah****@users*****
2006年 10月 7日 (土) 17:43:13 JST


Index: xoops2jp/html/core/XCube_Property.class.php
diff -u xoops2jp/html/core/XCube_Property.class.php:1.1.2.2 xoops2jp/html/core/XCube_Property.class.php:1.1.2.3
--- xoops2jp/html/core/XCube_Property.class.php:1.1.2.2	Sat Oct  7 17:39:52 2006
+++ xoops2jp/html/core/XCube_Property.class.php	Sat Oct  7 17:43:12 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package XCube
- * @version $Id: XCube_Property.class.php,v 1.1.2.2 2006/10/07 08:39:52 minahito Exp $
+ * @version $Id: XCube_Property.class.php,v 1.1.2.3 2006/10/07 08:43:12 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -397,6 +397,8 @@
 
 class XCube_FileProperty extends XCube_AbstractProperty
 {
+	var $mIndex = null;
+	
 	function XCube_FileProperty($name)
 	{
 		parent::XCube_AbstractProperty($name);
@@ -414,6 +416,10 @@
 			return false;
 		}
 		
+		if ($this->mIndex !== null) {
+			$this->mValue->mKey = $this->mIndex;
+		}
+		
 		$this->mValue->fetch();
 		
 		if (!$this->mValue->hasUploadFile()) {
@@ -453,14 +459,15 @@
 		return true;
 	}
 	
-	function fetch()
+	function fetch(&$form)
 	{
 		unset($this->mProperties);
 		$this->mProperties = array();
 		if (isset($_FILES[$this->mName]) && is_array($_FILES[$this->mName]['name'])) {
 			foreach ($_FILES[$this->mName]['name'] as $_key => $_val) {
 				$this->mProperties[$_key] =& new $this->mPropertyClassName($this->mName);
-				$this->mProperties[$_key]->fetch($_key);
+				$this->mProperties[$_key]->mIndex = $_key;
+				$this->mProperties[$_key]->fetch($form);
 			}
 		}
 	}


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