public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new ParentPagerAddress(); if (property_exists($objSoapObject, 'Id')) { $objToReturn->intId = $objSoapObject->Id; } if (property_exists($objSoapObject, 'ServerIdentifier')) { $objToReturn->intServerIdentifier = $objSoapObject->ServerIdentifier; } if (property_exists($objSoapObject, 'ParentPagerIndividual') && $objSoapObject->ParentPagerIndividual) { $objToReturn->ParentPagerIndividual = ParentPagerIndividual::GetObjectFromSoapObject($objSoapObject->ParentPagerIndividual); } if (property_exists($objSoapObject, 'ParentPagerHousehold') && $objSoapObject->ParentPagerHousehold) { $objToReturn->ParentPagerHousehold = ParentPagerHousehold::GetObjectFromSoapObject($objSoapObject->ParentPagerHousehold); } if (property_exists($objSoapObject, 'Address1')) { $objToReturn->strAddress1 = $objSoapObject->Address1; } if (property_exists($objSoapObject, 'Address2')) { $objToReturn->strAddress2 = $objSoapObject->Address2; } if (property_exists($objSoapObject, 'Address3')) { $objToReturn->strAddress3 = $objSoapObject->Address3; } if (property_exists($objSoapObject, 'City')) { $objToReturn->strCity = $objSoapObject->City; } if (property_exists($objSoapObject, 'State')) { $objToReturn->strState = $objSoapObject->State; } if (property_exists($objSoapObject, 'ZipCode')) { $objToReturn->strZipCode = $objSoapObject->ZipCode; } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }
public static function GetArrayFromSoapArray($objSoapArray) { $objArrayToReturn = array(); foreach ($objSoapArray as $objSoapObject) { array_push($objArrayToReturn, ParentPagerIndividual::GetObjectFromSoapObject($objSoapObject)); } return $objArrayToReturn; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new ParentPagerChildHistory(); if (property_exists($objSoapObject, 'Id')) { $objToReturn->intId = $objSoapObject->Id; } if (property_exists($objSoapObject, 'ServerIdentifier')) { $objToReturn->intServerIdentifier = $objSoapObject->ServerIdentifier; } if (property_exists($objSoapObject, 'ParentPagerIndividual') && $objSoapObject->ParentPagerIndividual) { $objToReturn->ParentPagerIndividual = ParentPagerIndividual::GetObjectFromSoapObject($objSoapObject->ParentPagerIndividual); } if (property_exists($objSoapObject, 'ParentPagerStation') && $objSoapObject->ParentPagerStation) { $objToReturn->ParentPagerStation = ParentPagerStation::GetObjectFromSoapObject($objSoapObject->ParentPagerStation); } if (property_exists($objSoapObject, 'ParentPagerPeriod') && $objSoapObject->ParentPagerPeriod) { $objToReturn->ParentPagerPeriod = ParentPagerPeriod::GetObjectFromSoapObject($objSoapObject->ParentPagerPeriod); } if (property_exists($objSoapObject, 'DropoffByParentPagerIndividual') && $objSoapObject->DropoffByParentPagerIndividual) { $objToReturn->DropoffByParentPagerIndividual = ParentPagerIndividual::GetObjectFromSoapObject($objSoapObject->DropoffByParentPagerIndividual); } if (property_exists($objSoapObject, 'PickupByParentPagerIndividual') && $objSoapObject->PickupByParentPagerIndividual) { $objToReturn->PickupByParentPagerIndividual = ParentPagerIndividual::GetObjectFromSoapObject($objSoapObject->PickupByParentPagerIndividual); } if (property_exists($objSoapObject, 'DateIn')) { $objToReturn->dttDateIn = new QDateTime($objSoapObject->DateIn); } if (property_exists($objSoapObject, 'DateOut')) { $objToReturn->dttDateOut = new QDateTime($objSoapObject->DateOut); } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }