Public Member Functions | |
setInvoice (Mage_Sales_Model_Order_Invoice $invoice) | |
getInvoice () | |
getStore () | |
Protected Member Functions | |
_construct () | |
Protected Attributes | |
$_invoice |
Definition at line 28 of file Comment.php.
_construct | ( | ) | [protected] |
Initialize resource model
Reimplemented from Varien_Object.
Definition at line 40 of file Comment.php.
00041 { 00042 $this->_init('sales/order_invoice_comment'); 00043 }
getInvoice | ( | ) |
Retrieve invoice instance
Definition at line 62 of file Comment.php.
getStore | ( | ) |
Get store object
Reimplemented from Mage_Sales_Model_Abstract.
Definition at line 72 of file Comment.php.
00073 { 00074 if ($this->getInvoice()) { 00075 return $this->getInvoice()->getStore(); 00076 } 00077 return Mage::app()->getStore(); 00078 }
setInvoice | ( | Mage_Sales_Model_Order_Invoice $ | invoice | ) |
Declare invoice instance
Mage_Sales_Model_Order_Invoice | $invoice |
Definition at line 51 of file Comment.php.
$_invoice [protected] |
Definition at line 35 of file Comment.php.