function views_plugin_query_default::get_field_alias

3.x views_plugin_query_default.inc views_plugin_query_default::get_field_alias($table_alias, $field)

Returns the alias for the given field added to $table.

See also

views_plugin_query_default::add_field()

1 call to views_plugin_query_default::get_field_alias()
views_plugin_query_default::get_result_entities in plugins/views_plugin_query_default.inc
Returns the according entity objects for the given query results.

File

plugins/views_plugin_query_default.inc, line 1081
Defines the default query object.

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

function get_field_alias($table_alias, $field) {
  return isset($this->field_aliases[$table_alias][$field]) ? $this->field_aliases[$table_alias][$field] : FALSE;
}