function Ip2LongArgument::query in IP address manager 7.2
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
- src/
Plugin/ views/ argument/ Ip2LongArgument.php, line 12 - Contains the ip_views_handler_argument_ip2long class.
Class
- Ip2LongArgument
- A handler to provide proper displays IP Long values
Code
function query($group_by = FALSE) {
$this
->ensure_my_table();
$this->query
->add_where($this->options['group'], "{$this->table_alias}.{$this->real_field}", ip2long($this->argument));
}