You are here

class csl_layout in Bibliography Module 7

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

Hierarchy

Expanded class hierarchy of csl_layout

File

modules/CiteProc/CSL.inc, line 1742
CiteProc-PHP.

View source
class csl_layout extends csl_format {

  /**
   *
   */
  public function init_formatting() {

    // $this->div_class = 'csl-entry';.
    parent::init_formatting();
  }

  /**
   *
   */
  public function render($data, $mode = NULL) {
    $text = '';
    $parts = array();

    // $delimiter = $this->delimiter;.
    foreach ($this->elements as $element) {
      $parts[] = $element
        ->render($data, $mode);
    }
    $text = implode($this->delimiter, $parts);
    if ($mode == 'bibliography') {
      return $this
        ->format($text);
    }
    else {
      return $text;
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
csl_collection::$elements protected property
csl_collection::add_element public function
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::__get public function
csl_element::__isset public function
csl_element::__set public function
csl_element::__unset public function
csl_format::$format protected property 1
csl_format::$no_op protected property
csl_format::format public function Overrides csl_collection::format 1
csl_format::__construct public function Overrides csl_element::__construct 2
csl_layout::init_formatting public function Overrides csl_format::init_formatting
csl_layout::render public function Overrides csl_rendering_element::render