AppStateESS/homestead

View on GitHub
class/Report/FreshmenApplicationsGraph/FreshmenApplicationsGraphHtmlView.php

Summary

Maintainability
A
3 hrs
Test Coverage
<?php

namespace Homestead\Report\FreshmenApplicationsGraph;

use \Homestead\ReportHtmlView;
use \Homestead\Term;

class FreshmenApplicationsGraphHtmlView extends ReportHtmlView {

    protected function render()
    {
        parent::render();
        $this->tpl['TERM'] = Term::toString($this->report->getTerm());

        $this->tpl['lastTerm'] = Term::toString($this->report->getLastTerm());
        $this->tpl['thisTerm'] = Term::toSTring($this->report->getTerm());

        $this->tpl['lastYearSeries'] = $this->report->getLastYearJson();
        $this->tpl['thisYearSeries'] = $this->report->getThisYearJson();

        return \PHPWS_Template::process($this->tpl, 'hms', 'admin/reports/FreshmenApplicationsGraph.tpl');
    }
}