1 view.inc view::get_base_tables()

Create a list of base tables eligible for this view. Used primarily for the UI. Display must be already initialized.

File

core/modules/views/includes/view.inc, line 745
Provides the view object type and associated methods.

Class

view
An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.

Code

function get_base_tables() {
  $base_tables = array(
    $this->base_table => TRUE,
    '#global' => TRUE,
  );

  foreach ($this->display_handler->get_handlers('relationship') as $handler) {
    $base_tables[$handler->definition['base']] = TRUE;
  }
  return $base_tables;
}