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
Afficher le fichier Open project: xiidea/ezrbac

Méthodes publiques

Méthode 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 méthode

Constructor function
public __construct ( )

clear() public méthode

Delete all autologin data for given user
public clear ( $user_id ) : void
Résultat void

delete() public méthode

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

get() public méthode

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

purge() public méthode

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

set() public méthode

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