Method |
Description |
|
__construct ( ) |
|
|
createUser ( array $data = [] ) : mixed |
api create new user |
|
getCurrentUser ( ) : null | obj |
return the user object for logged in user |
|
getCurrentUserID ( ) : null | integer |
return the user id for logged in user |
|
getUserByID ( $user_id ) : mixed |
find and return user object by user ID |
|
getUserMeta ( $user_id ) : mixed |
return the user meta data |
|
isGuest ( ) : boolean |
check if accessing as guest user or not |
|
logoutUrl ( ) : string |
find and return Logout url |
|
registerUserSession ( $user, boolean $remember = FALSE ) : boolean |
Helpful if you have your login verification script, you can register session just by passing the user object |
|
setCurrentUser ( $user ) : mixed |
set current user object while login |
|
updateUser ( array $data = [] ) : mixed |
api update user data |
|