You are here

public function csl_macros::__construct in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/CSL.inc \csl_macros::__construct()
  2. 7.2 modules/CiteProc/CSL.inc \csl_macros::__construct()

File

modules/CiteProc/CSL.inc, line 1648
CiteProc-PHP.

Class

csl_macros

Code

public function __construct($macro_nodes, $citeproc) {
  foreach ($macro_nodes as $macro) {
    $macro = csl_factory::create($macro, $citeproc);
    $this->elements[$macro
      ->name()] = $macro;
  }
}