public function csl_bibliography::init in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_bibliography::init()
- 7.2 modules/CiteProc/CSL.inc \csl_bibliography::init()
Overrides csl_element::init
File
- modules/CiteProc/ CSL.inc, line 1821 
- CiteProc-PHP.
Class
Code
public function init($dom_node, $citeproc) {
  $hier_name_attr = $this
    ->get_hier_attributes();
  $options = $dom_node
    ->getElementsByTagName('option');
  foreach ($options as $option) {
    $value = $option
      ->getAttribute('value');
    $name = $option
      ->getAttribute('name');
    $this->attributes[$name] = $value;
  }
  $layouts = $dom_node
    ->getElementsByTagName('layout');
  foreach ($layouts as $layout) {
    $this->layout = new csl_layout($layout, $citeproc);
  }
}