Public Member Functions | |
getPayableTo () | |
getMailingAddress () | |
toPdf () | |
Protected Member Functions | |
_construct () | |
_convertAdditionalData () | |
Protected Attributes | |
$_payableTo | |
$_mailingAddress |
Definition at line 28 of file Checkmo.php.
_construct | ( | ) | [protected] |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Payment_Block_Info.
Definition at line 34 of file Checkmo.php.
00035 { 00036 parent::_construct(); 00037 $this->setTemplate('payment/info/checkmo.phtml'); 00038 }
_convertAdditionalData | ( | ) | [protected] |
Enter description here...
Definition at line 71 of file Checkmo.php.
00072 { 00073 $details = @unserialize($this->getInfo()->getAdditionalData()); 00074 if (is_array($details)) { 00075 $this->_payableTo = isset($details['payable_to']) ? (string) $details['payable_to'] : ''; 00076 $this->_mailingAddress = isset($details['mailing_address']) ? (string) $details['mailing_address'] : ''; 00077 } else { 00078 $this->_payableTo = ''; 00079 $this->_mailingAddress = ''; 00080 } 00081 return $this; 00082 }
getMailingAddress | ( | ) |
Enter description here...
Definition at line 58 of file Checkmo.php.
00059 { 00060 if (is_null($this->_mailingAddress)) { 00061 $this->_convertAdditionalData(); 00062 } 00063 return $this->_mailingAddress; 00064 }
getPayableTo | ( | ) |
Enter description here...
Definition at line 45 of file Checkmo.php.
00046 { 00047 if (is_null($this->_payableTo)) { 00048 $this->_convertAdditionalData(); 00049 } 00050 return $this->_payableTo; 00051 }
toPdf | ( | ) |
Reimplemented from Mage_Payment_Block_Info.
Definition at line 84 of file Checkmo.php.
00085 { 00086 $this->setTemplate('payment/info/pdf/checkmo.phtml'); 00087 return $this->toHtml(); 00088 }
$_mailingAddress [protected] |
Definition at line 32 of file Checkmo.php.
$_payableTo [protected] |
Definition at line 31 of file Checkmo.php.