public static function GetArrayFromSoapArray($objSoapArray) { $objArrayToReturn = array(); foreach ($objSoapArray as $objSoapObject) { array_push($objArrayToReturn, Articlecategory::GetObjectFromSoapObject($objSoapObject)); } return $objArrayToReturn; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new Articlecore(); if (property_exists($objSoapObject, 'Id')) { $objToReturn->intId = $objSoapObject->Id; } if (property_exists($objSoapObject, 'Asin')) { $objToReturn->strAsin = $objSoapObject->Asin; } if (property_exists($objSoapObject, 'DetailPageURL')) { $objToReturn->strDetailPageURL = $objSoapObject->DetailPageURL; } if (property_exists($objSoapObject, 'Binding')) { $objToReturn->strBinding = $objSoapObject->Binding; } if (property_exists($objSoapObject, 'Title')) { $objToReturn->strTitle = $objSoapObject->Title; } if (property_exists($objSoapObject, 'ProductGroupObject') && $objSoapObject->ProductGroupObject) { $objToReturn->ProductGroupObject = Articlecategory::GetObjectFromSoapObject($objSoapObject->ProductGroupObject); } if (property_exists($objSoapObject, 'ImageURL')) { $objToReturn->strImageURL = $objSoapObject->ImageURL; } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }