* custom show deleted user.

This commit is contained in:
wangyidong
2017-09-04 14:46:17 +08:00
parent ded7a07ad7
commit f60a4c664b
32 changed files with 185 additions and 90 deletions
+3 -2
View File
@@ -64,7 +64,7 @@ class userModel extends model
/**
* Get the account=>realname pairs.
*
* @param string $params noletter|noempty|noclosed|withguest|pofirst|devfirst|qafirst|pmfirst|realname, can be sets of theme
* @param string $params noletter|noempty|nodeleted|noclosed|withguest|pofirst|devfirst|qafirst|pmfirst|realname, can be sets of theme
* @param string $usersToAppended account1,account2
* @access public
* @return array
@@ -88,7 +88,8 @@ class userModel extends model
/* Get raw records. */
$users = $this->dao->select($fields)->from(TABLE_USER)
->where('deleted')->eq(0)
->where('1')
->beginIF(strpos($params, 'nodeleted') !== false or empty($this->config->user->showDeleted))->andWhere('deleted')->eq('0')->fi()
->orderBy($orderBy)
->fetchAll('account');
if($usersToAppended) $users += $this->dao->select($fields)->from(TABLE_USER)->where('account')->in($usersToAppended)->fetchAll('account');