PHP Class phpDataMapper_Collection, phpDataMapper

Inheritance: implements Iterator, implements Countable, implements ArrayAccess
Datei anzeigen Open project: vlucas/phpDataMapper

Protected Properties

Property Type Description
$results
$resultsIdentities

Public Methods

Method Description
__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 ( )

Method Details

__construct() public method

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() public method

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

current() public method

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

first() public method

Returns first result in set
public first ( )

key() public method

public key ( )

next() public method

public next ( )

offsetExists() public method

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

offsetGet() public method

public offsetGet ( $key )

offsetSet() public method

public offsetSet ( $key, $value )

offsetUnset() public method

public offsetUnset ( $key )

rewind() public method

public rewind ( )

toArray() public method

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

valid() public method

public valid ( )

Property Details

$results protected_oe property

protected $results

$resultsIdentities protected_oe property

protected $resultsIdentities