public function __construct($id = 0, $term = NULL, $banner_id = NULL, $username = NULL, $gender = NULL, $student_type = NULL, $application_term = NULL, $cell_phone = NULL, $meal_plan = NULL, $physical_disability = NULL, $psych_disability = NULL, $gender_need = NULL, $medical_need = NULL, $international = NULL) { /** * If the id is non-zero, then we need to load the other member variables * of this object from the database */ if ($id != 0) { $this->id = (int) $id; $this->load(); return; } // Set this application type $this->application_type = 'offcampus_waiting_list'; parent::__construct($term, $banner_id, $username, $gender, $student_type, $application_term, $cell_phone, $meal_plan, $physical_disability, $psych_disability, $gender_need, $medical_need, $international); }
public function __construct($id = 0, $term = NULL, $banner_id = NULL, $username = NULL, $gender = NULL, $student_type = NULL, $application_term = NULL, $cell_phone = NULL, $meal_plan = NULL, $physical_disability = NULL, $psych_disability = NULL, $gender_need = NULL, $medical_need = NULL, $international = NULL, $room_type = NULL, $smoking_preference = NULL) { /** * If the id is non-zero, then we need to load the other member variables * of this object from the database */ if ($id != 0) { $this->id = (int) $id; $this->load(); return; } $this->application_type = 'summer'; parent::__construct($term, $banner_id, $username, $gender, $student_type, $application_term, $cell_phone, $meal_plan, $physical_disability, $psych_disability, $gender_need, $medical_need, $international); $this->setRoomType($room_type); $this->setSmokingPreference($smoking_preference); }
public function __construct($id = 0, $term = null, $banner_id = null, $username = null, $gender = null, $student_type = null, $application_term = null, $cell_phone = null, $meal_plan = null, $physical_disability = null, $psych_disability = null, $gender_need = null, $medical_need = null, $international = null, $lifestyle_option = null, $preferred_bedtime = null, $room_condition = null, $smoking_preference = null, $rlc_interest = null) { /** * If the id is non-zero, then we need to load the other member variables * of this object from the database */ if ($id != 0) { $this->id = (int) $id; $this->load(); return; } $this->application_type = 'fall'; parent::__construct($term, $banner_id, $username, $gender, $student_type, $application_term, $cell_phone, $meal_plan, $physical_disability, $psych_disability, $gender_need, $medical_need, $international); $this->setLifestyleOption($lifestyle_option); $this->setPreferredBedtime($preferred_bedtime); $this->setRoomCondition($room_condition); $this->setSmokingPreference($smoking_preference); $this->setRlcInterest($rlc_interest); }
/** * Constructor * @param number $id * @param string $term * @param string $banner_id * @param string $username * @param string $gender * @param string $student_type * @param string $application_term * @param string $cell_phone * @param string $meal_plan * @param string $physical_disability * @param string $psych_disability * @param string $gender_need * @param string $medical_need * @param string $international * @param string $specialInterest * @param number $magicWinner * @param string $sororityPref * @param string $wgPref * @param string $honorsPref * @param string $rlcInterest * @param string $earlyRelease */ public function __construct($id = 0, $term = NULL, $banner_id = NULL, $username = NULL, $gender = NULL, $student_type = NULL, $application_term = NULL, $cell_phone = NULL, $meal_plan = NULL, $physical_disability = NULL, $psych_disability = NULL, $gender_need = NULL, $medical_need = NULL, $international = NULL, $specialInterest = NULL, $magicWinner = 0, $sororityPref = NULL, $wgPref = NULL, $honorsPref = NULL, $rlcInterest = NULL, $earlyRelease = NULL) { /** * If the id is non-zero, then we need to load the other member variables * of this object from the database */ if ($id != 0) { $this->id = (int) $id; $this->load(); return; } $this->application_type = 'lottery'; parent::__construct($term, $banner_id, $username, $gender, $student_type, $application_term, $cell_phone, $meal_plan, $physical_disability, $psych_disability, $gender_need, $medical_need, $international); $this->special_interest = $specialInterest; $this->magic_winner = $magicWinner; $this->sorority_pref = $sororityPref; //$this->tf_pref = $tfPref; $this->wg_pref = $wgPref; $this->honors_pref = $honorsPref; $this->rlc_interest = $rlcInterest; $this->early_release = $earlyRelease; }