public function views_oai_pmh_metadata_type::__construct in Views OAI-PMH 7.2
Same name and namespace in other branches
- 6.2 plugins/includes/views_oai_pmh_metadata_type.inc \views_oai_pmh_metadata_type::__construct()
Class constructor.
File
- plugins/
includes/ views_oai_pmh_metadata_type.inc, line 85 - Definition of the views_oai_pmh_metadata_type class.
Class
- views_oai_pmh_metadata_type
- Provides a mechanism for defining the OAI metadata types. Create an instance of this class with the values set, add it to the global array $GLOBALS['views_oai_pmh'] and the module will handle the rest.
Code
public function __construct($metadata_prefix, $name = '', $elements = array(), $style_plugin = '', $row_plugin = '', $form_group_name = '', $help = '') {
// Populate the object properties.
$this->metadata_prefix = $metadata_prefix;
$this->name = $name;
$this->elements = $elements;
$this->style_plugin = $style_plugin;
$this->row_plugin = $row_plugin;
$this->form_group_name = $form_group_name;
$this->help = $help;
$this->base_xml_node = NULL;
// Add the 'none' option to the elements list along with its translation.
$this->elements['none'] = t('None');
}