mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-03 06:38:51 +02:00
f1db583fb4
This allows arguments to be passed along in an $allowed_actions deceleration of the form 'action' => '->method' in the same way that arguments can be passed to extension constructors when adding them using $extensions or Object::add_extension. I.e. 'action' => '->checkerMethod(false, 7, 2, "yesterday") would call the checkerMethod method with the boolean false the numbers 7 and 2 and the string "yesterday" as its arguments. |
||
---|---|---|
.. | ||
files | ||
ControllerTest.php | ||
ControllerTest.yml | ||
DirectorTest.php | ||
HTTPRequestTest.php | ||
HTTPResponseTest.php | ||
HTTPTest.php | ||
NullHTTPRequestTest.php | ||
PjaxResponseNegotiatorTest.php | ||
RequestHandlingTest.php | ||
SessionTest.php |