class views_oai_pmh_plugin_style_dc in Views OAI-PMH 6.2
Same name and namespace in other branches
- 6 plugins/views_oai_pmh_plugin_style_dc.inc \views_oai_pmh_plugin_style_dc
- 7 plugins/views_oai_pmh_plugin_style_dc.inc \views_oai_pmh_plugin_style_dc
- 7.2 plugins/views_oai_pmh_plugin_style_dc.inc \views_oai_pmh_plugin_style_dc
@file
Hierarchy
- class \views_oai_pmh_plugin_style extends \views_plugin_style
Expanded class hierarchy of views_oai_pmh_plugin_style_dc
File
- plugins/
views_oai_pmh_plugin_style_dc.inc, line 6
View source
class views_oai_pmh_plugin_style_dc extends views_oai_pmh_plugin_style {
function render_records() {
if (!empty($this->display->handler->oai_args['errors'])) {
return;
}
// $records = array();
if ($this
->uses_row_plugin() && empty($this->row_plugin)) {
vpr('views_plugin_style_default: Missing row plugin');
return;
}
$records = '';
if ($this
->uses_row_plugin()) {
$rows = array();
foreach ($this->view->result as $row_index => $row) {
$this->view->row_index = $row_index;
$dc_fields = $this->row_plugin
->render($row);
$records .= theme('views_oai_pmh_dc_record', array(
'nid' => $row->nid,
'node_changed' => $row->node_changed,
'fields' => $dc_fields,
));
}
}
return $records;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
views_oai_pmh_plugin_style:: |
protected | property | ||
views_oai_pmh_plugin_style:: |
function | Get the nid of the result at the given row index. | ||
views_oai_pmh_plugin_style:: |
function | |||
views_oai_pmh_plugin_style:: |
function | |||
views_oai_pmh_plugin_style:: |
function | |||
views_oai_pmh_plugin_style:: |
function | Provide a full list of possible theme templates used by this style. | ||
views_oai_pmh_plugin_style_dc:: |
function |