class SelectConstraint extends Constraint (View source)

Traits

Constants

OPERATOR_SELECT_NAME

Properties

protected string $evaluationIdentifier from  EvaluatesClosures
static protected Closure>> $macros from  Macroable
protected string|Closure|null $label from  HasLabel
protected bool $shouldTranslateLabel from  HasLabel
protected string $name from  HasName
protected Operator[] $operators from  HasOperators
protected Htmlable|Closure|null $icon from  HasIcon
protected IconPosition|string|Closure|null $iconPosition from  HasIcon
protected IconSize|string|Closure|null $iconSize from  HasIcon
protected string|Closure|null $attribute from  Constraint
protected string|Closure|null $attributeLabel from  Constraint
protected string|Closure|null $relationship from  Constraint
protected Closure|null $modifyRelationshipQueryUsing from  Constraint
protected array<string,mixed> $settings from  Constraint
protected bool|null $isInverse from  Constraint
protected QueryBuilder $filter from  Constraint
protected bool|Closure $isNullable from  CanBeNullable
protected Arrayable|string|Closure|null $options from  HasOptions
protected Closure|null $getOptionLabelUsing from  HasOptions
protected Closure|null $getOptionLabelsUsing from  HasOptions
protected Closure|null $getSearchResultsUsing from  HasOptions
protected bool|Closure $isMultiple
protected bool|Closure $isNative
protected bool|Closure $isSearchable
protected int|Closure $optionsLimit
protected Closure|null $getOptionLabelFromRecordUsing

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

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
unshiftOperators(array $operators)

No description

operators(array $operators)

No description

pushOperators(array $operators)

No description

array
getOperators()

No description

Operator|null
getOperator(string $name)

No description

icon(Htmlable|Closure|null $icon)

No description

from  HasIcon
iconPosition(IconPosition|string|Closure|null $position)

No description

from  HasIcon
iconSize(IconSize|string|Closure|null $size)

No description

from  HasIcon
Htmlable|null
getIcon()

No description

from  HasIcon
IconPosition|string
getIconPosition()

No description

from  HasIcon
IconSize|string|null
getIconSize()

No description

from  HasIcon
__construct(string $name)

No description

static Constraint
make(string $name)

No description

getBuilderBlock()

No description

array
getOperatorSelectOptions()

No description

array
parseOperatorString(string $operator)

No description

attribute(string|Closure|null $name)

No description

attributeLabel(string|Closure|null $label)

No description

relationship(string $name, string $titleAttribute, Closure|null $modifyQueryUsing = null)

No description

filter(QueryBuilder $filter)

No description

getFilter()

No description

string
getAttribute()

No description

string
getAttributeLabel()

No description

bool
queriesRelationships()

No description

string
getRelationshipName()

No description

string
getAttributeForQuery()

No description

settings(array|null $settings)

No description

inverse(bool|null $condition = true)

No description

array|null
getSettings()

No description

bool|null
isInverse()

No description

nullable(bool|Closure $condition = true)

No description

bool
isNullable()

No description

options(Arrayable|string|Closure|null $options)

No description

array
getOptions()

No description

getOptionLabelUsing(Closure|null $callback)

No description

getOptionLabelsUsing(Closure|null $callback)

No description

getSearchResultsUsing(Closure|null $callback)

No description

Closure|null
getOptionLabelUsingCallback()

No description

Closure|null
getOptionLabelsUsingCallback()

No description

Closure|null
multiple(bool|Closure $condition = true)

No description

searchable(bool|Closure $condition = true)

No description

bool
isMultiple()

No description

bool
isSearchable()

No description

optionsLimit(int|Closure $limit)

No description

int
getOptionsLimit()

No description

native(bool|Closure $condition = true)

No description

bool
isNative()

No description

