當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Shipment::GetObjectFromSoapObject方法代碼示例

本文整理匯總了PHP中Shipment::GetObjectFromSoapObject方法的典型用法代碼示例。如果您正苦於以下問題:PHP Shipment::GetObjectFromSoapObject方法的具體用法?PHP Shipment::GetObjectFromSoapObject怎麽用?PHP Shipment::GetObjectFromSoapObject使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Shipment的用法示例。


在下文中一共展示了Shipment::GetObjectFromSoapObject方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: GetObjectFromSoapObject

 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new FedexShipment();
     if (property_exists($objSoapObject, 'FedexShipmentId')) {
         $objToReturn->intFedexShipmentId = $objSoapObject->FedexShipmentId;
     }
     if (property_exists($objSoapObject, 'Shipment') && $objSoapObject->Shipment) {
         $objToReturn->Shipment = Shipment::GetObjectFromSoapObject($objSoapObject->Shipment);
     }
     if (property_exists($objSoapObject, 'PackageType') && $objSoapObject->PackageType) {
         $objToReturn->PackageType = PackageType::GetObjectFromSoapObject($objSoapObject->PackageType);
     }
     if (property_exists($objSoapObject, 'ShippingAccount') && $objSoapObject->ShippingAccount) {
         $objToReturn->ShippingAccount = ShippingAccount::GetObjectFromSoapObject($objSoapObject->ShippingAccount);
     }
     if (property_exists($objSoapObject, 'FedexServiceType') && $objSoapObject->FedexServiceType) {
         $objToReturn->FedexServiceType = FedexServiceType::GetObjectFromSoapObject($objSoapObject->FedexServiceType);
     }
     if (property_exists($objSoapObject, 'CurrencyUnit') && $objSoapObject->CurrencyUnit) {
         $objToReturn->CurrencyUnit = CurrencyUnit::GetObjectFromSoapObject($objSoapObject->CurrencyUnit);
     }
     if (property_exists($objSoapObject, 'WeightUnit') && $objSoapObject->WeightUnit) {
         $objToReturn->WeightUnit = WeightUnit::GetObjectFromSoapObject($objSoapObject->WeightUnit);
     }
     if (property_exists($objSoapObject, 'LengthUnit') && $objSoapObject->LengthUnit) {
         $objToReturn->LengthUnit = LengthUnit::GetObjectFromSoapObject($objSoapObject->LengthUnit);
     }
     if (property_exists($objSoapObject, 'ToPhone')) {
         $objToReturn->strToPhone = $objSoapObject->ToPhone;
     }
     if (property_exists($objSoapObject, 'PayType')) {
         $objToReturn->intPayType = $objSoapObject->PayType;
     }
     if (property_exists($objSoapObject, 'PayerAccountNumber')) {
         $objToReturn->strPayerAccountNumber = $objSoapObject->PayerAccountNumber;
     }
     if (property_exists($objSoapObject, 'PackageWeight')) {
         $objToReturn->fltPackageWeight = $objSoapObject->PackageWeight;
     }
     if (property_exists($objSoapObject, 'PackageLength')) {
         $objToReturn->fltPackageLength = $objSoapObject->PackageLength;
     }
     if (property_exists($objSoapObject, 'PackageWidth')) {
         $objToReturn->fltPackageWidth = $objSoapObject->PackageWidth;
     }
     if (property_exists($objSoapObject, 'PackageHeight')) {
         $objToReturn->fltPackageHeight = $objSoapObject->PackageHeight;
     }
     if (property_exists($objSoapObject, 'DeclaredValue')) {
         $objToReturn->fltDeclaredValue = $objSoapObject->DeclaredValue;
     }
     if (property_exists($objSoapObject, 'Reference')) {
         $objToReturn->strReference = $objSoapObject->Reference;
     }
     if (property_exists($objSoapObject, 'SaturdayDeliveryFlag')) {
         $objToReturn->blnSaturdayDeliveryFlag = $objSoapObject->SaturdayDeliveryFlag;
     }
     if (property_exists($objSoapObject, 'NotifySenderEmail')) {
         $objToReturn->strNotifySenderEmail = $objSoapObject->NotifySenderEmail;
     }
     if (property_exists($objSoapObject, 'NotifySenderShipFlag')) {
         $objToReturn->blnNotifySenderShipFlag = $objSoapObject->NotifySenderShipFlag;
     }
     if (property_exists($objSoapObject, 'NotifySenderExceptionFlag')) {
         $objToReturn->blnNotifySenderExceptionFlag = $objSoapObject->NotifySenderExceptionFlag;
     }
     if (property_exists($objSoapObject, 'NotifySenderDeliveryFlag')) {
         $objToReturn->blnNotifySenderDeliveryFlag = $objSoapObject->NotifySenderDeliveryFlag;
     }
     if (property_exists($objSoapObject, 'NotifyRecipientEmail')) {
         $objToReturn->strNotifyRecipientEmail = $objSoapObject->NotifyRecipientEmail;
     }
     if (property_exists($objSoapObject, 'NotifyRecipientShipFlag')) {
         $objToReturn->blnNotifyRecipientShipFlag = $objSoapObject->NotifyRecipientShipFlag;
     }
     if (property_exists($objSoapObject, 'NotifyRecipientExceptionFlag')) {
         $objToReturn->blnNotifyRecipientExceptionFlag = $objSoapObject->NotifyRecipientExceptionFlag;
     }
     if (property_exists($objSoapObject, 'NotifyRecipientDeliveryFlag')) {
         $objToReturn->blnNotifyRecipientDeliveryFlag = $objSoapObject->NotifyRecipientDeliveryFlag;
     }
     if (property_exists($objSoapObject, 'NotifyOtherEmail')) {
         $objToReturn->strNotifyOtherEmail = $objSoapObject->NotifyOtherEmail;
     }
     if (property_exists($objSoapObject, 'NotifyOtherShipFlag')) {
         $objToReturn->blnNotifyOtherShipFlag = $objSoapObject->NotifyOtherShipFlag;
     }
     if (property_exists($objSoapObject, 'NotifyOtherExceptionFlag')) {
         $objToReturn->blnNotifyOtherExceptionFlag = $objSoapObject->NotifyOtherExceptionFlag;
     }
     if (property_exists($objSoapObject, 'NotifyOtherDeliveryFlag')) {
         $objToReturn->blnNotifyOtherDeliveryFlag = $objSoapObject->NotifyOtherDeliveryFlag;
     }
     if (property_exists($objSoapObject, 'HoldAtLocationFlag')) {
         $objToReturn->blnHoldAtLocationFlag = $objSoapObject->HoldAtLocationFlag;
     }
     if (property_exists($objSoapObject, 'HoldAtLocationAddress')) {
         $objToReturn->strHoldAtLocationAddress = $objSoapObject->HoldAtLocationAddress;
     }
     if (property_exists($objSoapObject, 'HoldAtLocationCity')) {
//.........這裏部分代碼省略.........
開發者ID:heshuai64,項目名稱:einv2,代碼行數:101,代碼來源:FedexShipmentGen.class.php

示例2: GetArrayFromSoapArray

 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, Shipment::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:8,代碼來源:ShipmentGen.class.php

示例3: GetObjectFromSoapObject

 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new ShipmentCustomFieldHelper();
     if (property_exists($objSoapObject, 'Shipment') && $objSoapObject->Shipment) {
         $objToReturn->Shipment = Shipment::GetObjectFromSoapObject($objSoapObject->Shipment);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
開發者ID:proxymoron,項目名稱:tracmor,代碼行數:11,代碼來源:ShipmentCustomFieldHelperGen.class.php


注:本文中的Shipment::GetObjectFromSoapObject方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。