class QueryBuilder extends BaseFilter (View source)

Traits

Properties

protected string $evaluationIdentifier from  EvaluatesClosures
static protected Closure>> $macros from  Macroable
protected Table $table from  BelongsToTable
protected bool|Closure $isHidden from  CanBeHidden
protected bool|Closure $isVisible from  CanBeHidden
protected array<string,mixed> $resetState from  CanResetState
protected array|int|string|Closure|null $columnSpan from  CanSpanColumns
protected array|int|string|Closure|null $columnStart from  CanSpanColumns
protected array|int|string|null $columns from  HasColumns
protected mixed $defaultState from  HasDefaultState
protected Component[] $formSchema from  HasFormSchema
protected Closure|null $modifyFormFieldUsing from  HasFormSchema
protected string|Closure|null $indicateUsing from  HasIndicators
protected Htmlable|Closure|null $indicator from  HasIndicators
protected string|Closure|null $label from  HasLabel
protected bool $shouldTranslateLabel from  HasLabel
protected string $name from  HasName
protected Closure|null $modifyQueryUsing from  InteractsWithTableQuery
protected Closure|null $modifyBaseQueryUsing from  InteractsWithTableQuery
protected Constraint[] $constraints from  HasConstraints
protected array|null $constraintPickerColumns
protected string|Closure|null $constraintPickerWidth

Methods

static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)

No description

configure()

No description

void
setUp()

No description

mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

string|null
static void
macro(string $name, callable $macro)

No description

static void
mixin(object $mixin, bool $replace = true)

No description

static void
flushMacros()

No description

static mixed
__callStatic(string $method, array $parameters)

No description

mixed
__call(string $method, array $parameters)

No description

static callable|null
getMacro(string $method)

No description

table(Table $table)

No description

getTable()

No description

getLivewire()

No description

array
getState()

No description

hidden(bool|Closure $condition = true)

No description

hiddenOn(string|array $livewireComponents)

No description

visible(bool|Closure $condition = true)

No description

visibleOn(string|array $livewireComponents)

No description

bool
isHidden()

No description

bool
isVisible()

No description

resetState(array|Closure|null $state)

No description

array
getResetState()

No description

columnSpan(array|int|string|Closure|null $span)

No description

columnStart(array|int|string|Closure|null $start)

No description

array|int|string|Closure|null
getColumnSpan()

No description

array|int|string|Closure|null
getColumnStart()

No description

columns(array|int|string|null $columns = 2)

No description

array|int|string|null
getColumns()

No description

default(mixed $state = true)

No description

mixed
getDefaultState()

No description

form(array|Closure|null $schema)

No description

modifyFormFieldUsing(Closure|null $callback)

No description

array
getFormSchema()

No description

bool
hasFormSchema()

No description

Field|null
getFormField()

No description

getForm()

No description

indicator(Htmlable|Closure|null $indicator)

No description

indicateUsing(Closure|null $callback)

No description

array
getIndicators()

No description

Htmlable
getIndicator()

No description

label(string|Closure|null $label)

No description

from  HasLabel
translateLabel(bool $shouldTranslateLabel = true)

No description

from  HasLabel
string
getLabel()

No description

from  HasLabel
name(string $name)

No description

from  HasName
string
getName()

No description

from  HasName
Builder
apply(Builder $query, array $data = [])

No description

Builder
applyToBaseQuery(Builder $query, array $data = [])

No description

query(Closure|null $callback)

No description

baseQuery(Closure|null $callback)

No description

__construct(string $name)

No description

static BaseFilter
make(string|null $name = null)

No description

static string|null
getDefaultName()

No description

int
getActiveCount()

No description

constraints(array $constraints)

No description

array
getConstraints()

No description

Constraint|null
getConstraint(string $name)

No description

int
countRules(array $rules, RuleBuilder $ruleBuilder)

No description

Builder
applyRulesToQuery(Builder $query, array $rules, RuleBuilder $ruleBuilder)

