mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Add allowed actions definitions
This commit is contained in:
parent
2fefd3576b
commit
aad2b973ce
@ -7,6 +7,10 @@ class GridFieldAddExistingSearchButton implements
|
||||
GridField_HTMLProvider,
|
||||
GridField_URLHandler {
|
||||
|
||||
private static $allowed_actions = array(
|
||||
'handleSearch'
|
||||
);
|
||||
|
||||
protected $title;
|
||||
protected $fragment;
|
||||
protected $searchList;
|
||||
|
@ -5,7 +5,7 @@
|
||||
*/
|
||||
class GridFieldAddExistingSearchHandler extends RequestHandler {
|
||||
|
||||
public static $allowed_actions = array(
|
||||
private static $allowed_actions = array(
|
||||
'index',
|
||||
'add',
|
||||
'SearchForm'
|
||||
|
@ -7,6 +7,10 @@
|
||||
*/
|
||||
class GridFieldAddNewMultiClass implements GridField_HTMLProvider, GridField_URLHandler {
|
||||
|
||||
private static $allowed_actions = array(
|
||||
'handleAdd'
|
||||
);
|
||||
|
||||
private $fragment;
|
||||
|
||||
private $title;
|
||||
|
@ -14,6 +14,10 @@ class GridFieldEditableColumns extends GridFieldDataColumns implements
|
||||
GridField_SaveHandler,
|
||||
GridField_URLHandler {
|
||||
|
||||
private static $allowed_actions = array(
|
||||
'handleForm'
|
||||
);
|
||||
|
||||
/**
|
||||
* @var Form[]
|
||||
*/
|
||||
|
@ -12,6 +12,11 @@ class GridFieldOrderableRows extends RequestHandler implements
|
||||
GridField_HTMLProvider,
|
||||
GridField_URLHandler {
|
||||
|
||||
private static $allowed_actions = array(
|
||||
'handleReorder',
|
||||
'handleMoveToPage'
|
||||
);
|
||||
|
||||
/**
|
||||
* The database field which specifies the sort, defaults to "Sort".
|
||||
*
|
||||
|
@ -9,6 +9,10 @@
|
||||
*/
|
||||
abstract class GridFieldRequestHandler extends RequestHandler {
|
||||
|
||||
private static $allowed_actions = array(
|
||||
'Form'
|
||||
);
|
||||
|
||||
/**
|
||||
* @var GridField
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user