You are here

class csl_rendering_element in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 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 328
CiteProc-PHP.

View source
class csl_rendering_element extends csl_element {

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

}

Members

Namesort descending Modifiers Type Description Overrides
csl_collection::$elements protected property
csl_collection::add_element public function
csl_collection::format public function 1
csl_element::$attributes protected property
csl_element::$citeproc protected property
csl_element::get_attributes public function
csl_element::get_hier_attributes public function
csl_element::init public function 5
csl_element::name public function
csl_element::set_attributes public function
csl_element::__construct public function 2
csl_element::__get public function
csl_element::__isset public function
csl_element::__set public function
csl_element::__unset public function
csl_rendering_element::render public function Overrides csl_collection::render 11