Mage_Payment_Model_Method_Free Class Reference

Inheritance diagram for Mage_Payment_Model_Method_Free:

Mage_Payment_Model_Method_Abstract Varien_Object

List of all members.

Public Member Functions

 isAvailable ($quote=null)

Protected Attributes

 $_code = 'free'


Detailed Description

Definition at line 35 of file Free.php.


Member Function Documentation

isAvailable ( quote = null  ) 

Return true if the method can be used at this time

Returns:
bool

Reimplemented from Mage_Payment_Model_Method_Abstract.

Definition at line 39 of file Free.php.

00040     {
00041         if (is_null($quote)) {
00042            return false;
00043         }
00044 
00045         if (Mage::app()->getStore()->roundPrice($quote->getGrandTotal()) == 0) {
00046             return true;
00047         }
00048         return false;
00049     }


Member Data Documentation

$_code = 'free' [protected]

Reimplemented from Mage_Payment_Model_Method_Abstract.

Definition at line 37 of file Free.php.


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

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