Mage_Adminhtml_Block_Sales_Order_Create_Billing_Method_Form Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Create_Billing_Method_Form:

Mage_Payment_Block_Form_Container Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 hasMethods ()
 getSelectedMethodCode ()
 getQuote ()

Protected Member Functions

 _canUseMethod ($method)


Detailed Description

Definition at line 34 of file Form.php.


Member Function Documentation

_canUseMethod ( method  )  [protected]

Check payment method model

Returns:
bool

Reimplemented from Mage_Payment_Block_Form_Container.

Definition at line 41 of file Form.php.

00042     {
00043         if (!$method->canUseInternal()) {
00044             return false;
00045         }
00046         return parent::_canUseMethod($method);
00047     }

getQuote (  ) 

Enter description here...

Returns:
Mage_Sales_Model_Quote

Definition at line 86 of file Form.php.

00087     {
00088         return Mage::getSingleton('adminhtml/session_quote')->getQuote();
00089     }

getSelectedMethodCode (  ) 

Retrieve code of current payment method

Returns:
mixed

Reimplemented from Mage_Payment_Block_Form_Container.

Definition at line 68 of file Form.php.

00069     {
00070         if ($method = $this->getQuote()->getPayment()->getMethod()) {
00071             return $method;
00072         }
00073         if (count($this->getMethods()) == 1) {
00074             foreach ($this->getMethods() as $_method) {
00075                 return $_method->getCode();
00076             }
00077         }
00078         return false;
00079     }

hasMethods (  ) 

Check existing of payment methods

Returns:
bool

Definition at line 54 of file Form.php.

00055     {
00056         $methods = $this->getMethods();
00057         if (is_array($methods) && count($methods)) {
00058             return true;
00059         }
00060         return false;
00061     }


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

Generated on Sat Jul 4 17:22:58 2009 for Magento by  doxygen 1.5.8