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; }
static function getUserCounters($loginId) { $row = mysql\Analytic::getUserCounters($loginId); return $row; }