You are here

class csl_rendering_element in Bibliography Module 6.2

Same name and namespace in other branches
  1. 7 modules/CiteProc/CSL.inc \csl_rendering_element
  2. 7.2 modules/CiteProc/CSL.inc \csl_rendering_element

Hierarchy

Expanded class hierarchy of csl_rendering_element

File

modules/CiteProc/CSL.inc, line 237

View source
class csl_rendering_element extends csl_element {
  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);
  }

}

Members