function tripal_views_handler_filter_sequence::query
2.x tripal_views_handler_filter_sequence.inc | tripal_views_handler_filter_sequence::query() |
3.x tripal_views_handler_filter_sequence.inc | tripal_views_handler_filter_sequence::query() |
1.x tripal_views_handler_filter_sequence.inc | tripal_views_handler_filter_sequence::query() |
Add this filter to the query.
Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.
Overrides views_handler_filter::query
File
- tripal_views/
views/ handlers/ tripal_views_handler_filter_sequence.inc, line 59 - Contains tripal_views_handler_filter_sequence Filter handler
Class
- tripal_views_handler_filter_sequence
- This Handler provides a file upload field by extending the views_handler_filter object.
Code
function query() {
$this->ensure_my_table();
$upstream = $this->value[0]['upstream'];
$downstream = $this->value[0]['downstream'];
// we need the values provided by the user so that the field
// handler can generate the results properly. Saving these as session
// variables may not be the best way but it works.
if ($upstream) {
$_SESSION['upstream'] = $upstream;
}
if ($downstream) {
$_SESSION['downstream'] = $downstream;
}
}