Exemplo n.º 1
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new StewardshipPost();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'StewardshipBatch') && $objSoapObject->StewardshipBatch) {
         $objToReturn->StewardshipBatch = StewardshipBatch::GetObjectFromSoapObject($objSoapObject->StewardshipBatch);
     }
     if (property_exists($objSoapObject, 'PostNumber')) {
         $objToReturn->intPostNumber = $objSoapObject->PostNumber;
     }
     if (property_exists($objSoapObject, 'DatePosted')) {
         $objToReturn->dttDatePosted = new QDateTime($objSoapObject->DatePosted);
     }
     if (property_exists($objSoapObject, 'TotalAmount')) {
         $objToReturn->fltTotalAmount = $objSoapObject->TotalAmount;
     }
     if (property_exists($objSoapObject, 'CreatedByLogin') && $objSoapObject->CreatedByLogin) {
         $objToReturn->CreatedByLogin = Login::GetObjectFromSoapObject($objSoapObject->CreatedByLogin);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
Exemplo n.º 2
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new PaypalBatch();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'Number')) {
         $objToReturn->strNumber = $objSoapObject->Number;
     }
     if (property_exists($objSoapObject, 'DateReceived')) {
         $objToReturn->dttDateReceived = new QDateTime($objSoapObject->DateReceived);
     }
     if (property_exists($objSoapObject, 'DateReconciled')) {
         $objToReturn->dttDateReconciled = new QDateTime($objSoapObject->DateReconciled);
     }
     if (property_exists($objSoapObject, 'ReconciledFlag')) {
         $objToReturn->blnReconciledFlag = $objSoapObject->ReconciledFlag;
     }
     if (property_exists($objSoapObject, 'StewardshipBatch') && $objSoapObject->StewardshipBatch) {
         $objToReturn->StewardshipBatch = StewardshipBatch::GetObjectFromSoapObject($objSoapObject->StewardshipBatch);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
Exemplo n.º 3
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new StewardshipStack();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'StewardshipBatch') && $objSoapObject->StewardshipBatch) {
         $objToReturn->StewardshipBatch = StewardshipBatch::GetObjectFromSoapObject($objSoapObject->StewardshipBatch);
     }
     if (property_exists($objSoapObject, 'StackNumber')) {
         $objToReturn->intStackNumber = $objSoapObject->StackNumber;
     }
     if (property_exists($objSoapObject, 'ItemCount')) {
         $objToReturn->intItemCount = $objSoapObject->ItemCount;
     }
     if (property_exists($objSoapObject, 'ReportedTotalAmount')) {
         $objToReturn->fltReportedTotalAmount = $objSoapObject->ReportedTotalAmount;
     }
     if (property_exists($objSoapObject, 'ActualTotalAmount')) {
         $objToReturn->fltActualTotalAmount = $objSoapObject->ActualTotalAmount;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
Exemplo n.º 4
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, StewardshipBatch::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new StewardshipContribution();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'Person') && $objSoapObject->Person) {
         $objToReturn->Person = Person::GetObjectFromSoapObject($objSoapObject->Person);
     }
     if (property_exists($objSoapObject, 'StewardshipContributionTypeId')) {
         $objToReturn->intStewardshipContributionTypeId = $objSoapObject->StewardshipContributionTypeId;
     }
     if (property_exists($objSoapObject, 'StewardshipBatch') && $objSoapObject->StewardshipBatch) {
         $objToReturn->StewardshipBatch = StewardshipBatch::GetObjectFromSoapObject($objSoapObject->StewardshipBatch);
     }
     if (property_exists($objSoapObject, 'StewardshipStack') && $objSoapObject->StewardshipStack) {
         $objToReturn->StewardshipStack = StewardshipStack::GetObjectFromSoapObject($objSoapObject->StewardshipStack);
     }
     if (property_exists($objSoapObject, 'CheckingAccountLookup') && $objSoapObject->CheckingAccountLookup) {
         $objToReturn->CheckingAccountLookup = CheckingAccountLookup::GetObjectFromSoapObject($objSoapObject->CheckingAccountLookup);
     }
     if (property_exists($objSoapObject, 'TotalAmount')) {
         $objToReturn->fltTotalAmount = $objSoapObject->TotalAmount;
     }
     if (property_exists($objSoapObject, 'DateEntered')) {
         $objToReturn->dttDateEntered = new QDateTime($objSoapObject->DateEntered);
     }
     if (property_exists($objSoapObject, 'DateCleared')) {
         $objToReturn->dttDateCleared = new QDateTime($objSoapObject->DateCleared);
     }
     if (property_exists($objSoapObject, 'DateCredited')) {
         $objToReturn->dttDateCredited = new QDateTime($objSoapObject->DateCredited);
     }
     if (property_exists($objSoapObject, 'CheckNumber')) {
         $objToReturn->strCheckNumber = $objSoapObject->CheckNumber;
     }
     if (property_exists($objSoapObject, 'AuthorizationNumber')) {
         $objToReturn->strAuthorizationNumber = $objSoapObject->AuthorizationNumber;
     }
     if (property_exists($objSoapObject, 'AlternateSource')) {
         $objToReturn->strAlternateSource = $objSoapObject->AlternateSource;
     }
     if (property_exists($objSoapObject, 'NonDeductibleFlag')) {
         $objToReturn->blnNonDeductibleFlag = $objSoapObject->NonDeductibleFlag;
     }
     if (property_exists($objSoapObject, 'Note')) {
         $objToReturn->strNote = $objSoapObject->Note;
     }
     if (property_exists($objSoapObject, 'CreatedByLogin') && $objSoapObject->CreatedByLogin) {
         $objToReturn->CreatedByLogin = Login::GetObjectFromSoapObject($objSoapObject->CreatedByLogin);
     }
     if (property_exists($objSoapObject, 'UnpostedFlag')) {
         $objToReturn->blnUnpostedFlag = $objSoapObject->UnpostedFlag;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }