/** * @return string */ protected function tableFooter() { $Code = '<tbody>'; $Code .= '<tr class="no-zebra"><td colspan="4" class="r">' . __('Average') . ':</td>'; $Code .= '<td class="c">' . ($this->AverageTime != null ? $this->AverageTime->string() : '') . '</td>'; $Code .= $this->DemandedTime->isZero() ? '' : '<td></td>'; $Code .= '<td class="c">' . ($this->AveragePace != null ? $this->AveragePace->valueWithAppendix() : '') . '</td>'; $Code .= $this->DemandedPace->isEmpty() ? '' : '<td></td>'; $Code .= '<td colspan="' . (3 + count($this->AdditionalKeys)) . '"></td>'; $Code .= '</tr>'; $Code .= '</tbody>'; $Code .= '</table>'; $Code .= $this->checkboxToToggleInactiveSplits(); return $Code; }
/** * Set average */ private function setAverage() { if (!$this->achievedPaceActive->isEmpty()) { $this->Code .= ' <tr class="small r no-zebra"> <td colspan="3">' . __('Average (active)') . ': </td> <td>' . $this->achievedPaceActive->valueWithAppendix() . '</td> <td>' . $this->tdForPaceDifference($this->achievedPaceActive, true) . '</td> </tr>'; } $this->Code .= ' <tr class="small r no-zebra"> <td colspan="3">' . __('Average (total)') . ': </td> <td>' . $this->achievedPace->valueWithAppendix() . '</td> <td></td> </tr>'; }