class ExportColumn extends Component (View source)

Traits

Properties

protected string $evaluationIdentifier
static protected Closure>> $macros from  Macroable
protected string|Closure|null $columnToAvg from  CanAggregateRelatedModels
protected string $relationshipToAvg from  CanAggregateRelatedModels
protected string $relationshipsToCount from  CanAggregateRelatedModels
protected string $relationshipsToExistenceCheck from  CanAggregateRelatedModels
protected string|Closure|null $columnToMax from  CanAggregateRelatedModels
protected string $relationshipToMax from  CanAggregateRelatedModels
protected string|Closure|null $columnToMin from  CanAggregateRelatedModels
protected string $relationshipToMin from  CanAggregateRelatedModels
protected string|Closure|null $columnToSum from  CanAggregateRelatedModels
protected string $relationshipToSum from  CanAggregateRelatedModels
protected Closure|null $formatStateUsing from  CanFormatState
protected int|Closure|null $characterLimit from  CanFormatState
protected string|Closure|null $characterLimitEnd from  CanFormatState
protected int|Closure|null $wordLimit from  CanFormatState
protected string|Closure|null $wordLimitEnd from  CanFormatState
protected string|Closure|null $prefix from  CanFormatState
protected string|Closure|null $suffix from  CanFormatState
protected bool $isListedAsJson from  CanFormatState
protected mixed $defaultState from  HasCellState
protected mixed $getStateUsing from  HasCellState
protected string|Closure|null $separator from  HasCellState
protected bool|Closure $isDistinctList from  HasCellState
protected string|null $inverseRelationshipName from  HasCellState
protected string $name
protected string|Closure|null $label
protected Exporter|null $exporter
protected bool|Closure $isEnabledByDefault

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

avg(string|array|Closure|null $relationship, string|Closure|null $column)

No description

counts(string|array|Closure|null $relationships)

No description

exists(string|array|Closure|null $relationships)

No description

max(string|array|Closure|null $relationship, string|Closure|null $column)

No description

min(string|array|Closure|null $relationship, string|Closure|null $column)

No description

sum(string|array|Closure|null $relationship, string|Closure|null $column)

No description

string|null
getColumnToAvg()

No description

string|array|null
getRelationshipToAvg()

No description

string|array|null
getRelationshipsToCount()

No description

string|array|null
string|null
getColumnToMax()

No description

string|array|null
getRelationshipToMax()

No description

string|null
getColumnToMin()

No description

string|array|null
getRelationshipToMin()

No description

string|null
getColumnToSum()

No description

string|array|null
getRelationshipToSum()

No description

limit(int|Closure|null $length = 100, string|Closure|null $end = '...')

No description

words(int|Closure|null $words = 100, string|Closure|null $end = '...')

No description

prefix(string|Closure|null $prefix)

No description

suffix(string|Closure|null $suffix)

No description

formatStateUsing(Closure|null $callback)

No description

mixed
formatState(mixed $state)

No description

string|null
getFormattedState()

No description

int|null
getCharacterLimit()

No description

string|null
getCharacterLimitEnd()

No description

int|null
getWordLimit()

No description

string|null
getWordLimitEnd()

No description

string|null
getPrefix()

No description

string|null
getSuffix()

No description

listAsJson(bool $condition = true)

No description

bool
isListedAsJson()

No description

inverseRelationship(string|null $name)

No description

distinctList(bool|Closure $condition = true)

No description

getStateUsing(mixed $callback)

No description

state(mixed $state)

No description

default(mixed $state)

No description

bool
isDistinctList()

No description

mixed
getDefaultState()

No description

mixed
getState()

No description

mixed
getStateFromRecord()

No description

separator(string|Closure|null $separator = ',')

No description

string|null
getSeparator()

No description

bool
hasRelationship(Model $record)

No description

bool
queriesRelationships(Model $record) deprecated

No description

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

No description

array
getRelationshipResults(Model $record, array|null $relationships = null)

No description

string
getRelationshipAttribute(string|null $name = null)

No description

string
getInverseRelationshipName(Model $record)

No description

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

No description

__construct(string $name)

No description

static ExportColumn
make(string $name)

No description

name(string $name)

No description

label(string|Closure|null $label)

No description

exporter(Exporter|null $exporter)

No description

enabledByDefault(bool|Closure $condition)

No description

string
getName()

No description

Exporter|null
getExporter()

No description

bool
isEnabledByDefault()

No description

Model|null
getRecord()

No description

string|null
getLabel()

No description

Builder
applyRelationshipAggregates(Builder $query)

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

CanAggregateRelatedModels avg(string|array|Closure|null $relationship, string|Closure|null $column)

No description

Parameters

string|array|Closure|null $relationship
string|Closure|null $column

Return Value

CanAggregateRelatedModels

CanAggregateRelatedModels counts(string|array|Closure|null $relationships)

No description

Parameters

string|array|Closure|null $relationships

Return Value

CanAggregateRelatedModels

CanAggregateRelatedModels exists(string|array|Closure|null $relationships)

No description

Parameters

string|array|Closure|null $relationships

Return Value

CanAggregateRelatedModels

