PHP Class phpDataMapper_Relation_HasMany, phpDataMapper

Author: Vance Lucas ([email protected])
Inheritance: extends phpDataMapper_Relation, implements Countable, implements IteratorAggregate, implements ArrayAccess
显示文件 Open project: vlucas/phpDataMapper

Public Methods

Method Description
__call ( $func, $args ) Passthrough for method chaining on the Query object
all ( ) : phpDataMapper_Query Load records with current relation data
count ( ) : integer SPL Countable function Called automatically when attribute is used in a 'count()' function call
first ( ) : phpDataMapper_Entity Find first record in the set
getIterator ( ) : phpDataMapper_Model_ResultSet SPL IteratorAggregate function Called automatically when attribute is used in a 'foreach' loop
offsetExists ( $key ) ----------------------------------------------
offsetGet ( $key )
offsetSet ( $key, $value )
offsetUnset ( $key )

Method Details

__call() public method

Passthrough for method chaining on the Query object
public __call ( $func, $args )

all() public method

Load records with current relation data
public all ( ) : phpDataMapper_Query
return phpDataMapper_Query

count() public method

SPL Countable function Called automatically when attribute is used in a 'count()' function call
public count ( ) : integer
return integer

first() public method

Find first record in the set
public first ( ) : phpDataMapper_Entity
return phpDataMapper_Entity

getIterator() public method

SPL IteratorAggregate function Called automatically when attribute is used in a 'foreach' loop
public getIterator ( ) : phpDataMapper_Model_ResultSet
return phpDataMapper_Model_ResultSet

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 )