1: <?php
2:
3: /*
4: * To change this license header, choose License Headers in Project Properties.
5: * To change this template file, choose Tools | Templates
6: * and open the template in the editor.
7: */
8:
9: namespace academicpuma\citeproc;
10:
11: /**
12: * Description of csl_choose
13: *
14: * @author sebastian
15: */
16:
17: class Choose extends Element {
18:
19: function render($data, $mode = NULL) {
20: foreach ($this->elements as $choice) {
21: if ($choice->evaluate($data)) {
22: return $choice->render($data, $mode);
23: }
24: }
25: }
26:
27: }
28: