PHP 클래스 Services\UserManager

파일 보기 프로젝트 열기: doptor/doptor

공개 메소드들

메소드 설명
activateUser ( $id ) : mixed | void Activate a user
addUserToGroup ( $group_id, $user ) Add an user to an user group
createUser ( array $input = [] ) Create a new user
deactivateUser ( $id ) : mixed | void Deactivate a user
deleteUser ( $id ) : mixed | void Delete a user or multiple users
findAllUsers ( ) : mixed Find all users
findUserById ( $id, string $group_field = 'id' ) : mixed Find a user by id
getUserGroups ( SentryUser $user, string $value = null, key $key = null ) : array Get all the user groups that a user lies in
isBanned ( $id ) : boolean Check whether an user is banned or not
updateUser ( $id, array $input = [] ) : mixed | void Update an existing user
uploadImage ( File $file, integer $id = null ) : string Upload profile photo of user

메소드 상세

activateUser() 공개 메소드

Activate a user
public activateUser ( $id ) : mixed | void
$id User ID
리턴 mixed | void

addUserToGroup() 공개 메소드

Add an user to an user group
public addUserToGroup ( $group_id, $user )
$group_id
$user

createUser() 공개 메소드

Create a new user
public createUser ( array $input = [] )
$input array

deactivateUser() 공개 메소드

Deactivate a user
public deactivateUser ( $id ) : mixed | void
$id User ID
리턴 mixed | void

deleteUser() 공개 메소드

Delete a user or multiple users
public deleteUser ( $id ) : mixed | void
$id
리턴 mixed | void

findAllUsers() 공개 메소드

Find all users
public findAllUsers ( ) : mixed
리턴 mixed

findUserById() 공개 메소드

Find a user by id
public findUserById ( $id, string $group_field = 'id' ) : mixed
$id
$group_field string
리턴 mixed

getUserGroups() 공개 메소드

Get all the user groups that a user lies in
public getUserGroups ( SentryUser $user, string $value = null, key $key = null ) : array
$user SentryUser The user
$value string Value
$key key Key
리턴 array

isBanned() 공개 메소드

Check whether an user is banned or not
public isBanned ( $id ) : boolean
$id
리턴 boolean

updateUser() 공개 메소드

Update an existing user
public updateUser ( $id, array $input = [] ) : mixed | void
$id
$input array
리턴 mixed | void

uploadImage() 공개 메소드

Upload profile photo of user
public uploadImage ( File $file, integer $id = null ) : string
$file File Input file
$id integer User ID (if editing)
리턴 string File Path