trait HasCellState (View source)

Properties

protected mixed $defaultState
protected mixed $getStateUsing
protected string|Closure|null $separator
protected bool|Closure $isDistinctList
protected string|null $inverseRelationshipName

Methods

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

Details

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