PHP 클래스 Sentinel\Repositories\User\SentryUserRepository

상속: implements Sentinel\Repositories\User\SentinelUserRepositoryInterface, implements Illuminate\Contracts\Auth\UserProvider
파일 보기 프로젝트 열기: rydurham/sentinel

보호된 프로퍼티들

프로퍼티 타입 설명
$config
$dispatcher
$sentry

공개 메소드들

메소드 설명
__construct ( Cartalyst\Sentry\Sentry $sentry, Illuminate\Config\Repository $config, Illuminate\Events\Dispatcher $dispatcher ) Construct a new SentryUser Object
activate ( integer $id, string $code ) : boolean Attempt activation for the specified user
all ( ) : Collection Return all the registered users
ban ( integer $id ) : Array Ban a user
changeGroupMemberships ( $userId, $selections ) : Sentinel\DataTransferObjects\BaseResponse Process a change password request.
changePassword ( $data ) : Sentinel\DataTransferObjects\FailureResponse | Sentinel\DataTransferObjects\SuccessResponse Process a password change request
changePasswordWithoutCheck ( $data ) : Sentinel\DataTransferObjects\FailureResponse | Sentinel\DataTransferObjects\SuccessResponse Change a user's password without checking their old password first
destroy ( integer $id ) : Sentinel\DataTransferObjects\BaseResponse Remove the specified resource from storage.
getUser ( ) : user Return the current active user
resend ( Array $data ) : Sentinel\DataTransferObjects\BaseResponse Resend the activation email to the specified email address
resetPassword ( integer $id, string $code, $password ) : Array Process the password reset request
retrieveByCredentials ( array $credentials ) : Illuminate\Auth\UserInterface | null Retrieve a user by the given credentials.
retrieveById ( mixed $identifier ) : Illuminate\Auth\UserInterface | null Retrieve a user by their unique identifier.
retrieveByToken ( mixed $identifier, string $token ) : Illuminate\Auth\UserInterface | null Retrieve a user by by their unique identifier and "remember me" token.
store ( $data ) : Sentinel\DataTransferObjects\BaseResponse Store a newly created user in storage.
suspend ( integer $id ) : Array Suspend a user
triggerPasswordReset ( $email ) : Bool The user has requested a password reset
unBan ( integer $id ) : Array Remove a users' ban
unSuspend ( $id ) : array Remove a users' suspension.
update ( array $data ) : Sentinel\DataTransferObjects\BaseResponse Update the specified resource in storage.
updateRememberToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) : void Update the "remember me" token for the given user in storage.
validateCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, array $credentials ) : boolean Validate a user against the given credentials.
validateResetCode ( $id, $code ) : Sentinel\DataTransferObjects\FailureResponse Validate a password reset link

메소드 상세

__construct() 공개 메소드

Construct a new SentryUser Object
public __construct ( Cartalyst\Sentry\Sentry $sentry, Illuminate\Config\Repository $config, Illuminate\Events\Dispatcher $dispatcher )
$sentry Cartalyst\Sentry\Sentry
$config Illuminate\Config\Repository
$dispatcher Illuminate\Events\Dispatcher

activate() 공개 메소드

Attempt activation for the specified user
public activate ( integer $id, string $code ) : boolean
$id integer
$code string
리턴 boolean

all() 공개 메소드

Return all the registered users
public all ( ) : Collection
리턴 Collection

ban() 공개 메소드

Ban a user
public ban ( integer $id ) : Array
$id integer
리턴 Array

changeGroupMemberships() 공개 메소드

Process a change password request.
public changeGroupMemberships ( $userId, $selections ) : Sentinel\DataTransferObjects\BaseResponse
리턴 Sentinel\DataTransferObjects\BaseResponse

changePassword() 공개 메소드

Process a password change request
public changePassword ( $data ) : Sentinel\DataTransferObjects\FailureResponse | Sentinel\DataTransferObjects\SuccessResponse
$data
리턴 Sentinel\DataTransferObjects\FailureResponse | Sentinel\DataTransferObjects\SuccessResponse

changePasswordWithoutCheck() 공개 메소드

Change a user's password without checking their old password first
public changePasswordWithoutCheck ( $data ) : Sentinel\DataTransferObjects\FailureResponse | Sentinel\DataTransferObjects\SuccessResponse
$data
리턴 Sentinel\DataTransferObjects\FailureResponse | Sentinel\DataTransferObjects\SuccessResponse

destroy() 공개 메소드

Remove the specified resource from storage.
public destroy ( integer $id ) : Sentinel\DataTransferObjects\BaseResponse
$id integer
리턴 Sentinel\DataTransferObjects\BaseResponse

getUser() 공개 메소드

Return the current active user
public getUser ( ) : user
리턴 user object

resend() 공개 메소드

Resend the activation email to the specified email address
public resend ( Array $data ) : Sentinel\DataTransferObjects\BaseResponse
$data Array
리턴 Sentinel\DataTransferObjects\BaseResponse

resetPassword() 공개 메소드

Process the password reset request
public resetPassword ( integer $id, string $code, $password ) : Array
$id integer
$code string
리턴 Array

retrieveByCredentials() 공개 메소드

Retrieve a user by the given credentials.
public retrieveByCredentials ( array $credentials ) : Illuminate\Auth\UserInterface | null
$credentials array
리턴 Illuminate\Auth\UserInterface | null

retrieveById() 공개 메소드

Retrieve a user by their unique identifier.
public retrieveById ( mixed $identifier ) : Illuminate\Auth\UserInterface | null
$identifier mixed
리턴 Illuminate\Auth\UserInterface | null

retrieveByToken() 공개 메소드

Retrieve a user by by their unique identifier and "remember me" token.
public retrieveByToken ( mixed $identifier, string $token ) : Illuminate\Auth\UserInterface | null
$identifier mixed
$token string
리턴 Illuminate\Auth\UserInterface | null

store() 공개 메소드

Store a newly created user in storage.
public store ( $data ) : Sentinel\DataTransferObjects\BaseResponse
리턴 Sentinel\DataTransferObjects\BaseResponse

suspend() 공개 메소드

Suspend a user
public suspend ( integer $id ) : Array
$id integer
리턴 Array

triggerPasswordReset() 공개 메소드

The user has requested a password reset
public triggerPasswordReset ( $email ) : Bool
리턴 Bool

unBan() 공개 메소드

Remove a users' ban
public unBan ( integer $id ) : Array
$id integer
리턴 Array

unSuspend() 공개 메소드

Remove a users' suspension.
public unSuspend ( $id ) : array
$id
리턴 array [type] [description]

update() 공개 메소드

Update the specified resource in storage.
public update ( array $data ) : Sentinel\DataTransferObjects\BaseResponse
$data array
리턴 Sentinel\DataTransferObjects\BaseResponse

updateRememberToken() 공개 메소드

Update the "remember me" token for the given user in storage.
public updateRememberToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) : void
$user Illuminate\Contracts\Auth\Authenticatable
$token string
리턴 void

validateCredentials() 공개 메소드

Validate a user against the given credentials.
public validateCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, array $credentials ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$credentials array
리턴 boolean

validateResetCode() 공개 메소드

Validate a password reset link
public validateResetCode ( $id, $code ) : Sentinel\DataTransferObjects\FailureResponse
$id
$code
리턴 Sentinel\DataTransferObjects\FailureResponse

프로퍼티 상세

$config 보호되어 있는 프로퍼티

protected $config

$dispatcher 보호되어 있는 프로퍼티

protected $dispatcher

$sentry 보호되어 있는 프로퍼티

protected $sentry