Example #1
0
File: User.php Project: 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;
 }
Example #2
0
File: Analytic.php Project: rjha/sc
 static function getUserCounters($loginId)
 {
     $row = mysql\Analytic::getUserCounters($loginId);
     return $row;
 }