public function views_handler::ensure_my_table in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 includes/handlers.inc \views_handler::ensure_my_table()
- 6.2 includes/handlers.inc \views_handler::ensure_my_table()
Ensure the main table for this handler is in the query. This is used a lot.
64 calls to views_handler::ensure_my_table()
- views_handler_argument::query in handlers/
views_handler_argument.inc - Set up the query for this argument.
- views_handler_argument::summary_query in handlers/
views_handler_argument.inc - Build the info for the summary query.
- views_handler_argument_comment_user_uid::query in modules/
comment/ views_handler_argument_comment_user_uid.inc - Set up the query for this argument.
- views_handler_argument_formula::query in handlers/
views_handler_argument_formula.inc - Build the query based upon the formula
- views_handler_argument_formula::summary_query in handlers/
views_handler_argument_formula.inc - Build the summary query based on a formula
8 methods override views_handler::ensure_my_table()
- views_handler_area_broken::ensure_my_table in handlers/
views_handler_area.inc - Ensure the main table for this handler is in the query. This is used a lot.
- views_handler_argument_broken::ensure_my_table in handlers/
views_handler_argument.inc - Ensure the main table for this handler is in the query. This is used a lot.
- views_handler_argument_many_to_one::ensure_my_table in handlers/
views_handler_argument_many_to_one.inc - Override ensure_my_table so we can control how this joins in. The operator actually has influence over joining.
- views_handler_field_broken::ensure_my_table in handlers/
views_handler_field.inc - Ensure the main table for this handler is in the query. This is used a lot.
- views_handler_filter_broken::ensure_my_table in handlers/
views_handler_filter.inc - Ensure the main table for this handler is in the query. This is used a lot.
File
- includes/
handlers.inc, line 679 - Defines the various handler objects to help build and display views.
Class
- views_handler
- Base handler, from which all the other handlers are derived. It creates a common interface to create consistency amongst handlers and data.
Code
public function ensure_my_table() {
if (!isset($this->table_alias)) {
if (!method_exists($this->query, 'ensure_table')) {
vpr(t('Ensure my table called but query has no ensure_table method.'));
return;
}
$this->table_alias = $this->query
->ensure_table($this->table, $this->relationship);
}
return $this->table_alias;
}