You are here

function image_gallery_join_subquery::construct in Image 7

Same name and namespace in other branches
  1. 6 contrib/image_gallery/views/image_gallery.views.inc \image_gallery_join_subquery::construct()

Construct the views_join object.

Overrides views_join::construct

File

contrib/image_gallery/views/image_gallery.views.inc, line 246
Image Gallery views integration.

Class

image_gallery_join_subquery
Join handler for relationships that join with a subquery as the left field. To use this join, set 'left query' in the definition as a subquery to go on the left side of the JOIN condition, ie: LEFT JOIN node node_term_data ON ([YOUR SUBQUERY…

Code

function construct($table = NULL, $left_table = NULL, $left_field = NULL, $field = NULL, $extra = array(), $type = 'LEFT') {
  parent::construct($table, $left_table, $left_field, $field, $extra, $type);
  $this->left_query = $this->definition['left query'];
}