function csl_citation::init in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_citation::init()
- 7 modules/CiteProc/CSL.inc \csl_citation::init()
Overrides csl_element::init
File
- modules/
CiteProc/ CSL.inc, line 1295
Class
Code
function init($dom_node, $citeproc) {
$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);
}
}