当前位置: 首页>>代码示例>>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;未经允许,请勿转载。