function views_handler_argument::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.

12 methods override views_handler_argument::query()
views_handler_argument_broken::query in handlers/views_handler_argument.inc
Set up the query for this argument.
views_handler_argument_comment_user_uid::query in modules/comment/views_handler_argument_comment_user_uid.inc
Set up the query for this argument.
views_handler_argument_formula::query in handlers/views_handler_argument_formula.inc
Build the query based upon the formula.
views_handler_argument_group_by_numeric::query in handlers/views_handler_argument_group_by_numeric.inc
Set up the query for this argument.
views_handler_argument_many_to_one::query in handlers/views_handler_argument_many_to_one.inc
Set up the query for this argument.

... See full list

File

handlers/views_handler_argument.inc, line 1020

Class

views_handler_argument
Base class for arguments.

Code

public function query($group_by = FALSE) {
    $this->ensure_my_table();
    $this->query
        ->add_where(0, "{$this->table_alias}.{$this->real_field}", $this->argument);
}