MetaFox

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

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
string

alias()

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

        
On this page

Search results