| 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 |
* Revision 1.11 2003/04/11 00:51:10 joko |
| 11 |
* minor update: just testing stuff... |
* minor update: just testing stuff... |
| 12 |
* |
* |
| 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]; |