MetaFox

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

Methods

apply()

public apply(Builder $builder, Model $model) : mixed
Parameters
$builder : Builder
$model : Model
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

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
Collection

getCustomFields()

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
string

alias()

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

handleCustomField()

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
bool

getAllowCustomFieldIds()

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

        
On this page

Search results