You are here

public function views_oai_pmh_xml_node::__construct in Views OAI-PMH 7.2

Same name and namespace in other branches
  1. 6.2 plugins/includes/views_oai_pmh_xml_node.inc \views_oai_pmh_xml_node::__construct()

Class constructor.

Takes an element name as a required parameter in order that is contains the bare minimum information to render as an XML node.

Parameters

string $key: The name of the new XML node.

string|array $value: (optional) The content of the new XML node.

array $attributes : (optional) An array of key/value pair attributes of the new XML node.

File

plugins/includes/views_oai_pmh_xml_node.inc, line 44
Definition of the views_oai_pmh_xml_node class.

Class

views_oai_pmh_xml_node
A class designed to represent an XML node, specially designed to help the Views OAI PMH module render OAI fields as XML elements.

Code

public function __construct($key = '', $value = array(), $attributes = array()) {
  $this->key = $key;
  $this->value = $value;
  $this->attributes = $attributes;
}