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