| 4 | 
  * $Id$ | 
  * $Id$ | 
| 5 | 
  * | 
  * | 
| 6 | 
  * $Log$ | 
  * $Log$ | 
| 7 | 
  | 
  * Revision 1.4  2003/04/04 23:59:19  jonen | 
| 8 | 
  | 
  * + minor changes according to data form submits | 
| 9 | 
  | 
  * | 
| 10 | 
  * Revision 1.3  2003/04/04 01:28:13  jonen | 
  * Revision 1.3  2003/04/04 01:28:13  jonen | 
| 11 | 
  * + added function to purge unwanted merged vars | 
  * + added function to purge unwanted merged vars | 
| 12 | 
  * + handle form submit's now | 
  * + handle form submit's now | 
| 72 | 
     $this->add_model( array( | 
     $this->add_model( array( | 
| 73 | 
       //args => array( 'classname', 'guid', 'action', 'data_locator_key', 'block' ), | 
       //args => array( 'classname', 'guid', 'action', 'data_locator_key', 'block' ), | 
| 74 | 
       request_args => array( 'ap', 'ecom_label', 'ecom_type', 'ecom_abstract_type', 'ecom_mode', 'ecom_data_locator_key', | 
       request_args => array( 'ap', 'ecom_label', 'ecom_type', 'ecom_abstract_type', 'ecom_mode', 'ecom_data_locator_key', | 
| 75 | 
                                          'ecom_data_ident', 'ecom_data_meta', 'ecom_form_edit' ), | 
                                          'ecom_data_ident', 'ecom_data_meta', 'ecom_data_form_edit', 'ecom_data_form_cancel' ), | 
| 76 | 
       request_arg => array( | 
       request_arg => array( | 
| 77 | 
         'ap' => array( query_arg => 'ap' ), | 
         'ap' => array( query_arg => 'ap' ), | 
| 78 | 
         'ecom_label' => array( query_arg => 'ecl' ), | 
         'ecom_label' => array( query_arg => 'ecl' ), | 
| 82 | 
         'ecom_data_locator_key' => array( query_arg => 'ecdlk' ), | 
         'ecom_data_locator_key' => array( query_arg => 'ecdlk' ), | 
| 83 | 
         'ecom_data_ident' => array( query_arg => 'ecdid' ), | 
         'ecom_data_ident' => array( query_arg => 'ecdid' ), | 
| 84 | 
         'ecom_data_meta' => array( query_arg => 'ecdm' ), | 
         'ecom_data_meta' => array( query_arg => 'ecdm' ), | 
| 85 | 
         'ecom_form_edit' => array( query_arg => 'ecfedit' ), | 
         'ecom_data_form_edit' => array( query_arg => 'ecdfe' ), | 
| 86 | 
  | 
         'ecom_data_form_cancel' => array( query_arg => 'ecdfc' ), | 
| 87 | 
       ), | 
       ), | 
| 88 | 
  | 
  | 
| 89 | 
 /* | 
 /* | 
| 199 | 
           return; | 
           return; | 
| 200 | 
         '), | 
         '), | 
| 201 | 
  | 
  | 
| 202 | 
  | 
         // handle data form buttons | 
| 203 | 
         create_function('&$_in, &$_out', ' | 
         create_function('&$_in, &$_out', ' | 
| 204 | 
           $label = $_in[ecom_label]; | 
           $label = $_in[ecom_label]; | 
| 205 | 
           if($_in[ecom_form_edit]) { $_out[options][ecoms][$label][ecom_mode] = "edit"; } | 
           if($_in[ecom_data_form_edit]) { $_out[options][ecoms][$label][ecom_mode] = "edit"; } | 
| 206 | 
  | 
           if($_in[ecom_data_form_cancel]) { $_out[options][ecoms][$label][ecom_mode] = "view"; } | 
| 207 | 
         '), | 
         '), | 
| 208 | 
  | 
  | 
| 209 | 
 /* | 
 /* | 
| 210 | 
         // translate value of argument "action" (olist => list.view, oedit => item.edit) | 
         // translate value of argument "action" (olist => list.view, oedit => item.edit) | 
| 211 | 
         // action dispatcher | 
         // action dispatcher |