Méthode |
Description |
|
activate ( $email, $key ) |
Activation of an user account. |
|
afterSave ( ) |
|
|
assignRole ( $role_title ) |
|
|
attributeLabels ( ) |
|
|
beforeValidate ( ) |
|
|
behaviors ( ) |
flag for password change |
|
can ( $action, $subaction = null ) |
fulfilled (for example action 'forum', subaction 'read') |
|
delete ( ) |
|
|
generateActivationKey ( $activate = false ) : string |
|
|
getActivationUrl ( ) |
|
|
getActiveMemberships ( ) |
Which memberships are bought by the user |
|
getAdmins ( ) : array |
Return admins. |
|
getAvatar ( $thumb = false ) |
|
|
getFriends ( $everything = false ) |
set $everything to true to also return pending and rejected friendships |
|
getFriendships ( ) |
|
|
getGravatarHash ( ) |
|
|
getLogins ( ) |
|
|
getPermissions ( $subaction = null ) |
3.) All active memberships |
|
getRoles ( ) |
|
|
getUsersByRole ( string $roleTitle ) : array |
Get all users with a specified role. |
|
hasRole ( $role_title ) |
|
|
isActive ( ) |
|
|
isFriendOf ( $invited_id ) |
|
|
isOnline ( ) |
|
|
isPasswordExpired ( ) |
|
|
itemAlias ( $type, $code = NULL ) |
|
|
logout ( ) |
|
|
model ( $className = __CLASS__ ) |
|
|
register ( $username = null, $password = null, $profile = null ) |
Registers a user |
|
registerByHybridAuth ( $hybridAuthProfile ) |
|
|
relations ( ) |
|
|
rules ( ) |
|
|
scopes ( ) |
|
|
search ( ) |
|
|
setLastAction ( ) |
last action when a user does something |
|
setPassword ( $password ) |
only set the fields. Returns $this so this method can be chained. |
|
syncRoles ( $roles = null ) |
|
|
tableName ( ) : string |
Returns resolved table name (incl. table prefix when it is set in db configuration)
Following algorith of searching valid table name is implemented:
- try to find out table name stored in currently used module
- if not found try to get table name from UserModule configuration
- if not found user default {{users}} table name |
|
withRoles ( $roles ) |
|
|