Mage_Log_Model_Customer Class Reference

Inheritance diagram for Mage_Log_Model_Customer:

Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 load ($customerId, $field=null)
 getLoginAtTimestamp ()


Detailed Description

Definition at line 34 of file Customer.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes

Reimplemented from Varien_Object.

Definition at line 36 of file Customer.php.

00037     {
00038         parent::__construct();
00039         $this->_setResourceModel('log/customer');
00040     }


Member Function Documentation

getLoginAtTimestamp (  ) 

Definition at line 48 of file Customer.php.

00049     {
00050         if ($date = $this->getLoginAt()) {
00051             return strtotime($date);
00052         }
00053         return null;
00054     }

load ( id,
field = null 
)

Load object data

Parameters:
integer $id
Returns:
Mage_Core_Model_Abstract

Reimplemented from Mage_Core_Model_Abstract.

Definition at line 42 of file Customer.php.

00043     {
00044         $this->_getResource()->load($this, $customerId);
00045         return $this;
00046     }


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