function chado_wrapper_is_aggregated_by_join

1.x chado_wrapper_functions.inc chado_wrapper_is_aggregated_by_join($handler)

Determines if the current field is generated via the aggregated join handler

Parameters

$handler: pass in $this from handler::query()

Return value

TRUE/FALSE if or if not the field has the aggregated join handler

8 calls to chado_wrapper_is_aggregated_by_join()
chado_views_handler_field::query in tripal_views/views/handlers/chado_views_handler_field.inc
Determines whether the current field is aggregated or not Note: The parent::query() takes care of adding the field to the query, etc.
chado_views_handler_field_boolean::query in tripal_views/views/handlers/chado_views_handler_field_boolean.inc
Determines whether the current field is aggregated or not Note: The parent::query() takes care of adding the field to the query, etc.
chado_views_handler_field_counter::query in tripal_views/views/handlers/chado_views_handler_field_counter.inc
Determines whether the current field is aggregated or not Note: The parent::query() takes care of adding the field to the query, etc.
chado_views_handler_field_custom::query in tripal_views/views/handlers/chado_views_handler_field_custom.inc
Determines whether the current field is aggregated or not Note: The parent::query() takes care of adding the field to the query, etc.
chado_views_handler_field_date::query in tripal_views/views/handlers/chado_views_handler_field_date.inc
Determines whether the current field is aggregated or not Note: The parent::query() takes care of adding the field to the query, etc.

... See full list

File

tripal_views/views/handlers/chado_wrapper_functions.inc, line 46
TODO: add documentation

Code

function chado_wrapper_is_aggregated_by_join($handler) {
  $aggregated = FALSE;

  $table = $handler->query->get_table_info($handler->table);
  if (preg_match('/aggregator/', $table['join']->definition['handler'])) {
    $aggregated = TRUE;
  }

  return $aggregated;
}