PHP Класс Sentinel\Repositories\User\SentryUserRepository

Наследование: implements Sentinel\Repositories\User\SentinelUserRepositoryInterface, implements Illuminate\Contracts\Auth\UserProvider
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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