Mage_Shipping_Model_Carrier_Pickup Class Reference

Inheritance diagram for Mage_Shipping_Model_Carrier_Pickup:

Mage_Shipping_Model_Carrier_Abstract Mage_Shipping_Model_Carrier_Interface Varien_Object

List of all members.

Public Member Functions

 collectRates (Mage_Shipping_Model_Rate_Request $request)
 getAllowedMethods ()

Protected Attributes

 $_code = 'pickup'


Detailed Description

Definition at line 28 of file Pickup.php.


Member Function Documentation

collectRates ( Mage_Shipping_Model_Rate_Request request  ) 

Enter description here...

Parameters:
Mage_Shipping_Model_Rate_Request $data
Returns:
Mage_Shipping_Model_Rate_Result

Reimplemented from Mage_Shipping_Model_Carrier_Abstract.

Definition at line 41 of file Pickup.php.

00042     {
00043         if (!$this->getConfigFlag('active')) {
00044             return false;
00045         }
00046 
00047         $result = Mage::getModel('shipping/rate_result');
00048 
00049         if (!empty($rate)) {
00050             $method = Mage::getModel('shipping/rate_result_method');
00051 
00052             $method->setCarrier('pickup');
00053             $method->setCarrierTitle($this->getConfigData('title'));
00054 
00055             $method->setMethod('store');
00056             $method->setMethodTitle(Mage::helper('shipping')->__('Store Pickup'));
00057 
00058             $method->setPrice(0);
00059             $method->setCost(0);
00060 
00061             $result->append($method);
00062         }
00063 
00064         return $result;
00065     }

getAllowedMethods (  ) 

Get allowed shipping methods

Returns:
array

Implements Mage_Shipping_Model_Carrier_Interface.

Definition at line 72 of file Pickup.php.

00073     {
00074         return array('pickup'=>Mage::helper('shipping')->__('Store Pickup'));
00075     }


Member Data Documentation

$_code = 'pickup' [protected]

Reimplemented from Mage_Shipping_Model_Carrier_Abstract.

Definition at line 33 of file Pickup.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:51 2009 for Magento by  doxygen 1.5.8