-
Notifications
You must be signed in to change notification settings - Fork 35
icms_member_user_Object
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!
Class for users
- Class name: icms_member_user_Object
- Namespace:
- Parent class: icms_ipf_Object
private bool $_isAdmin = array()
- Visibility: private
- This property is static.
private array $_groups = array()
Array of groups that user belongs to
- Visibility: private
private string $_rank = \null
- Visibility: private
private bool $_isOnline = \null
- Visibility: private
public int uid
User ID
- Visibility: public
public string name
Name
- Visibility: public
public string uname
Username
- Visibility: public
public string email
- Visibility: public
public string url
Homepage URL
- Visibility: public
public array user_avatar
Avatar
- Visibility: public
public int user_regdate
Registration date
- Visibility: public
public string user_from
From
- Visibility: public
public string user_sig
Signature
- Visibility: public
public bool user_viewemail
Can others view email?
- Visibility: public
public string actkey
Activation key
- Visibility: public
public string pass
Encoded password
- Visibility: public
public int posts
Post count written by this user
- Visibility: public
public bool attachsig
Attach signature?
- Visibility: public
public int rank
Rank
- Visibility: public
public float level
Level
- Visibility: public
public string theme
Selected theme
- Visibility: public
public float timezone_offset
Timezone offset
- Visibility: public
public int last_login
Last login time
- Visibility: public
public int umode
Comments display mode
- Visibility: public
public int uorder
Comments order mode
- Visibility: public
public int notify_method
Notification method
- Visibility: public
public int notify_mode
Notification mode
- Visibility: public
public string user_occ
Occupation
- Visibility: public
public string bio
BIO
- Visibility: public
public string user_intrest
Interests
- Visibility: public
public int user_mailok
Are sending mails ok?
- Visibility: public
public string language
Language
- Visibility: public
public bool pass_expired
Is password expired?
- Visibility: public
public string login_name
Login name
- Visibility: public
mixed icms_member_user_Object::__construct(mixed handler, array data)
constructor
- Visibility: public
- handler mixed
- data array - <p>Data to load into this object</p>
string icms_member_user_Object::getUnameFromId(int userid, int usereal)
Updated by Catzwolf 11 Jan 2004 find the username for a given ID
- Visibility: public
- This method is static.
- userid int - <p>ID of the user to find</p>
- usereal int - <p>switch for usename or realname</p>
bool icms_member_user_Object::isGuest()
check if the user is a guest user
- Visibility: public
mixed icms_member_user_Object::getForm(mixed form_caption, mixed form_name, mixed form_action, mixed submit_button_caption, mixed cancel_js_action, mixed captcha)
- Visibility: public
- form_caption mixed
- form_name mixed
- form_action mixed
- submit_button_caption mixed
- cancel_js_action mixed
- captcha mixed
mixed icms_member_user_Object::sendWelcomeMessage()
sends a welcome message to the user which account has just been activated
return TRUE if success, FALSE if not
- Visibility: public
mixed icms_member_user_Object::newUserNotifyAdmin()
sends a notification to admins to inform them that a new user registered
This method first checks in the preferences if we need to send a notification to admins upon new user registration. If so, it sends the mail.
return TRUE if success, FALSE if not
- Visibility: public
bool icms_member_user_Object::isAdmin(int module_id)
Is the user admin ?
This method will return true if this user has admin rights for the specified module.
- If you don't specify any module ID, the current module will be checked.
- If you set the module_id to -1, it will return true if the user has admin rights for at least one module
- Visibility: public
- module_id int - <p>check if user is admin of this module</p>
array icms_member_user_Object::getGroups()
get the groups that the user belongs to
- Visibility: public
mixed icms_member_user_Object::setGroups(array groupsArr)
set the groups for the user
- Visibility: public
- groupsArr array - <p>Array of groups that user belongs to</p>
bool icms_member_user_Object::isActive()
is the user activated?
- Visibility: public
bool icms_member_user_Object::isOnline()
is the user currently logged in?
- Visibility: public
string icms_member_user_Object::gravatar(string rating, int size, string default, string border, mixed overwrite)
Gravatar plugin for ImpressCMS
- Visibility: public
- rating string
- size int - <p>(size in pixels of the image. Accept values between 1 to 80. Default 80)</p>
- default string - <p>(url of default avatar. Will be used if no gravatar are found)</p>
- border string - <p>(hexadecimal color)</p>
- overwrite mixed
int icms_member_user_Object::uid()
Returns uid of user
- Visibility: public
mixed icms_member_user_Object::login()
Logs in current user
- Visibility: public
mixed icms_member_user_Object::setVar(mixed name, mixed value, mixed options)
- Visibility: public
- name mixed
- value mixed
- options mixed
bool icms_member_user_Object::isSameAsLoggedInUser()
Checks if this user is same as logged in user
- Visibility: public
array icms_member_user_Object::rank()
get the user's rank
- Visibility: public
bool icms_member_user_Object::logout()
Logs out current user
- Visibility: public