Add allowed actions definitions

This commit is contained in:
Andrew Short 2013-07-11 12:40:13 +10:00
parent 2fefd3576b
commit aad2b973ce
6 changed files with 22 additions and 1 deletions

View File

@ -7,6 +7,10 @@ class GridFieldAddExistingSearchButton implements
GridField_HTMLProvider,
GridField_URLHandler {
private static $allowed_actions = array(
'handleSearch'
);
protected $title;
protected $fragment;
protected $searchList;

View File

@ -5,7 +5,7 @@
*/
class GridFieldAddExistingSearchHandler extends RequestHandler {
public static $allowed_actions = array(
private static $allowed_actions = array(
'index',
'add',
'SearchForm'

View File

@ -7,6 +7,10 @@
*/
class GridFieldAddNewMultiClass implements GridField_HTMLProvider, GridField_URLHandler {
private static $allowed_actions = array(
'handleAdd'
);
private $fragment;
private $title;

View File

@ -14,6 +14,10 @@ class GridFieldEditableColumns extends GridFieldDataColumns implements
GridField_SaveHandler,
GridField_URLHandler {
private static $allowed_actions = array(
'handleForm'
);
/**
* @var Form[]
*/

View File

@ -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".
*

View File

@ -9,6 +9,10 @@
*/
abstract class GridFieldRequestHandler extends RequestHandler {
private static $allowed_actions = array(
'Form'
);
/**
* @var GridField
*/