function views_handler::get_join

cis7 handlers.inc views_handler::get_join()
cle7 handlers.inc views_handler::get_join()
elmsmedia7 handlers.inc views_handler::get_join()
icor7 handlers.inc views_handler::get_join()
meedjum_blog7 handlers.inc views_handler::get_join()
mooc7 handlers.inc views_handler::get_join()

Get the join object that should be used for this handler.

This method isn't used a great deal, but it's very handy for easily getting the join if it is necessary to make some changes to it, such as adding an 'extra'.

2 calls to views_handler::get_join()
field_collection_handler_relationship::ensure_my_table in sites/all/modules/ulmus/field_collection/views/field_collection_handler_relationship.inc
views_handler_argument_many_to_one::summary_query in sites/all/modules/ulmus/views/handlers/views_handler_argument_many_to_one.inc
Build the info for the summary query.

File

sites/all/modules/ulmus/views/includes/handlers.inc, line 703
Defines the various handler objects to help build and display views.

Class

views_handler
Base handler, from which all the other handlers are derived. It creates a common interface to create consistency amongst handlers and data.

Code

function get_join() {
  // get the join from this table that links back to the base table.
  // Determine the primary table to seek
  if (empty($this->query->relationships[$this->relationship])) {
    $base_table = $this->query->base_table;
  }
  else {
    $base_table = $this->query->relationships[$this->relationship]['base'];
  }

  $join = views_get_table_join($this->table, $base_table);
  if ($join) {
    return clone $join;
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.