Projet

Général

Profil

Paste
Télécharger (726 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / views / modules / tracker / views_handler_argument_tracker_comment_user_uid.inc @ 5d12d676

1
<?php
2

    
3
/**
4
 * @file
5
 * Definition of views_handler_argument_tracker_comment_user_uid.
6
 */
7

    
8
/**
9
 * UID argument to check for nodes that user posted or commented on.
10
 *
11
 * @ingroup views_argument_handlers
12
 */
13
class views_handler_argument_tracker_comment_user_uid extends views_handler_argument_comment_user_uid {
14

    
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function query($group_by = FALSE) {
19
    // Because this handler thinks it's an argument for a field on the {node}
20
    // table, we need to make sure {tracker_user} is JOINed and use its alias
21
    // for the WHERE clause.
22
    $tracker_user_alias = $this->query->ensure_table('tracker_user');
23
    $this->query->add_where(0, "$tracker_user_alias.uid", $this->argument);
24
  }
25

    
26
}