No description

Builder
applyRulesToBaseQuery(Builder $query, array $rules, RuleBuilder $ruleBuilder)

No description

constraintPickerColumns(array|int|string|null $columns = 2)

No description

array|int|string|null
getConstraintPickerColumns(string|null $breakpoint = null)

No description

constraintPickerWidth(string|Closure|null $width)

No description

string|null
getConstraintPickerWidth()

No description

getRuleBuilder()

No description

getNestedRuleBuilder(ComponentContainer $ruleBuilderBlockContainer, string $orGroupIndex)

No description

void
tapOperatorFromRule(array $rule, ComponentContainer $ruleBuilderBlockContainer, Closure $callback)

No description

Details

static mixed configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)

No description

Parameters

Closure $modifyUsing
Closure|null $during
bool $isImportant

Return Value

mixed

Configurable configure()

No description

Return Value

Configurable

protected void setUp()

No description

Return Value

void

mixed evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

Parameters

mixed $value
array $namedInjections
array $typedInjections

Return Value

mixed

protected mixed resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

Parameters

ReflectionParameter $parameter
array $namedInjections
array $typedInjections

Return Value

mixed

protected array resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

Parameters

string $parameterName

Return Value

array

protected array resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

Parameters

string $parameterType

Return Value

array

protected string|null getTypedReflectionParameterClassName(ReflectionParameter $parameter)

No description

Parameters

ReflectionParameter $parameter

Return Value

string|null

static void macro(string $name, callable $macro)

No description

Parameters

string $name
callable $macro

Return Value

void

static void mixin(object $mixin, bool $replace = true)

No description

Parameters

object $mixin
bool $replace

Return Value

void

static void flushMacros()

No description

Return Value

void

