PHP 인터페이스 Cartalyst\Sentinel\Users\UserRepositoryInterface

파일 보기 프로젝트 열기: cartalyst/sentinel 0 사용 예제들

공개 메소드들

메소드 설명
create ( array $credentials, Closure $callback = null ) : Cartalyst\Sentinel\Users\UserInterface Creates a user.
findByCredentials ( array $credentials ) : Cartalyst\Sentinel\Users\UserInterface Finds a user by the given credentials.
findById ( integer $id ) : Cartalyst\Sentinel\Users\UserInterface Finds a user by the given primary key.
findByPersistenceCode ( string $code ) : Cartalyst\Sentinel\Users\UserInterface Finds a user by the given persistence code.
recordLogin ( Cartalyst\Sentinel\Users\UserInterface $user ) : Cartalyst\Sentinel\Users\UserInterface | boolean Records a login for the given user.
recordLogout ( Cartalyst\Sentinel\Users\UserInterface $user ) : Cartalyst\Sentinel\Users\UserInterface | boolean Records a logout for the given user.
update ( Cartalyst\Sentinel\Users\UserInterface | integer $user, array $credentials ) : Cartalyst\Sentinel\Users\UserInterface Updates a user.
validForCreation ( array $credentials ) : boolean Validate if the given user is valid for creation.
validForUpdate ( Cartalyst\Sentinel\Users\UserInterface | integer $user, array $credentials ) : boolean Validate if the given user is valid for updating.
validateCredentials ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) : boolean Validate the password of the given user.

메소드 상세

create() 공개 메소드

Creates a user.
public create ( array $credentials, Closure $callback = null ) : Cartalyst\Sentinel\Users\UserInterface
$credentials array
$callback Closure
리턴 Cartalyst\Sentinel\Users\UserInterface

findByCredentials() 공개 메소드

Finds a user by the given credentials.
public findByCredentials ( array $credentials ) : Cartalyst\Sentinel\Users\UserInterface
$credentials array
리턴 Cartalyst\Sentinel\Users\UserInterface

findById() 공개 메소드

Finds a user by the given primary key.
public findById ( integer $id ) : Cartalyst\Sentinel\Users\UserInterface
$id integer
리턴 Cartalyst\Sentinel\Users\UserInterface

findByPersistenceCode() 공개 메소드

Finds a user by the given persistence code.
public findByPersistenceCode ( string $code ) : Cartalyst\Sentinel\Users\UserInterface
$code string
리턴 Cartalyst\Sentinel\Users\UserInterface

recordLogin() 공개 메소드

Records a login for the given user.
public recordLogin ( Cartalyst\Sentinel\Users\UserInterface $user ) : Cartalyst\Sentinel\Users\UserInterface | boolean
$user Cartalyst\Sentinel\Users\UserInterface
리턴 Cartalyst\Sentinel\Users\UserInterface | boolean

recordLogout() 공개 메소드

Records a logout for the given user.
public recordLogout ( Cartalyst\Sentinel\Users\UserInterface $user ) : Cartalyst\Sentinel\Users\UserInterface | boolean
$user Cartalyst\Sentinel\Users\UserInterface
리턴 Cartalyst\Sentinel\Users\UserInterface | boolean

update() 공개 메소드

Updates a user.
public update ( Cartalyst\Sentinel\Users\UserInterface | integer $user, array $credentials ) : Cartalyst\Sentinel\Users\UserInterface
$user Cartalyst\Sentinel\Users\UserInterface | integer
$credentials array
리턴 Cartalyst\Sentinel\Users\UserInterface

validForCreation() 공개 메소드

Validate if the given user is valid for creation.
public validForCreation ( array $credentials ) : boolean
$credentials array
리턴 boolean

validForUpdate() 공개 메소드

Validate if the given user is valid for updating.
public validForUpdate ( Cartalyst\Sentinel\Users\UserInterface | integer $user, array $credentials ) : boolean
$user Cartalyst\Sentinel\Users\UserInterface | integer
$credentials array
리턴 boolean

validateCredentials() 공개 메소드

Validate the password of the given user.
public validateCredentials ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) : boolean
$user Cartalyst\Sentinel\Users\UserInterface
$credentials array
리턴 boolean