1 views_handler_relationship_groupwise_max.inc | views_handler_relationship_groupwise_max::get_temporary_view() |
Helper function to create a pseudo view.
We use this to obtain our subquery SQL.
File
- core/
modules/ views/ handlers/ views_handler_relationship_groupwise_max.inc, line 154 - Relationship for groupwise maximum handler.
Class
- views_handler_relationship_groupwise_max
- Relationship handler that allows a groupwise maximum of the linked in table. For a definition, see: http://dev.mysql.com/doc/refman/5.0/en/example-maximum-column-group-row.... In lay terms, instead of joining to get all matching records in the…
Code
function get_temporary_view() {
$view = new view();
$view->vid = 'new'; // @todo: what's this?
$view->base_table = $this->definition['base'];
$view->add_display('default');
return $view;
}