PHP 클래스 Silber\Bouncer\Conductors\ChecksRole

파일 보기 프로젝트 열기: JosephSilber/bouncer

보호된 프로퍼티들

프로퍼티 타입 설명
$authority Illuminate\Database\Eloquent\Model The authority against which to check for roles.
$clipboard Silber\Bouncer\Clipboard The bouncer clipboard instance.

공개 메소드들

메소드 설명
__construct ( Model $authority, Clipboard $clipboard ) Constructor.
a ( string $role ) : boolean Check if the authority has any of the given roles.
all ( string $role ) : boolean Check if the authority has all of the given roles.
an ( string $role ) : boolean Alias to the "a" method.
notA ( string $role ) : boolean Check if the authority doesn't have any of the given roles.
notAn ( string $role ) : boolean Alias to the "notA" method.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Model $authority, Clipboard $clipboard )
$authority Illuminate\Database\Eloquent\Model
$clipboard Silber\Bouncer\Clipboard

a() 공개 메소드

Check if the authority has any of the given roles.
public a ( string $role ) : boolean
$role string
리턴 boolean

all() 공개 메소드

Check if the authority has all of the given roles.
public all ( string $role ) : boolean
$role string
리턴 boolean

an() 공개 메소드

Alias to the "a" method.
public an ( string $role ) : boolean
$role string
리턴 boolean

notA() 공개 메소드

Check if the authority doesn't have any of the given roles.
public notA ( string $role ) : boolean
$role string
리턴 boolean

notAn() 공개 메소드

Alias to the "notA" method.
public notAn ( string $role ) : boolean
$role string
리턴 boolean

프로퍼티 상세

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

The authority against which to check for roles.
protected Model,Illuminate\Database\Eloquent $authority
리턴 Illuminate\Database\Eloquent\Model

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

The bouncer clipboard instance.
protected Clipboard,Silber\Bouncer $clipboard
리턴 Silber\Bouncer\Clipboard