Пример #1
0
 /**
  * Trigger recalculation
  */
 public static function triggerRecalculation()
 {
     if (!self::$TRIGGERED) {
         self::$TRIGGERED = true;
         $oldValue = CalculationBasicEndurance::getConst();
         CalculationBasicEndurance::recalculateValue();
         $newValue = CalculationBasicEndurance::getConst();
         Messages::addValueRecalculated(__('Basic endurance'), $newValue . ' %', $oldValue . ' %');
     }
 }
Пример #2
0
 /**
  * Trigger recalculation
  */
 public static function triggerRecalculation()
 {
     if (!self::$TRIGGERED) {
         self::$TRIGGERED = true;
         $Data = \Runalyze\Configuration::Data();
         $oldCTL = $Data->maxCTL();
         $oldATL = $Data->maxATL();
         $Data->recalculateMaxValues();
         $newCTL = $Data->maxCTL();
         $newATL = $Data->maxATL();
         Messages::addValueRecalculated(__('Maximal CTL'), $newCTL, $oldCTL);
         Messages::addValueRecalculated(__('Maximal ATL'), $newATL, $oldATL);
     }
 }
Пример #3
0
 /**
  * Trigger recalculation
  */
 public static function triggerRecalculation()
 {
     if (!self::$TRIGGERED) {
         self::$TRIGGERED = true;
         $Data = \Runalyze\Configuration::Data();
         $oldValue = $Data->vdotShape();
         $newValue = $Data->recalculateVDOTshape();
         Messages::addValueRecalculated(__('VDOT shape'), number_format($newValue, 1), number_format($oldValue, 1));
     }
 }