You are here

class community_tags_views_handler_field_last_tagged in Community Tags 6.2

Hierarchy

Expanded class hierarchy of community_tags_views_handler_field_last_tagged

1 string reference to 'community_tags_views_handler_field_last_tagged'
community_tags_views_data in community_tags_views/community_tags_views.views.inc

File

community_tags_views/views/handlers/community_tags_views_handler_field_last_tagged.inc, line 3

View source
class community_tags_views_handler_field_last_tagged extends views_handler_field_date {

  /**
   * Called to add the field to a query.
   */
  function query() {
    $this
      ->ensure_my_table();

    // Add the field.
    $aggregate_field = 'MAX(' . $this->table_alias . '.date)';
    $this->field_alias = $this->query
      ->add_field(NULL, $aggregate_field, $this->field, array(
      'aggregate' => TRUE,
    ));
    $this->query->distinct = TRUE;
  }

}

Members