Collection
The Collection class serves as foundation for the Pages, Files, Users and Structure classes. It handles object validation and sets the parent collection property for each object.
- $collection->add()
- $collection->append()
- $collection->chunk()
- $collection->clone()
- $collection->count()
- $collection->current()
- $collection->data()
- $collection->empty()
- $collection->extend()
- $collection->filter()
- $collection->filterBy()
- $collection->find()
- $collection->findBy()
- $collection->findByKey()
- $collection->first()
- $collection->flip()
- $collection->get()
- $collection->getAttribute()
- $collection->getIterator()
- $collection->group()
- $collection->groupBy()
- $collection->has()
- $collection->indexOf()
- $collection->intersection()
- $collection->intersects()
- $collection->isEmpty()
- $collection->isEven()
- $collection->isNotEmpty()
- $collection->isOdd()
- $collection->key()
- $collection->keyOf()
- $collection->keys()
- $collection->last()
- $collection->limit()
- $collection->map()
- $collection->next()
- $collection->not()
- $collection->nth()
- $collection->offset()
- $collection->paginate()
- $collection->pagination()
- $collection->parent()
- $collection->pluck()
- $collection->prepend()
- $collection->prev()
- $collection->query()
- $collection->random()
- $collection->remove()
- $collection->rewind()
- $collection->search()
- $collection->set()
- $collection->shuffle()
- $collection->slice()
- $collection->sort()
- $collection->sortBy()
- $collection->toArray()
- $collection->toJson()
- $collection->toString()
- $collection->valid()
- $collection->values()
- $collection->when()
- $collection->without()
- Collection::sortArgs()
- new Collection()