Mage_Sales_Model_Order_Shipment_Comment Class Reference

Inheritance diagram for Mage_Sales_Model_Order_Shipment_Comment:

Mage_Sales_Model_Abstract Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 setShipment (Mage_Sales_Model_Order_Shipment $shipment)
 getShipment ()
 getStore ()

Protected Member Functions

 _construct ()

Protected Attributes

 $_shipment


Detailed Description

Definition at line 28 of file Comment.php.


Member Function Documentation

_construct (  )  [protected]

Initialize resource model

Reimplemented from Varien_Object.

Definition at line 40 of file Comment.php.

00041     {
00042         $this->_init('sales/order_shipment_comment');
00043     }

getShipment (  ) 

Retrieve Shipment instance

Returns:
Mage_Sales_Model_Order_Shipment

Definition at line 62 of file Comment.php.

00063     {
00064         return $this->_shipment;
00065     }

getStore (  ) 

Get store object

Returns:
Mage_Core_Model_Store

Reimplemented from Mage_Sales_Model_Abstract.

Definition at line 72 of file Comment.php.

00073     {
00074         if ($this->getShipment()) {
00075             return $this->getShipment()->getStore();
00076         }
00077         return Mage::app()->getStore();
00078     }

setShipment ( Mage_Sales_Model_Order_Shipment shipment  ) 

Declare Shipment instance

Parameters:
Mage_Sales_Model_Order_Shipment $shipment
Returns:
Mage_Sales_Model_Order_Shipment_Comment

Definition at line 51 of file Comment.php.

00052     {
00053         $this->_shipment = $shipment;
00054         return $this;
00055     }


Member Data Documentation

$_shipment [protected]

Definition at line 35 of file Comment.php.


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

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