__construct()
__construct()
User constructor.
Class User
set(null|integer $user_id = null, boolean $clean = false)
This method lets you set a user. For example, to retrieve a profile or anything related to that user.
null|integer | $user_id | Which user to retrieve. A numeric user ID |
boolean | $clean | Should be true or false. Basically, if you did not provide a user ID It will set the current logged in user as a profile |
** File not found : The **
auto_login(integer $user_id, integer|boolean $rememberme)
This method lets you auto sign-in a user to your site.
integer | $user_id | Which user ID to sign in automatically |
integer|boolean | $rememberme | Should be true or false. If you want the user sign in session to use cookies, use true |
** File not found : The **
** File not found : The **
get_role() : string
This method gets a user role in slug format. e.g. member
** File not found : Do **
is_private_profile(integer $user_id) : boolean
This method checks if give user profile is private.
integer | $user_id | A user ID must be passed to check if the user profile is private |
** File not found : This **
is_approved(integer $user_id) : boolean
This method can be used to determine If a certain user is approved or not.
integer | $user_id | The user ID to check approval status for |
** File not found : Do **
user_exists_by_id(integer $user_id) : boolean|integer
This method checks if a user exists or not in your site based on the user ID.
integer | $user_id | A user ID must be passed to check if the user exists |
** File not found : Basic **
user_exists_by_email_as_username(string $slug) : boolean
This method checks if a user exists or not in your site based on the user email as username
string | $slug | A user slug must be passed to check if the user exists |
** File not found : Basic **