class/Report/CheckinsByHall/CheckinsByHallHtmlView.php
<?php
namespace Homestead\Report\CheckinsByHall;
use \Homestead\ReportHtmlView;
use \Homestead\Term;
class CheckinsByHallHtmlView extends ReportHtmlView {
protected function render(){
parent::render();
$this->tpl['TERM'] = Term::toString($this->report->getTerm());
$rows = array();
$totalAssignments = 0;
foreach($this->report->getCheckinCounts() as $tRows){
$row = array();
$row['HALL_NAME'] = $tRows['hall_name'];
$row['COUNT'] = (int)$tRows['count'];
$rows[] = $row;
$totalAssignments += (int)$tRows['count'];
}
$this->tpl['TABLE_ROWS'] = $rows;
$this->tpl['TOTAL_CHECKINS'] = $totalAssignments;
return \PHPWS_Template::process($this->tpl, 'hms', 'admin/reports/CheckinsByHall.tpl');
}
}