CustomFieldScope
extends BaseScope
in package
Class BaseScope.
Table of Contents
Properties
- $customFields : array<string|int, mixed>
Methods
- apply() : mixed
- applyQueryBuilder() : void
- getAllowApiRules() : array<string|int, string>
- getAllowCustomFields() : Collection
- getCustomFields() : array<string|int, mixed>
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- setCustomFields() : CustomFieldScope
- alias() : string
- handleCustomField() : array<string|int, mixed>
- isSearchInOptionData() : bool
- getAllowCustomFieldIds() : array<string|int, mixed>
- handleSearchCustomFields() : void
Properties
$customFields
private
array<string|int, mixed>
$customFields
= []
Methods
apply()
public
apply(Builder $builder, Model $model) : mixed
Parameters
- $builder : Builder
- $model : Model
Tags
applyQueryBuilder()
public
applyQueryBuilder(Builder $builder) : void
Parameters
- $builder : Builder
getAllowApiRules()
public
static getAllowApiRules() : array<string|int, string>
Return values
array<string|int, string>getAllowCustomFields()
public
static getAllowCustomFields() : Collection
Return values
CollectiongetCustomFields()
public
getCustomFields() : array<string|int, mixed>
Return values
array<string|int, mixed>likeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringsetCustomFields()
public
setCustomFields(array<string|int, mixed> $customFields) : CustomFieldScope
Parameters
- $customFields : array<string|int, mixed>
Return values
CustomFieldScopealias()
protected
alias(string $table, string $column) : string
Parameters
- $table : string
- $column : string
Return values
stringhandleCustomField()
protected
static handleCustomField(mixed &$rules) : array<string|int, mixed>
Parameters
- $rules : mixed
Return values
array<string|int, mixed>isSearchInOptionData()
protected
isSearchInOptionData(int $id) : bool
Parameters
- $id : int
Return values
boolgetAllowCustomFieldIds()
private
getAllowCustomFieldIds() : array<string|int, mixed>
Return values
array<string|int, mixed>handleSearchCustomFields()
private
handleSearchCustomFields(Builder $builder, int $fieldId, string $fieldValue) : void
Parameters
- $builder : Builder
- $fieldId : int
- $fieldValue : string