TagScope
extends BaseScope
in package
Class TagScope.
Table of Contents
Properties
- $identifier : string|null
- $pivotTable : string|null
- $tag : string|null
Methods
- __construct() : mixed
- TagScope constructor.
- apply() : mixed
- applyQueryBuilder() : void
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- alias() : string
Properties
$identifier
private
string|null
$identifier
$pivotTable
private
string|null
$pivotTable
$tag
private
string|null
$tag
Methods
__construct()
TagScope constructor.
public
__construct(string|null $tag[, string|null $pivotTable = null ][, string|null $identifier = null ]) : mixed
Parameters
- $tag : string|null
-
- tag name to search etc: "nice"
- $pivotTable : string|null = null
-
- tag data table to search, "blog_tag_data"
- $identifier : string|null = null
-
- identifier of join table, "blog.id", "stream.feed_id"
apply()
public
apply(Builder $builder, Model $model) : mixed
Parameters
- $builder : Builder
- $model : Model
applyQueryBuilder()
public
applyQueryBuilder(Builder $builder) : void
Parameters
- $builder : Builder
likeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringalias()
protected
alias(string $table, string $column) : string
Parameters
- $table : string
- $column : string