function views_handler::get_field

cis7 handlers.inc views_handler::get_field($field = NULL)
cle7 handlers.inc views_handler::get_field($field = NULL)
elmsmedia7 handlers.inc views_handler::get_field($field = NULL)
icor7 handlers.inc views_handler::get_field($field = NULL)
meedjum_blog7 handlers.inc views_handler::get_field($field = NULL)
mooc7 handlers.inc views_handler::get_field($field = NULL)

Shortcut to get a handler's raw field value.

This should be overridden for handlers with formulae or other non-standard fields. Because this takes an argument, fields overriding this can just call return parent::get_field($formula)

6 calls to views_handler::get_field()
views_handler_argument_group_by_numeric::query in sites/all/modules/ulmus/views/handlers/views_handler_argument_group_by_numeric.inc
Set up the query for this argument.
views_handler_argument_group_by_numeric::ui_name in sites/all/modules/ulmus/views/handlers/views_handler_argument_group_by_numeric.inc
views_handler_field::ui_name in sites/all/modules/ulmus/views/handlers/views_handler_field.inc
views_handler_filter_group_by_numeric::query in sites/all/modules/ulmus/views/handlers/views_handler_filter_group_by_numeric.inc
Add this filter to the query.
views_handler_filter_group_by_numeric::ui_name in sites/all/modules/ulmus/views/handlers/views_handler_filter_group_by_numeric.inc

... See full list

File

sites/all/modules/ulmus/views/includes/handlers.inc, line 287
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

function get_field($field = NULL) {
  if (!isset($field)) {
    if (!empty($this->formula)) {
      $field = $this->get_formula();
    }
    else {
      $field = $this->table_alias . '.' . $this->real_field;
    }
  }

  // If grouping, check to see if the aggregation method needs to modify the field.
  if ($this->view->display_handler->use_group_by()) {
    $this->view->init_query();
    if ($this->query) {
      $info = $this->query->get_aggregation_info();
      if (!empty($info[$this->options['group_type']]['method']) && function_exists($info[$this->options['group_type']]['method'])) {
        return $info[$this->options['group_type']]['method']($this->options['group_type'], $field);
      }
    }
  }

  return $field;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.