PHP Class phpDataMapper_Relation, phpDataMapper

Author: Vance Lucas ([email protected])
Afficher le fichier Open project: vlucas/phpDataMapper

Protected Properties

Свойство Type Description
$_collection
$_conditions
$_foreignKeys
$_mapper
$_relationData
$_relationRowCount

Méthodes publiques

Méthode Description
__construct ( phpDataMapper_Base $mapper, array $conditions, array $relationData ) Constructor function
__toString ( ) Called automatically when attribute is printed
all ( ) Select all related records
conditions ( ) : array Get foreign key relations
mapper ( ) Get related DataMapper object
relationOrder ( ) : array Get sorting for relations

Méthodes protégées

Méthode Description
execute ( ) Internal function, caches fetched related rows from all() function call

Method Details

__construct() public méthode

Constructor function
public __construct ( phpDataMapper_Base $mapper, array $conditions, array $relationData )
$mapper phpDataMapper_Base DataMapper object to query on for relationship data
$conditions array
$relationData array

__toString() public méthode

Called automatically when attribute is printed
public __toString ( )

all() abstract public méthode

Select all related records
abstract public all ( )

conditions() public méthode

Get foreign key relations
public conditions ( ) : array
Résultat array

execute() protected méthode

Internal function, caches fetched related rows from all() function call
protected execute ( )

mapper() public méthode

Get related DataMapper object
public mapper ( )

relationOrder() public méthode

Get sorting for relations
public relationOrder ( ) : array
Résultat array

Property Details

$_collection protected_oe property

protected $_collection

$_conditions protected_oe property

protected $_conditions

$_foreignKeys protected_oe property

protected $_foreignKeys

$_mapper protected_oe property

protected $_mapper

$_relationData protected_oe property

protected $_relationData

$_relationRowCount protected_oe property

protected $_relationRowCount