function views_plugin_query_default::get_join_data in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 7.3 plugins/views_plugin_query_default.inc \views_plugin_query_default::get_join_data()
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.
3 calls to views_plugin_query_default::get_join_data()
- views_plugin_query_default::ensure_path in plugins/
views_plugin_query_default.inc - Make sure that the specified table can be properly linked to the primary table in the JOINs. This function uses recursion. If the tables needed to complete the path back to the primary table are not in the query they will be added, but additional…
- views_plugin_query_default::ensure_table in plugins/
views_plugin_query_default.inc - Ensure a table exists in the queue; if it already exists it won't do anything, but if it doesn't it will add the table queue. It will ensure a path leads back to the relationship table.
- views_plugin_query_default::queue_table in plugins/
views_plugin_query_default.inc - Add a table to the query without ensuring the path.
File
- plugins/
views_plugin_query_default.inc, line 633 - views_plugin_query_default.inc Defines the default query object which builds SQL to execute using the Drupal database API.
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);
}