You are here

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

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

File

plugins/views_oai_pmh_plugin_row_auto.inc, line 30
Definition of the views_oai_pmh_plugin_row_auto class.

Class

views_oai_pmh_plugin_row_auto

Code

public function __construct() {

  // Create a new object for each type of metadata class and store it in our _row_objects array.
  foreach ($GLOBALS['views_oai_pmh'] as $key => $metadata_config) {
    $this->_row_objects[$metadata_config->metadata_prefix] = new views_oai_pmh_plugin_row_misc($key);

    // Call the object's custom constructor function, passing it the $key as the type of metadata we want it to represent.
    $this->_row_objects[$metadata_config->metadata_prefix]
      ->construct($key);
  }
}