Beispiel #1
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, HeadShot::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
Beispiel #2
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new Person();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'MembershipStatusTypeId')) {
         $objToReturn->intMembershipStatusTypeId = $objSoapObject->MembershipStatusTypeId;
     }
     if (property_exists($objSoapObject, 'MaritalStatusTypeId')) {
         $objToReturn->intMaritalStatusTypeId = $objSoapObject->MaritalStatusTypeId;
     }
     if (property_exists($objSoapObject, 'FirstName')) {
         $objToReturn->strFirstName = $objSoapObject->FirstName;
     }
     if (property_exists($objSoapObject, 'MiddleName')) {
         $objToReturn->strMiddleName = $objSoapObject->MiddleName;
     }
     if (property_exists($objSoapObject, 'LastName')) {
         $objToReturn->strLastName = $objSoapObject->LastName;
     }
     if (property_exists($objSoapObject, 'MailingLabel')) {
         $objToReturn->strMailingLabel = $objSoapObject->MailingLabel;
     }
     if (property_exists($objSoapObject, 'PriorLastNames')) {
         $objToReturn->strPriorLastNames = $objSoapObject->PriorLastNames;
     }
     if (property_exists($objSoapObject, 'Nickname')) {
         $objToReturn->strNickname = $objSoapObject->Nickname;
     }
     if (property_exists($objSoapObject, 'Title')) {
         $objToReturn->strTitle = $objSoapObject->Title;
     }
     if (property_exists($objSoapObject, 'Suffix')) {
         $objToReturn->strSuffix = $objSoapObject->Suffix;
     }
     if (property_exists($objSoapObject, 'Gender')) {
         $objToReturn->strGender = $objSoapObject->Gender;
     }
     if (property_exists($objSoapObject, 'DateOfBirth')) {
         $objToReturn->dttDateOfBirth = new QDateTime($objSoapObject->DateOfBirth);
     }
     if (property_exists($objSoapObject, 'DobYearApproximateFlag')) {
         $objToReturn->blnDobYearApproximateFlag = $objSoapObject->DobYearApproximateFlag;
     }
     if (property_exists($objSoapObject, 'DobGuessedFlag')) {
         $objToReturn->blnDobGuessedFlag = $objSoapObject->DobGuessedFlag;
     }
     if (property_exists($objSoapObject, 'Age')) {
         $objToReturn->intAge = $objSoapObject->Age;
     }
     if (property_exists($objSoapObject, 'DeceasedFlag')) {
         $objToReturn->blnDeceasedFlag = $objSoapObject->DeceasedFlag;
     }
     if (property_exists($objSoapObject, 'DateDeceased')) {
         $objToReturn->dttDateDeceased = new QDateTime($objSoapObject->DateDeceased);
     }
     if (property_exists($objSoapObject, 'CurrentHeadShot') && $objSoapObject->CurrentHeadShot) {
         $objToReturn->CurrentHeadShot = HeadShot::GetObjectFromSoapObject($objSoapObject->CurrentHeadShot);
     }
     if (property_exists($objSoapObject, 'MailingAddress') && $objSoapObject->MailingAddress) {
         $objToReturn->MailingAddress = Address::GetObjectFromSoapObject($objSoapObject->MailingAddress);
     }
     if (property_exists($objSoapObject, 'StewardshipAddress') && $objSoapObject->StewardshipAddress) {
         $objToReturn->StewardshipAddress = Address::GetObjectFromSoapObject($objSoapObject->StewardshipAddress);
     }
     if (property_exists($objSoapObject, 'PrimaryPhone') && $objSoapObject->PrimaryPhone) {
         $objToReturn->PrimaryPhone = Phone::GetObjectFromSoapObject($objSoapObject->PrimaryPhone);
     }
     if (property_exists($objSoapObject, 'PrimaryEmail') && $objSoapObject->PrimaryEmail) {
         $objToReturn->PrimaryEmail = Email::GetObjectFromSoapObject($objSoapObject->PrimaryEmail);
     }
     if (property_exists($objSoapObject, 'CanMailFlag')) {
         $objToReturn->blnCanMailFlag = $objSoapObject->CanMailFlag;
     }
     if (property_exists($objSoapObject, 'CanPhoneFlag')) {
         $objToReturn->blnCanPhoneFlag = $objSoapObject->CanPhoneFlag;
     }
     if (property_exists($objSoapObject, 'CanEmailFlag')) {
         $objToReturn->blnCanEmailFlag = $objSoapObject->CanEmailFlag;
     }
     if (property_exists($objSoapObject, 'PrimaryAddressText')) {
         $objToReturn->strPrimaryAddressText = $objSoapObject->PrimaryAddressText;
     }
     if (property_exists($objSoapObject, 'PrimaryCityText')) {
         $objToReturn->strPrimaryCityText = $objSoapObject->PrimaryCityText;
     }
     if (property_exists($objSoapObject, 'PrimaryStateText')) {
         $objToReturn->strPrimaryStateText = $objSoapObject->PrimaryStateText;
     }
     if (property_exists($objSoapObject, 'PrimaryZipCodeText')) {
         $objToReturn->strPrimaryZipCodeText = $objSoapObject->PrimaryZipCodeText;
     }
     if (property_exists($objSoapObject, 'PrimaryPhoneText')) {
         $objToReturn->strPrimaryPhoneText = $objSoapObject->PrimaryPhoneText;
     }
     if (property_exists($objSoapObject, 'PublicCreationFlag')) {
         $objToReturn->blnPublicCreationFlag = $objSoapObject->PublicCreationFlag;
     }
     if (property_exists($objSoapObject, 'CoPrimaryObject') && $objSoapObject->CoPrimaryObject) {
         $objToReturn->CoPrimaryObject = Person::GetObjectFromSoapObject($objSoapObject->CoPrimaryObject);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }