You are here

public function views_plugin_style::get_field in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_style.inc \views_plugin_style::get_field()
  2. 6.2 plugins/views_plugin_style.inc \views_plugin_style::get_field()

Get a rendered field.

Parameters

int $index: The index count of the row.

string $field: The id of the field.

2 calls to views_plugin_style::get_field()
views_plugin_style::render_grouping in plugins/views_plugin_style.inc
Group records as needed for rendering.
views_plugin_style_jump_menu::render in plugins/views_plugin_style_jump_menu.inc
Render the display in this style.

File

plugins/views_plugin_style.inc, line 577
Definition of views_plugin_style.

Class

views_plugin_style
Base class to define a style plugin handler.

Code

public function get_field($index, $field) {
  if (!isset($this->rendered_fields)) {
    $this
      ->render_fields($this->view->result);
  }
  if (isset($this->rendered_fields[$index][$field])) {
    return $this->rendered_fields[$index][$field];
  }
}