PHP Class Prado\Collections\TDummyDataSource

TDummyDataSource implements a dummy data collection with a specified number of dummy data items. The number of virtual items can be set via {@link setCount Count} property. You can traverse it using foreach PHP statement like the following, foreach($dummyDataSource as $dataItem)
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\TComponent, implements IteratorAggregate, implements Countable
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
__construct ( $count ) Constructor.
count ( ) : integer Returns the number of (virtual) items in the data source.
getCount ( ) : integer
getIterator ( ) : Iterator

Method Details

__construct() public méthode

Constructor.
public __construct ( $count )

count() public méthode

This method is required by \Countable interface.
public count ( ) : integer
Résultat integer number of (virtual) items in the data source.

getCount() public méthode

public getCount ( ) : integer
Résultat integer number of (virtual) items in the data source.

getIterator() public méthode

public getIterator ( ) : Iterator
Résultat Iterator iterator