function views_many_to_one_helper::get_field
3.x handlers.inc | views_many_to_one_helper::get_field() |
2.x 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 535 - handlers.inc Defines the various handler objects to help build and display views.
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;
}
}