function 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

includes/view.inc, line 766

Class

view
An object to contain all of the data to generate a view.

Code

public 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;
}