public function csl_rendering_element::render in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_rendering_element::render()
- 7.2 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 333 - CiteProc-PHP.
Class
Code
public function render($data, $mode = NULL) {
$text = '';
$text_parts = array();
$delim = $this->delimiter;
foreach ($this->elements as $element) {
$text_parts[] = $element
->render($data, $mode);
}
// Insert the delimiter if supplied.
$text = implode($delim, $text_parts);
return $this
->format($text);
}