protected function getView() { $data = $this->getParsedData(); foreach ($data as $name => $term) { if (in_array($name, $this->transportTerms) && $term) { $str = '<ul>'; foreach ($term as $transport) { $str .= "<li>{$transport['name']}</li>"; } $str .= '</ul>'; $data[$name] = $str; } } $places = parent::getPlaces(); $data['place'] = isset($places[$data['place']]) ? $places[$data['place']]['name'] : null; $data['total_price'] = number_format($data['total_price'], 2); $data['total_hours'] = DTime::formatMinutesToHours($this->totalMinutes); return $data; }
$allSalary = $agenda->getAllSalary(); ?> <td><?php echo DTime::formatMinutesToHours($allMinutes); ?> </td> <td><?php echo $allPrices; ?> ₪</td> <td><?php echo $allDays; ?> </td> <td><?php echo DTime::formatMinutesToHours(floor($allMinutes / $allDays)); ?> </td> <td><?php echo number_format($allPrices / $allDays, 2); ?> ₪</td> <td><?php echo number_format($allSalary, 2); ?> ₪</td> <td><?php echo number_format($allSalary + $allPrices, 2); ?> ₪</td> </tr>