class flag_lists_handler_argument_fid in Flag Lists 6
Same name and namespace in other branches
- 7.3 includes/flag_lists_handler_argument_fid.inc \flag_lists_handler_argument_fid
- 7 includes/flag_lists_handler_argument_fid.inc \flag_lists_handler_argument_fid
Argument handler to accept a list id.
Hierarchy
- class \flag_lists_handler_argument_fid extends \views_handler_argument_numeric
Expanded class hierarchy of flag_lists_handler_argument_fid
1 string reference to 'flag_lists_handler_argument_fid'
- flag_lists_views_data in includes/
flag_lists.views.inc - Implementation of hook_views_data().
File
- includes/
flag_lists_handler_argument_fid.inc, line 10 - Provide list fid argument handler.
View source
class flag_lists_handler_argument_fid extends views_handler_argument_numeric {
/**
* Override the behavior of title(). Get the title of the list.
*/
function title_query() {
$titles = array();
$placeholders = implode(', ', array_fill(0, sizeof($this->value), '%d'));
$result = db_query("SELECT fl.title FROM {flag_lists_flags} fl WHERE fl.fid IN ({$placeholders})", $this->value);
while ($term = db_fetch_object($result)) {
$titles[] = check_plain($term->title);
}
return $titles;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
flag_lists_handler_argument_fid:: |
function | Override the behavior of title(). Get the title of the list. |