class csl_layout in Bibliography Module 7
Same name and namespace in other branches
- 6.2 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 1742 - CiteProc-PHP.
View source
class csl_layout extends csl_format {
/**
*
*/
public function init_formatting() {
// $this->div_class = 'csl-entry';.
parent::init_formatting();
}
/**
*
*/
public 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:: |
public | function | ||
csl_element:: |
protected | property | ||
csl_element:: |
protected | property | ||
csl_element:: |
public | function | ||
csl_element:: |
public | function | ||
csl_element:: |
public | function | 5 | |
csl_element:: |
public | function | ||
csl_element:: |
public | function | ||
csl_element:: |
public | function | ||
csl_element:: |
public | function | ||
csl_element:: |
public | function | ||
csl_element:: |
public | function | ||
csl_format:: |
protected | property | 1 | |
csl_format:: |
protected | property | ||
csl_format:: |
public | function |
Overrides csl_collection:: |
1 |
csl_format:: |
public | function |
Overrides csl_element:: |
2 |
csl_layout:: |
public | function |
Overrides csl_format:: |
|
csl_layout:: |
public | function |
Overrides csl_rendering_element:: |