Tripal v1.0 (6.x-1.0)
|
Go to the source code of this file.
Classes | |
class | views_handler_join_chado_aggregator |
Handler to allow joins between records via a linking table
Example Usage: To join the analysisprop table to the analysis table, Use the following code in the analysisprop hook_views_data:
$data['analysisprop']['table']['join']['analysis'] = array( 'left_field' => 'analysis_id', 'field' => 'analysis_id', 'handler' => 'views_handler_join_chado_aggregator', 'pre-aggregated' => TRUE | FALSE //whether the table is already aggregated (contains arrays) 'table_aggregated' => CURRENT | LEFT //the table which has many records for each record in the other );
Definition in file views_handler_join_chado_aggregator.inc.