Mage_Log_Model_Log Class Reference

Inheritance diagram for Mage_Log_Model_Log:

Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 getLogCleanTime ()
 clean ()

Public Attributes

const XML_LOG_CLEAN_DAYS = 'system/log/clean_after_day'

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 35 of file Log.php.


Member Function Documentation

_construct (  )  [protected]

Init Resource Model

Reimplemented from Varien_Object.

Definition at line 43 of file Log.php.

00044     {
00045         $this->_init('log/log');
00046     }

clean (  ) 

Clean Logs

Returns:
Mage_Log_Model_Log

Definition at line 58 of file Log.php.

00059     {
00060         $this->getResource()->clean($this);
00061         return $this;
00062     }

getLogCleanTime (  ) 

Definition at line 48 of file Log.php.

00049     {
00050         return Mage::getStoreConfig(self::XML_LOG_CLEAN_DAYS) * 60 * 60 * 24;
00051     }


Member Data Documentation

const XML_LOG_CLEAN_DAYS = 'system/log/clean_after_day'

Definition at line 37 of file Log.php.


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

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