PaginatedDataCollectable
trait PaginatedDataCollectable
Traits
Methods
Resolve the collection's active partials for items read from it.
Determine whether this object has partial definitions.
Get the current partial definitions.
Get the underlying items without transforming them.
Get the number of data items on the current page.
Disable wrapping for the collection.
Details
in
BaseDataCollectable at line 24
string
getDataClass()
Get the data class stored by the collection.
in
BaseDataCollectable at line 34
Generator
getIterator()
Get an iterator for the data items.
in
BaseDataCollectable at line 55
protected array|null
partialsForItems()
Resolve the collection's active partials for items read from it.
As in Spatie, an item read from the collection carries the collection's selections. Reads don't consume the collection's temporary selections; its next transformation does.
in
BaseDataCollectable at line 69
abstract bool
hasPartialsDefinition()
Determine whether this object has partial definitions.
in
BaseDataCollectable at line 74
abstract PartialsDefinition
getPartialsDefinition()
Get the current partial definitions.
at line 55
protected iterable
itemsForIteration()
Get the underlying items without transforming them.
at line 23
PaginatedDataCollectable
through(Closure $through)
No description
at line 36
int
count()
Get the number of data items on the current page.
at line 44
PaginatedDataCollectable
withoutWrapping()
Disable wrapping for the collection.