mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
24 lines
463 B
PHP
24 lines
463 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Control\Tests\RequestHandlingTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\Forms\Form;
|
|
|
|
class FormWithAllowedActions extends Form implements TestOnly
|
|
{
|
|
private static $allowed_actions = array(
|
|
'allowedformaction' => 1,
|
|
);
|
|
|
|
public function allowedformaction()
|
|
{
|
|
return 'allowedformaction';
|
|
}
|
|
|
|
public function disallowedformaction()
|
|
{
|
|
return 'disallowedformaction';
|
|
}
|
|
}
|