PHP Class phpDataMapper_Relation, phpDataMapper

Author: Vance Lucas ([email protected])
显示文件 Open project: vlucas/phpDataMapper

Protected Properties

Property Type Description
$_collection
$_conditions
$_foreignKeys
$_mapper
$_relationData
$_relationRowCount

Public Methods

Method 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

Protected Methods

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

Method Details

__construct() public method

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 method

Called automatically when attribute is printed
public __toString ( )

all() abstract public method

Select all related records
abstract public all ( )

conditions() public method

Get foreign key relations
public conditions ( ) : array
return array

execute() protected method

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

mapper() public method

Get related DataMapper object
public mapper ( )

relationOrder() public method

Get sorting for relations
public relationOrder ( ) : array
return 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