This many to one helper object is used on both arguments and filters.

@todo This requires extensive documentation on how this class is to be used. For now, look at the arguments and filters that use it. Lots of stuff is just pass-through but there are definitely some interesting areas where they interact.

Any handler that uses this can have the following possibly additional definition terms:

  • numeric: If true, treat this field as numeric, using %d instead of %s in queries.


Expanded class hierarchy of views_many_to_one_helper


core/modules/views/includes/, line 642
Defines the various handler objects to help build and display views.


Contains filters are case sensitive
Namesort descending Modifiers Type Description
views_many_to_one_helper::$placeholders public property Contains possible existing placeholders used by the query.
views_many_to_one_helper::add_filter function
views_many_to_one_helper::add_table function Add a table to the query.
views_many_to_one_helper::ensure_my_table function Override ensure_my_table so we can control how this joins in. The operator actually has influence over joining.
views_many_to_one_helper::get_field function 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();
views_many_to_one_helper::get_join function
views_many_to_one_helper::options_form function
views_many_to_one_helper::option_definition static function
views_many_to_one_helper::placeholder function Provides a unique placeholders for handlers.
views_many_to_one_helper::summary_join function Provide the proper join for summary queries. This is important in part because it will cooperate with other arguments if possible.
views_many_to_one_helper::__construct function