You are here

class print_join_page_counter in Printer, email and PDF versions 7.2

Same name and namespace in other branches
  1. 6 print_join_page_counter.inc \print_join_page_counter
  2. 7 print_join_page_counter.inc \print_join_page_counter

Class print_join_page_counter.

Hierarchy

Expanded class hierarchy of print_join_page_counter

4 string references to 'print_join_page_counter'
print_epub_views_data in print_epub/print_epub.views.inc
Implements hook_views_data().
print_mail_views_data in print_mail/print_mail.views.inc
Implements hook_views_data().
print_pdf_views_data in print_pdf/print_pdf.views.inc
Implements hook_views_data().
print_views_data in ./print.views.inc
Implements hook_views_data().

File

./print_join_page_counter.inc, line 13
Custom Views integration join for the page counters.

View source
class print_join_page_counter extends views_join {

  /**
   * @inheritdoc
   */
  public function construct($table = NULL, $left_table = NULL, $left_field = NULL, $field = NULL, $extra = array(), $type = 'LEFT') {

    // PHP 4 doesn't call constructors of the base class automatically from a
    // constructor of a derived class. It is your responsibility to propagate
    // the call to constructors upstream where appropriate.
    parent::construct($table, $left_table, $left_field, $field, $extra, $type);
  }

  /**
   * @inheritdoc
   */
  public 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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
print_join_page_counter::build_join public function @inheritdoc Overrides views_join::build_join
print_join_page_counter::construct public function @inheritdoc Overrides views_join::construct
views_join::$definition public property
views_join::$extra public property
views_join::$field public property
views_join::$left_field public property
views_join::$left_table public property
views_join::$table public property
views_join::$type public property