1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Definition of views_handler_filter_tracker_comment_user_uid.
|
6
|
*/
|
7
|
|
8
|
/**
|
9
|
* UID filter to check for nodes that user posted or commented on.
|
10
|
*/
|
11
|
class views_handler_filter_tracker_comment_user_uid extends views_handler_filter_comment_user_uid {
|
12
|
|
13
|
/**
|
14
|
* {@inheritdoc}
|
15
|
*/
|
16
|
public function query() {
|
17
|
// Because this handler thinks it's an argument for a field on the {node}
|
18
|
// table, we need to make sure {tracker_user} is JOINed and use its alias
|
19
|
// for the WHERE clause.
|
20
|
$tracker_user_alias = $this->query->ensure_table('tracker_user');
|
21
|
$this->query->add_where(0, "$tracker_user_alias.uid", $this->value);
|
22
|
}
|
23
|
|
24
|
}
|