private function addConferenceRegistration($conferenceID, $userID, $needsTransportation, $needsAccommodation, $flight) { $userConf = new UserConference(); $userConf->userID = $userID; $userConf->conferenceID = $conferenceID; $userConf->needsTransportation = $needsTransportation; $userConf->needsAccommodation = $needsAccommodation; $userConf->approved = false; $userConf->flightID = $flight; $userConf->save(); return $userConf->id; }
private function createUserConferenceEntry($flightId) { $conference = new UserConference(); $conference->userID = $this->userNum; $conference->flightID = $flightId; $conference->conferenceID = 1; $conference->needsTransportation = false; $conference->approved = true; $conference->save(); $this->userNum += 1; return $conference; }