Rename user::count() to objectGetEntriesCount() for consistency with the other generic

object methods
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-04-21 17:06:50 +00:00
committed by WineHQ
parent 27e0589a77
commit a6127c1b07
2 changed files with 6 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ echo "<table width='100%' border=1 cellpadding=3 cellspacing=0>\n\n";
/* Display the number of users */
echo "<tr class=color4>\n";
echo " <td>Users:</td>\n";
echo " <td>".User::count()."</td>\n";
echo " <td>".User::objectGetEntriesCount()."</td>\n";
echo "</tr>\n\n";
/* Display the active users in the last 30 days */
@@ -38,7 +38,8 @@ echo "</tr>\n\n";
/* Display the inactive users */
echo "<tr class=color4>\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";
/* Display the users who were warned and pending deletion */

View File

@@ -481,8 +481,9 @@ class User {
/**
* 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;");
$oRow = mysql_fetch_object($hResult);