You are here

function csl_rendering_element::render in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/CSL.inc \csl_rendering_element::render()
  2. 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

... See full list

File

modules/CiteProc/CSL.inc, line 234

Class

csl_rendering_element

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);
}