CategoryScope
extends BaseScope
in package
Class CategoryScope.
Table of Contents
Properties
- $categories : array<int, int>
Methods
- apply() : mixed
- applyQueryBuilder() : void
- getCategories() : array<string|int, int>
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- setCategories() : CategoryScope
- alias() : string
- applyCategoryDataScope() : void
- applyCategoryDataScope.
- applyCategoryIdScope() : void
- applyCategoryIdScope.
Properties
$categories
private
array<int, int>
$categories
Methods
apply()
public
apply(Builder $builder, Model $model) : mixed
Parameters
- $builder : Builder
- $model : Model
applyQueryBuilder()
public
applyQueryBuilder(Builder $builder) : void
Parameters
- $builder : Builder
getCategories()
public
getCategories() : array<string|int, int>
Return values
array<string|int, int>likeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringsetCategories()
public
setCategories(array<string|int, int> $categories) : CategoryScope
Parameters
- $categories : array<string|int, int>
Return values
CategoryScopealias()
protected
alias(string $table, string $column) : string
Parameters
- $table : string
- $column : string
Return values
stringapplyCategoryDataScope()
applyCategoryDataScope.
protected
applyCategoryDataScope(Builder $builder, Model $model) : void
Parameters
- $builder : Builder
- $model : Model
applyCategoryIdScope()
applyCategoryIdScope.
protected
applyCategoryIdScope(Builder $builder, Model $model) : void
Parameters
- $builder : Builder
- $model : Model