当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Customer_Model_Address_Abstract::getStreet方法代码示例

本文整理汇总了PHP中Mage_Customer_Model_Address_Abstract::getStreet方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Customer_Model_Address_Abstract::getStreet方法的具体用法?PHP Mage_Customer_Model_Address_Abstract::getStreet怎么用?PHP Mage_Customer_Model_Address_Abstract::getStreet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Customer_Model_Address_Abstract的用法示例。


在下文中一共展示了Mage_Customer_Model_Address_Abstract::getStreet方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getOwnerParams

 /**
  * extraxcts the according Barclaycard owner* parameter
  *
  * @param Mage_Sales_Model_Quote               $quote
  * @param Mage_Customer_Model_Address_Abstract $billingAddress
  *
  * @return array
  */
 public function getOwnerParams(Mage_Sales_Model_Quote $quote, Mage_Customer_Model_Address_Abstract $billingAddress)
 {
     $ownerParams = array();
     if ($this->getConfig()->canSubmitExtraParameter($quote->getStoreId())) {
         $ownerParams = array('OWNERADDRESS' => str_replace("\n", ' ', $billingAddress->getStreet(1)), 'OWNERTOWN' => $billingAddress->getCity(), 'OWNERZIP' => $billingAddress->getPostcode(), 'OWNERTELNO' => $billingAddress->getTelephone(), 'OWNERCTY' => $billingAddress->getCountry(), 'ECOM_BILLTO_POSTAL_POSTALCODE' => $billingAddress->getPostcode());
     }
     return $ownerParams;
 }
开发者ID:roshu1980,项目名称:add-computers,代码行数:16,代码来源:Request.php

示例2: _convertRequestAddress

 /**
  * Sets attributes from the Mage address on the AvaTax Request address.
  *
  * @return $this
  */
 protected function _convertRequestAddress()
 {
     if (!$this->_requestAddress) {
         $this->_requestAddress = new Address();
     }
     $this->_requestAddress->setLine1($this->_mageAddress->getStreet(1));
     $this->_requestAddress->setLine2($this->_mageAddress->getStreet(2));
     $this->_requestAddress->setCity($this->_mageAddress->getCity());
     $this->_requestAddress->setRegion($this->_mageAddress->getRegionCode());
     $this->_requestAddress->setCountry($this->_mageAddress->getCountry());
     $this->_requestAddress->setPostalCode($this->_mageAddress->getPostcode());
     return $this;
 }
开发者ID:sojimaxi,项目名称:avatax,代码行数:18,代码来源:Address.php

示例3: _transferPhysicalAddressData

 /**
  * Transfer physical address data from the order address to the physical
  * address payload.
  *
  * @param Mage_Customer_Model_Address_Abstract
  * @param IPhysicalAddress
  * @return IPhysicalAddress
  */
 protected function _transferPhysicalAddressData(Mage_Customer_Model_Address_Abstract $address, IPhysicalAddress $physicalAddress)
 {
     return $physicalAddress->setLines($address->getStreet(-1))->setCity($address->getCity())->setMainDivision($address->getRegionCode())->setCountryCode($address->getCountryId())->setPostalCode($address->getPostcode())->setPhone($address->getTelephone());
 }
开发者ID:adderall,项目名称:magento-retail-order-management,代码行数:12,代码来源:Create.php

示例4: _extractAddressData

 /**
  * Extract array of address data - street, city, region code, etc. from an address object
  * @param  Mage_Customer_Model_Address_Abstract $address Address object to pull data from
  * @return array Extracted data
  */
 protected function _extractAddressData(Mage_Customer_Model_Address_Abstract $address)
 {
     return array('street' => $address->getStreet(), 'city' => $address->getCity(), 'region_code' => $address->getRegionCode(), 'country_id' => $address->getCountryId(), 'postcode' => $address->getPostcode());
 }
开发者ID:sirishreddyg,项目名称:magento-retail-order-management,代码行数:9,代码来源:Session.php

示例5: isTestOrder

 /**
  * Determine if an order should be sent to ROM as a test order by checking the second street
  * address if it match the constant value IOrderCreateRequest::TEST_TYPE_AUTOCANCEL, then it is
  * a test order, otherwise it is not a test order.
  *
  * @param  Mage_Customer_Model_Address_Abstract
  * @return bool
  */
 protected function isTestOrder(Mage_Customer_Model_Address_Abstract $billingAddress)
 {
     return $billingAddress->getStreet(2) === IOrderCreateRequest::TEST_TYPE_AUTOCANCEL;
 }
开发者ID:sirishreddyg,项目名称:magento-retail-order-management,代码行数:12,代码来源:Create.php


注:本文中的Mage_Customer_Model_Address_Abstract::getStreet方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。