Пример #1
0
 public static function GetSoapArrayFromArray($objArray)
 {
     if (!$objArray) {
         return null;
     }
     $objArrayToReturn = array();
     foreach ($objArray as $objObject) {
         array_push($objArrayToReturn, Myassets::GetSoapObjectFromObject($objObject, true));
     }
     return unserialize(serialize($objArrayToReturn));
 }
Пример #2
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objMember) {
         $objObject->objMember = Memberdetails::GetSoapObjectFromObject($objObject->objMember, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intMemberId = null;
         }
     }
     if ($objObject->objAsset) {
         $objObject->objAsset = Myassets::GetSoapObjectFromObject($objObject->objAsset, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intAssetId = null;
         }
     }
     return $objObject;
 }