PHP 인터페이스 Cartalyst\Sentinel\Persistences\PersistenceRepositoryInterface

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

공개 메소드들

메소드 설명
check ( ) : string Checks for a persistence code in the current session.
findByPersistenceCode ( string $code ) : Cartalyst\Sentinel\Persistences\PersistenceInterface | false Finds a persistence by persistence code.
findUserByPersistenceCode ( string $code ) : Cartalyst\Sentinel\Users\UserInterface | false Finds a user by persistence code.
flush ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable, boolean $forget = true ) : void Flushes persistences for the given user.
forget ( ) : boolean | null Removes the persistence bound to the current session.
persist ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable, boolean $remember = false ) : boolean Adds a new user persistence to the current session and attaches the user.
persistAndRemember ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable ) : boolean Adds a new user persistence, to remember.
remove ( string $code ) : boolean | null Removes the given persistence code.

메소드 상세

check() 공개 메소드

Checks for a persistence code in the current session.
public check ( ) : string
리턴 string

findByPersistenceCode() 공개 메소드

Finds a persistence by persistence code.
public findByPersistenceCode ( string $code ) : Cartalyst\Sentinel\Persistences\PersistenceInterface | false
$code string
리턴 Cartalyst\Sentinel\Persistences\PersistenceInterface | false

findUserByPersistenceCode() 공개 메소드

Finds a user by persistence code.
public findUserByPersistenceCode ( string $code ) : Cartalyst\Sentinel\Users\UserInterface | false
$code string
리턴 Cartalyst\Sentinel\Users\UserInterface | false

flush() 공개 메소드

Flushes persistences for the given user.
public flush ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable, boolean $forget = true ) : void
$persistable Cartalyst\Sentinel\Persistences\PersistableInterface
$forget boolean
리턴 void

forget() 공개 메소드

Removes the persistence bound to the current session.
public forget ( ) : boolean | null
리턴 boolean | null

persist() 공개 메소드

Adds a new user persistence to the current session and attaches the user.
public persist ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable, boolean $remember = false ) : boolean
$persistable Cartalyst\Sentinel\Persistences\PersistableInterface
$remember boolean
리턴 boolean

persistAndRemember() 공개 메소드

Adds a new user persistence, to remember.
public persistAndRemember ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable ) : boolean
$persistable Cartalyst\Sentinel\Persistences\PersistableInterface
리턴 boolean

remove() 공개 메소드

Removes the given persistence code.
public remove ( string $code ) : boolean | null
$code string
리턴 boolean | null