PHP Class Flarum\Core\Post\RegisteredTypesScope

Inheritance: implements Illuminate\Database\Eloquent\ScopeInterface
Afficher le fichier Open project: flarum/core

Protected Properties

Свойство Type Description
$bindingCount integer The number of where bindings we added.
$bindingIndex integer The index at which we added where bindings.
$whereIndex integer The index at which we added a where clause.

Méthodes publiques

Méthode Description
apply ( Builder $builder, Model $post ) : void Apply the scope to a given Eloquent query builder.
remove ( Builder $builder, Model $post ) : void Remove the scope from the given Eloquent query builder.

Method Details

apply() public méthode

Apply the scope to a given Eloquent query builder.
public apply ( Builder $builder, Model $post ) : void
$builder Illuminate\Database\Eloquent\Builder
$post Illuminate\Database\Eloquent\Model
Résultat void

remove() public méthode

Remove the scope from the given Eloquent query builder.
public remove ( Builder $builder, Model $post ) : void
$builder Illuminate\Database\Eloquent\Builder
$post Illuminate\Database\Eloquent\Model
Résultat void

Property Details

$bindingCount protected_oe property

The number of where bindings we added.
protected int $bindingCount
Résultat integer

$bindingIndex protected_oe property

The index at which we added where bindings.
protected int $bindingIndex
Résultat integer

$whereIndex protected_oe property

The index at which we added a where clause.
protected int $whereIndex
Résultat integer