public function views_oai_pmh_plugin_style_auto::__construct in Views OAI-PMH 7.2
Same name and namespace in other branches
- 6.2 plugins/views_oai_pmh_plugin_style_auto.inc \views_oai_pmh_plugin_style_auto::__construct()
File
- plugins/
views_oai_pmh_plugin_style_auto.inc, line 30 - Definition of the views_oai_pmh_plugin_style_auto class.
Class
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->_style_objects[$metadata_config->metadata_prefix] = new views_oai_pmh_plugin_style_misc();
// Call the object's custom constructor function, passing it the $key as the type of metadata we want it to represent.
$this->_style_objects[$metadata_config->metadata_prefix]
->construct($key);
}
}