function csl_rendering_element::render in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_rendering_element::render()
- 7 modules/CiteProc/CSL.inc \csl_rendering_element::render()
Overrides csl_collection::render
11 methods override csl_rendering_element::render()
- csl_bibliography::render in modules/
CiteProc/ CSL.inc - csl_citation::render in modules/
CiteProc/ CSL.inc - csl_date::render in modules/
CiteProc/ CSL.inc - csl_date_part::render in modules/
CiteProc/ CSL.inc - csl_group::render in modules/
CiteProc/ CSL.inc
File
- modules/
CiteProc/ CSL.inc, line 234
Class
Code
function render($data, $mode = NULL) {
$text = '';
$text_parts = array();
$delim = $this->delimiter;
foreach ($this->elements as $element) {
$text_parts[] = $element
->render($data, $mode);
}
$text = implode($delim, $text_parts);
// insert the delimiter if supplied.
return $this
->format($text);
}