Rename user::count() to objectGetEntriesCount() for consistency with the other generic
object methods
This commit is contained in:
committed by
WineHQ
parent
27e0589a77
commit
a6127c1b07
@@ -14,7 +14,7 @@ echo "<table width='100%' border=1 cellpadding=3 cellspacing=0>\n\n";
|
|||||||
/* Display the number of users */
|
/* Display the number of users */
|
||||||
echo "<tr class=color4>\n";
|
echo "<tr class=color4>\n";
|
||||||
echo " <td>Users:</td>\n";
|
echo " <td>Users:</td>\n";
|
||||||
echo " <td>".User::count()."</td>\n";
|
echo " <td>".User::objectGetEntriesCount()."</td>\n";
|
||||||
echo "</tr>\n\n";
|
echo "</tr>\n\n";
|
||||||
|
|
||||||
/* Display the active users in the last 30 days */
|
/* Display the active users in the last 30 days */
|
||||||
@@ -38,7 +38,8 @@ echo "</tr>\n\n";
|
|||||||
/* Display the inactive users */
|
/* Display the inactive users */
|
||||||
echo "<tr class=color4>\n";
|
echo "<tr class=color4>\n";
|
||||||
echo " <td>Inactive users (not logged in since six months):</td>\n";
|
echo " <td>Inactive users (not logged in since six months):</td>\n";
|
||||||
echo " <td>".(User::count()-User::active_users_within_days(183))."</td>\n";
|
echo " <td>".(User::objectGetEntriesCount()-
|
||||||
|
User::active_users_within_days(183))."</td>\n";
|
||||||
echo "</tr>\n\n";
|
echo "</tr>\n\n";
|
||||||
|
|
||||||
/* Display the users who were warned and pending deletion */
|
/* Display the users who were warned and pending deletion */
|
||||||
|
|||||||
@@ -480,9 +480,10 @@ class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the number of users in the database
|
* Get the number of users in the database
|
||||||
|
* The parameters are only included for compatibility; we don't queue users
|
||||||
*/
|
*/
|
||||||
function count()
|
function objectGetEntriesCount($bQueued = null, $bRejected = null)
|
||||||
{
|
{
|
||||||
$hResult = query_parameters("SELECT count(*) as num_users FROM user_list;");
|
$hResult = query_parameters("SELECT count(*) as num_users FROM user_list;");
|
||||||
$oRow = mysql_fetch_object($hResult);
|
$oRow = mysql_fetch_object($hResult);
|
||||||
|
|||||||
Reference in New Issue
Block a user