class views_content_plugin_style_ctools_context in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 views_content/plugins/views/views_content_plugin_style_ctools_context.inc \views_content_plugin_style_ctools_context
Default style plugin to render rows one after another with no decorations.
Hierarchy
- class \views_content_plugin_style_ctools_context extends \views_plugin_style
Expanded class hierarchy of views_content_plugin_style_ctools_context
1 string reference to 'views_content_plugin_style_ctools_context'
- views_content_views_plugins in views_content/
plugins/ views/ views_content.views.inc - Implementation of hook_views_plugins
File
- views_content/
plugins/ views/ views_content_plugin_style_ctools_context.inc, line 13 - Contains the default style plugin.
View source
class views_content_plugin_style_ctools_context extends views_plugin_style {
var $rows = array();
/**
* Render the display in this style.
*/
function render() {
if (!empty($this->view->display_handler->previewing)) {
return parent::render();
}
$this->rows = array();
if ($this
->uses_row_plugin() && empty($this->row_plugin)) {
vpr('views_plugin_style_default: Missing row plugin');
return;
}
// Group the rows according to the grouping field, if specified.
$sets = $this
->render_grouping($this->view->result, $this->options['grouping']);
// Render each group separately and concatenate. Plugins may override this
// method if they wish some other way of handling grouping.
$output = '';
foreach ($sets as $title => $records) {
foreach ($records as $row_index => $row) {
$this->view->row_index = $row_index;
$this->rows[$row_index] = $this->row_plugin
->render($row);
}
}
unset($this->view->row_index);
return $this->rows;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
views_content_plugin_style_ctools_context:: |
property | |||
views_content_plugin_style_ctools_context:: |
function | Render the display in this style. |