PHP Class Silber\Bouncer\Database\Queries\AbilitiesForModel

Afficher le fichier Open project: JosephSilber/bouncer

Protected Properties

Свойство Type Description
$table string The name of the abilities table.

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

abilitySubqueryConstraint() protected méthode

Get the constraint for the ability subquery.
protected abilitySubqueryConstraint ( Model $model, boolean $strict ) : Closure
$model Illuminate\Database\Eloquent\Model
$strict boolean
Résultat Closure

constrain() public méthode

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
Résultat void

constrainByModel() protected méthode

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
Résultat void

constrainByWildcard() protected méthode

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
Résultat void

Property Details

$table protected_oe property

The name of the abilities table.
protected string $table
Résultat string