| 4 | 
  * $Id$ | 
  * $Id$ | 
| 5 | 
  * | 
  * | 
| 6 | 
  * $Log$ | 
  * $Log$ | 
| 7 | 
  | 
  * Revision 1.12  2003/04/18 13:40:54  jonen | 
| 8 | 
  | 
  * + added 'topic' to requested vars which will currently be merged with the 'ap' var | 
| 9 | 
  | 
  * | 
| 10 | 
  | 
  * Revision 1.11  2003/04/11 00:51:10  joko | 
| 11 | 
  | 
  * minor update: just testing stuff... | 
| 12 | 
  | 
  * | 
| 13 | 
  * Revision 1.10  2003/04/10 06:03:26  joko | 
  * Revision 1.10  2003/04/10 06:03:26  joko | 
| 14 | 
  * ++ renamed keys: 'ecom_data_form_edit', 'ecom_data_form_cancel' through 'ecom_data_action_edit', 'ecom_data_action_cancel' | 
  * ++ renamed keys: 'ecom_data_form_edit', 'ecom_data_form_cancel' through 'ecom_data_action_edit', 'ecom_data_action_cancel' | 
| 15 | 
  * + new key: 'ecom_data_action_delete' | 
  * + new key: 'ecom_data_action_delete' | 
| 99 | 
     $this->add_model( array( | 
     $this->add_model( array( | 
| 100 | 
       //args => array( 'classname', 'guid', 'action', 'data_locator_key', 'block' ), | 
       //args => array( 'classname', 'guid', 'action', 'data_locator_key', 'block' ), | 
| 101 | 
       request_args => array(  | 
       request_args => array(  | 
| 102 | 
  | 
         // ApplicationTopic | 
| 103 | 
  | 
         'topic', | 
| 104 | 
         // ApplicationPage | 
         // ApplicationPage | 
| 105 | 
         'ap', | 
         'ap', | 
| 106 | 
         // important/required parameters for valid ecom-components | 
         // important/required parameters for valid ecom-components | 
| 114 | 
         'ecom_data_source_key' | 
         'ecom_data_source_key' | 
| 115 | 
       ), | 
       ), | 
| 116 | 
       request_arg => array( | 
       request_arg => array( | 
| 117 | 
  | 
         'topic' => array( query_arg => 't' ), | 
| 118 | 
         'ap' => array( query_arg => 'ap' ), | 
         'ap' => array( query_arg => 'ap' ), | 
| 119 | 
         'ecom_label' => array( query_arg => 'ecl' ), | 
         'ecom_label' => array( query_arg => 'ecl' ), | 
| 120 | 
         'ecom_type' => array( query_arg => 'ect' ), | 
         'ecom_type' => array( query_arg => 'ect' ), | 
| 215 | 
  | 
  | 
| 216 | 
         // rewrite idents | 
         // rewrite idents | 
| 217 | 
         create_function('&$_in, &$_out', ' | 
         create_function('&$_in, &$_out', ' | 
| 218 | 
  | 
            // map Topic to Page if exists | 
| 219 | 
  | 
            if($_in[topic]) { | 
| 220 | 
  | 
             $_in[ap] = $_in[topic]; | 
| 221 | 
  | 
           } | 
| 222 | 
           $idents = array ( ap, ); | 
           $idents = array ( ap, ); | 
| 223 | 
           foreach($idents as $key) { | 
           foreach($idents as $key) { | 
| 224 | 
             $_out[options][idents][$key] = $_in[$key]; | 
             $_out[options][idents][$key] = $_in[$key]; | 
| 297 | 
           // Action.Delete [new of 2003-04-09] | 
           // Action.Delete [new of 2003-04-09] | 
| 298 | 
           if ($_in[ecom_data_action_delete]) { | 
           if ($_in[ecom_data_action_delete]) { | 
| 299 | 
              | 
              | 
| 300 | 
  | 
             //$_out[options][ecoms][content][ecom_mode] = "view"; | 
| 301 | 
  | 
  | 
| 302 | 
             // the code here vanished to the component itself! | 
             // the code here vanished to the component itself! | 
| 303 | 
             // could/should we do this for "edit" and/or "view" actions as well? | 
             // could/should we do this for "edit" and/or "view" actions as well? | 
| 304 | 
             // look at ecom/FlexibleDataItem! | 
             // look at ecom/FlexibleDataItem! |