public function link_views_handler_argument_target::query in Link 7
Same name and namespace in other branches
- 6.2 views/link_views_handler_argument_target.inc \link_views_handler_argument_target::query()
- 6 views/link_views_handler_argument_target.inc \link_views_handler_argument_target::query()
Set up the query for this argument.
The argument sent may be found at $this->argument.
Overrides views_handler_argument::query
File
- views/
link_views_handler_argument_target.inc, line 149 - Argument handler to filter results by target.
Class
- link_views_handler_argument_target
- Argument handler to filter results by target.
Code
public function query($group_by = FALSE) {
$this
->ensure_my_table();
// Because attributes are stored serialized, our only option is to also
// serialize the data we're searching for and use LIKE to find similar data.
$this->query
->add_where(0, $this->table_alias . ' . ' . $this->real_field . " LIKE '%%%s%'", serialize(array(
'target' => $this->argument,
)));
}