You are here

protected static function views_oai_pmh_plugin_style::xml_set_attributes in Views OAI-PMH 7.3

Adds multiple attributes to a given element.

Key-value pairs from the $attributes array correspond to attribute-value pairs to set.

2 calls to views_oai_pmh_plugin_style::xml_set_attributes()
views_oai_pmh_plugin_style::append_oai_identifier_description in plugins/views_oai_pmh_plugin_style.inc
views_oai_pmh_plugin_style::append_record_metadata in plugins/views_oai_pmh_plugin_style.inc
Builds the core of a record's XML.

File

plugins/views_oai_pmh_plugin_style.inc, line 830
Contains the base OAI-PMH style plugin.

Class

views_oai_pmh_plugin_style
Views OAI-PMH_plugin style.

Code

protected static function xml_set_attributes($element, $attributes) {
  foreach ($attributes as $name => $value) {
    $element
      ->setAttribute($name, $value);
  }
}