Property | Type | Description | |
---|---|---|---|
$objects | array | The array containing the Turba_Objects represented in this list. |
Property | Type | Description | |
---|---|---|---|
$_usortCriteria | string | The field to compare objects by. |
Method | Description | |
---|---|---|
__construct ( array $ids = [] ) | Constructor. | |
count ( ) | * Countable methods. | |
filter ( string $field, array $values ) : Turba_List | Returns a filtered list of objects. | |
insert ( Turba_Object $object ) | Inserts a new object into the list. | |
next ( ) : Turba_Object | Returns the next Turba_Object in the list. Use this to hide internal implementation details from client objects. | |
reset ( ) : Turba_Object | Resets our internal pointer to the beginning of the list. Use this to hide the internal storage (array, list, etc.) from client objects. | |
sort ( array $order = null ) | Filters/Sorts the list based on the specified sort routine. |
Method | Description | |
---|---|---|
_cmp ( Turba_Object $a, Turba_Object $b ) : integer | Usort helper function. |
public insert ( Turba_Object $object ) | ||
$object | Turba_Object | The object to insert. |
public next ( ) : Turba_Object | ||
return | Turba_Object | The next object in the list. |
public reset ( ) : Turba_Object | ||
return | Turba_Object | The next object in the list. |
protected string $_usortCriteria | ||
return | string |
public array $objects | ||
return | array |