function views_handler::ensure_my_table

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

Ensure the main table for this handler is in the query. This is used a lot.

70 calls to views_handler::ensure_my_table()
accessibility_handler_link_field::query in sites/all/modules/ulmus/accessibility/views/accessibility_handler_link_field.inc
accessibility_handler_status::query in sites/all/modules/ulmus/accessibility/views/accessibility_handler_status.inc
data_node_views_handler_field_add_remove::query in sites/all/modules/local_contrib/data/data_node/views/data_node_views_handler_field_add_remove.inc
Called to add the field to a query.
data_taxonomy_views_handler_field_form::query in sites/all/modules/local_contrib/data/data_taxonomy/views/data_taxonomy_views_handler_field_form.inc
Add field on which we join.
date_views_argument_handler_simple::query in sites/all/modules/ulmus/date/date_views/includes/date_views_argument_handler_simple.inc
Inject a test for valid date range before the regular query. Override the parent query to be able to control the $group.

... See full list

File

sites/all/modules/ulmus/views/includes/handlers.inc, line 641
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 ensure_my_table() {
  if (!isset($this->table_alias)) {
    if (!method_exists($this->query, 'ensure_table')) {
      vpr(t('Ensure my table called but query has no ensure_table method.'));
      return;
    }
    $this->table_alias = $this->query->ensure_table($this->table, $this->relationship);
  }
  return $this->table_alias;
}
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.