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