ExportColumn
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
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])
No description
protected mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)
No description
protected string|null
getTypedReflectionParameterClassName(ReflectionParameter $parameter)
No description
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 protected callable|null
getMacro(string $method)
No description
CanAggregateRelatedModels
avg(string|array|Closure|null $relationship, string|Closure|null $column)
No description
CanAggregateRelatedModels
counts(string|array|Closure|null $relationships)
No description
CanAggregateRelatedModels
exists(string|array|Closure|null $relationships)
No description
CanAggregateRelatedModels
max(string|array|Closure|null $relationship, string|Closure|null $column)
No description
CanAggregateRelatedModels
min(string|array|Closure|null $relationship, string|Closure|null $column)
No description
CanAggregateRelatedModels
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
getRelationshipsToExistenceCheck()
No description
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
CanFormatState
limit(int|Closure|null $length = 100, string|Closure|null $end = '...')
No description
CanFormatState
words(int|Closure|null $words = 100, string|Closure|null $end = '...')
No description
CanFormatState
prefix(string|Closure|null $prefix)
No description
CanFormatState
suffix(string|Closure|null $suffix)
No description
CanFormatState
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
CanFormatState
listAsJson(bool $condition = true)
No description
bool
isListedAsJson()
No description
HasCellState
inverseRelationship(string|null $name)
No description
HasCellState
distinctList(bool|Closure $condition = true)
No description
HasCellState
getStateUsing(mixed $callback)
No description
HasCellState
state(mixed $state)
No description
HasCellState
default(mixed $state)
No description
bool
isDistinctList()
No description
mixed
getDefaultState()
No description
mixed
getState()
No description
mixed
getStateFromRecord()
No description
HasCellState
separator(string|Closure|null $separator = ',')
No description
string|null
getSeparator()
No description
bool
hasRelationship(Model $record)
No description
bool
queriesRelationships(Model $record)
deprecated
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
final
__construct(string $name)
No description
static ExportColumn
make(string $name)
No description
ExportColumn
name(string $name)
No description
ExportColumn
label(string|Closure|null $label)
No description
ExportColumn
exporter(Exporter|null $exporter)
No description
ExportColumn
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