PHP Class User_autologin

This model represents user autologin data. It can be used for user verification when user claims his autologin passport.
Author: Roni Kumar Saha ([email protected])
Inheritance: extends CI_Model
Show file Open project: xiidea/ezrbac

Public Methods

Method Description
__construct ( ) Constructor function
clear ( $user_id ) : void Delete all autologin data for given user
delete ( $user_id, $key ) : void Delete user's autologin data
get ( $user_id, $key ) : object Get user data for auto-logged in user.
purge ( $user_id ) : void Purge autologin data for given user and login conditions
set ( $user_id, $key ) : boolean Save data for user's autologin

Method Details

__construct() public method

Constructor function
public __construct ( )

clear() public method

Delete all autologin data for given user
public clear ( $user_id ) : void
return void

delete() public method

Delete user's autologin data
public delete ( $user_id, $key ) : void
return void

get() public method

Return NULL if given key or user ID is invalid.
public get ( $user_id, $key ) : object
return object

purge() public method

Purge autologin data for given user and login conditions
public purge ( $user_id ) : void
return void

set() public method

Save data for user's autologin
public set ( $user_id, $key ) : boolean
return boolean