PHP 클래스 Cartalyst\Sentinel\Checkpoints\ThrottleCheckpoint

상속: implements Cartalyst\Sentinel\Checkpoints\CheckpointInterface
파일 보기 프로젝트 열기: cartalyst/sentinel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$ipAddress string The cached IP address, used for checkpoints checks.
$throttle Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface The throttle repository.

공개 메소드들

메소드 설명
__construct ( Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface $throttle, string $ipAddress = null ) : void Constructor.
check ( Cartalyst\Sentinel\Users\UserInterface $user ) {@inheritDoc}
fail ( Cartalyst\Sentinel\Users\UserInterface $user = null ) {@inheritDoc}
login ( Cartalyst\Sentinel\Users\UserInterface $user ) {@inheritDoc}

보호된 메소드들

메소드 설명
checkThrottling ( string $action, Cartalyst\Sentinel\Users\UserInterface $user = null ) : boolean Checks the throttling status of the given user.
throwException ( string $message, string $type, integer $delay ) Throws a throttling exception.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface $throttle, string $ipAddress = null ) : void
$throttle Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface
$ipAddress string
리턴 void

check() 공개 메소드

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

checkThrottling() 보호된 메소드

Checks the throttling status of the given user.
protected checkThrottling ( string $action, Cartalyst\Sentinel\Users\UserInterface $user = null ) : boolean
$action string
$user Cartalyst\Sentinel\Users\UserInterface
리턴 boolean

fail() 공개 메소드

{@inheritDoc}
public fail ( Cartalyst\Sentinel\Users\UserInterface $user = null )
$user Cartalyst\Sentinel\Users\UserInterface

login() 공개 메소드

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

throwException() 보호된 메소드

Throws a throttling exception.
protected throwException ( string $message, string $type, integer $delay )
$message string
$type string
$delay integer

프로퍼티 상세

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

The cached IP address, used for checkpoints checks.
protected string $ipAddress
리턴 string

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

The throttle repository.
protected ThrottleRepositoryInterface,Cartalyst\Sentinel\Throttling $throttle
리턴 Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface