PHP 클래스 phpDataMapper_Collection, phpDataMapper

상속: implements Iterator, implements Countable, implements ArrayAccess
파일 보기 프로젝트 열기: vlucas/phpDataMapper

보호된 프로퍼티들

프로퍼티 타입 설명
$results
$resultsIdentities

공개 메소드들

메소드 설명
__construct ( array $results, array $resultsIdentities = [] ) Constructor function
count ( ) Get a count of all the records in the result set
current ( ) ----------------------------------------------
first ( ) Returns first result in set
key ( )
next ( )
offsetExists ( $key ) ----------------------------------------------
offsetGet ( $key )
offsetSet ( $key, $value )
offsetUnset ( $key )
rewind ( )
toArray ( $keyColumn = null, $valueColumn = null ) ResultSet to array using given key/value columns
valid ( )

메소드 상세

__construct() 공개 메소드

Constructor function
public __construct ( array $results, array $resultsIdentities = [] )
$results array Array of pre-loaded DataMapper_Result objects
$resultsIdentities array Array of key values for given result set primary key

count() 공개 메소드

Get a count of all the records in the result set
public count ( )

current() 공개 메소드

----------------------------------------------
public current ( )

first() 공개 메소드

Returns first result in set
public first ( )

key() 공개 메소드

public key ( )

next() 공개 메소드

public next ( )

offsetExists() 공개 메소드

----------------------------------------------
public offsetExists ( $key )

offsetGet() 공개 메소드

public offsetGet ( $key )

offsetSet() 공개 메소드

public offsetSet ( $key, $value )

offsetUnset() 공개 메소드

public offsetUnset ( $key )

rewind() 공개 메소드

public rewind ( )

toArray() 공개 메소드

ResultSet to array using given key/value columns
public toArray ( $keyColumn = null, $valueColumn = null )

valid() 공개 메소드

public valid ( )

프로퍼티 상세

$results 보호되어 있는 프로퍼티

protected $results

$resultsIdentities 보호되어 있는 프로퍼티

protected $resultsIdentities