for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class TabbedSelectionGroup extends SelectionGroup {
/**
* @return ArrayList
*/
public function FieldList() {
$items = CompositeField::FieldList()->toArray();
$fields = new ArrayList();
foreach($items as $item) {
$extra = array(
'Selected' => $this->value == $item->getValue(),
);
$item = $item->customise($extra);
$fields->push($item);
}
return $fields;