You are here

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

Adds a node for the OAI-PMH verb to the XML document.

Successful responses append their content to such nodes.

5 calls to views_oai_pmh_plugin_style::xml_append_verb()
views_oai_pmh_plugin_style::get_record_render in plugins/views_oai_pmh_plugin_style.inc
Renders a response to the 'GetRecord' OAI-PMH request.
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_identifiers_render in plugins/views_oai_pmh_plugin_style.inc
Renders a response to the 'ListIdentifiers' 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::list_records_render in plugins/views_oai_pmh_plugin_style.inc
Renders a response to the 'ListRecords' OAI-PMH request.

File

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

Class

views_oai_pmh_plugin_style
Views OAI-PMH_plugin style.

Code

protected function xml_append_verb() {

  // Add verb element, e.g. <Identify>, <GetRecord>, etc.
  if (!$this->request->errors) {
    $this->xml_verb = $this->xml
      ->createElement($this->request->verb);
    $this->xml_root
      ->appendChild($this->xml_verb);
  }
}