You are here

class csl_macros in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/CSL.inc \csl_macros
  2. 7 modules/CiteProc/CSL.inc \csl_macros

Hierarchy

Expanded class hierarchy of csl_macros

File

modules/CiteProc/CSL.inc, line 1195

View source
class csl_macros extends csl_collection {
  function __construct($macro_nodes, $citeproc) {
    foreach ($macro_nodes as $macro) {
      $macro = csl_factory::create($macro, $citeproc);
      $this->elements[$macro
        ->name()] = $macro;
    }
  }
  function render_macro($name, $data, $mode) {
    return $this->elements[$name]
      ->render($data, $mode);
  }

}

Members