silverstripe-framework/tests/php/Control/RequestHandlingTest/FormWithAllowedActions.php
2016-11-23 19:25:12 +13:00

24 lines
421 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';
}
}