2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Control\Tests\RequestHandlingTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\Forms\Form;
|
|
|
|
|
|
|
|
class FormWithAllowedActions extends Form implements TestOnly
|
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $allowed_actions = array(
|
|
|
|
'allowedformaction' => 1,
|
|
|
|
);
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function allowedformaction()
|
|
|
|
{
|
|
|
|
return 'allowedformaction';
|
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function disallowedformaction()
|
|
|
|
{
|
|
|
|
return 'disallowedformaction';
|
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|