class Group extends Component (View source)

Traits

Conditionable
Tappable

Properties

protected string $evaluationIdentifier from  EvaluatesClosures
static protected Closure>> $macros from  Macroable
protected string|null $column
protected Closure|null $getDescriptionFromRecordUsing
protected Closure|null $getKeyFromRecordUsing
protected Closure|null $getTitleFromRecordUsing
protected Closure|null $groupQueryUsing
protected Closure|null $orderQueryUsing
protected Closure|null $scopeQueryUsing
protected Closure|null $scopeQueryByKeyUsing
protected string|null $label
protected string $id
protected bool $isCollapsible
protected bool $isTitlePrefixedWithLabel
protected bool $isDate

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

__construct(string|null $id = null)

No description

static Group
make(string|null $id = null)

No description

collapsible(bool $condition = true)

No description

column(string|null $column)

No description

date(bool $condition = true)

No description

id(string $id)

No description

label(string|null $label)

No description

getDescriptionFromRecordUsing(Closure|null $callback)

No description

getDescriptionUsing(Closure|null $callback) deprecated

No description

getTitleFromRecordUsing(Closure|null $callback)

No description

getKeyFromRecordUsing(Closure|null $callback)

No description

groupQueryUsing(Closure|null $callback)

No description

orderQueryUsing(Closure|null $callback)

No description

scopeQueryUsing(Closure|null $callback)

No description

scopeQueryByKeyUsing(Closure|null $callback)

No description

titlePrefixedWithLabel(bool $condition = true)

No description

bool
isCollapsible()

No description

bool
isTitlePrefixedWithLabel()

No description

string
getColumn()

No description

string
getId()

No description

string
getLabel()

No description

string|null
getDescription(Model $record, string|null $title)

No description

string|null
getStringKey(Model $record)

No description

mixed
getKey(Model $record)

No description

string|null
getTitle(Model $record)

No description

Builder
groupQuery(Builder $query, Model $model)

No description

Builder
orderQuery(Builder $query, string $direction)

No description

Builder
getSortColumnForQuery(Builder $query, string $sortColumn, array|null $relationships = null, Relation|null $lastRelationship = null)

No description

Builder
scopeQuery(Builder $query, Model $record)

No description

Builder
scopeQueryByKey(Builder $query, string $key)

No description

Builder
applyDefaultScopeToQuery(Builder $query, string $column, mixed $value)

No description

Relation|null
getRelationship(Model $record, string|null $name = null)

No description

string
getRelationshipAttribute(string|null $name = null)

No description

string|null
getRelationshipName(string|null $name = null)

No description

bool
isDate()

No description

Builder
applyEagerLoading(Builder $query)

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

final __construct(string|null $id = null)

No description

Parameters

string|null $id

static Group make(string|null $id = null)

No description

Parameters

string|null $id

Return Value

Group

Group collapsible(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Group

Group column(string|null $column)

No description

Parameters

string|null $column

Return Value

Group

Group date(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Group

Group id(string $id)

No description

Parameters

string $id

Return Value

Group

Group label(string|null $label)

No description

Parameters

string|null $label

Return Value

Group

Group getDescriptionFromRecordUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Group

Group getDescriptionUsing(Closure|null $callback) deprecated

deprecated Use the `getDescriptionFromRecordUsing()` method instead.

No description

Parameters

Closure|null $callback

Return Value

Group

Group getTitleFromRecordUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Group

Group getKeyFromRecordUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Group

Group groupQueryUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Group

Group orderQueryUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Group

Group scopeQueryUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Group

Group scopeQueryByKeyUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Group

Group titlePrefixedWithLabel(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Group

bool isCollapsible()

No description

Return Value

bool

bool isTitlePrefixedWithLabel()

No description

Return Value

bool

string getColumn()

No description

Return Value

string

string getId()

No description

Return Value

string

string getLabel()

No description

Return Value

string

string|null getDescription(Model $record, string|null $title)

No description

Parameters

Model $record
string|null $title

Return Value

string|null

string|null getStringKey(Model $record)

No description

Parameters

Model $record

Return Value

string|null

mixed getKey(Model $record)

No description

Parameters

Model $record

Return Value

mixed

string|null getTitle(Model $record)

No description

Parameters

Model $record

Return Value

string|null

Builder groupQuery(Builder $query, Model $model)

No description

Parameters

Builder $query
Model $model

Return Value

Builder

Builder orderQuery(Builder $query, string $direction)

No description

Parameters

Builder $query
string $direction

Return Value

Builder

protected Builder getSortColumnForQuery(Builder $query, string $sortColumn, array|null $relationships = null, Relation|null $lastRelationship = null)

No description

Parameters

Builder $query
string $sortColumn
array|null $relationships
Relation|null $lastRelationship

Return Value

Builder

Builder scopeQuery(Builder $query, Model $record)

No description

Parameters

Builder $query
Model $record

Return Value

Builder

Builder scopeQueryByKey(Builder $query, string $key)

No description

Parameters

Builder $query
string $key

Return Value

Builder

protected Builder applyDefaultScopeToQuery(Builder $query, string $column, mixed $value)

No description

Parameters

Builder $query
string $column
mixed $value

Return Value

Builder

Relation|null getRelationship(Model $record, string|null $name = null)

No description

Parameters

Model $record
string|null $name

Return Value

Relation|null

string getRelationshipAttribute(string|null $name = null)

No description

Parameters

string|null $name

Return Value

string

string|null getRelationshipName(string|null $name = null)

No description

Parameters

string|null $name

Return Value

string|null

bool isDate()

No description

Return Value

bool

Builder applyEagerLoading(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder