Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
0
 public static function GetSoapArrayFromArray($objArray)
 {
     if (!$objArray) {
         return null;
     }
     $objArrayToReturn = array();
     foreach ($objArray as $objObject) {
         array_push($objArrayToReturn, Memberdetails::GetSoapObjectFromObject($objObject, true));
     }
     return unserialize(serialize($objArrayToReturn));
 }