Mage_PaypalUk_Block_Direct_Info Class Reference

Inheritance diagram for Mage_PaypalUk_Block_Direct_Info:

Mage_Payment_Block_Info_Cc Mage_Payment_Block_Info Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getCcTypeName ()
 getCcStartMonth ()
 toPdf ()

Protected Member Functions

 _construct ()
 _getDirect ()


Detailed Description

Definition at line 28 of file Info.php.


Member Function Documentation

_construct (  )  [protected]

Init default template for block

Reimplemented from Mage_Payment_Block_Info_Cc.

Definition at line 30 of file Info.php.

00031     {
00032         parent::_construct();
00033         $this->setTemplate('paypaluk/direct/info.phtml');
00034     }

_getDirect (  )  [protected]

Definition at line 36 of file Info.php.

00037     {
00038         return Mage::getSingleton('paypaluk/direct');
00039     }

getCcStartMonth (  ) 

Retrieve CC start month for switch/solo card

Returns:
string

Definition at line 60 of file Info.php.

00061     {
00062         $month = $this->getInfo()->getCcSsStartMonth();
00063         if ($month<10) {
00064             $month = '0'.$month;
00065         }
00066         return $month;
00067     }

getCcTypeName (  ) 

Retrieve credit card type name

Returns:
string

Reimplemented from Mage_Payment_Block_Info_Cc.

Definition at line 46 of file Info.php.

00047     {
00048         $types = $this->_getDirect()->getApi()->getCcTypes();
00049         if (isset($types[$this->getInfo()->getCcType()])) {
00050             return $types[$this->getInfo()->getCcType()];
00051         }
00052         return $this->getInfo()->getCcType();
00053     }

toPdf (  ) 

Reimplemented from Mage_Payment_Block_Info_Cc.

Definition at line 69 of file Info.php.

00070     {
00071         $this->setTemplate('paypaluk/direct/pdf/info.phtml');
00072         return $this->toHtml();
00073     }


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

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