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->dttTransactionDate) {
         $objObject->dttTransactionDate = $objObject->dttTransactionDate->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->objDonationStewardshipFund) {
         $objObject->objDonationStewardshipFund = StewardshipFund::GetSoapObjectFromObject($objObject->objDonationStewardshipFund, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intDonationStewardshipFundId = null;
         }
     }
     if ($objObject->objCreditCardPayment) {
         $objObject->objCreditCardPayment = CreditCardPayment::GetSoapObjectFromObject($objObject->objCreditCardPayment, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intCreditCardPaymentId = null;
         }
     }
     return $objObject;
 }
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objSignupEntry) {
         $objObject->objSignupEntry = SignupEntry::GetSoapObjectFromObject($objObject->objSignupEntry, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intSignupEntryId = null;
         }
     }
     if ($objObject->objClassMeeting) {
         $objObject->objClassMeeting = ClassMeeting::GetSoapObjectFromObject($objObject->objClassMeeting, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intClassMeetingId = null;
         }
     }
     if ($objObject->objPerson) {
         $objObject->objPerson = Person::GetSoapObjectFromObject($objObject->objPerson, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intPersonId = null;
         }
     }
     if ($objObject->objClassGrade) {
         $objObject->objClassGrade = ClassGrade::GetSoapObjectFromObject($objObject->objClassGrade, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intClassGradeId = null;
         }
     }
     return $objObject;
 }
Exemple #3
0
 public static function GetSoapArrayFromArray($objArray)
 {
     if (!$objArray) {
         return null;
     }
     $objArrayToReturn = array();
     foreach ($objArray as $objObject) {
         array_push($objArrayToReturn, SignupEntry::GetSoapObjectFromObject($objObject, true));
     }
     return unserialize(serialize($objArrayToReturn));
 }
Exemple #4
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;
 }