Ticket #407 (closed enhancement: fixed)
Add support for lightweight actions
| Reported by: | david | Owned by: | david |
|---|---|---|---|
| Priority: | high | Milestone: | 0.11 |
| Component: | controller | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Patch attached: |
Description
something like:
class MySlotAction extends AgaviAction implements AgaviITurbochargedAction
or
public function isArielAtom()
{
return true;
}
or
public function getShortcut()
{
return 'Success';
}
The effect:
- No validation is performed
- The request data holder is empty unless arguments were set on the container (could be done for slots)
- No action filters are run
The first code style would be the most convenient. However, the second style allows to programatically decide whether or not to accelerate the action, which might be useful in case where actions can act both as a slot and as a "standalone" version. The third style would be a bit different in that the action would not be run at all; instead, control would pass on to the view directly.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

