class community_tags_views_handler_field_first_tagged in Community Tags 6.2
Hierarchy
- class \community_tags_views_handler_field_first_tagged extends \views_handler_field_date
Expanded class hierarchy of community_tags_views_handler_field_first_tagged
1 string reference to 'community_tags_views_handler_field_first_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_first_tagged.inc, line 3
View source
class community_tags_views_handler_field_first_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 = 'MIN(' . $this->table_alias . '.date)';
$this->field_alias = $this->query
->add_field(NULL, $aggregate_field, $this->field, array(
'aggregate' => TRUE,
));
$this->query->distinct = TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
community_tags_views_handler_field_first_tagged:: |
function | Called to add the field to a query. |