ReportController::appendSubmissionValues PHP Méthode

appendSubmissionValues() protected méthode

Appends information about the submission of the application to the $record.
protected appendSubmissionValues ( array &$record, integer $event_id )
$record array
$event_id integer
    protected function appendSubmissionValues(&$record, $event_id)
    {
        if (@$_GET['submission']) {
            $event = Event::model()->findByPk($event_id);
            $svc = new OphCoTherapyapplication_Processor($event);
            $record['submission_status'] = $svc->getApplicationStatus();
            if ($record['submission_status'] == OphCoTherapyapplication_Processor::STATUS_SENT) {
                $most_recent = OphCoTherapyapplication_Email::model()->forEvent($event)->unarchived()->findAll(array('limit' => 1));
                $record['submission_date'] = Helper::convertDate2NHS($most_recent[0]->created_date);
            } else {
                $record['submission_date'] = 'N/A';
            }
        }
    }