Пример #1
0
 public function updateMeetingProvider()
 {
     $jsonArray = array('subject' => 'test', 'starttime' => '2011-12-01T09:00:00Z', 'endtime' => '2012-11-01T10:00:00Z', 'passwordrequired' => 'false', 'conferencecallinfo' => 'Hybrid', 'timezonekey' => '', 'meetingtype' => 'Scheduled');
     $meeting = new Meeting();
     $meeting->setSubject($jsonArray['subject']);
     $meeting->setStartTime(new Carbon($jsonArray['starttime']));
     $meeting->setEndTime(new Carbon($jsonArray['endtime']));
     $meeting->setPasswordRequired(false);
     $meeting->setConferenceCallInfo($jsonArray['conferencecallinfo']);
     $meeting->setMeetingType($jsonArray['meetingtype']);
     $recurringJsonArray = array('subject' => 'test', 'starttime' => '2011-12-01T09:00:00Z', 'endtime' => '2012-11-01T10:00:00Z', 'passwordrequired' => 'false', 'conferencecallinfo' => 'Hybrid', 'timezonekey' => '', 'meetingtype' => 'Recurring', 'uniquemeetinginstance' => 1230000000456789);
     $recurringMeeting = new Meeting();
     $recurringMeeting->setSubject($recurringJsonArray['subject']);
     $recurringMeeting->setStartTime(new Carbon($recurringJsonArray['starttime']));
     $recurringMeeting->setEndTime(new Carbon($recurringJsonArray['endtime']));
     $recurringMeeting->setPasswordRequired(false);
     $recurringMeeting->setConferenceCallInfo($recurringJsonArray['conferencecallinfo']);
     $recurringMeeting->setMeetingType($recurringJsonArray['meetingtype']);
     $recurringMeeting->setUniqueMeetingId($recurringJsonArray['uniquemeetinginstance']);
     return array(array($meeting, $jsonArray), array($recurringMeeting, $recurringJsonArray));
 }