本文整理汇总了PHP中Phone::GetObjectFromSoapObject方法的典型用法代码示例。如果您正苦于以下问题:PHP Phone::GetObjectFromSoapObject方法的具体用法?PHP Phone::GetObjectFromSoapObject怎么用?PHP Phone::GetObjectFromSoapObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Phone
的用法示例。
在下文中一共展示了Phone::GetObjectFromSoapObject方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetObjectFromSoapObject
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;
}
示例2: GetArrayFromSoapArray
public static function GetArrayFromSoapArray($objSoapArray)
{
$objArrayToReturn = array();
foreach ($objSoapArray as $objSoapObject) {
array_push($objArrayToReturn, Phone::GetObjectFromSoapObject($objSoapObject));
}
return $objArrayToReturn;
}
示例3: GetObjectFromSoapObject
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) {
//.........这里部分代码省略.........
示例4: GetObjectFromSoapObject
public static function GetObjectFromSoapObject($objSoapObject)
{
$objToReturn = new Address();
if (property_exists($objSoapObject, 'Id')) {
$objToReturn->intId = $objSoapObject->Id;
}
if (property_exists($objSoapObject, 'AddressTypeId')) {
$objToReturn->intAddressTypeId = $objSoapObject->AddressTypeId;
}
if (property_exists($objSoapObject, 'Person') && $objSoapObject->Person) {
$objToReturn->Person = Person::GetObjectFromSoapObject($objSoapObject->Person);
}
if (property_exists($objSoapObject, 'Household') && $objSoapObject->Household) {
$objToReturn->Household = Household::GetObjectFromSoapObject($objSoapObject->Household);
}
if (property_exists($objSoapObject, 'PrimaryPhone') && $objSoapObject->PrimaryPhone) {
$objToReturn->PrimaryPhone = Phone::GetObjectFromSoapObject($objSoapObject->PrimaryPhone);
}
if (property_exists($objSoapObject, 'Address1')) {
$objToReturn->strAddress1 = $objSoapObject->Address1;
}
if (property_exists($objSoapObject, 'Address2')) {
$objToReturn->strAddress2 = $objSoapObject->Address2;
}
if (property_exists($objSoapObject, 'Address3')) {
$objToReturn->strAddress3 = $objSoapObject->Address3;
}
if (property_exists($objSoapObject, 'City')) {
$objToReturn->strCity = $objSoapObject->City;
}
if (property_exists($objSoapObject, 'State')) {
$objToReturn->strState = $objSoapObject->State;
}
if (property_exists($objSoapObject, 'ZipCode')) {
$objToReturn->strZipCode = $objSoapObject->ZipCode;
}
if (property_exists($objSoapObject, 'Country')) {
$objToReturn->strCountry = $objSoapObject->Country;
}
if (property_exists($objSoapObject, 'CurrentFlag')) {
$objToReturn->blnCurrentFlag = $objSoapObject->CurrentFlag;
}
if (property_exists($objSoapObject, 'InvalidFlag')) {
$objToReturn->blnInvalidFlag = $objSoapObject->InvalidFlag;
}
if (property_exists($objSoapObject, 'VerificationCheckedFlag')) {
$objToReturn->blnVerificationCheckedFlag = $objSoapObject->VerificationCheckedFlag;
}
if (property_exists($objSoapObject, 'DateUntilWhen')) {
$objToReturn->dttDateUntilWhen = new QDateTime($objSoapObject->DateUntilWhen);
}
if (property_exists($objSoapObject, 'InternationalFlag')) {
$objToReturn->blnInternationalFlag = $objSoapObject->InternationalFlag;
}
if (property_exists($objSoapObject, '__blnRestored')) {
$objToReturn->__blnRestored = $objSoapObject->__blnRestored;
}
return $objToReturn;
}