getOptionLabelFromRecordUsing(Closure|null $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

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

HasOperators unshiftOperators(array $operators)

No description

Parameters

array $operators

Return Value

HasOperators

HasOperators operators(array $operators)

No description

Parameters

array $operators

Return Value

HasOperators

HasOperators pushOperators(array $operators)

No description

Parameters

array $operators

Return Value

HasOperators

array getOperators()

No description

Return Value

array

Operator|null getOperator(string $name)

No description

Parameters

string $name

Return Value

Operator|null

HasIcon icon(Htmlable|Closure|null $icon)

No description

Parameters

Htmlable|Closure|null $icon

Return Value

HasIcon

HasIcon iconPosition(IconPosition|string|Closure|null $position)

No description

Parameters

IconPosition|string|Closure|null $position

Return Value

HasIcon

HasIcon iconSize(IconSize|string|Closure|null $size)

No description

Parameters

IconSize|string|Closure|null $size

Return Value

HasIcon

Htmlable|null getIcon()

No description

Return Value

Htmlable|null

IconPosition|string getIconPosition()

No description

Return Value

IconPosition|string

IconSize|string|null getIconSize()

No description

Return Value

IconSize|string|null

final __construct(string $name)

No description

Parameters

string $name

static Constraint make(string $name)

No description

Parameters

string $name

Return Value

Constraint

Block getBuilderBlock()

No description

Return Value

Block

array getOperatorSelectOptions()

No description

Return Value

array

array parseOperatorString(string $operator)

No description

Parameters

string $operator

Return Value

array

Constraint attribute(string|Closure|null $name)

No description

Parameters

string|Closure|null $name

Return Value

Constraint

Constraint attributeLabel(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

Constraint

Constraint relationship(string $name, string $titleAttribute, Closure|null $modifyQueryUsing = null)

No description

Parameters

string $name
string $titleAttribute
Closure|null $modifyQueryUsing

Return Value

Constraint

Constraint filter(QueryBuilder $filter)

No description

Parameters

QueryBuilder $filter

Return Value

Constraint

QueryBuilder getFilter()

No description

Return Value

QueryBuilder

string getAttribute()

No description

Return Value

string

string getAttributeLabel()

No description

Return Value

string

bool queriesRelationships()

No description

Return Value

bool

string getRelationshipName()

No description

Return Value

string

string getAttributeForQuery()

No description

Return Value

string

Closure|null getModifyRelationshipQueryUsing()

No description

Return Value

Closure|null

Constraint settings(array|null $settings)

No description

Parameters

array|null $settings

Return Value

Constraint

Constraint inverse(bool|null $condition = true)

No description

Parameters

bool|null $condition

Return Value

Constraint

array|null getSettings()

No description

Return Value

array|null

| null

bool|null isInverse()

No description

Return Value

bool|null

CanBeNullable nullable(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeNullable

bool isNullable()

No description

Return Value

bool

HasOptions options(Arrayable|string|Closure|null $options)

No description

Parameters

Arrayable|string|Closure|null $options

Return Value

HasOptions

array getOptions()

No description

Return Value

array

HasOptions getOptionLabelUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasOptions

HasOptions getOptionLabelsUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasOptions

HasOptions getSearchResultsUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasOptions

Closure|null getOptionLabelUsingCallback()

No description

Return Value

Closure|null

Closure|null getOptionLabelsUsingCallback()

No description

Return Value

Closure|null

Closure|null getSearchResultsUsingCallback()

No description

Return Value

Closure|null

SelectConstraint multiple(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

SelectConstraint

SelectConstraint searchable(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

SelectConstraint

bool isMultiple()

No description

Return Value

bool

bool isSearchable()

No description

Return Value

bool

SelectConstraint optionsLimit(int|Closure $limit)

No description

Parameters

int|Closure $limit

Return Value

SelectConstraint

int getOptionsLimit()

No description

Return Value

int

SelectConstraint native(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

SelectConstraint

bool isNative()

No description

Return Value

bool

SelectConstraint getOptionLabelFromRecordUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

SelectConstraint

Closure|null getOptionLabelFromRecordUsingCallback()

No description

Return Value

Closure|null