
Public Member Functions | |
| getCcTypeName () | |
| getCcExpMonth () | |
| getCcExpDate () | |
| toPdf () | |
Protected Member Functions | |
| _construct () | |
Definition at line 28 of file Cc.php.
| _construct | ( | ) | [protected] |
Init default template for block
Reimplemented from Mage_Payment_Block_Info.
Reimplemented in Mage_Payment_Block_Info_Ccsave, and Mage_PaypalUk_Block_Direct_Info.
Definition at line 33 of file Cc.php.
00034 { 00035 parent::_construct(); 00036 $this->setTemplate('payment/info/cc.phtml'); 00037 }
| getCcExpDate | ( | ) |
| getCcExpMonth | ( | ) |
| getCcTypeName | ( | ) |
Retrieve credit card type name
Reimplemented in Mage_PaypalUk_Block_Direct_Info.
Definition at line 44 of file Cc.php.
00045 { 00046 $types = Mage::getSingleton('payment/config')->getCcTypes(); 00047 if (isset($types[$this->getInfo()->getCcType()])) { 00048 return $types[$this->getInfo()->getCcType()]; 00049 } 00050 return $this->getInfo()->getCcType(); 00051 }
| toPdf | ( | ) |
Reimplemented from Mage_Payment_Block_Info.
Reimplemented in Mage_Payment_Block_Info_Ccsave, and Mage_PaypalUk_Block_Direct_Info.
Definition at line 80 of file Cc.php.
00081 { 00082 $this->setTemplate('payment/info/pdf/cc.phtml'); 00083 return $this->toHtml(); 00084 }
1.5.8