function print_join_page_counter::build_join in Printer, email and PDF versions 7
Same name and namespace in other branches
- 7.2 print_join_page_counter.inc \print_join_page_counter::build_join()
Build the SQL for the join this object represents.
When possible, try to use table alias instead of table names.
Parameters
SelectQueryInterface $select_query: An Implements SelectQueryInterface.
string $table: The base table to join.
views_plugin_query $view_query: The source query, Implements views_plugin_query.
Overrides views_join::build_join
File
- ./
print_join_page_counter.inc, line 18 - Custom Views integration join for the page counters
Class
- print_join_page_counter
- @file Custom Views integration join for the page counters
Code
function build_join($select_query, $table, $view_query) {
if ($this->left_table) {
$this->left_field = "CONCAT('node/', {$this->left_table}.{$this->left_field})";
$this->left_table = NULL;
}
parent::build_join($select_query, $table, $view_query);
}