static mixed __callStatic(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

mixed __call(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

static protected callable|null getMacro(string $method)

No description

Parameters

string $method

Return Value

callable|null

BelongsToTable table(Table $table)

No description

Parameters

Table $table

Return Value

BelongsToTable

Table getTable()

No description

Return Value

Table

HasTable getLivewire()

No description

Return Value

HasTable

array getState()

No description

Return Value

array

CanBeHidden hidden(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden hiddenOn(string|array $livewireComponents)

No description

Parameters

string|array $livewireComponents

Return Value

CanBeHidden

CanBeHidden visible(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden visibleOn(string|array $livewireComponents)

No description

Parameters

string|array $livewireComponents

Return Value

CanBeHidden

bool isHidden()

No description

Return Value

bool

bool isVisible()

No description

Return Value

bool

CanResetState resetState(array|Closure|null $state)

No description

Parameters

array|Closure|null $state

Return Value

CanResetState

array getResetState()

No description

Return Value

array

CanSpanColumns columnSpan(array|int|string|Closure|null $span)

No description

Parameters

array|int|string|Closure|null $span

Return Value

CanSpanColumns

CanSpanColumns columnSpanFull()

No description

Return Value

CanSpanColumns

CanSpanColumns columnStart(array|int|string|Closure|null $start)

No description

Parameters

array|int|string|Closure|null $start

Return Value

CanSpanColumns

array|int|string|Closure|null getColumnSpan()

No description

Return Value

array|int|string|Closure|null

array|int|string|Closure|null getColumnStart()

No description

Return Value

array|int|string|Closure|null

HasColumns columns(array|int|string|null $columns = 2)

No description

Parameters

array|int|string|null $columns

Return Value

HasColumns

array|int|string|null getColumns()

No description

Return Value

array|int|string|null

HasDefaultState default(mixed $state = true)

No description

Parameters

mixed $state

Return Value

HasDefaultState

mixed getDefaultState()

No description

Return Value

mixed

HasFormSchema form(array|Closure|null $schema)

No description

Parameters

array|Closure|null $schema

Return Value

HasFormSchema

HasFormSchema modifyFormFieldUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasFormSchema

array getFormSchema()

No description

Return Value

array

bool hasFormSchema()

No description

Return Value

bool

Field|null getFormField()

No description

Return Value

Field|null

ComponentContainer getForm()

No description

Return Value

ComponentContainer

HasIndicators indicator(Htmlable|Closure|null $indicator)

No description

Parameters

Htmlable|Closure|null $indicator

Return Value

HasIndicators

HasIndicators indicateUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasIndicators

array getIndicators()

No description

Return Value

array

Htmlable getIndicator()

No description

Return Value

Htmlable

HasLabel label(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

HasLabel

HasLabel translateLabel(bool $shouldTranslateLabel = true)

No description

Parameters

bool $shouldTranslateLabel

Return Value

HasLabel

string getLabel()

No description

Return Value

string

HasName name(string $name)

No description

Parameters

string $name

Return Value

HasName

string getName()

No description

Return Value

string

Builder apply(Builder $query, array $data = [])

No description

Parameters

Builder $query
array $data

Return Value

Builder

Builder applyToBaseQuery(Builder $query, array $data = [])

No description

Parameters

Builder $query
array $data

Return Value

Builder

InteractsWithTableQuery query(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

InteractsWithTableQuery

InteractsWithTableQuery baseQuery(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

InteractsWithTableQuery

InteractsWithTableQuery modifyQueryUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

InteractsWithTableQuery

InteractsWithTableQuery modifyBaseQueryUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

InteractsWithTableQuery

protected bool hasQueryModificationCallback()

No description

Return Value

bool

protected bool hasBaseQueryModificationCallback()

No description

Return Value

bool

final __construct(string $name)

No description

Parameters

string $name

static BaseFilter make(string|null $name = null)

No description

Parameters

string|null $name

Return Value

BaseFilter

static string|null getDefaultName()

No description

Return Value

string|null

int getActiveCount()

No description

Return Value

int

HasConstraints constraints(array $constraints)

No description

Parameters

array $constraints

Return Value

HasConstraints

array getConstraints()

No description

Return Value

array

Constraint|null getConstraint(string $name)

No description

Parameters

string $name

Return Value

Constraint|null

protected int countRules(array $rules, RuleBuilder $ruleBuilder)

No description

Parameters

array $rules
RuleBuilder $ruleBuilder

Return Value

int

Builder applyRulesToQuery(Builder $query, array $rules, RuleBuilder $ruleBuilder)

No description

Parameters

Builder $query
array $rules
RuleBuilder $ruleBuilder

Return Value

Builder

Builder applyRulesToBaseQuery(Builder $query, array $rules, RuleBuilder $ruleBuilder)

No description

Parameters

Builder $query
array $rules
RuleBuilder $ruleBuilder

Return Value

Builder

QueryBuilder constraintPickerColumns(array|int|string|null $columns = 2)

No description

Parameters

array|int|string|null $columns

Return Value

QueryBuilder

array|int|string|null getConstraintPickerColumns(string|null $breakpoint = null)

No description

Parameters

string|null $breakpoint

Return Value

array|int|string|null

QueryBuilder constraintPickerWidth(string|Closure|null $width)

No description

Parameters

string|Closure|null $width

Return Value

QueryBuilder

string|null getConstraintPickerWidth()

No description

Return Value

string|null

protected RuleBuilder getRuleBuilder()

No description

Return Value

RuleBuilder

protected RuleBuilder getNestedRuleBuilder(ComponentContainer $ruleBuilderBlockContainer, string $orGroupIndex)

No description

Parameters

ComponentContainer $ruleBuilderBlockContainer
string $orGroupIndex

Return Value

RuleBuilder

protected void tapOperatorFromRule(array $rule, ComponentContainer $ruleBuilderBlockContainer, Closure $callback)

No description

Parameters

array $rule
ComponentContainer $ruleBuilderBlockContainer
Closure $callback

Return Value

void