PHP Класс phpDataMapper_Relation_HasMany, phpDataMapper

Автор: Vance Lucas ([email protected])
Наследование: extends phpDataMapper_Relation, implements Countable, implements IteratorAggregate, implements ArrayAccess
Показать файл Открыть проект

Открытые методы

Метод Описание
__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 )

Описание методов

__call() публичный Метод

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

all() публичный Метод

Load records with current relation data
public all ( ) : phpDataMapper_Query
Результат phpDataMapper_Query

count() публичный Метод

SPL Countable function Called automatically when attribute is used in a 'count()' function call
public count ( ) : integer
Результат integer

first() публичный Метод

Find first record in the set
public first ( ) : phpDataMapper_Entity
Результат phpDataMapper_Entity

getIterator() публичный Метод

SPL IteratorAggregate function Called automatically when attribute is used in a 'foreach' loop
public getIterator ( ) : phpDataMapper_Model_ResultSet
Результат phpDataMapper_Model_ResultSet

offsetExists() публичный Метод

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

offsetGet() публичный Метод

public offsetGet ( $key )

offsetSet() публичный Метод

public offsetSet ( $key, $value )

offsetUnset() публичный Метод

public offsetUnset ( $key )