Mage_Payment_Model_Method_Checkmo Class Reference

Inheritance diagram for Mage_Payment_Model_Method_Checkmo:

Mage_Payment_Model_Method_Abstract Varien_Object

List of all members.

Public Member Functions

 assignData ($data)
 getPayableTo ()
 getMailingAddress ()

Protected Attributes

 $_code = 'checkmo'
 $_formBlockType = 'payment/form_checkmo'
 $_infoBlockType = 'payment/info_checkmo'


Detailed Description

Definition at line 28 of file Checkmo.php.


Member Function Documentation

assignData ( data  ) 

Assign data to info model instance

Parameters:
mixed $data
Returns:
Mage_Payment_Model_Method_Checkmo

Reimplemented from Mage_Payment_Model_Method_Abstract.

Definition at line 41 of file Checkmo.php.

00042     {
00043         $details = array();
00044         if ($this->getPayableTo()) {
00045             $details['payable_to'] = $this->getPayableTo();
00046         }
00047         if ($this->getMailingAddress()) {
00048             $details['mailing_address'] = $this->getMailingAddress();
00049         }
00050         if (!empty($details)) {
00051             $this->getInfoInstance()->setAdditionalData(serialize($details));
00052         }
00053         return $this;
00054     }

getMailingAddress (  ) 

Definition at line 61 of file Checkmo.php.

00062     {
00063         return $this->getConfigData('mailing_address');
00064     }

getPayableTo (  ) 

Definition at line 56 of file Checkmo.php.

00057     {
00058         return $this->getConfigData('payable_to');
00059     }


Member Data Documentation

$_code = 'checkmo' [protected]

Reimplemented from Mage_Payment_Model_Method_Abstract.

Definition at line 31 of file Checkmo.php.

$_formBlockType = 'payment/form_checkmo' [protected]

Reimplemented from Mage_Payment_Model_Method_Abstract.

Definition at line 32 of file Checkmo.php.

$_infoBlockType = 'payment/info_checkmo' [protected]

Reimplemented from Mage_Payment_Model_Method_Abstract.

Definition at line 33 of file Checkmo.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