PHP Класс Cartalyst\Sentinel\Users\IlluminateUserRepository

Наследование: implements Cartalyst\Sentinel\Users\UserRepositoryInterface, use trait Cartalyst\Support\Traits\EventTrait, use trait Cartalyst\Support\Traits\RepositoryTrait
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$hasher Cartalyst\Sentinel\Hashing\HasherInterface The hasher instance.
$model string The Eloquent user model name.

Открытые методы

Метод Описание
__construct ( Cartalyst\Sentinel\Hashing\HasherInterface $hasher, Illuminate\Events\Dispatcher $dispatcher = null, string $model = null ) : void Create a new Illuminate user repository.
create ( array $credentials, Closure $callback = null ) {@inheritDoc}
fill ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) : void Fills a user with the given credentials, intelligently.
findByCredentials ( array $credentials ) {@inheritDoc}
findById ( $id ) {@inheritDoc}
findByPersistenceCode ( $code ) {@inheritDoc}
getHasher ( ) : Cartalyst\Sentinel\Hashing\HasherInterface Returns the hasher instance.
recordLogin ( Cartalyst\Sentinel\Users\UserInterface $user ) {@inheritDoc}
recordLogout ( Cartalyst\Sentinel\Users\UserInterface $user ) {@inheritDoc}
setHasher ( Cartalyst\Sentinel\Hashing\HasherInterface $hasher ) : void Sets the hasher instance.
update ( $user, array $credentials ) {@inheritDoc}
validForCreation ( array $credentials ) {@inheritDoc}
validForUpdate ( $user, array $credentials ) {@inheritDoc}
validateCredentials ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) {@inheritDoc}

Защищенные методы

Метод Описание
parseCredentials ( array $credentials, array $loginNames ) : array Parses the given credentials to return logins, password and others.
validateUser ( array $credentials, integer $id = null ) : boolean Validates the user.

Описание методов

__construct() публичный метод

Create a new Illuminate user repository.
public __construct ( Cartalyst\Sentinel\Hashing\HasherInterface $hasher, Illuminate\Events\Dispatcher $dispatcher = null, string $model = null ) : void
$hasher Cartalyst\Sentinel\Hashing\HasherInterface
$dispatcher Illuminate\Events\Dispatcher
$model string
Результат void

create() публичный метод

{@inheritDoc}
public create ( array $credentials, Closure $callback = null )
$credentials array
$callback Closure

fill() публичный метод

Fills a user with the given credentials, intelligently.
public fill ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) : void
$user Cartalyst\Sentinel\Users\UserInterface
$credentials array
Результат void

findByCredentials() публичный метод

{@inheritDoc}
public findByCredentials ( array $credentials )
$credentials array

findById() публичный метод

{@inheritDoc}
public findById ( $id )

findByPersistenceCode() публичный метод

{@inheritDoc}
public findByPersistenceCode ( $code )

getHasher() публичный метод

Returns the hasher instance.
public getHasher ( ) : Cartalyst\Sentinel\Hashing\HasherInterface
Результат Cartalyst\Sentinel\Hashing\HasherInterface

parseCredentials() защищенный метод

Parses the given credentials to return logins, password and others.
protected parseCredentials ( array $credentials, array $loginNames ) : array
$credentials array
$loginNames array
Результат array

recordLogin() публичный метод

{@inheritDoc}
public recordLogin ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface

recordLogout() публичный метод

{@inheritDoc}
public recordLogout ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface

setHasher() публичный метод

Sets the hasher instance.
public setHasher ( Cartalyst\Sentinel\Hashing\HasherInterface $hasher ) : void
$hasher Cartalyst\Sentinel\Hashing\HasherInterface
Результат void

update() публичный метод

{@inheritDoc}
public update ( $user, array $credentials )
$credentials array

validForCreation() публичный метод

{@inheritDoc}
public validForCreation ( array $credentials )
$credentials array

validForUpdate() публичный метод

{@inheritDoc}
public validForUpdate ( $user, array $credentials )
$credentials array

validateCredentials() публичный метод

{@inheritDoc}
public validateCredentials ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials )
$user Cartalyst\Sentinel\Users\UserInterface
$credentials array

validateUser() защищенный метод

Validates the user.
protected validateUser ( array $credentials, integer $id = null ) : boolean
$credentials array
$id integer
Результат boolean

Описание свойств

$hasher защищенное свойство

The hasher instance.
protected HasherInterface,Cartalyst\Sentinel\Hashing $hasher
Результат Cartalyst\Sentinel\Hashing\HasherInterface

$model защищенное свойство

The Eloquent user model name.
protected string $model
Результат string