Class: views_handler_relationship - X-Ref
Simple relationship handler that allows a new version of the primary table
to be linked in.
The base relationship handler can only handle a single join. Some relationships
are more complex and might require chains of joins; for those, you must
utilize a custom relationship handler.
Definition items:
- base: The new base table this relationship will be adding. This does not
have to be a declared base table, but if there are no tables that
utilize this base table, it won't be very effective.
- base field: The field to use in the relationship; if left out this will be
assumed to be the primary field.
- relationship table: The actual table this relationship operates against.
This is analogous to using a 'table' override.
- relationship field: The actual field this relationship operates against.
This is analogous to using a 'real field' override.
- label: The default label to provide for this relationship, which is
shown in parentheses next to any field/sort/filter/argument that uses
the relationship.
|
init(&$view, $options)
X-Ref
|
Init handler to let relationships live on tables other than
the table they operate on.
|
|
query()
X-Ref
|
Called to implement a relationship in a query.
|