Class \Prado\Collections\TDummyDataSource
TDummyDataSource class
TDummyDataSource implements a dummy data collection with a specified number of dummy data items. The number of virtual items can be set via \Prado\Collections\setCount property. You can traverse it using foreach PHP statement like the following,
foreach($dummyDataSource as $dataItem)
Class hierarchy
- \Prado\Collections\TDummyDataSource implements IteratorAggregate, Countable
- \Prado\TComponent
Since: 3.0
public
|
|
public
|
count() : int
Returns the number of (virtual) items in the data source.
This method is required by \Countable interface. |
public
|
|
public
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |