You are here

class csl_choose in Bibliography Module 7

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

Hierarchy

Expanded class hierarchy of csl_choose

File

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

View source
class csl_choose extends csl_element {

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

}

Members

Namesort descending Modifiers Type Description Overrides
csl_choose::render public function Overrides csl_collection::render
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