public static function GetSoapArrayFromArray($objArray) { if (!$objArray) { return null; } $objArrayToReturn = array(); foreach ($objArray as $objObject) { array_push($objArrayToReturn, Articlecategory::GetSoapObjectFromObject($objObject, true)); } return unserialize(serialize($objArrayToReturn)); }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objProductGroupObject) { $objObject->objProductGroupObject = Articlecategory::GetSoapObjectFromObject($objObject->objProductGroupObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->intProductGroup = null; } } return $objObject; }