[xoops-cvslog 4976] CVS update: xoops2jp/html/modules/user/forms

Back to archive index

Minahito minah****@users*****
2006年 10月 13日 (金) 14:45:50 JST


Index: xoops2jp/html/modules/user/forms/OnlineFilterForm.class.php
diff -u xoops2jp/html/modules/user/forms/OnlineFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/user/forms/OnlineFilterForm.class.php:1.1.2.1.2.1
--- xoops2jp/html/modules/user/forms/OnlineFilterForm.class.php:1.1.2.1	Sun Aug  6 01:45:56 2006
+++ xoops2jp/html/modules/user/forms/OnlineFilterForm.class.php	Fri Oct 13 14:45:50 2006
@@ -15,7 +15,6 @@
 
 class User_OnlineFilterForm extends User_AbstractFilterForm
 {
-	var $mSort = 0;
 	var $mSortKeys = array(
 		ONLINE_SORT_KEY_ONLINE_UID => 'online_uid',
 		ONLINE_SORT_KEY_ONLINE_UNAME => 'online_uname',
@@ -23,15 +22,15 @@
 		ONLINE_SORT_KEY_ONLINE_MODULE => 'online_module',
 		ONLINE_SORT_KEY_ONLINE_IP => 'online_ip'
 	);
-	var $_mCriteria = null;
+	
+	function getDefaultSortKey()
+	{
+		return ONLINE_SORT_KEY_DEFAULT;
+	}
 
 	function fetch()
 	{
-		$this->mSort = isset($_REQUEST['sort']) ? intval(xoops_getrequest('sort')) : ONLINE_SORT_KEY_DEFAULT;
-	
-		if (!isset($this->mSortKeys[abs($this->mSort)])) {
-			$this->mSort = ONLINE_SORT_KEY_DEFAULT;
-		}
+		parent::fetch();
 
 		$this->_mCriteria->addSort($this->getSort(), $this->getOrder());
 	}


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