public static function GetArrayFromSoapArray($objSoapArray) { $objArrayToReturn = array(); foreach ($objSoapArray as $objSoapObject) { array_push($objArrayToReturn, Audit::GetObjectFromSoapObject($objSoapObject)); } return $objArrayToReturn; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new AuditScan(); if (property_exists($objSoapObject, 'AuditScanId')) { $objToReturn->intAuditScanId = $objSoapObject->AuditScanId; } if (property_exists($objSoapObject, 'Audit') && $objSoapObject->Audit) { $objToReturn->Audit = Audit::GetObjectFromSoapObject($objSoapObject->Audit); } if (property_exists($objSoapObject, 'Location') && $objSoapObject->Location) { $objToReturn->Location = Location::GetObjectFromSoapObject($objSoapObject->Location); } if (property_exists($objSoapObject, 'EntityId')) { $objToReturn->intEntityId = $objSoapObject->EntityId; } if (property_exists($objSoapObject, 'Count')) { $objToReturn->intCount = $objSoapObject->Count; } if (property_exists($objSoapObject, 'SystemCount')) { $objToReturn->intSystemCount = $objSoapObject->SystemCount; } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }