lithium\data\Collection::each()

public method

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) {
		$this->offsetGet(null);
		return parent::each($filter);
	}