PHP 클래스 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)
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends Prado\TComponent, implements IteratorAggregate, implements Countable
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__construct ( $count ) Constructor.
count ( ) : integer Returns the number of (virtual) items in the data source.
getCount ( ) : integer
getIterator ( ) : Iterator

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $count )

count() 공개 메소드

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

getCount() 공개 메소드

public getCount ( ) : integer
리턴 integer number of (virtual) items in the data source.

getIterator() 공개 메소드

public getIterator ( ) : Iterator
리턴 Iterator iterator