1 views_plugin_query_default.inc | views_plugin_query_default::get_join_data($table, $base_table) |
Retrieve join data from the larger join data cache.
Parameters
$table: The table to get the join information for.
$base_table: The path we're following to get this join.
Return value
views_join: A views_join object or child object, if one exists.
File
- core/
modules/ views/ plugins/ views_plugin_query_default.inc, line 724 - Defines the default query object.
Class
- views_plugin_query_default
- Object used to create a SELECT query.
Code
function get_join_data($table, $base_table) {
// Check to see if we're linking to a known alias. If so, get the real
// table's data instead.
if (!empty($this->table_queue[$table])) {
$table = $this->table_queue[$table]['table'];
}
return views_get_table_join($table, $base_table);
}