PHP Класс Silber\Bouncer\Database\Queries\AbilitiesForModel

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

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

Свойство Тип Описание
$table string The name of the abilities table.

Открытые методы

Метод Описание
__construct ( ) Constructor.
constrain ( Builder | Builder $query, Model | string $model, boolean $strict = false ) : void Constrain a query to an ability for a specific model or wildcard.

Защищенные методы

Метод Описание
abilitySubqueryConstraint ( Model $model, boolean $strict ) : Closure Get the constraint for the ability subquery.
constrainByModel ( Builder | Builder $query, Model $model, boolean $strict = false ) : void Constrain a query to an ability for a specific model.
constrainByWildcard ( Builder | Builder $query, boolean $strict = false ) : void Constrain a query to a model wiildcard.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( )

abilitySubqueryConstraint() защищенный Метод

Get the constraint for the ability subquery.
protected abilitySubqueryConstraint ( Model $model, boolean $strict ) : Closure
$model Illuminate\Database\Eloquent\Model
$strict boolean
Результат Closure

constrain() публичный Метод

Constrain a query to an ability for a specific model or wildcard.
public constrain ( Builder | Builder $query, Model | string $model, boolean $strict = false ) : void
$query Illuminate\Database\Eloquent\Builder | Illuminate\Database\Query\Builder
$model Illuminate\Database\Eloquent\Model | string
$strict boolean
Результат void

constrainByModel() защищенный Метод

Constrain a query to an ability for a specific model.
protected constrainByModel ( Builder | Builder $query, Model $model, boolean $strict = false ) : void
$query Illuminate\Database\Eloquent\Builder | Illuminate\Database\Query\Builder
$model Illuminate\Database\Eloquent\Model
$strict boolean
Результат void

constrainByWildcard() защищенный Метод

Constrain a query to a model wiildcard.
protected constrainByWildcard ( Builder | Builder $query, boolean $strict = false ) : void
$query Illuminate\Database\Eloquent\Builder | Illuminate\Database\Query\Builder
$strict boolean
Результат void

Описание свойств

$table защищенное свойство

The name of the abilities table.
protected string $table
Результат string