Beispiel #1
0
Datei: User.php Projekt: rjha/sc
 function getTotal($filters = array())
 {
     $count = 0;
     if (empty($filters)) {
         // no filter case
         $row = mysql\Analytic::getSiteCounters();
         if (!empty($row)) {
             $count = $row["user_count"];
         }
     } else {
         //get from user table using where condition
         $row = mysql\User::getTotal($filters);
         $count = $row["count"];
     }
     return $count;
 }
Beispiel #2
0
 static function getUserCounters($loginId)
 {
     $row = mysql\Analytic::getUserCounters($loginId);
     return $row;
 }