public static function GetArrayFromSoapArray($objSoapArray) { $objArrayToReturn = array(); foreach ($objSoapArray as $objSoapObject) { array_push($objArrayToReturn, ClassCourse::GetObjectFromSoapObject($objSoapObject)); } return $objArrayToReturn; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new ClassMeeting(); if (property_exists($objSoapObject, 'SignupForm') && $objSoapObject->SignupForm) { $objToReturn->SignupForm = SignupForm::GetObjectFromSoapObject($objSoapObject->SignupForm); } if (property_exists($objSoapObject, 'ClassTerm') && $objSoapObject->ClassTerm) { $objToReturn->ClassTerm = ClassTerm::GetObjectFromSoapObject($objSoapObject->ClassTerm); } if (property_exists($objSoapObject, 'ClassCourse') && $objSoapObject->ClassCourse) { $objToReturn->ClassCourse = ClassCourse::GetObjectFromSoapObject($objSoapObject->ClassCourse); } if (property_exists($objSoapObject, 'ClassInstructor') && $objSoapObject->ClassInstructor) { $objToReturn->ClassInstructor = ClassInstructor::GetObjectFromSoapObject($objSoapObject->ClassInstructor); } if (property_exists($objSoapObject, 'DateStart')) { $objToReturn->dttDateStart = new QDateTime($objSoapObject->DateStart); } if (property_exists($objSoapObject, 'DateEnd')) { $objToReturn->dttDateEnd = new QDateTime($objSoapObject->DateEnd); } if (property_exists($objSoapObject, 'Location')) { $objToReturn->strLocation = $objSoapObject->Location; } if (property_exists($objSoapObject, 'MeetingDay')) { $objToReturn->intMeetingDay = $objSoapObject->MeetingDay; } if (property_exists($objSoapObject, 'MeetingStartTime')) { $objToReturn->intMeetingStartTime = $objSoapObject->MeetingStartTime; } if (property_exists($objSoapObject, 'MeetingEndTime')) { $objToReturn->intMeetingEndTime = $objSoapObject->MeetingEndTime; } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }