示例#1
0
 /**
  * Get string for displaying JD points with stresscolor
  * @return string
  */
 public function jdIntensityWithStresscolor()
 {
     $Stress = new Stresscolor($this->Activity->jdIntensity());
     $Stress->scale(0, 50);
     return $Stress->string($this->Activity->jdIntensity());
 }
 /**
  * Initialize line-data-array for 'TRIMP'
  * @param array $dat
  */
 private function initTRIMPData($dat)
 {
     $avg = $this->year != -1 ? 15 : 180;
     if ($dat['trimp'] == 0) {
         $text = NBSP;
     } else {
         $Stress = new Stresscolor($dat['trimp'] / $avg);
         $text = $Stress->string($dat['trimp']);
     }
     $this->TRIMPData[] = array('i' => $dat['i'], 'text' => $text);
 }