class csl_macros in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_macros
- 7.2 modules/CiteProc/CSL.inc \csl_macros
Hierarchy
- class \csl_collection
- class \csl_macros
Expanded class hierarchy of csl_macros
File
- modules/
CiteProc/ CSL.inc, line 1643 - CiteProc-PHP.
View source
class csl_macros extends csl_collection {
/**
*
*/
public function __construct($macro_nodes, $citeproc) {
foreach ($macro_nodes as $macro) {
$macro = csl_factory::create($macro, $citeproc);
$this->elements[$macro
->name()] = $macro;
}
}
/**
*
*/
public function render_macro($name, $data, $mode) {
return $this->elements[$name]
->render($data, $mode);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
csl_collection:: |
protected | property | ||
csl_collection:: |
public | function | ||
csl_collection:: |
public | function | 1 | |
csl_collection:: |
public | function | 2 | |
csl_macros:: |
public | function | ||
csl_macros:: |
public | function |