Stripping CVS keywords
[project/views.git] / modules / comment / views_handler_filter_ncs_last_updated.inc
1 <?php
2 /**
3 * Filter handler for the newer of last comment / node updated
4 */
5 class views_handler_filter_ncs_last_updated extends views_handler_filter_date {
6 function query() {
7 $this->ensure_my_table();
8 $this->node_table = $this->query->ensure_table('node', $this->relationship);
9
10 $field = "GREATEST(" . $this->node_table . ".changed, " . $this->table_alias . ".last_comment_timestamp)";
11
12 $info = $this->operators();
13 if (!empty($info[$this->operator]['method'])) {
14 $this->{$info[$this->operator]['method']}($field);
15 }
16 }
17 }