Mage_Sales_Model_Order_Status_History Class Reference

Inheritance diagram for Mage_Sales_Model_Order_Status_History:

Mage_Sales_Model_Abstract Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 setOrder (Mage_Sales_Model_Order $order)
 getOrder ()
 getStatusLabel ()
 getStore ()

Protected Member Functions

 _construct ()

Protected Attributes

 $_order


Detailed Description

Definition at line 28 of file History.php.


Member Function Documentation

_construct (  )  [protected]

Initialize resource model

Reimplemented from Varien_Object.

Definition at line 40 of file History.php.

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

getOrder (  ) 

Retrieve order instance

Returns:
Mage_Sales_Model_Order

Definition at line 62 of file History.php.

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

getStatusLabel (  ) 

Retrieve status label

Returns:
string

Definition at line 72 of file History.php.

00073     {
00074         if($this->getOrder()) {
00075             return $this->getOrder()->getConfig()->getStatusLabel($this->getStatus());
00076         }
00077     }

getStore (  ) 

Get store object

Returns:
unknown

Reimplemented from Mage_Sales_Model_Abstract.

Definition at line 84 of file History.php.

00085     {
00086         if ($this->getOrder()) {
00087             return $this->getOrder()->getStore();
00088         }
00089         return Mage::app()->getStore();
00090     }

setOrder ( Mage_Sales_Model_Order order  ) 

declare order instance

Parameters:
Mage_Sales_Model_Order $order
Returns:
Mage_Sales_Model_Order_Status_History

Definition at line 51 of file History.php.

00052     {
00053         $this->_order = $order;
00054         return $this;
00055     }


Member Data Documentation

$_order [protected]

Definition at line 35 of file History.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