/** * Returns the fields specific to the SummerApplications (used in the UnassignedStudents Report). * * @return Array Array of fields for this SummerApplication. */ public function unassignedStudentsFields() { $fields = parent::unassignedStudentsFields(); switch ($this->getRoomType()) { case ROOM_TYPE_DOUBLE: $fields['room_type'] = 'Double'; break; case ROOM_TYPE_PRIVATE: $fields['room_type'] = 'Private'; break; default: $fields['room_type'] = 'Unknown'; break; } $fields['smoking_preference'] = $this->getSmokingPreference() == 1 ? 'No' : 'Yes'; return $fields; }
/** * Returns the fields specific to the SpringApplications (used in the UnassignedStudents Report). * * @return Array Array of fields for this SpringApplication. */ public function unassignedStudentsFields() { $fields = parent::unassignedStudentsFields(); $fields['lifestyle'] = $this->getLifestyleOption() == 1 ? 'Single gender' : 'Co-ed'; $fields['bedtime'] = $this->getPreferredBedtime() == 1 ? 'Early' : 'Late'; $fields['room_condition'] = $this->getRoomCondition() == 1 ? 'Neat' : 'Cluttered'; $fields['smoking_preference'] = $this->getSmokingPreference() == 1 ? 'No' : 'Yes'; return $fields; }