You are here

public function csl_choose::render in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/CSL.inc \csl_choose::render()
  2. 7.2 modules/CiteProc/CSL.inc \csl_choose::render()

Overrides csl_collection::render

File

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

Class

csl_choose

Code

public function render($data, $mode = NULL) {
  foreach ($this->elements as $choice) {
    if ($choice
      ->evaluate($data)) {
      return $choice
        ->render($data, $mode);
    }
  }
}