PHP Класс Silber\Bouncer\Conductors\ChecksRole

Показать файл Открыть проект

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

Свойство Тип Описание
$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