/** * Creates a default array of entries for any location. * @param integer $minWeekNo start week number : index in array. * @param integer $maxWeekNo end week number : index in array * @param array $weekList list of samples in a particular week. */ private static function report_calendar_summary_initLoc1($minWeekNo, $maxWeekNo, $weekList) { $locationArray = array(); for ($weekno = $minWeekNo; $weekno <= $maxWeekNo; $weekno++) { $locationArray[$weekno] = array('this_sample' => -1, 'total' => 0, 'sampleTotal' => 0, 'max' => 0, 'numSamples' => 0, 'estimates' => 0, 'summary' => false, 'hasData' => false, 'hasEstimates' => false, 'forcedZero' => isset($weekList[$weekno]), 'location' => ''); } self::$initLoc = $locationArray; }