예제 #1
0
 /**
  * Get ground contact balance
  * @return string ground contact balance with unit
  */
 public function groundcontactBalance()
 {
     if ($this->Activity->groundContactBalance() > 0) {
         return GroundcontactBalance::format($this->Activity->groundContactBalance());
     }
     return '';
 }
예제 #2
0
 /**
  * Constructor
  * @param \Runalyze\View\Activity\Context $Context
  */
 public function __construct(\Runalyze\View\Activity\Context $Context)
 {
     parent::__construct(\Runalyze\Activity\GroundcontactBalance::format($Context->activity()->groundContactBalance(), false), '%', __('Ground Contact Balance'));
 }