PHP Class phpDataMapper_Relation_HasMany, phpDataMapper

Author: Vance Lucas ([email protected])
Inheritance: extends phpDataMapper_Relation, implements Countable, implements IteratorAggregate, implements ArrayAccess
Afficher le fichier Open project: vlucas/phpDataMapper

Méthodes publiques

Méthode 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 méthode

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

all() public méthode

Load records with current relation data
public all ( ) : phpDataMapper_Query
Résultat phpDataMapper_Query

count() public méthode

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

first() public méthode

Find first record in the set
public first ( ) : phpDataMapper_Entity
Résultat phpDataMapper_Entity

getIterator() public méthode

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

offsetExists() public méthode

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

offsetGet() public méthode

public offsetGet ( $key )

offsetSet() public méthode

public offsetSet ( $key, $value )

offsetUnset() public méthode

public offsetUnset ( $key )