mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-05 17:21:16 +02:00
API Add HasRequestHandler interface API Refactor Link() and url handling behaviour from Controller into RequestHandler API RequestHandler classes now must define url_segment to have a default Link() API Clean up redirectBack()
28 lines
510 B
PHP
28 lines
510 B
PHP
<?php
|
|
|
|
|
|
namespace SilverStripe\Control\Tests\RequestHandlingTest;
|
|
|
|
use SilverStripe\Forms\FormRequestHandler;
|
|
|
|
/**
|
|
* Request handler for
|
|
* @see FormWithAllowedActions
|
|
*/
|
|
class FormWithAllowedActionsHandler extends FormRequestHandler
|
|
{
|
|
private static $allowed_actions = array(
|
|
'allowedformaction' => 1,
|
|
);
|
|
|
|
public function allowedformaction()
|
|
{
|
|
return 'allowedformaction';
|
|
}
|
|
|
|
public function disallowedformaction()
|
|
{
|
|
return 'disallowedformaction';
|
|
}
|
|
}
|