Extends
lithium\util\Collection
Applies a callback to all data in the collection.
Overridden to load any data that has not yet been loaded.
Parameters
- callback $filter The filter to apply.
Returns
object This collection instance.Source
public function each($filter) {
if (!$this->closed()) {
while ($this->next()) {}
}
return parent::each($filter);
}