本文整理汇总了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;
}
示例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;
}
示例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());
}
示例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());
}
示例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;
}