function views_many_to_one_helper::get_field
Same name in other branches
- 7.x-3.x includes/handlers.inc \views_many_to_one_helper::get_field()
Sometimes the handler might want us to use some kind of formula, so give it that option. If it wants us to do this, it must set $helper->formula = TRUE and implement handler->get_formula();
1 call to views_many_to_one_helper::get_field()
- views_many_to_one_helper::add_filter in includes/
handlers.inc
File
-
includes/
handlers.inc, line 781
Class
- views_many_to_one_helper
- This many to one helper object is used on both arguments and filters.
Code
function get_field() {
if (!empty($this->formula)) {
return $this->handler
->get_formula();
}
else {
return $this->handler->table_alias . '.' . $this->handler->real_field;
}
}