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