Exemplo n.º 1
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new SignupPayment();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'SignupEntry') && $objSoapObject->SignupEntry) {
         $objToReturn->SignupEntry = SignupEntry::GetObjectFromSoapObject($objSoapObject->SignupEntry);
     }
     if (property_exists($objSoapObject, 'SignupPaymentTypeId')) {
         $objToReturn->intSignupPaymentTypeId = $objSoapObject->SignupPaymentTypeId;
     }
     if (property_exists($objSoapObject, 'TransactionDate')) {
         $objToReturn->dttTransactionDate = new QDateTime($objSoapObject->TransactionDate);
     }
     if (property_exists($objSoapObject, 'TransactionDescription')) {
         $objToReturn->strTransactionDescription = $objSoapObject->TransactionDescription;
     }
     if (property_exists($objSoapObject, 'Amount')) {
         $objToReturn->fltAmount = $objSoapObject->Amount;
     }
     if (property_exists($objSoapObject, 'FundingAccount')) {
         $objToReturn->strFundingAccount = $objSoapObject->FundingAccount;
     }
     if (property_exists($objSoapObject, 'DonationStewardshipFund') && $objSoapObject->DonationStewardshipFund) {
         $objToReturn->DonationStewardshipFund = StewardshipFund::GetObjectFromSoapObject($objSoapObject->DonationStewardshipFund);
     }
     if (property_exists($objSoapObject, 'AmountDonation')) {
         $objToReturn->fltAmountDonation = $objSoapObject->AmountDonation;
     }
     if (property_exists($objSoapObject, 'AmountNonDonation')) {
         $objToReturn->fltAmountNonDonation = $objSoapObject->AmountNonDonation;
     }
     if (property_exists($objSoapObject, 'CreditCardPayment') && $objSoapObject->CreditCardPayment) {
         $objToReturn->CreditCardPayment = CreditCardPayment::GetObjectFromSoapObject($objSoapObject->CreditCardPayment);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
Exemplo n.º 2
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new ClassRegistration();
     if (property_exists($objSoapObject, 'SignupEntry') && $objSoapObject->SignupEntry) {
         $objToReturn->SignupEntry = SignupEntry::GetObjectFromSoapObject($objSoapObject->SignupEntry);
     }
     if (property_exists($objSoapObject, 'ClassMeeting') && $objSoapObject->ClassMeeting) {
         $objToReturn->ClassMeeting = ClassMeeting::GetObjectFromSoapObject($objSoapObject->ClassMeeting);
     }
     if (property_exists($objSoapObject, 'Person') && $objSoapObject->Person) {
         $objToReturn->Person = Person::GetObjectFromSoapObject($objSoapObject->Person);
     }
     if (property_exists($objSoapObject, 'ClassGrade') && $objSoapObject->ClassGrade) {
         $objToReturn->ClassGrade = ClassGrade::GetObjectFromSoapObject($objSoapObject->ClassGrade);
     }
     if (property_exists($objSoapObject, 'ChildcareNotes')) {
         $objToReturn->strChildcareNotes = $objSoapObject->ChildcareNotes;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
Exemplo n.º 3
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, SignupEntry::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
Exemplo n.º 4
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new FormAnswer();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'SignupEntry') && $objSoapObject->SignupEntry) {
         $objToReturn->SignupEntry = SignupEntry::GetObjectFromSoapObject($objSoapObject->SignupEntry);
     }
     if (property_exists($objSoapObject, 'FormQuestion') && $objSoapObject->FormQuestion) {
         $objToReturn->FormQuestion = FormQuestion::GetObjectFromSoapObject($objSoapObject->FormQuestion);
     }
     if (property_exists($objSoapObject, 'TextValue')) {
         $objToReturn->strTextValue = $objSoapObject->TextValue;
     }
     if (property_exists($objSoapObject, 'Address') && $objSoapObject->Address) {
         $objToReturn->Address = Address::GetObjectFromSoapObject($objSoapObject->Address);
     }
     if (property_exists($objSoapObject, 'Phone') && $objSoapObject->Phone) {
         $objToReturn->Phone = Phone::GetObjectFromSoapObject($objSoapObject->Phone);
     }
     if (property_exists($objSoapObject, 'Email') && $objSoapObject->Email) {
         $objToReturn->Email = Email::GetObjectFromSoapObject($objSoapObject->Email);
     }
     if (property_exists($objSoapObject, 'IntegerValue')) {
         $objToReturn->intIntegerValue = $objSoapObject->IntegerValue;
     }
     if (property_exists($objSoapObject, 'BooleanValue')) {
         $objToReturn->blnBooleanValue = $objSoapObject->BooleanValue;
     }
     if (property_exists($objSoapObject, 'DateValue')) {
         $objToReturn->dttDateValue = new QDateTime($objSoapObject->DateValue);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }