示例#1
0
 /**
  * Get total hits.
  * 
  * @access private
  * @return integer total hits
  */
 function getTotalHits()
 {
     $arr = wpsd_get_chart_xy();
     if (null == $arr) {
         return 0;
     }
     $res = $arr[1][count($arr[1]) - 1];
     if (null == $res) {
         return 0;
     }
     return $res;
 }
 /**
  * updateViewStats function.
  * 
  * @access public
  * @return integer
  */
 function updateViewStats()
 {
     $stats_data = wpsd_get_chart_xy();
     $this->writeCache('get_stats', $stats_data, 300);
     return $stats_data;
 }