메소드 |
설명 |
|
__construct ( Config $config, Database $db, EntityTable $entities, EntityCache $cache, EventsService $events ) |
Constructor |
|
ban ( integer $user_guid, string $reason = "" ) : boolean |
Ban a user (calls events, stores the reason) |
|
disableEntities ( integer $owner_guid ) : boolean |
Disables all of a user's entities |
|
findActive ( array $options = [] ) : ElggUser[] | integer |
Return users (or the number of them) who have been active within a recent period. |
|
generateInviteCode ( string $username ) : string |
Generates a unique invite code for a user |
|
getByEmail ( string $email ) : array |
Get an array of users from an email address |
|
getByUsername ( string $username ) : ElggUse\ElggUser | false |
Get user by username |
|
getRow ( integer $guid ) : mixed |
Return the user specific details of a user by a row. |
|
getValidationStatus ( integer $user_guid ) : boolean | null |
Gets the validation status of a user. |
|
makeAdmin ( integer $user_guid ) : boolean |
Makes user $guid an admin. |
|
markBanned ( integer $guid, boolean $banned ) : integer |
Mark a user entity banned or unbanned. |
|
register ( string $username, string $password, string $name, string $email, boolean $allow_multiple_emails = false ) : integer | false |
Registers a user, returning false if the username already exists |
|
removeAdmin ( integer $user_guid ) : boolean |
Removes user $guid's admin flag. |
|
setLastAction ( ElggUse\ElggUser $user ) : void |
Sets the last action time of the given user to right now. |
|
setLastLogin ( ElggUse\ElggUser $user ) : void |
Sets the last logon time of the given user to right now. |
|
setValidationStatus ( integer $user_guid, boolean $status, string $method = '' ) : boolean |
Set the validation status for a user. |
|
unban ( integer $user_guid ) : boolean |
Unban a user (calls events, removes the reason) |
|
validateInviteCode ( string $username, string $code ) : boolean |
Validate a user's invite code |
|