Esempio n. 1
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objAddress) {
         $objObject->objAddress = Address::GetSoapObjectFromObject($objObject->objAddress, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intAddressId = null;
         }
     }
     if ($objObject->objPerson) {
         $objObject->objPerson = Person::GetSoapObjectFromObject($objObject->objPerson, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intPersonId = null;
         }
     }
     if ($objObject->objMobileProvider) {
         $objObject->objMobileProvider = MobileProvider::GetSoapObjectFromObject($objObject->objMobileProvider, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intMobileProviderId = null;
         }
     }
     return $objObject;
 }
Esempio n. 2
0
 public static function GetSoapArrayFromArray($objArray)
 {
     if (!$objArray) {
         return null;
     }
     $objArrayToReturn = array();
     foreach ($objArray as $objObject) {
         array_push($objArrayToReturn, MobileProvider::GetSoapObjectFromObject($objObject, true));
     }
     return unserialize(serialize($objArrayToReturn));
 }