mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
27 lines
562 B
PHP
27 lines
562 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Security\Tests\GroupTest;
|
|
|
|
use SilverStripe\Forms\FieldList;
|
|
use SilverStripe\Forms\Form;
|
|
use SilverStripe\Forms\FormAction;
|
|
|
|
class MemberForm extends Form
|
|
{
|
|
|
|
public function __construct($controller, $name)
|
|
{
|
|
$fields = TestMember::singleton()->getCMSFields();
|
|
$actions = new FieldList(
|
|
new FormAction('doSave', 'save')
|
|
);
|
|
|
|
parent::__construct($controller, $name, $fields, $actions);
|
|
}
|
|
|
|
public function doSave($data, $form)
|
|
{
|
|
// done in testing methods
|
|
}
|
|
}
|