| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | public function FieldList() { |
||
| 9 | $items = CompositeField::FieldList()->toArray(); |
||
| 10 | $fields = new ArrayList(); |
||
| 11 | |||
| 12 | foreach($items as $item) { |
||
| 13 | $extra = array( |
||
| 14 | 'Selected' => $this->value == $item->getValue(), |
||
| 15 | ); |
||
| 16 | |||
| 17 | $item = $item->customise($extra); |
||
| 18 | $fields->push($item); |
||
| 19 | } |
||
| 20 | |||
| 21 | return $fields; |
||
| 22 | } |
||
| 23 | } |
||
| 24 |