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

Back to archive index

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


Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishFilterForm.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishFilterForm.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishFilterForm.class.php:1.1.2.3
--- xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishFilterForm.class.php:1.1.2.2	Tue Apr 25 14:24:16 2006
+++ xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishFilterForm.class.php	Mon Jul 10 20:11:29 2006
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @package legacyRender
+ * @version $Id: BannerfinishFilterForm.class.php,v 1.1.2.3 2006/07/10 11:11:29 minahito Exp $
+ */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
@@ -16,8 +20,7 @@
 
 class LegacyRender_BannerfinishFilterForm extends LegacyRender_AbstractFilterForm
 {
-	var $mSort = 0;
-	var $_mSortKeys = array(
+	var $mSortKeys = array(
 		BANNERFINISH_SORT_KEY_BID => 'bid',
 		BANNERFINISH_SORT_KEY_CID => 'cid',
 		BANNERFINISH_SORT_KEY_IMPRESSIONS => 'impressions',
@@ -25,19 +28,18 @@
 		BANNERFINISH_SORT_KEY_DATESTART => 'datestart',
 		BANNERFINISH_SORT_KEY_DATEEND => 'dateend'
 	);
-	var $_mCriteria = null;
 
 	function fetch()
 	{
 		$this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : BANNERFINISH_SORT_KEY_DEFAULT;
 	
-		if ($this->mSort > BANNERFINISH_SORT_KEY_MAXVALUE) {
+		if (!isset($this->mSortKeys[abs($this->mSort)])) {
 			$this->mSort = BANNERFINISH_SORT_KEY_DEFAULT;
 		}
 	
 		if (isset($_REQUEST['cid'])) {
 			$this->_mNavi->addExtra('cid', xoops_getrequest('cid'));
-			$this->_mCriteria->add(new Criteria('cid', array(XOBJ_DTYPE_INT, xoops_getrequest('cid'))));
+			$this->_mCriteria->add(new Criteria('cid', xoops_getrequest('cid')));
 		}
 		
 		$this->_mCriteria->addSort($this->getSort(), $this->getOrder());


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