Collection
classe Collection étends Collection (Voir la source)
Propriétés
protected array | $storage | The collection store |
depuis Collection |
Méthodes
Pas de description
Check existence of a key in the session collection
Allows to recover a value or value collection.
To retrieve a value or value collection form d'instance de collection.
Modify an entry in the collection or the addition if not
Returns the key list and return an instance of Collection.
Ignore the key that is given to it and return an instance of Collection.
Update an existing value in the collection
Pas de description
Pas de description
Add after the last item in the collection
Pas de description
Pas de description
Allows you to delete all the selected recordings
Détails
__construct(array $arr = [])
Pas de description
dans
Collection à la ligne 29
mixed
first()
The first element of the list
dans
Collection à la ligne 39
array
last()
The last element of the list
dans
Collection à la ligne 55
bool
has(string $key, bool $strict = false)
Check existence of a key in the session collection
dans
Collection à la ligne 74
bool
isEmpty()
Check if a collection is empty.
dans
Collection à la ligne 97
mixed
get(string $key = null, mixed $default = null)
Allows to recover a value or value collection.
dans
Collection à la ligne 125
Collection
values()
Get the list of values of collection
dans
Collection à la ligne 141
Collection
keys()
Get the list of keys of collection
dans
Collection à la ligne 157
int
count()
Count the collection element.
dans
Collection à la ligne 169
Collection
collectionify(string $key)
To retrieve a value or value collection form d'instance de collection.
dans
Collection à la ligne 191
Collection
delete(string $key)
Delete an entry in the collection
dans
Collection à la ligne 206
mixed
set(string $key, mixed $value)
Modify an entry in the collection or the addition if not
dans
Collection à la ligne 226
each(callable $cb)
Browse all the values of the collection
dans
Collection à la ligne 241
Collection
merge(Collection|array $array)
Merge the collection with a painting or other collection
dans
Collection à la ligne 270
Collection
map(callable $cb)
Map
dans
Collection à la ligne 290
Collection
filter(callable $cb)
Filter
dans
Collection à la ligne 311
array
fill(mixed $data, int $offset)
Fill storage
dans
Collection à la ligne 332
Collection
reduce(callable $cb, mixed $next = null)
Reduce
dans
Collection à la ligne 349
string
implode($sep)
Implode
dans
Collection à la ligne 361
int
sum(callable $cb = null)
Sum
dans
Collection à la ligne 388
number
max(callable $cb = null)
Max
dans
Collection à la ligne 400
number
min(callable $cb = null)
Max
dans
Collection à la ligne 442
Collection
excepts(array $except)
Returns the key list and return an instance of Collection.
dans
Collection à la ligne 465
Collection
ignores(array $ignores)
Ignore the key that is given to it and return an instance of Collection.
dans
Collection à la ligne 486
Collection
reverse()
Reverse collection
dans
Collection à la ligne 500
bool
update(string|int $key, mixed $data, bool $override = false)
Update an existing value in the collection
dans
Collection à la ligne 526
Generator
yieldify()
Launches a generator
string
toJson(int $option = 0)
Pas de description
dans
Collection à la ligne 560
int
length()
Length of the collection
dans
Collection à la ligne 570
mixed
shift()
Deletes the first item in the collection
dans
Collection à la ligne 582
mixed
pop()
Deletes the last item in the collection
array
toArray()
Pas de description
dans
Collection à la ligne 615
mixed
all()
Returns the elements of the collection
dans
Collection à la ligne 628
mixed
push(mixed $value, int|string $key = null)
Add after the last item in the collection
dans
Collection à la ligne 664
mixed
__get(mixed $name)
__get
dans
Collection à la ligne 677
void
__set(mixed $name, mixed $value)
__set
dans
Collection à la ligne 689
bool
__isset(mixed $name)
__isset
dans
Collection à la ligne 701
void
__unset(mixed $name)
__unset
string
__toString()
Pas de description
string
jsonSerialize()
Pas de description
dans
Collection à la ligne 731
ArrayIterator
getIterator()
getIterator
dans
Collection à la ligne 743
bool
offsetExists(mixed $offset)
offsetExists
dans
Collection à la ligne 755
mixed
offsetGet(mixed $offset)
offsetGet
dans
Collection à la ligne 768
void
offsetSet(mixed $offset, mixed $value)
offsetSet
dans
Collection à la ligne 780
void
offsetUnset(mixed $offset)
offsetUnset
void
dropAll()
Allows you to delete all the selected recordings