| 1 |
<?php |
<?php |
| 2 |
// $Id: rotor_plugin_style_rotor.inc,v 1.1.2.4 2009/02/22 15:19:47 mrfelton Exp $ |
// $Id: rotor_plugin_style_rotor.inc,v 1.1.2.5 2009/02/22 22:46:08 mrfelton Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 48 |
return $options; |
return $options; |
| 49 |
} |
} |
| 50 |
|
|
|
function render() { |
|
|
if (empty($this->row_plugin)) { |
|
|
vpr('rotor_plugin_style_rotor: 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) { |
|
|
if ($this->uses_row_plugin()) { |
|
|
$rows = array(); |
|
|
foreach ($records as $label => $row) { |
|
|
$rows[] = $this->row_plugin->render($row); |
|
|
} |
|
|
} |
|
|
else { |
|
|
$rows = $records; |
|
|
} |
|
|
$output .= theme($this->theme_functions(), $this->view, $this->options, $rows, $title); |
|
|
} |
|
|
return $output; |
|
|
} |
|
|
|
|
| 51 |
/** |
/** |
| 52 |
* Render the given style. |
* Render the given style. |
| 53 |
*/ |
*/ |