![]() |
Xataface 2.0
Xataface Application Framework
|
Public Member Functions | |
Dataface_Relationship_ForeignKey (&$relationship, $labels, $label) | |
getFields () | |
getFurthestField () | |
Data Fields | |
$fields = array() | |
$relationship = null |
A marker class to mark values in Dataface_Relationship::getForeignKeyValues() that haven't been filled in. We use a class so that we don't get it confused with another valid scalar value.
Definition at line 1583 of file Relationship.php.
Dataface_Relationship_ForeignKey | ( | &$ | relationship, |
$ | labels, | ||
$ | label | ||
) |
Constructor.
array | $labels | The map of field names to labels in the relationship. |
string | $label | The label that this foreign key refers to. |
Definition at line 1592 of file Relationship.php.
getFields | ( | ) |
Returns array of field names associated with this foreign key. The field names are absolute (i.e. in the form "TableName.FieldName"
Definition at line 1604 of file Relationship.php.
getFurthestField | ( | ) |
Returns the name of the field in the furthest table from the source table of the relationship. This is a valuable field to know since usually it is the furthest table that is the domain table of the relationship, and hence since a foreign key specifies 2 fields we usually want to know which field is *more important* on forms - as we don't want to give the user two fields for the same value.
Definition at line 1619 of file Relationship.php.
$fields = array() |
Definition at line 1584 of file Relationship.php.
$relationship = null |
Definition at line 1585 of file Relationship.php.