public function GroupsActivity::addViewQuery in Heartbeat 6.4
Function to add a part of a sql to a query built by views UI
Parameters
object $view The view handler object by reference to add our part to the query:
Overrides HeartbeatAccess::addViewQuery
File
- modules/
og_activity/ groupsactivity.inc, line 97
Class
- GroupsActivity
- Class GroupsActivity Concrete class to prepare messages for activity in groups
Code
public function addViewQuery(&$view) {
$view->query
->set_where_group('and', 'andgroup');
$view->query
->add_where('andgroup', "{$view->table_alias}.in_group = %d ", 1);
}