class csl_citation in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_citation
- 7 modules/CiteProc/CSL.inc \csl_citation
Hierarchy
- class \csl_collection
- class \csl_element
- class \csl_rendering_element
- class \csl_format
- class \csl_citation
- class \csl_format
- class \csl_rendering_element
- class \csl_element
Expanded class hierarchy of csl_citation
File
- modules/
CiteProc/ CSL.inc, line 1292
View source
class csl_citation extends csl_format {
private $layout = NULL;
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);
}
}
function render($data, $mode = NULL) {
$text = $this->layout
->render($data, 'citation');
return $this
->format($text);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
csl_citation:: |
private | property | ||
csl_citation:: |
function |
Overrides csl_element:: |
||
csl_citation:: |
function |
Overrides csl_rendering_element:: |
||
csl_collection:: |
protected | property | ||
csl_collection:: |
function | |||
csl_element:: |
protected | property | ||
csl_element:: |
protected | property | ||
csl_element:: |
function | |||
csl_element:: |
function | |||
csl_element:: |
function | |||
csl_element:: |
function | |||
csl_element:: |
function | |||
csl_element:: |
function | |||
csl_element:: |
function | |||
csl_element:: |
function | |||
csl_format:: |
protected | property | 1 | |
csl_format:: |
protected | property | ||
csl_format:: |
function |
Overrides csl_collection:: |
1 | |
csl_format:: |
function | 5 | ||
csl_format:: |
function |
Overrides csl_element:: |
2 |