#1419: Allow validators to export to a different source
---------------------------------+------------------------------------------
 Reporter:  niklas@…             |       Owner:  dominik
     Type:  enhancement          |      Status:  new    
 Priority:  normal               |   Milestone:  1.0.7  
Component:  validation           |     Version:  1.0.6  
 Severity:  normal               |    Keywords:         
Has_patch:  0                    |  
---------------------------------+------------------------------------------
 I would like to be able to do something like
 {{{
 <validator class="MyCustomFileSomethingValidator">
   <argument>post_file</argument>
   <ae:parameter name="export">parsed_array</ae:parameter>
 </validator>
 }}}
 {{{
 if ($this->hasParameter('export')) {
   $this->export($parsed_array, $this->getParameter('export'),
 AgaviRequestDataHolder::SOURCE_PARAMETERS);
 }
 }}}
 Because when I have parsed the input file, it isn't a file anymore, so
 fetching it via $rd->getFile() seems wrong. :)

-- 
Ticket URL: <http://trac.agavi.org/ticket/1419>
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