Public Member Functions | |
setOrder (Mage_Sales_Model_Order $order) | |
getOrder () | |
getStatusLabel () | |
getStore () | |
Protected Member Functions | |
_construct () | |
Protected Attributes | |
$_order |
Definition at line 28 of file History.php.
_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 | ( | ) |
getStatusLabel | ( | ) |
Retrieve status label
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
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
Mage_Sales_Model_Order | $order |
Definition at line 51 of file History.php.
$_order [protected] |
Definition at line 35 of file History.php.