[xoops-cvslog 1719] CVS update: xoops2jp/html/modules/base/kernel

Back to archive index

Minahito minah****@users*****
2006年 1月 14日 (土) 02:46:50 JST


Index: xoops2jp/html/modules/base/kernel/handler.php
diff -u xoops2jp/html/modules/base/kernel/handler.php:1.1.2.5 xoops2jp/html/modules/base/kernel/handler.php:1.1.2.6
--- xoops2jp/html/modules/base/kernel/handler.php:1.1.2.5	Thu Jan 12 01:45:57 2006
+++ xoops2jp/html/modules/base/kernel/handler.php	Sat Jan 14 02:46:50 2006
@@ -68,7 +68,7 @@
 			$limit=$criteria->getLimit();
 			$start=$criteria->getStart();
 			
-			$ret =& $this->_getObjects($sql, $param1);
+			$ret =& $this->_getObjects($sql, $limit, $start, $param1);
 		}
 		else {
 			$ret =& $this->_getObjects($sql, $param1, $param2, $param3);
@@ -108,10 +108,10 @@
 		if($criteria !== null && is_a($criteria, 'CriteriaElement')) {
 			$where = $criteria->render();
 			
-			return $this->_getObjects($where);
+			return $this->_getCount($where);
 		}
 		else {
-			return $this->_getObjects($criteria);
+			return $this->_getCount($criteria);
 		}
 	}
 	
@@ -235,7 +235,7 @@
 	 */
 	function delete(&$obj, $force=false)
 	{
-		$criteria = new Criteria($this->mPrimary, $obj->getProperty($this->mPrimary));
+		$criteria = new Criteria($this->mPrimary, $obj->get($this->mPrimary));
 
 		return $this->deleteAll($criteria, $force);
 	}


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