Exemple #1
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objSignupEntry) {
         $objObject->objSignupEntry = SignupEntry::GetSoapObjectFromObject($objObject->objSignupEntry, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intSignupEntryId = null;
         }
     }
     if ($objObject->objFormQuestion) {
         $objObject->objFormQuestion = FormQuestion::GetSoapObjectFromObject($objObject->objFormQuestion, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intFormQuestionId = null;
         }
     }
     if ($objObject->objAddress) {
         $objObject->objAddress = Address::GetSoapObjectFromObject($objObject->objAddress, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intAddressId = null;
         }
     }
     if ($objObject->objPhone) {
         $objObject->objPhone = Phone::GetSoapObjectFromObject($objObject->objPhone, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intPhoneId = null;
         }
     }
     if ($objObject->objEmail) {
         $objObject->objEmail = Email::GetSoapObjectFromObject($objObject->objEmail, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intEmailId = null;
         }
     }
     if ($objObject->dttDateValue) {
         $objObject->dttDateValue = $objObject->dttDateValue->__toString(QDateTime::FormatSoap);
     }
     return $objObject;
 }
Exemple #2
0
 public static function GetSoapArrayFromArray($objArray)
 {
     if (!$objArray) {
         return null;
     }
     $objArrayToReturn = array();
     foreach ($objArray as $objObject) {
         array_push($objArrayToReturn, FormQuestion::GetSoapObjectFromObject($objObject, true));
     }
     return unserialize(serialize($objArrayToReturn));
 }