Collection Class Reference

List of all members.

Public Member Functions

 Collection (&$objects)
 pluck ($attribute)
 paginate ($start, $count)
 toArray ()
 toJSON ()
 toSimpleArray ()
 toSimpleJSON ()

Public Attributes

 $objects

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
Collection::toArray (  ) 
Returns:
mixed Returns an array version of this Collection
Collection::toJSON (  ) 
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:

Generated on 9 Jan 2025 for The Forum by  doxygen 1.6.1