Mage_Sales_Model_Abstract Class Reference

Inheritance diagram for Mage_Sales_Model_Abstract:

Mage_Core_Model_Abstract Varien_Object Mage_Sales_Model_Order Mage_Sales_Model_Order_Creditmemo Mage_Sales_Model_Order_Creditmemo_Comment Mage_Sales_Model_Order_Invoice Mage_Sales_Model_Order_Invoice_Comment Mage_Sales_Model_Order_Shipment Mage_Sales_Model_Order_Shipment_Comment Mage_Sales_Model_Order_Shipment_Track Mage_Sales_Model_Order_Status_History

List of all members.

Public Member Functions

 getStore ()
 getCreatedAtDate ()
 getCreatedAtStoreDate ()


Detailed Description

Sales abstract model Provide date processing functionality

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 33 of file Abstract.php.


Member Function Documentation

getCreatedAtDate (  ) 

Get object created at date affected current active store timezone

Returns:
Zend_Date

Definition at line 47 of file Abstract.php.

00048     {
00049         return Mage::app()->getLocale()->date(
00050             $this->_getResource()->mktime(($this->getCreatedAt())),
00051             null,
00052             null,
00053             true
00054         );
00055     }

getCreatedAtStoreDate (  ) 

Get object created at date affected with object store timezone

Returns:
Zend_Date

Definition at line 62 of file Abstract.php.

00063     {
00064         return Mage::app()->getLocale()->storeDate(
00065             $this->getStore(),
00066             $this->_getResource()->mktime(($this->getCreatedAt())),
00067             true
00068         );
00069     }

getStore (  )  [abstract]


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

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