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;
 }
Example #2
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, ParentPagerPeriod::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }