예제 #1
0
파일: Post.php 프로젝트: rjha/sc
 function getTotalCount($filters = array())
 {
     $count = 0;
     if (empty($filters)) {
         // no filter case
         $row = mysql\Analytic::getSiteCounters();
         if (!empty($row)) {
             $count = $row["post_count"];
         }
     } else {
         //get from table using where condition
         $row = mysql\Post::getTotalCount($filters);
         $count = $row["count"];
     }
     return $count;
 }