2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Security\Tests\GroupTest;
|
|
|
|
|
|
|
|
use SilverStripe\Forms\FieldList;
|
|
|
|
use SilverStripe\Forms\Form;
|
|
|
|
use SilverStripe\Forms\FormAction;
|
|
|
|
|
|
|
|
class MemberForm extends Form
|
|
|
|
{
|
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function __construct($controller, $name)
|
|
|
|
{
|
|
|
|
$fields = TestMember::singleton()->getCMSFields();
|
|
|
|
$actions = new FieldList(
|
|
|
|
new FormAction('doSave', 'save')
|
|
|
|
);
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
parent::__construct($controller, $name, $fields, $actions);
|
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function doSave($data, $form)
|
|
|
|
{
|
|
|
|
// done in testing methods
|
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|