Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Shipping_Block_Tracking_Ajax
  • Mage_Shipping_Block_Tracking_Popup
  • Mage_Shipping_Exception
  • Mage_Shipping_Helper_Data
  • Mage_Shipping_Model_Carrier_Abstract
  • Mage_Shipping_Model_Carrier_Flatrate
  • Mage_Shipping_Model_Carrier_Freeshipping
  • Mage_Shipping_Model_Carrier_Pickup
  • Mage_Shipping_Model_Carrier_Tablerate
  • Mage_Shipping_Model_Config
  • Mage_Shipping_Model_Info
  • Mage_Shipping_Model_Mysql4_Carrier_Tablerate
  • Mage_Shipping_Model_Mysql4_Carrier_Tablerate_Collection
  • Mage_Shipping_Model_Rate_Abstract
  • Mage_Shipping_Model_Rate_Request
  • Mage_Shipping_Model_Rate_Result
  • Mage_Shipping_Model_Rate_Result_Abstract
  • Mage_Shipping_Model_Rate_Result_Error
  • Mage_Shipping_Model_Rate_Result_Method
  • Mage_Shipping_Model_Resource_Carrier_Tablerate
  • Mage_Shipping_Model_Resource_Carrier_Tablerate_Collection
  • Mage_Shipping_Model_Shipment_Request
  • Mage_Shipping_Model_Shipment_Return
  • Mage_Shipping_Model_Shipping
  • Mage_Shipping_Model_Source_HandlingAction
  • Mage_Shipping_Model_Source_HandlingType
  • Mage_Shipping_Model_Tracking_Result
  • Mage_Shipping_Model_Tracking_Result_Abstract
  • Mage_Shipping_Model_Tracking_Result_Error
  • Mage_Shipping_Model_Tracking_Result_Status

Interfaces

  • Mage_Shipping_Model_Carrier_Interface
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Shipping_Model_Rate_Result

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@magentocommerce.com so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Package: Mage\Shipping
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/Shipping/Model/Rate/Result.php
Methods summary
public Mage_Shipping_Model_Rate_Result
# reset( )

Reset result

Reset result

Returns

Mage_Shipping_Model_Rate_Result
public
# setError( boolean $error )

Set Error

Set Error

Parameters

$error
boolean
$error
public null|bool;
# getError( )

Get Error

Get Error

Returns

null|bool;
public Mage_Shipping_Model_Rate_Result
# append( Mage_Shipping_Model_Rate_Result_Abstract|Mage_Shipping_Model_Rate_Result $result )

Add a rate to the result

Add a rate to the result

Parameters

$result
Mage_Shipping_Model_Rate_Result_Abstract|Mage_Shipping_Model_Rate_Result
$result

Returns

Mage_Shipping_Model_Rate_Result
public array
# getAllRates( )

Return all quotes in the result

Return all quotes in the result

Returns

array
public Mage_Shipping_Model_Rate_Result_Method|null
# getRateById( integer $id )

Return rate by id in array

Return rate by id in array

Parameters

$id
integer
$id

Returns

Mage_Shipping_Model_Rate_Result_Method|null
public array
# getRatesByCarrier( string $carrier )

Return quotes for specified type

Return quotes for specified type

Parameters

$carrier
string
$carrier

Returns

array
public array
# asArray( )

Converts object to array

Converts object to array

Returns

array
public null|Mage_Shipping_Model_Rate_Result_Method
# getCheapestRate( )

Get cheapest rate

Get cheapest rate

Returns

null|Mage_Shipping_Model_Rate_Result_Method
public Mage_Shipping_Model_Rate_Result
# sortRatesByPrice( )

Sort rates by price from min to max

Sort rates by price from min to max

Returns

Mage_Shipping_Model_Rate_Result
public Mage_Shipping_Model_Rate_Result
# updateRatePrice( integer $packageCount )

Set price for each rate according to count of packages

Set price for each rate according to count of packages

Parameters

$packageCount
integer
$packageCount

Returns

Mage_Shipping_Model_Rate_Result
Properties summary
protected array $_rates array()
#

Shippin method rates

Shippin method rates

protected null|boolean $_error null
#

Shipping errors

Shipping errors

Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0