Collection Class Reference
List of all members.
Member Function Documentation
Collection::Collection |
( |
&$ |
objects |
) |
|
- Parameters:
-
| array | $objects The array of objects to populate this Collection |
Collection::paginate |
( |
$ |
start, |
|
|
$ |
count | |
|
) |
| | |
Returns a new Collection starting at index $start and contain at most $count entries
Collection::pluck |
( |
$ |
attribute |
) |
|
Plucks an attribute out of the objects array and returns the array full of those attributes
- Parameters:
-
| array | $attribute the attribute to pluck |
- Returns:
- array Returns an array full of the plucked attributes
- Returns:
- mixed Returns an array version of this Collection
- Returns:
- mixed Returns a jsonified version of this Collection
Collection::toSimpleJSON |
( |
|
) |
|
- Returns:
- mixed Returns a jsonified version of this Collection
The documentation for this class was generated from the following file:
- extensions/GrandObjects/Collection.php