You are here

function notifications_views_handler_argument_autocomplete::query in Notifications 7

Same name and namespace in other branches
  1. 6.2 notifications_views/notifications_views_handler_argument_autocomplete.inc \notifications_views_handler_argument_autocomplete::query()

Set up the query for this argument.

The argument sent may be found at $this->argument.

Parameters

bool $group_by: Whether the query uses a group-by.

Overrides views_handler_argument::query

File

notifications_views/includes/notifications_views_handler_argument_autocomplete.inc, line 6

Class

notifications_views_handler_argument_autocomplete
Argument handler to accept the first part of a string and complete the rest. See views_handler_filter_string.

Code

function query() {
  $this
    ->ensure_my_table();
  $this->query
    ->add_where(0, "{$this->table_alias}.{$this->real_field} LIKE '%s%%'", $this->argument);
}