CanAggregateRelatedModels max(string|array|Closure|null $relationship, string|Closure|null $column)

No description

Parameters

string|array|Closure|null $relationship
string|Closure|null $column

Return Value

CanAggregateRelatedModels

CanAggregateRelatedModels min(string|array|Closure|null $relationship, string|Closure|null $column)

No description

Parameters

string|array|Closure|null $relationship
string|Closure|null $column

Return Value

CanAggregateRelatedModels

CanAggregateRelatedModels sum(string|array|Closure|null $relationship, string|Closure|null $column)

No description

Parameters

string|array|Closure|null $relationship
string|Closure|null $column

Return Value

CanAggregateRelatedModels

string|null getColumnToAvg()

No description

Return Value

string|null

string|array|null getRelationshipToAvg()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null

string|array|null getRelationshipsToCount()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null

string|array|null getRelationshipsToExistenceCheck()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null

string|null getColumnToMax()

No description

Return Value

string|null

string|array|null getRelationshipToMax()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null

string|null getColumnToMin()

No description

Return Value

string|null

string|array|null getRelationshipToMin()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null

string|null getColumnToSum()

No description

Return Value

string|null

string|array|null getRelationshipToSum()

No description

Return Value

string|array|null

| array<int | string, string | Closure> | null

CanFormatState limit(int|Closure|null $length = 100, string|Closure|null $end = '...')

No description

Parameters

int|Closure|null $length
string|Closure|null $end

Return Value

CanFormatState

CanFormatState words(int|Closure|null $words = 100, string|Closure|null $end = '...')

No description

Parameters

int|Closure|null $words
string|Closure|null $end

Return Value

CanFormatState

CanFormatState prefix(string|Closure|null $prefix)

No description

Parameters

string|Closure|null $prefix

Return Value

CanFormatState

CanFormatState suffix(string|Closure|null $suffix)

No description

Parameters

string|Closure|null $suffix

Return Value

CanFormatState

CanFormatState formatStateUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

CanFormatState

mixed formatState(mixed $state)

No description

Parameters

mixed $state

Return Value

mixed

string|null getFormattedState()

No description

Return Value

string|null

int|null getCharacterLimit()

No description

Return Value

int|null

string|null getCharacterLimitEnd()

No description

Return Value

string|null

int|null getWordLimit()

No description

Return Value

int|null

string|null getWordLimitEnd()

No description

Return Value

string|null

string|null getPrefix()

No description

Return Value

string|null

string|null getSuffix()

No description

Return Value

string|null

CanFormatState listAsJson(bool $condition = true)

No description

Parameters

bool $condition

Return Value

CanFormatState

bool isListedAsJson()

No description

Return Value

bool

HasCellState inverseRelationship(string|null $name)

No description

Parameters

string|null $name

Return Value

HasCellState

HasCellState distinctList(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasCellState

HasCellState getStateUsing(mixed $callback)

No description

Parameters

mixed $callback

Return Value

HasCellState

HasCellState state(mixed $state)

No description

Parameters

mixed $state

Return Value

HasCellState

HasCellState default(mixed $state)

No description

Parameters

mixed $state

Return Value

HasCellState

bool isDistinctList()

No description

Return Value

bool

mixed getDefaultState()

No description

Return Value

mixed

mixed getState()

No description

Return Value

mixed

mixed getStateFromRecord()

No description

Return Value

mixed

HasCellState separator(string|Closure|null $separator = ',')

No description

Parameters

string|Closure|null $separator

Return Value

HasCellState

string|null getSeparator()

No description

Return Value

string|null

bool hasRelationship(Model $record)

No description

Parameters

Model $record

Return Value

bool

bool queriesRelationships(Model $record) deprecated

deprecated Use `hasRelationship()` instead.

No description

Parameters

Model $record

Return Value

bool

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

No description

Parameters

Model $record
string|null $name

Return Value

Relation|null

array getRelationshipResults(Model $record, array|null $relationships = null)

No description

Parameters

Model $record
array|null $relationships

Return Value

array

string getRelationshipAttribute(string|null $name = null)

No description

Parameters

string|null $name

Return Value

string

string getInverseRelationshipName(Model $record)

No description

Parameters

Model $record

Return Value

string

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

No description

Parameters

string|null $name

Return Value

string|null

final __construct(string $name)

No description

Parameters

string $name

static ExportColumn make(string $name)

No description

Parameters

string $name

Return Value

ExportColumn

ExportColumn name(string $name)

No description

Parameters

string $name

Return Value

ExportColumn

ExportColumn label(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

ExportColumn

ExportColumn exporter(Exporter|null $exporter)

No description

Parameters

Exporter|null $exporter

Return Value

ExportColumn

ExportColumn enabledByDefault(bool|Closure $condition)

No description

Parameters

bool|Closure $condition

Return Value

ExportColumn

string getName()

No description

Return Value

string

Exporter|null getExporter()

No description

Return Value

Exporter|null

bool isEnabledByDefault()

No description

Return Value

bool

Model|null getRecord()

No description

Return Value

Model|null

string|null getLabel()

No description

Return Value

string|null

Builder applyRelationshipAggregates(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

Builder applyEagerLoading(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder