mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fixed Controller::allowed_actions documentation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49889 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
21c8752e2c
commit
ecdc4d5cbf
@ -19,14 +19,16 @@ class Controller extends ViewableData {
|
||||
|
||||
/**
|
||||
* Define a list of actions that are allowed to be called on this controller.
|
||||
* The variable should be an array of action names. This sample s
|
||||
* The variable should be an array of action names. This sample shows the different values that it can contain:
|
||||
*
|
||||
* <code>
|
||||
* array(
|
||||
* 'someaction', // someaction can be accessed by anyone, any time
|
||||
* 'otheraction' => true, // So can otheraction
|
||||
* 'restrictedaction' => 'ADMIN', // restrictedaction can only be people with ADMIN privilege
|
||||
* 'complexaction' '->canComplexAction' // complexaction can only be accessed if $this->canComplexAction() returns true
|
||||
* );
|
||||
* </code>
|
||||
*/
|
||||
static $allowed_actions = null;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user