You are here

protected function views_oai_pmh_plugin_style::xml_append_children in Views OAI-PMH 7.3

Creates multiple children elements under a common parent in the XML.

Creates multiple children elements under a common parent in the XML. document. Key-value pairs from the $children array correspond to tag-value pairs to create.

5 calls to views_oai_pmh_plugin_style::xml_append_children()
views_oai_pmh_plugin_style::append_oai_identifier_description in plugins/views_oai_pmh_plugin_style.inc
views_oai_pmh_plugin_style::append_record_header in plugins/views_oai_pmh_plugin_style.inc
Append record header.
views_oai_pmh_plugin_style::identify_render in plugins/views_oai_pmh_plugin_style.inc
Renders a response to the 'identify' OAI-PMH request.
views_oai_pmh_plugin_style::list_metadata_formats_render in plugins/views_oai_pmh_plugin_style.inc
Renders a response to the 'ListMetadataFormats' OAI-PMH request.
views_oai_pmh_plugin_style::xml_init in plugins/views_oai_pmh_plugin_style.inc
Creates the DOMDocument for the OAI-PMH response.

File

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

Class

views_oai_pmh_plugin_style
Views OAI-PMH_plugin style.

Code

protected function xml_append_children($parent, $children) {
  foreach ($children as $tag => $value) {
    $element = $this->xml
      ->createElement($tag, check_plain($value));
    $parent
      ->appendChild($element);
  }
}