|
| __construct ($id=null) |
|
| XoopsUser ($id=null) |
|
| isGuest () |
|
| incrementPost () |
|
| setGroups ($groupsArr) |
|
| getGroups ($bReget=false) |
|
| getNumGroups () |
|
| groups () |
|
| isAdmin ($module_id=null) |
|
| rank () |
|
| isActive () |
|
| isOnline () |
|
| uid () |
|
| name ($format='S') |
|
| uname ($format='S') |
|
| email ($format='S') |
|
| url ($format='S') |
|
| user_avatar ($format='S') |
|
| user_regdate () |
|
| user_icq ($format='S') |
|
| user_from ($format='S') |
|
| user_sig ($format='S') |
|
| user_viewemail () |
|
| actkey () |
|
| user_aim ($format='S') |
|
| user_yim ($format='S') |
|
| user_msnm ($format='S') |
|
| pass () |
|
| posts () |
|
| attachsig () |
|
| level () |
|
| theme () |
|
| timezone () |
|
| umode () |
|
| uorder () |
|
| notify_method () |
|
| notify_mode () |
|
| user_occ ($format='S') |
|
| bio ($format='S') |
|
| user_intrest ($format='S') |
|
| last_login () |
|
| hasAvatar () |
|
| getAvatarUrl () |
|
| __construct () |
|
| setNew () |
|
| unsetNew () |
|
| isNew () |
|
| setDirty () |
|
| unsetDirty () |
|
| isDirty () |
|
| initVar ($key, $data_type, $value=null, $required=false, $maxlength=null, $options='') |
|
| assignVar ($key, $value) |
|
| assignVars ($var_arr) |
|
| setVar ($key, $value, $not_gpc=false) |
|
| setVars ($var_arr, $not_gpc=false) |
|
| setFormVars ($var_arr=null, $pref='xo_', $not_gpc=false) |
|
& | getVars () |
|
& | getVar ($key, $format='s') |
|
| getShow ($key) |
|
| set ($key, $value) |
|
| get ($key) |
|
| getProperty ($key) |
|
| getProperties () |
|
| cleanVars () |
|
| registerFilter ($filtername) |
|
| _loadFilters () |
|
& | xoopsClone () |
|
| setErrors ($err_str) |
|
| getErrors () |
|
| getHtmlErrors () |
|
| initVar ($key, $data_type, $default, $required, $size) |
|
Definition at line 18 of file user.php.
◆ __construct()
__construct |
( |
| $id = null | ) |
|
constructor
- Parameters
-
int | $id | ID of the user to be loaded from the database. |
Definition at line 47 of file user.php.
◆ actkey()
◆ attachsig()
◆ bio()
◆ email()
get the user's email
- Parameters
-
- Returns
- string
Definition at line 302 of file user.php.
◆ getAvatarUrl()
Return Abs URL for displaying avatar.
- Returns
- string
Definition at line 453 of file user.php.
◆ getGroups()
getGroups |
( |
| $bReget = false | ) |
|
get the groups that the user belongs to
- Parameters
-
bool | $bReget | this is true, this object gets group informations from DB again. This is a special method for the BASE(CMS core) functions, you should not use this proactivity. |
- Returns
- array array of groups
Reimplemented in XoopsGuestUser.
Definition at line 173 of file user.php.
◆ getNumGroups()
◆ getUnameFromId()
static getUnameFromId |
( |
| $userid, |
|
|
| $usereal = 0 ) |
|
static |
Updated by Catzwolf 11 Jan 2004 find the username for a given ID
- Parameters
-
int | $userid | ID of the user to find |
int | $usereal | switch for usename or realname |
- Returns
- string name of the user. name for "anonymous" if not found.
Definition at line 125 of file user.php.
◆ groups()
◆ hasAvatar()
This class has avatar in uploads directory.
- Returns
- bool
Definition at line 436 of file user.php.
◆ incrementPost()
◆ isActive()
is the user activated?
- Returns
- bool
Definition at line 242 of file user.php.
◆ isAdmin()
isAdmin |
( |
| $module_id = null | ) |
|
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
- Parameters
-
int | $module_id | check if user is admin of this module |
- Returns
- bool is the user admin of that module?
Definition at line 215 of file user.php.
◆ isGuest()
check if the user is a guest user
- Returns
- bool returns false
Reimplemented in XoopsGuestUser.
Definition at line 112 of file user.php.
◆ isOnline()
is the user currently logged in?
- Returns
- bool
Definition at line 250 of file user.php.
◆ last_login()
◆ level()
◆ name()
get the users name
- Parameters
-
- Returns
- string
Definition at line 281 of file user.php.
◆ notify_method()
◆ notify_mode()
◆ pass()
◆ posts()
◆ rank()
get the user's rank
- Returns
- array array of rank ID and title
@access private
Definition at line 231 of file user.php.
◆ setGroups()
set the groups for the user
- Parameters
-
array | $groupsArr | Array of groups that user belongs to |
Definition at line 158 of file user.php.
◆ theme()
◆ timezone()
◆ uid()
◆ umode()
◆ uname()
get the user's uname
- Parameters
-
- Returns
- string
Definition at line 291 of file user.php.
◆ uorder()
◆ url()
◆ user_aim()
user_aim |
( |
| $format = 'S' | ) |
|
◆ user_avatar()
user_avatar |
( |
| $format = 'S' | ) |
|
◆ user_from()
user_from |
( |
| $format = 'S' | ) |
|
◆ user_icq()
user_icq |
( |
| $format = 'S' | ) |
|
◆ user_intrest()
user_intrest |
( |
| $format = 'S' | ) |
|
◆ user_msnm()
user_msnm |
( |
| $format = 'S' | ) |
|
◆ user_occ()
user_occ |
( |
| $format = 'S' | ) |
|
◆ user_regdate()
◆ user_sig()
user_sig |
( |
| $format = 'S' | ) |
|
◆ user_viewemail()
◆ user_yim()
user_yim |
( |
| $format = 'S' | ) |
|
◆ XoopsUser()
◆ $_groups
◆ $_isAdmin
◆ $_isOnline
◆ $_rank
The documentation for this class was generated from the following file: