Methods summary
public
|
#
__construct( integer|array $id = null )
constructor
Parameters
- $id
ID of the user to be loaded from the database or
Array of key-value-pairs to be assigned to the user.
(for backward compatibility only)
|
public
boolean
|
#
isGuest( )
check if the user is a guest user
check if the user is a guest user
Returns
boolean returns false
|
public static
string
|
#
getUnameFromId( integer $userid, integer $usereal = 0 )
Updated by Catzwolf 11 Jan 2004
find the username for a given ID
Updated by Catzwolf 11 Jan 2004
find the username for a given ID
Parameters
- $userid
- ID of the user to find
- $usereal
- switch for usename or realname
Returns
string name of the user. name for 'anonymous' if not found.
|
public
boolean
|
#
incrementPost( )
increase the number of posts for the user
increase the number of posts for the user
Deprecated
Returns
boolean
|
public
|
#
setGroups( array $groupsArr )
set the groups for the user
set the groups for the user
Parameters
- $groupsArr
- Array of groups that user belongs to
|
public
array
|
#
getGroups( )
get the groups that the user belongs to
get the groups that the user belongs to
Returns
array array of groups
|
public
array
|
#
groups( )
alias for getGroups()
Deprecated
Returns
array array of groups
See
|
public
boolean
|
#
isAdmin( integer $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
- $module_id
- check if user is admin of this module
Returns
boolean is the user admin of that module?
|
public
array
|
#
rank( )
get the user's rank
Returns
array array of rank ID and title
|
public
boolean
|
#
isActive( )
is the user activated?
Returns
boolean
|
public
boolean
|
#
isOnline( )
is the user currently logged in?
is the user currently logged in?
Returns
boolean
|
public
mixed
|
#
uid( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
id( string $format = Xoops\Core\Kernel\Handlers\Dtype::FORMAT_NONE )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
name( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
uname( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
email( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
url( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
user_avatar( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
user_regdate( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
user_icq( string $format = 'S' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
user_from( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
user_sig( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
user_viewemail( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
actkey( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
user_aim( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
user_yim( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
user_msnm( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
pass( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
posts( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
attachsig( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
level( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
theme( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
timezone( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
umode( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
uorder( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
notify_method( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
notify_mode( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
user_occ( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
bio( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|
public
mixed
|
#
user_intrest( string $format = '' )
getter
Parameters
- $format
- Dtype::FORMAT_xxxx constant
Returns
mixed
|