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

Back to archive index

Minahito minah****@users*****
2006年 7月 13日 (木) 19:51:34 JST


Index: xoops2jp/html/modules/user/admin/forms/UserActionFilterForm.class.php
diff -u xoops2jp/html/modules/user/admin/forms/UserActionFilterForm.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/forms/UserActionFilterForm.class.php:removed
--- xoops2jp/html/modules/user/admin/forms/UserActionFilterForm.class.php:1.1.2.2	Tue Mar 28 22:32:04 2006
+++ xoops2jp/html/modules/user/admin/forms/UserActionFilterForm.class.php	Thu Jul 13 19:51:34 2006
@@ -1,54 +0,0 @@
-<?php
-
-if (!defined('XOOPS_ROOT_PATH')) exit();
-
-define("USER_SORT_KEY_DEFAULT",  0);
-define("USER_SORT_KEY_UID",      1);
-define("USER_SORT_KEY_UNAME",    2);
-define("USER_SORT_KEY_NAME",     3);
-define("USER_SORT_KEY_REGDATE",  4);
-define("USER_SORT_KEY_LASTLOGIN",5);
-define("USER_SORT_KEY_POSTS",    6);
-define("USER_SORT_KEY_LEVEL",    7);
-
-define("USER_SORT_KEY_MAXVALUE", 7);
-
-/**
- *
- */
-class UserActionFilterForm
-{
-	var $mSortKey=0;
-
-	var $_mSortKeys=array(
-		USER_SORT_KEY_DEFAULT    => "uid",
-		USER_SORT_KEY_UID        => "uid",
-		USER_SORT_KEY_UNAME      => "uname",
-		USER_SORT_KEY_NAME       => "name",
-		USER_SORT_KEY_REGDATE    => "user_regdate",
-		USER_SORT_KEY_LASTLOGIN  => "last_login",
-		USER_SORT_KEY_POSTS      => "posts",
-		USER_SORT_KEY_LEVEL      => "level"
-	);
-
-	function fetch()
-	{
-		$this->mSortKey=isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : 0;
-
-		if($this->mSortKey>USER_SORT_KEY_MAXVALUE)
-			$this->mSortKey=0;
-	}
-
-	function getSort()
-	{
-		$sortkey=abs($this->mSortKey);
-		return $this->_mSortKeys[$sortkey];
-	}
-	
-	function getOrder()
-	{
-		return ($this->mSortKey < 0) ? "DESC" : "ASC";
-	}
-}
-
-?>
\ No newline at end of file


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