User Guide & Reference Manual

Login Model

Record and retrieve records of member logins.

Initialization


$this->load->model('users/login_model');

Method Reference

int new_login (int $user_id)

Record a login for a user. Their IP address and browser information will automatically be retrieved, so it is assumed that the login record belongs to the person accessing the website at this time.

array get_logins ( [array $filters = array()])

Retrieve login records based on optional filters.

Possible Filters:

Each login record is an array with the following data: