예제 #1
0
 /**
  * Show the graph of the past week's reports. Outputs the
  *	image unless $ret == true
  * 
  * @deprecated
  */
 public static function showReportCounts()
 {
     // Recent PIREP #'s
     $max = 0;
     $data = array();
     $time_start = strtotime('-7 days');
     $time_end = time();
     // This is for the past 7 days
     do {
         $count = PIREPData::getReportCount($time_start);
         $data[] = $count;
         if ($count > $max) {
             $max = $count;
         }
         $time_start += SECONDS_PER_DAY;
     } while ($time_start < $time_end);
     return $data;
 }
예제 #2
0
 /**
  * Show the graph of the past week's reports. Outputs the
  *	image unless $ret == true
  * 
  * @deprecated
  */
 public static function showReportCounts($ret = false)
 {
     // Recent PIREP #'s
     $max = 0;
     $data = array();
     # Get the past 7 days
     $time_start = strtotime('-7 days');
     $time_end = date('Ymd');
     do {
         $count = PIREPData::getReportCount($time_start);
         $data[date('m/d', $time_start)] = $count;
         $time_start += SECONDS_PER_DAY;
         $check = date('Ymd', $time_start);
     } while ($check <= $time_end);
     return $data;
 }