#407: Add support for lightweight actions
-------------------------+--------------------------------------------------
 Reporter:  david        |       Owner:  david
     Type:  enhancement  |      Status:  new  
 Priority:  high         |   Milestone:  0.11 
Component:  controller   |     Version:       
 Severity:  normal       |    Keywords:       
-------------------------+--------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.agavi.org/ticket/407>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to