function date_ical_plugin_row_ical_fields::get_field in Date iCal 7.2
Same name and namespace in other branches
- 7.3 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 @see views_plugin_style::get_field().
string $field_id: The ID assigned to the required field in the display.
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 based on the query result from the view whose index is specified in the (hidden) second parameter of this function.
File
- includes/
date_ical_plugin_row_ical_fields.inc, line 337 - 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
- Plugin which creates a view on the resulting object and formats it as an iCal VEVENT.
Code
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);
}