Пример #1
0
 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;
 }
Пример #2
0
 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;
 }