SearchScope
extends SearchScope
in package
Class SearchScope.
Table of Contents
Properties
- $additionalPairs : mixed
- $aliasJoinedTable : string|null
- $fields : array<string|int, string>
- $joinedField : string|null
- $joinedTable : string|null
- $searchText : string
- $table : string|null
- $tableField : string|null
Methods
- __construct() : mixed
- SearchScope constructor.
- apply() : mixed
- applyQueryBuilder() : void
- getAdditionalPairJoinedTableFields() : mixed
- getAliasJoinedTable() : string|null
- getFields() : array<string|int, string>
- getJoinedField() : string|null
- getJoinedTable() : string|null
- getSearchText() : string
- getTable() : string|null
- getTableField() : string|null
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- setAdditionalPairJoinedTableFields() : mixed
- setAliasJoinedTable() : $this
- setFields() : SearchScope
- setJoinedField() : $this
- setJoinedTable() : $this
- setSearchText() : SearchScope
- setTable() : SearchScope
- setTableField() : $this
- alias() : string
Properties
$additionalPairs
protected
mixed
$additionalPairs
= []
$aliasJoinedTable
private
string|null
$aliasJoinedTable
= null
$fields
private
array<string|int, string>
$fields
$joinedField
private
string|null
$joinedField
= null
$joinedTable
private
string|null
$joinedTable
= null
$searchText
private
string
$searchText
$table
private
string|null
$table
= null
$tableField
private
string|null
$tableField
= null
Methods
__construct()
SearchScope constructor.
public
__construct([string|null $query = null ][, array<string|int, mixed> $fields = [] ][, string|null $table = null ][, string|null $tableField = null ]) : mixed
Parameters
- $query : string|null = null
- $fields : array<string|int, mixed> = []
- $table : string|null = null
- $tableField : string|null = null
apply()
public
apply(Builder $builder, Model $model) : mixed
Parameters
- $builder : Builder
- $model : Model
applyQueryBuilder()
public
applyQueryBuilder(Builder $builder) : void
Parameters
- $builder : Builder
getAdditionalPairJoinedTableFields()
public
getAdditionalPairJoinedTableFields() : mixed
getAliasJoinedTable()
public
getAliasJoinedTable() : string|null
Return values
string|nullgetFields()
public
getFields() : array<string|int, string>
Return values
array<string|int, string>getJoinedField()
public
getJoinedField() : string|null
Return values
string|nullgetJoinedTable()
public
getJoinedTable() : string|null
Return values
string|nullgetSearchText()
public
getSearchText() : string
Return values
stringgetTable()
public
getTable() : string|null
Return values
string|nullgetTableField()
public
getTableField() : string|null
Return values
string|nulllikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringsetAdditionalPairJoinedTableFields()
public
setAdditionalPairJoinedTableFields(array<string|int, mixed> $additionalPairs) : mixed
Parameters
- $additionalPairs : array<string|int, mixed>
setAliasJoinedTable()
public
setAliasJoinedTable(string $alias) : $this
Parameters
- $alias : string
Return values
$thissetFields()
public
setFields(array<string|int, string> $fields) : SearchScope
Parameters
- $fields : array<string|int, string>
Return values
SearchScopesetJoinedField()
public
setJoinedField(string $field) : $this
Parameters
- $field : string
Return values
$thissetJoinedTable()
public
setJoinedTable(string $table) : $this
Parameters
- $table : string
Return values
$thissetSearchText()
public
setSearchText(string $searchText) : SearchScope
Parameters
- $searchText : string
Return values
SearchScopesetTable()
public
setTable(string|null $table) : SearchScope
Parameters
- $table : string|null
Return values
SearchScopesetTableField()
public
setTableField(string $field) : $this
Parameters
- $field : string
Return values
$thisalias()
protected
alias(string $table, string $column) : string
Parameters
- $table : string
- $column : string