silverstripe-framework/tests/php/Control/RequestHandlingTest/FormWithAllowedActionsHandler.php

28 lines
505 B
PHP
Raw Normal View History

<?php
namespace SilverStripe\Control\Tests\RequestHandlingTest;
use SilverStripe\Forms\FormRequestHandler;
/**
* Request handler for
* @see FormWithAllowedActions
*/
class FormWithAllowedActionsHandler extends FormRequestHandler
{
private static $allowed_actions = [
'allowedformaction' => 1,
];
public function allowedformaction()
{
return 'allowedformaction';
}
public function disallowedformaction()
{
return 'disallowedformaction';
}
}