silverstripe-framework/tests/php/Security/GroupTest/MemberForm.php

27 lines
562 B
PHP
Raw Normal View History

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
{
public function __construct($controller, $name)
{
$fields = TestMember::singleton()->getCMSFields();
$actions = new FieldList(
new FormAction('doSave', 'save')
);
2016-10-14 03:30:05 +02:00
parent::__construct($controller, $name, $fields, $actions);
}
2016-10-14 03:30:05 +02:00
public function doSave($data, $form)
{
// done in testing methods
}
2016-10-14 03:30:05 +02:00
}