class csl_layout in Bibliography Module 6.2
Same name and namespace in other branches
- 7 modules/CiteProc/CSL.inc \csl_layout
- 7.2 modules/CiteProc/CSL.inc \csl_layout
Hierarchy
- class \csl_collection
- class \csl_element
- class \csl_rendering_element
- class \csl_format
- class \csl_layout
- class \csl_format
- class \csl_rendering_element
- class \csl_element
Expanded class hierarchy of csl_layout
File
- modules/
CiteProc/ CSL.inc, line 1341
View source
class csl_layout extends csl_format {
function init_formatting() {
// $this->div_class = 'csl-entry';
parent::init_formatting();
}
function render($data, $mode = NULL) {
$text = '';
$parts = array();
// $delimiter = $this->delimiter;
foreach ($this->elements as $element) {
$parts[] = $element
->render($data, $mode);
}
$text = implode($this->delimiter, $parts);
if ($mode == 'bibliography') {
return $this
->format($text);
}
else {
return $text;
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
csl_collection:: |
protected | property | ||
csl_collection:: |
function | |||
csl_element:: |
protected | property | ||
csl_element:: |
protected | property | ||
csl_element:: |
function | |||
csl_element:: |
function | |||
csl_element:: |
function | 5 | ||
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 |
Overrides csl_element:: |
2 | |
csl_layout:: |
function |
Overrides csl_format:: |
||
csl_layout:: |
function |
Overrides csl_rendering_element:: |