Ejemplo n.º 1
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     if ($context->isRunning() && $context->dataview()->usedVdot() > 0) {
         return $context->dataview()->vdotIcon();
     }
     return '';
 }
Ejemplo n.º 2
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     if ($context->hasData(self::KEY_DISTANCE_COMPARISON)) {
         return $context->dataview()->distance() . $this->distanceComparison($context->activity()->distance(), $context->data(self::KEY_DISTANCE_COMPARISON));
     }
     return $context->dataview()->distance();
 }
Ejemplo n.º 3
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     if ($context->isRunning() && $context->dataview()->usedVdot() > 0) {
         if (!$context->activity()->usesVDOT()) {
             return '<span class="unimportant">' . $context->dataview()->vdot()->value() . '</span>';
         }
         return $context->dataview()->vdot()->value();
     }
     return '';
 }
Ejemplo n.º 4
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     if ($context->isRunning()) {
         return $context->dataview()->fitVO2maxEstimate();
     }
     return '';
 }
Ejemplo n.º 5
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     if ($context->activity()->hrAvg() > 0) {
         return $context->dataview()->hrAvg()->string();
     }
     return '';
 }
Ejemplo n.º 6
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     if (!$context->activity()->weather()->temperature()->isUnknown() && !$context->activity()->weather()->windSpeed()->isUnknown() && !($context->hasSport() && !$context->sport()->isOutside())) {
         return $context->dataview()->windChillFactor()->string();
     }
     return '';
 }
Ejemplo n.º 7
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     if ($context->isRunning()) {
         return $context->dataview()->jdIntensityWithStresscolor();
     }
     return '';
 }
Ejemplo n.º 8
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     if ($context->activity()->distance() > 0) {
         if ($context->hasData(self::DURATION_SUM_WITH_DISTANCE_KEY)) {
             if ($context->data(self::DURATION_SUM_WITH_DISTANCE_KEY) > 0) {
                 $Pace = new Activity\Pace($context->data(self::DURATION_SUM_WITH_DISTANCE_KEY), $context->activity()->distance(), $context->hasSport() ? $context->sport()->paceUnitEnum() : Activity\Pace::STANDARD);
                 return $Pace->valueWithAppendix();
             }
             return '';
         }
         return $context->dataview()->pace()->valueWithAppendix();
     }
     return '';
 }
Ejemplo n.º 9
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     return $context->dataview()->fitRecoveryTime();
 }
Ejemplo n.º 10
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     return $context->dataview()->power();
 }
Ejemplo n.º 11
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     return $context->dataview()->verticalOscillation();
 }
Ejemplo n.º 12
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     return $context->dataview()->duration()->string();
 }
Ejemplo n.º 13
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     return $context->dataview()->fitHRVscore();
 }
Ejemplo n.º 14
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     return $context->dataview()->groundcontact();
 }
Ejemplo n.º 15
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     return $context->dataview()->elapsedTime();
 }
Ejemplo n.º 16
0
 /**
  * Get string to display this dataset value
  * @param \Runalyze\Dataset\Context $context
  * @return string
  */
 public function stringFor(Context $context)
 {
     return $context->dataview()->calories();
 }