[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/views/handlers/ -> views_handler_relationship.inc (summary)

(no description)

File Size: 152 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

views_handler_relationship:: (5 methods):
  init()
  label()
  option_definition()
  options_form()
  query()

views_handler_relationship_broken:: (5 methods):
  ui_name()
  ensure_my_table()
  query()
  options_form()
  broken()


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.


label()   X-Ref
Get this field's label.


option_definition()   X-Ref
No description

options_form(&$form, &$form_state)   X-Ref
Default options form that provides the label widget that all fields
should have.


query()   X-Ref
Called to implement a relationship in a query.


Class: views_handler_relationship_broken  - X-Ref

A special handler to take the place of missing or broken handlers.

ui_name($short = FALSE)   X-Ref
No description

ensure_my_table()   X-Ref
No description

query()   X-Ref
No description

options_form(&$form, &$form_state)   X-Ref
No description

broken()   X-Ref
Determine if the handler is considered 'broken'




Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7