You are here

protected function date_ical_plugin_row_ical_fields::get_field in Date iCal 7.3

Same name and namespace in other branches
  1. 7.2 includes/date_ical_plugin_row_ical_fields.inc \date_ical_plugin_row_ical_fields::get_field()

Retrieves a field value from the style plugin.

Parameters

int $index: The index count of the row

string $field_id: The ID assigned to the required field in the display.

See also

views_plugin_style::get_field()

1 call to date_ical_plugin_row_ical_fields::get_field()
date_ical_plugin_row_ical_fields::render in includes/date_ical_plugin_row_ical_fields.inc
Returns an Event array row in the query with index: $row->index.

File

includes/date_ical_plugin_row_ical_fields.inc, line 401
Defines the iCal Fields row style plugin, which lets users map view fields to the components of the VEVENTs in the iCal feed.

Class

date_ical_plugin_row_ical_fields
A Views plugin which builds an iCal VEVENT from a views row with Fields.

Code

protected function get_field($index, $field_id) {
  if (empty($this->view->style_plugin) || !is_object($this->view->style_plugin) || empty($field_id)) {
    return '';
  }
  return $this->view->style_plugin
    ->get_field($index, $field_id);
}