MetaFox

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

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
string

alias()

protected alias(string $table, string $column) : string
Parameters
$table : string
$column : string
Return values
string

applyCategoryDataScope()

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

        
On this page

Search results